/* GIMME NANTE v35 — sunset town / glossy listening game */
:root{color-scheme:dark;--navy:#081940;--cyan:#51edff;--lime:#bcff68;--pink:#ff91df;--gold:#ffdc82;--panel:#10264bd9;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:#fff}
*{box-sizing:border-box}body{margin:0;background:#111b36}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:800;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:5px}button:not(:disabled):active{translate:0 2px}a{color:#c6f3ff}#game{position:relative;width:100%;height:100vh;height:100dvh;min-height:320px;overflow:hidden;touch-action:none;background:#20294a url('assets/town-v35.png') center/cover no-repeat}.screen{position:absolute;inset:0;display:none}.screen.active{display:flex}.title-screen,.result-screen{align-items:center;justify-content:center;overflow-y:auto;touch-action:pan-y;padding:20px}.title-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0c173810,transparent 40%,#0c173820)}.title-cast{position:absolute;inset:0;pointer-events:none;overflow:hidden}.title-cast img{position:absolute;object-fit:contain;filter:drop-shadow(0 6px 8px #07193288)}.title-heroine{height:94%;width:38%;bottom:-4%;left:-3%;object-position:bottom}.title-mascot{width:28%;height:46%;right:0;bottom:12%}.title-panel{position:relative;z-index:1;width:min(670px,53vw);padding:20px 28px 15px;border:1px solid var(--gold);border-radius:34px;background:linear-gradient(150deg,#172957dd,#112348c9);box-shadow:inset 0 0 0 4px #081a4088,0 0 0 3px #213d6570,0 14px 50px #08152d66;text-align:center;backdrop-filter:blur(5px)}.eyebrow{font-size:10px;letter-spacing:.25em;color:#b0d7ed;margin:0 0 4px}.logo-heading{margin:-4px -20px 5px;line-height:0}.game-logo{display:block;width:100%;max-height:185px;object-fit:contain;filter:drop-shadow(0 4px 5px #05163588)}.catch{font-size:clamp(14px,1.6vw,21px);font-weight:800;white-space:nowrap;margin:10px -12px 20px;text-shadow:0 2px 3px #071332}.catch em{font-style:normal;color:#fff09a}.difficulty-select>p{display:flex;align-items:center;gap:14px;justify-content:center;font-size:18px;font-weight:bold;margin:12px 0}.difficulty-select>p::before,.difficulty-select>p::after{content:'✦';color:var(--gold);font-size:14px;width:75px;border-bottom:1px solid #f9d86c55;padding-bottom:5px}.difficulty-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.difficulty-btn{--accent:var(--lime);min-height:70px;padding:10px 2px;border:2px solid var(--accent);border-radius:20px;background:linear-gradient(#18365b,#0a1739);color:var(--accent);font-size:clamp(12px,1.35vw,18px);box-shadow:inset 0 2px 2px #ffffff22,0 4px 8px #0004;white-space:nowrap}.difficulty-btn[data-difficulty=normal]{--accent:var(--cyan)}.difficulty-btn[data-difficulty=hard]{--accent:var(--gold)}.difficulty-btn.ultra{--accent:var(--pink)}.difficulty-btn small{display:block;color:#eefaff;font-size:13px;margin-top:4px}.difficulty-btn.selected{color:var(--navy);background:linear-gradient(#89fbff,#19cdf6 68%,#75ffe9);border-color:#d5ffff;box-shadow:0 0 0 3px #42e9ed,0 0 20px #24ddffc0,inset 0 2px 5px white}.difficulty-btn.selected small{color:var(--navy)}.primary-btn{display:block;width:90%;margin:26px auto 0;min-height:68px;padding:12px 16px;border:3px solid #f6fff2;border-radius:100px;color:var(--navy);background:linear-gradient(#e5ffad 0%,#baff4f 45%,#9dff5b 70%,#71fff1);box-shadow:inset 0 0 0 3px #9fee60,0 0 0 3px #4bfa74,0 0 22px #53ffafa0,0 6px 12px #0005;font-size:clamp(20px,2.3vw,31px);text-shadow:0 1px #fff8}.text-btn{display:block;width:57%;margin:20px auto 0;border:2px solid #a1bcff;border-radius:50px;min-height:46px;padding:7px 14px;background:linear-gradient(#254f9c,#122555);color:white;box-shadow:inset 0 3px 2px #6388cf88;font-size:18px}.controller-note{color:#c9edff;font-size:13px;margin:16px 0}.back-link{display:block;width:85%;padding:12px 0 0;margin:0 auto;border-top:1px solid #6bccee66;font-size:12px;text-underline-offset:4px}
/* In-game layout: HUD, central answers, cast at the outer edges. */
.play-screen{flex-direction:column;background:linear-gradient(#101d3920,#11224108 50%,#0a153d33)}.play-logo{position:absolute;z-index:3;top:12px;left:50%;translate:-50% 0;width:clamp(230px,32vw,440px);height:130px;object-fit:contain;pointer-events:none}.hud{display:flex;align-items:flex-start;gap:12px;position:relative;z-index:4;padding:22px 24px;height:142px;flex-shrink:0;pointer-events:none}.hud-box,.combo-box{padding:8px 20px;border:1px solid #ffe29b;border-radius:15px;background:linear-gradient(#16305fed,#071738ed);box-shadow:inset 0 0 0 3px #ffffff0b,0 5px 15px #07132c55;min-width:115px;text-align:center}.hud small{display:block;font-size:10px;letter-spacing:.18em;color:#d5eaff;font-weight:800}.hud strong{font-size:30px;line-height:1.15;font-variant-numeric:tabular-nums}.combo-box strong{color:var(--gold)}.timer{margin-left:auto;margin-right:145px;min-width:85px}.timer strong{color:var(--gold)}.timer.danger{border-color:#ff7b98;box-shadow:0 0 20px #ff366555}.timer.danger strong{color:#ff8da5}.controls{position:absolute;right:22px;top:34px;z-index:5;display:flex;gap:7px}.controls button{border:1px solid #b8dbfc;background:#10254ee8;color:white;width:40px;height:40px;border-radius:50%;font-size:18px}.stage{flex:1;min-height:0;position:relative;display:flex;justify-content:center;align-items:center;padding:0 0 24px}.quiz-area{position:relative;z-index:2;width:min(540px,44vw);text-align:center}.round-label{display:table;border:1px solid #f7de8c88;background:#10254dcc;border-radius:20px;padding:4px 22px;margin:0 auto 9px;font-size:11px;font-weight:800;letter-spacing:.1em;color:#ffe6a0}.speech-bubble{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:139px;padding:13px 25px;border:3px solid #94edff;border-bottom-color:#e59dff;border-radius:70px;background:linear-gradient(#fffffb,#fff9e9);color:var(--navy);box-shadow:0 0 0 2px #20396a,0 6px 22px #091c3755;font-weight:800;line-height:1.4}.speech-bubble::before{content:'';position:absolute;left:-15px;top:49%;width:25px;height:25px;background:#fffcf1;border-left:3px solid #94edff;border-bottom:3px solid #a9d5ff;transform:rotate(45deg);border-radius:3px}.speech-bubble span{font-size:15px;position:relative}.sound-wave{height:70px;display:flex;align-items:center;justify-content:center;gap:7px}.sound-wave i{width:9px;height:25%;border-radius:9px;background:#15315b}.sound-wave i:nth-child(2n){height:48%}.sound-wave i:nth-child(3n){height:75%}.sound-wave i:nth-child(4n){height:100%}.sound-wave i:nth-child(5n){height:58%}.sound-wave b{font-size:75px;line-height:1;margin-left:16px}.speaking .sound-wave i{animation:wave .6s ease-in-out infinite alternate}.speaking .sound-wave i:nth-child(2n){animation-delay:-.4s}.speaking .sound-wave i:nth-child(3n){animation-delay:-.2s}@keyframes wave{to{transform:scaleY(.4)}}.speech-bubble.revealed .sound-wave{display:none}.speech-bubble.revealed span{font-size:clamp(21px,2.4vw,31px)}.answer-clock{min-height:19px;font-size:12px;font-weight:800;color:#fff1ae;text-shadow:0 2px 3px #08152e;margin:8px 0}.answers{display:grid;gap:11px;counter-reset:answer}.answer-btn{position:relative;counter-increment:answer;width:100%;min-height:58px;padding:9px 37px;border:2px solid #f5fff1;border-radius:40px;background:linear-gradient(#efffd0,#b8fa6a 48%,#8eeb60 80%,#d7ffb3);color:#0c2941;font-size:clamp(16px,1.65vw,23px);line-height:1.4;box-shadow:0 0 0 2px #a2e453,0 5px 10px #081c3955,inset 0 2px 3px white;transition:filter .15s,box-shadow .15s}.answer-btn:nth-child(2){background:linear-gradient(#c8faff,#74e2ff 48%,#43c9ee 80%,#b4faff);box-shadow:0 0 0 2px #58d8ef,0 5px 10px #081c3955,inset 0 2px 3px white}.answer-btn:nth-child(3){background:linear-gradient(#ffe0f7,#ffa9e1 48%,#ee88cb 80%,#ffcff0);box-shadow:0 0 0 2px #f093d8,0 5px 10px #081c3955,inset 0 2px 3px white}.answer-btn:nth-child(4){background:linear-gradient(#fff4c9,#ffdc89 48%,#efbe61 80%,#fff0b4);box-shadow:0 0 0 2px #e8c573,0 5px 10px #081c3955,inset 0 2px 3px white}.answer-btn::before{content:counter(answer);position:absolute;left:14px;top:50%;translate:0 -50%;display:grid;place-items:center;width:22px;height:22px;font-size:11px;border:1px solid #17365644;border-radius:50%;opacity:.7}.answer-btn:disabled{filter:saturate(.6);opacity:.75}.answer-btn:not(:disabled):hover,.answer-btn.pad-focus:not(:disabled){filter:brightness(1.09);outline:2px solid white;outline-offset:4px}.answer-btn.correct:disabled{filter:none;opacity:1;background:linear-gradient(#f1ffd8,#a9f468);box-shadow:0 0 0 3px #bfff70,0 0 24px #b7ff6980}.answer-btn.wrong:disabled{opacity:1;filter:none;background:linear-gradient(#ffe2e5,#ff8d9e);border-color:#ff5778}.answer-btn.correct::after,.answer-btn.wrong::after{position:absolute;right:15px;top:50%;translate:0 -50%;font-size:22px;content:'✓'}.answer-btn.wrong::after{content:'×'}.combo-meter{height:4px;margin:13px 17% 0;background:#0a193a99;border-radius:10px;overflow:hidden}.combo-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#61eeff,#c5ff69);transition:width .2s}.nante-btn{display:block;width:70%;min-height:65px;margin:15px auto 0;border:2px solid #b1f2ff;border-radius:40px;background:linear-gradient(#8798fb,#526fc7 48%,#385591);box-shadow:inset 0 2px 4px #fff8,0 0 0 2px #496a95,0 4px 14px #07152b66;color:white;text-shadow:0 2px 2px #182c59;font-size:24px;padding:6px 10px}.nante-btn small{display:block;font-size:10px;line-height:1.3;white-space:pre-line;font-weight:600;color:#e4faff}.nante-btn:disabled{opacity:.55}.character-card{position:absolute;bottom:0;left:-1%;width:30%;aspect-ratio:2/3;pointer-events:none;filter:drop-shadow(0 5px 7px #081d3455)}.character-sprite{position:absolute;inset:0;background-size:300% 200%;background-repeat:no-repeat;background-position:0 0}.heroine-sprite{background-image:url('assets/heroine-tall-v35.png')}.mascot{left:auto;right:1%;bottom:12%;width:26%;aspect-ratio:1}.mascot-sprite{background-image:url('assets/mascot-atlas.png')}.feedback{position:absolute;z-index:6;right:3%;top:29%;max-width:23%;padding:12px 20px;background:#10284eef;border:1px solid var(--gold);border-radius:20px;color:var(--lime);font-size:clamp(18px,2vw,29px);font-weight:900;white-space:pre-line;text-align:center;opacity:0;pointer-events:none;box-shadow:0 5px 20px #09163777}.feedback.show{opacity:1;animation:toast .2s ease-out}.feedback.ng{color:#ffb2cc;border-color:#ffb2cc}@keyframes toast{from{scale:.88;opacity:0}to{scale:1;opacity:1}}
/* Dialogs and score screen */
.result-screen{background:#071c3455}.result-card,.pause-card,dialog,.audio-notice{background:linear-gradient(145deg,#1a3566f7,#0b1b3af7);border:1px solid var(--gold);border-radius:28px;box-shadow:0 15px 60px #030c2466;color:#fff;text-align:center}.result-card{width:min(580px,96%);max-height:calc(100dvh - 28px);overflow-y:auto;padding:24px}.result-card h2{font-size:30px;margin:8px 0;color:#fff0b5}.result-difficulty{margin:8px;font-size:13px}.result-score small{display:block;font-size:11px;letter-spacing:.3em;color:#8cecff}.result-score strong{font-size:56px;line-height:1.2;color:#ccff85;font-variant-numeric:tabular-nums}.result-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.result-card dl div{padding:10px 3px;border-radius:14px;background:#416aa32c;border:1px solid #6bb2ce33}.result-card dt{font-size:12px;color:#c3e3ee}.result-card dd{margin:5px 0 0;font-size:24px;font-weight:800}.result-extra dd{font-size:20px}.result-note{font-size:10px;color:#a6bfde}.result-comparison{font-size:13px;color:var(--lime)}.result-comment{font-size:14px}.result-card .primary-btn{margin-top:18px;min-height:54px;font-size:23px}.result-back{display:block;margin-top:20px;font-size:13px}.pause-overlay{position:absolute;z-index:30;inset:0;background:#040c25ad;backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center}.pause-overlay.active{display:flex}.pause-card{width:min(440px,90%);padding:30px}.pause-card h2{font-size:24px}.pause-choice{display:block;width:100%;min-height:50px;margin:15px 0;border:1px solid #75b0db;background:#123762;border-radius:30px;color:white}.pause-choice.pad-focus{border-color:var(--cyan);background:#24628b;box-shadow:0 0 15px #50d3ff66}.pause-help{font-size:12px;line-height:1.8;color:#b1cde3}.audio-notice{position:absolute;z-index:20;left:50%;top:50%;translate:-50% -50%;width:min(90%,480px);padding:22px}.audio-notice[hidden]{display:none}.audio-notice button{margin:6px;padding:12px 16px;border:1px solid var(--cyan);border-radius:24px;background:#234978;color:white;min-height:44px}dialog{position:relative;width:min(630px,94%);max-height:90dvh;overflow-y:auto;padding:32px;text-align:left;touch-action:pan-y}dialog::backdrop{background:#050e27bd;backdrop-filter:blur(6px)}dialog h2{color:#e8ffbd}dialog p,dialog li{font-size:14px;line-height:1.8}dialog li{margin:8px 0}.dialog-close{position:absolute;top:9px;right:12px;width:38px;height:38px;background:#284574;border:1px solid #7ba9cb;border-radius:50%;color:white;font-size:24px}
@media(min-width:801px) and (max-height:720px){.title-panel{padding:12px 24px}.game-logo{max-height:140px}.catch{margin:4px 0 10px}.difficulty-select>p{margin:8px}.difficulty-btn{min-height:62px}.primary-btn{margin-top:18px;min-height:58px}.text-btn{margin-top:14px}.controller-note{margin:10px}.back-link{padding-top:8px}.hud{height:112px}.play-logo{height:100px}.speech-bubble{min-height:112px}.sound-wave{height:55px}.answer-btn{min-height:48px;padding-top:7px;padding-bottom:7px}.answers{gap:9px}.nante-btn{min-height:58px;margin-top:10px}.stage{padding-bottom:14px}}
@media(max-width:800px) and (orientation:portrait){
#game{background-position:55% center}.title-screen{padding:12px;align-items:center}.title-panel{width:min(510px,100%);padding:18px 14px 12px;background:linear-gradient(#162e56db,#102345eb);border-radius:25px;margin-top:58px}.title-cast{z-index:2;inset:0 0 auto;height:115px}.title-heroine{width:105px;height:160px;left:1%;bottom:-56px}.title-mascot{width:100px;height:100px;right:0;bottom:0}.title-panel .eyebrow{display:none}.logo-heading{margin:-30px -9px 0}.game-logo{max-height:135px}.catch{font-size:13px;margin:12px -5px 18px}.difficulty-select>p{font-size:16px}.difficulty-buttons{gap:7px}.difficulty-btn{font-size:12px;padding:9px 1px;min-height:65px;border-radius:15px}.difficulty-btn small{font-size:11px}.primary-btn{width:93%;min-height:60px;font-size:24px;margin-top:24px}.text-btn{width:65%;min-height:46px;margin-top:20px;font-size:16px}.controller-note{font-size:12px;margin:17px 0}.back-link{min-height:44px;font-size:12px;padding-top:14px}.hud{height:104px;padding:10px 10px;gap:8px;align-items:flex-start}.hud-box,.combo-box{min-width:68px;padding:6px 10px;border-radius:11px}.hud small{font-size:8px}.hud strong{font-size:23px}.timer{min-width:63px;margin-right:0}.play-logo{top:64px;left:9px;translate:0;width:155px;height:46px}.controls{top:67px;right:10px;gap:8px}.controls button{width:36px;height:36px;font-size:16px}.stage{padding:12px 14px 126px;align-items:center}.quiz-area{width:100%;max-width:500px}.round-label{font-size:9px;margin-bottom:8px;padding:4px 15px}.speech-bubble{min-height:116px;border-radius:55px;padding:10px 20px}.sound-wave{height:53px;gap:5px}.sound-wave i{width:7px}.sound-wave b{font-size:60px;margin-left:10px}.speech-bubble span{font-size:13px}.speech-bubble.revealed span{font-size:23px}.answer-clock{font-size:11px;min-height:16px;margin:7px 0}.answers{gap:10px}.answer-btn{min-height:51px;font-size:17px;padding:9px 33px}.combo-meter{margin-top:10px}.nante-btn{min-height:59px;font-size:21px;width:73%;margin-top:14px}.nante-btn small{font-size:9px}.character-card{width:100px;left:-3px;bottom:-15px;height:150px;aspect-ratio:auto}.mascot{width:102px;height:102px;left:auto;right:0;bottom:8px}.feedback{right:50%;translate:50% 0;top:auto;bottom:23px;max-width:50%;padding:10px;font-size:17px;min-width:120px;border-radius:15px}.result-card{padding:19px 13px}.result-card h2{font-size:25px}.result-score strong{font-size:46px}.result-card dl{gap:5px;margin:10px 0}.result-card dt{font-size:11px}.result-card dd{font-size:21px}.result-card .result-extra dd{font-size:18px}.result-note{font-size:9px}.result-card .primary-btn{margin-top:14px}.result-comparison,.result-comment{font-size:12px}
}
@media(max-width:800px) and (max-height:700px) and (orientation:portrait){.title-panel{margin-top:20px;padding-top:12px}.title-cast{height:78px}.title-heroine{height:130px;width:85px;bottom:-52px}.title-mascot{height:70px;width:76px}.game-logo{max-height:105px}.logo-heading{margin-top:-17px}.catch{margin:7px -5px 12px;font-size:12px}.difficulty-select>p{margin:9px}.difficulty-btn{min-height:58px;font-size:11px}.primary-btn{margin-top:20px;min-height:53px;font-size:21px}.text-btn{margin-top:15px;min-height:44px}.controller-note{margin:12px 0}.back-link{padding-top:12px}.hud{height:96px;padding-top:7px}.play-logo{top:59px;height:40px;width:145px}.controls{top:59px}.controls button{width:34px;height:34px}.stage{padding:7px 12px 80px}.round-label{margin-bottom:5px}.speech-bubble{min-height:85px;padding:7px 20px}.sound-wave{height:37px;gap:5px}.sound-wave b{font-size:44px}.speech-bubble span{font-size:12px}.answer-clock{margin:5px 0;min-height:14px;font-size:10px}.answers{gap:7px}.answer-btn{min-height:44px;padding:6px 31px;font-size:15px}.combo-meter{margin-top:8px}.nante-btn{min-height:53px;margin-top:9px;font-size:19px}.character-card{width:72px;height:108px;bottom:-16px}.mascot{height:75px;width:75px;bottom:0}.feedback{bottom:12px;font-size:14px;padding:8px}.result-card h2{font-size:22px}.result-score strong{font-size:36px}.result-card{padding:13px}.result-card dl div{padding:7px 2px}.result-card .primary-btn{min-height:46px}.result-back{margin-top:15px}}
@media(max-height:520px) and (orientation:landscape){.title-screen{padding:10px}.title-panel{width:57%;padding:10px 20px;margin:auto}.title-cast .title-heroine{width:28%}.title-cast .title-mascot{width:22%}.eyebrow{display:none}.game-logo{max-height:95px}.catch{font-size:12px;margin:2px 0 8px}.difficulty-select>p{font-size:12px;margin:5px}.difficulty-btn{font-size:11px;min-height:43px;padding:4px}.difficulty-btn small{font-size:10px}.primary-btn{min-height:42px;font-size:18px;margin-top:12px;padding:6px}.text-btn{min-height:36px;font-size:13px;margin-top:10px}.controller-note{display:none}.back-link{padding-top:8px;margin-top:8px;font-size:10px}.hud{height:65px;padding:9px}.hud-box,.combo-box{min-width:60px;padding:4px 10px}.hud strong{font-size:22px}.hud small{font-size:8px}.timer{margin-right:110px}.play-logo{top:3px;width:200px;height:63px}.controls{top:17px;right:10px;gap:5px}.controls button{width:30px;height:30px;font-size:14px}.stage{padding-bottom:8px}.quiz-area{width:46%}.round-label{font-size:8px;padding:2px 12px;margin-bottom:3px}.speech-bubble{min-height:62px;padding:5px 20px}.sound-wave{height:25px;gap:5px}.sound-wave i{width:6px}.sound-wave b{font-size:32px}.speech-bubble span{font-size:11px}.speech-bubble.revealed span{font-size:20px}.answer-clock{font-size:9px;min-height:12px;margin:3px}.answers{gap:5px}.answer-btn{min-height:34px;padding:4px 28px;font-size:13px}.answer-btn::before{width:18px;height:18px;font-size:9px;left:8px}.combo-meter{margin:6px 15% 0;height:3px}.nante-btn{min-height:39px;font-size:16px;margin-top:6px;padding:3px 10px}.nante-btn small{font-size:8px;white-space:normal}.character-card{width:25%}.mascot{width:23%;bottom:8%}.feedback{font-size:16px;padding:9px;top:27%}.result-card{padding:15px;max-height:95dvh}.result-card h2{font-size:24px}.result-score strong{font-size:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Final compact layout tuning: keep all four answers below the HUD. */
.nante-btn{line-height:1.25}.title-cast .title-heroine{left:-4%;width:32%}
@media(max-width:800px) and (orientation:portrait){.title-cast .title-heroine{left:1%;width:105px}.stage{align-items:flex-start;padding-top:16px}}
@media(max-width:800px) and (max-height:700px) and (orientation:portrait){.title-cast .title-heroine{width:85px}.stage{padding-top:8px;padding-bottom:58px}.speech-bubble{min-height:78px}.round-label{margin-bottom:4px}.answers{gap:6px}.nante-btn{min-height:50px;font-size:18px;padding:5px 8px}.nante-btn small{white-space:normal;line-height:1.2;font-size:9px}.sound-wave{height:33px}}
/* The mascot on the right asks the question; the heroine listens. */
.speech-bubble::before{left:auto;right:-15px;transform:rotate(225deg)}
/* v37: compact results, sized to the available mobile viewport. */
@media(max-width:800px) and (orientation:portrait){
 .result-screen{padding:max(8px,env(safe-area-inset-top)) 10px max(8px,env(safe-area-inset-bottom));overflow:hidden}
 .result-card{width:100%;max-width:480px;max-height:none;overflow:visible;padding:14px 12px;border-radius:24px}
 .result-card .eyebrow{margin:0;font-size:9px;line-height:14px}
 .result-difficulty{margin:4px 0;font-size:12px;line-height:18px}
 .result-card h2{margin:4px 0 8px;font-size:clamp(20px,6vw,26px);line-height:1.25}
 .result-score small{font-size:10px;line-height:14px}.result-score strong{font-size:44px;line-height:1.1}
 .result-card dl,.result-card .result-extra{gap:6px;margin:8px 0}
 .result-card dl div{padding:7px 2px}.result-card dt{font-size:11px;line-height:16px}
 .result-card dd,.result-card .result-extra dd{font-size:20px;line-height:24px;margin:2px 0 0}
 .result-note{margin:6px 0;font-size:9px;line-height:13px}
 .result-comparison,.result-comment{font-size:12px;line-height:17px;margin:6px 0;overflow-wrap:anywhere}
 .result-card .primary-btn{min-height:46px;padding:8px 12px;margin:14px auto 0;font-size:21px;line-height:26px}
 .result-back{display:flex;align-items:center;justify-content:center;min-height:44px;margin:6px 0 0;font-size:12px;line-height:18px}
}
@media(max-width:800px) and (max-height:580px) and (orientation:portrait){
 .result-card{padding:10px}.result-card h2{margin:3px 0 5px;font-size:20px}
 .result-score strong{font-size:36px}.result-card dl,.result-card .result-extra{margin:5px 0;gap:5px}
 .result-card dl div{padding:5px 2px}.result-card dd,.result-card .result-extra dd{font-size:18px;line-height:21px}
 .result-note{margin:4px 0}.result-comparison,.result-comment{margin:4px 0}
 .result-card .primary-btn{margin-top:10px}.result-back{margin-top:3px}
}
@media(max-height:520px) and (orientation:landscape){
 .result-screen{padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left));overflow:hidden}
 .result-card{width:min(740px,98%);max-height:none;overflow:visible;display:grid;grid-template-columns:1fr 1fr;column-gap:20px;align-items:center;padding:12px 18px}
 .result-card>.eyebrow{display:none}.result-difficulty{grid-column:1;margin:0;font-size:11px}
 .result-card h2{grid-column:1;margin:4px 0;font-size:23px}.result-score{grid-column:1;grid-row:3 / 5}.result-score strong{font-size:46px}
 .result-card dl{grid-column:2;grid-row:1 / 3;margin:4px 0;gap:5px}.result-card .result-extra{grid-row:3 / 5}
 .result-card dl div{padding:6px 2px}.result-card dt{font-size:10px}.result-card dd{font-size:20px;margin:3px 0}
 .result-note{grid-column:2;margin:3px 0;font-size:9px}.result-comparison{grid-column:1;grid-row:5;margin:3px 0;font-size:11px}
 .result-comment{grid-column:1 / -1;margin:5px 0;font-size:12px}
 .result-card .primary-btn{width:95%;margin:5px auto;min-height:44px;font-size:20px;padding:7px}
 .result-back{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;font-size:12px}
}
@media(max-width:800px) and (max-height:520px) and (orientation:portrait){
 .hud{height:80px}.hud-box,.combo-box{padding:4px 9px}.hud strong{font-size:21px}
 .play-logo{top:47px;height:33px;width:125px}.controls{top:46px}.controls button{height:32px;width:34px}
 .stage{padding:4px 12px 0}.round-label{line-height:14px;padding:2px 12px;margin-bottom:4px}
 .speech-bubble{min-height:55px;padding:4px 18px;gap:0}.sound-wave{height:22px}.sound-wave b{font-size:29px}
 .speech-bubble span{font-size:11px}.speech-bubble.revealed span{font-size:19px}
 .answer-clock{line-height:13px;min-height:13px;margin:4px 0}.answers{gap:5px}
 .answer-btn{min-height:44px;padding:5px 31px;font-size:14px}.combo-meter{margin-top:6px;height:3px}
 .nante-btn{min-height:46px;margin-top:7px;font-size:17px}.nante-btn small{font-size:8px}
 .character-card{height:64px;width:43px;bottom:-10px}.mascot{height:48px;width:48px;bottom:0}
 .feedback{bottom:2px;font-size:12px;padding:4px 8px}
}
