/* Illustrated characters, live timing and the shared score board. */
.intro{position:relative}
.hero-boss{position:absolute;top:313px;right:-35px;width:238px;height:264px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 12px 8px #57432c12);transform:rotate(3deg)}
.hero-boss img{display:block;width:100%;height:100%;object-fit:contain}
.desk-note{z-index:1;width:220px;margin-top:58px}
.home-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}
.home-title-row h2{margin:0;max-width:250px}
.home-boss{display:none;flex:0 0 88px;width:88px;height:90px;object-fit:contain;pointer-events:none;transform:rotate(4deg)}
.home-boss img{display:block;width:100%;height:100%;object-fit:contain}
.leaderboard-trigger{display:flex;width:auto;min-width:70px;padding:0 11px;gap:5px;border-radius:18px;color:#7c6540;background:#f7eedb;border-color:#daceb5;font-size:11px}
.leaderboard-trigger:hover{background:#efe0bd}
.leaderboard-trigger svg{width:17px;height:17px}
.order-box{position:relative;min-height:82px;max-height:86px;padding:1px 15px 1px 6px;gap:11px}
.order-avatar{width:78px;height:78px;flex:0 0 78px;overflow:visible}
.order-avatar img,#boss-avatar{display:block;width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 3px 2px #47382512)}
.order-label{color:#7f8c70}
.order-box h2{margin-top:3px}
.order-badge{font-size:24px;opacity:.7}
.game-topline{gap:8px}
.timer-live{white-space:nowrap;font:600 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.025em;color:#55734b;background:#edf1e5;border:1px solid #dde6d3;border-radius:4px;padding:4px 6px}
.timer-live b,.timer-live strong{font:inherit;color:#344b2b}
.swap-notice{display:flex;align-items:center;justify-content:center;min-height:24px;height:24px;margin:8px 0 0;border-radius:4px;background:#f8efe2;border:1px solid #ecdfca;color:#92724b;font-size:10px;line-height:1.3;text-align:center;letter-spacing:.015em}
.swap-notice.is-active{color:#b85b35;background:#fff0df;border-color:#e5c29f}
.swap-notice+ .question-panel{margin-top:8px}
.question-panel{position:relative}
.feedback-art{position:absolute;width:59px;height:59px;object-fit:contain;right:5px;bottom:10px;pointer-events:none;filter:drop-shadow(0 3px 2px #62452c12);z-index:1}
.question-panel.is-wrong .feedback,.question-panel.is-timeout .feedback{padding-right:62px;padding-left:8px}
.swap-layout .answer-button,.answer-buttons.swap-layout .answer-button{border-color:#dda57c;background:#faf0e3}
.swap-layout .answer-button:hover:not(:disabled),.answer-buttons.swap-layout .answer-button:hover:not(:disabled){background:#f4e4ce}
.answer-button [id^="answer-label"]{line-height:1;min-width:1em}
.overlay-icon{width:156px;height:150px;border-radius:0;background:transparent;margin:14px auto 10px}
.overlay-icon img,#overlay-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #49332510)}
.overlay-content p{margin-top:8px}
.result-hero{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px -3px 2px}
.result-art{display:block;width:135px;height:143px;object-fit:contain;transform:rotate(-4deg);filter:drop-shadow(0 5px 4px #60432510)}
.result-hero .big-result{gap:7px}
.result-hero .big-result strong{font-size:86px}
.result-hero .big-result>span{font-size:16px;white-space:nowrap}
.result-timing{display:flex;justify-content:center;align-items:baseline;gap:6px;width:max-content;max-width:100%;margin:10px auto 17px;padding:7px 13px;border-radius:5px;background:#f0f3e7;color:#7f8a6e;font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums}
.result-timing b,.result-timing strong{font:700 19px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;color:#4e6a40;letter-spacing:-.04em}
.submit-score-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;margin:16px 0 9px;padding:13px 0 0;border-top:1px dashed var(--line)}
.submit-score-form label{font-size:10px;color:#81916f;grid-column:1/-1}
.submit-score-form input{display:block;width:100%;min-width:0;height:42px;padding:10px 11px;border:1px solid #d7ddca;border-radius:4px;background:#fffef8;color:var(--ink);font:inherit;font-size:12px;line-height:1.5;outline:none}
.submit-score-form input::placeholder{color:#a3aa95}
.submit-score-form input:focus{border-color:#93a47f;box-shadow:0 0 0 3px #bacbaa24}
.submit-score-form button{width:auto;min-height:42px;height:42px;padding:10px 14px;white-space:nowrap;font-size:11px}
.submit-score-form button:disabled{opacity:.65}
.submit-score-form p,.submit-score-form .submit-status,.submit-score-form .submit-message{grid-column:1/-1;margin:1px 0;font-size:10px;line-height:1.7;color:#81916f;text-align:center}
.submit-score-status{margin:7px 0 13px;text-align:center;font-size:10px;line-height:1.7;color:#7e8f6e}
.submit-score-status.is-error,.submit-score-form .is-error{color:#bd6446}
.leaderboard-dialog{position:fixed;border:1px solid #d5dac7;border-radius:9px;background:var(--card);color:var(--ink);width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 36px);padding:23px 25px 24px;overflow:auto;box-shadow:0 22px 100px #23321e30}
.leaderboard-dialog::backdrop{background:#26321f66;backdrop-filter:blur(4px)}
.boss-board-art{display:block;width:94px;height:96px;object-fit:contain;margin:0 auto -2px;pointer-events:none}
.boss-board-art img{display:block;width:100%;height:100%;object-fit:contain}
.leaderboard-dialog h2{margin:3px 0 9px;text-align:center;font-size:25px;letter-spacing:-.035em}
.leaderboard-dialog .eyebrow{justify-content:center;font-size:10px}
.ranking-policy{margin:10px 0 15px;padding:10px 11px;background:#f5efe1;border:1px solid #e9dec8;border-radius:4px;text-align:center;font-size:11px;line-height:1.8;color:#917248}
.ranking-policy strong,.ranking-policy b{color:#9f5939;font-weight:700}
.leaderboard-scroll{max-height:40vh;min-height:88px;overflow:auto;overscroll-behavior:contain;border:1px solid #e1e4d6;border-radius:5px;background:#fbfcf4;scrollbar-width:thin;scrollbar-color:#c6cfb9 transparent}
.leaderboard-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.5}
.leaderboard-table thead{position:sticky;top:0;z-index:2}
.leaderboard-table th{padding:10px 9px;background:#edf0e2;border-bottom:1px solid #dbe1ce;color:#8c977c;text-align:left;font-size:9px;letter-spacing:.035em;font-weight:500;white-space:nowrap}
.leaderboard-table td{padding:12px 9px;border-bottom:1px solid #e8ebdf;color:#657557;vertical-align:middle}
.leaderboard-table tbody tr:last-child td{border-bottom:0}
.leaderboard-table th:first-child,.leaderboard-table td:first-child{width:40px;text-align:center}
.leaderboard-table td:first-child{font:700 13px/1.5 ui-monospace,monospace;color:#99a38b}
.leaderboard-table td:nth-child(2){font-weight:650;max-width:145px;overflow-wrap:anywhere;color:#3f5134}
.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3){text-align:center;white-space:nowrap}
.leaderboard-table td:nth-child(3){font:700 16px/1.5 ui-monospace,monospace;color:#4c7340}
.leaderboard-table th:last-child,.leaderboard-table td:last-child{text-align:right;white-space:nowrap}
.leaderboard-table td:last-child{font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.035em;color:#839174}
.leaderboard-table tbody tr:nth-child(1) td:first-child{color:#c27d32}
.leaderboard-table tbody tr:nth-child(2) td:first-child{color:#879581}
.leaderboard-table tbody tr:nth-child(3) td:first-child{color:#ab765a}
.leaderboard-table tr.is-self td{background:#f4edd8}
.board-empty,.board-error,.board-loading{padding:27px 15px;margin:0;color:#8b987c;font-size:12px;line-height:1.8;text-align:center}
.board-error{color:#b96c4f;background:#fcf1e8}
.board-note,.board-status{color:#9aa58d;font-size:10px;line-height:1.7;text-align:center;margin:12px 0 0}
.leaderboard-dialog>.button{margin-top:15px}
@media(max-width:900px) and (min-width:681px){.hero-boss{right:-22px;top:299px;width:190px;height:215px}.desk-note{width:184px;padding:19px 18px}.desk-note p{font-size:15px}.leaderboard-trigger{min-width:64px;padding-inline:9px}}
@media(max-width:680px){
 .hero-boss{display:none}.home-boss{display:block}.home-title-row{margin:12px -3px 7px;min-height:90px;gap:8px}.home-title-row h2{font-size:21px;line-height:1.4;max-width:205px}.home-title-row+.card-description{margin-top:-9px;max-width:220px}.leaderboard-trigger{min-width:62px;padding:0 8px;font-size:10px}.leaderboard-trigger svg{width:15px;height:15px}.header-actions{gap:6px}.brand-sub{font-size:7px}
 .order-box{padding:1px 11px 1px 3px;min-height:82px;gap:8px}.order-avatar{width:78px;height:78px;flex-basis:78px}.order-box h2{font-size:24px}.order-label{font-size:8px}.order-badge{font-size:22px}.timer-live{font-size:10px;padding:4px 5px}.mode-label{font-size:9px;padding-inline:5px}.game-topline{gap:6px}.question-count{font-size:10px}.question-count b{font-size:16px}.swap-notice{font-size:9px}
 .result-hero{gap:5px;margin-top:3px}.result-art{width:118px;height:127px}.result-hero .big-result strong{font-size:78px}.result-hero .big-result>span{font-size:14px}.result-timing{margin:7px auto 14px}.result-timing b,.result-timing strong{font-size:18px}.submit-score-form{margin-top:13px}.submit-score-form input{font-size:12px}.submit-score-form button{padding-inline:11px;font-size:10px}.leaderboard-dialog{padding:18px 17px 20px}.boss-board-art{width:86px;height:88px}.leaderboard-dialog h2{font-size:23px}.ranking-policy{font-size:10px}.leaderboard-table td{padding:11px 7px}.leaderboard-table th{padding:9px 7px}.leaderboard-table td:nth-child(2){max-width:116px;font-size:11px}.leaderboard-table td:last-child{font-size:10px}.leaderboard-table td:nth-child(3){font-size:15px}
}
@media(max-width:680px) and (max-height:720px){
 body[data-screen="game"] .site-header,body[data-screen="tutorial"] .site-header{height:46px}
 body:not([data-screen="home"]) .layout{margin-top:4px;padding:0 14px}
 .game-card{padding:12px 15px}.game-topline{height:22px}.progress-dots{height:3px;margin:8px 0}.progress-dot{height:3px}.order-box{height:82px;min-height:82px;max-height:82px}.order-box h2{font-size:23px}.tutorial-instruction{font-size:9px;line-height:12px;min-height:12px;margin:5px 0 3px}.swap-notice{height:22px;min-height:22px;margin-top:5px}.question-panel,.swap-notice+.question-panel{margin-top:7px}.question-axis{padding-top:10px;line-height:10px}.question-stimulus{height:88px;padding:0 17px;gap:24px}.arrow-value{font-size:72px}.word-value{font-size:53px}.stimulus-divider{height:40px}.feedback{font-size:9px;line-height:15px;min-height:25px;padding-bottom:10px}.timer-track{height:3px}.feedback-art{width:49px;height:49px;right:5px;bottom:9px}.question-panel.is-wrong .feedback,.question-panel.is-timeout .feedback{padding-right:54px}.answer-buttons{margin-top:10px;gap:10px}.answer-button{height:64px;font-size:27px;gap:17px}.answer-arrow{font-size:29px}.game-foot{display:none}
 .overlay-icon{width:126px;height:121px;margin:8px auto}.overlay-content h2{font-size:24px;margin-bottom:10px}.overlay-content p{margin:7px 0 20px}.overlay-kicker{font-size:10px}
 .home-title-row{margin-top:8px;margin-bottom:3px}.home-title-row+.card-description{font-size:10px;margin-bottom:13px}.home-boss{width:82px;height:84px;flex-basis:82px}.home-title-row{min-height:84px}.home-title-row h2{font-size:20px}.result-hero{margin-top:0;margin-bottom:0}.result-art{width:100px;height:108px}.result-hero .big-result strong{font-size:70px}.result-timing{margin:5px auto 12px;padding:6px 12px}.result-eyebrow{margin-top:12px}.submit-score-form{padding-top:11px;margin-top:11px}.boss-board-art{width:70px;height:72px}.leaderboard-dialog h2{margin-top:0;font-size:22px}.ranking-policy{margin:9px 0 12px;padding:8px}.leaderboard-dialog{padding-top:14px}
}
@media(max-width:360px){.brand-sub{display:none}.header-actions{gap:5px}.leaderboard-trigger{min-width:56px;padding-inline:6px;font-size:9px}.home-title-row h2{font-size:19px}.home-boss{width:76px;flex-basis:76px}.order-box{gap:4px}.order-avatar{width:73px;flex-basis:73px}.order-avatar img,#boss-avatar{width:73px;height:76px}.order-badge{font-size:20px}.order-box h2{font-size:22px}.timer-live{font-size:9px;padding-inline:3px}.mode-label{font-size:8px;padding-inline:4px}.question-stimulus{gap:15px}.arrow-value{min-width:80px}.word-value{min-width:77px}.leaderboard-dialog{padding-inline:12px}.leaderboard-table th,.leaderboard-table td{padding-inline:6px}.leaderboard-table td:nth-child(2){max-width:95px}}
@media(max-height:540px) and (max-width:680px){.game-card{padding-block:9px}.order-box{height:76px;min-height:76px;max-height:76px}.order-avatar,.order-avatar img,#boss-avatar{height:72px}.question-stimulus{height:74px}.arrow-value{font-size:65px}.word-value{font-size:49px}.answer-button{height:57px}.tutorial-instruction{margin-top:4px}.swap-notice{margin-top:3px;height:20px;min-height:20px}.question-panel,.swap-notice+.question-panel{margin-top:5px}.game-topline{height:21px}.progress-dots{margin-block:6px}.answer-buttons{margin-top:8px}}
