:root{font-family:"Segoe UI",system-ui,sans-serif;color:#fff8ec;background:#15182e;--orange:#ff946b;--gold:#ffdb89;--night:#171b32;--lavender:#bca9ff;--mint:#83e6bd}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{touch-action:none;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid var(--mint);outline-offset:4px}button:disabled{cursor:default}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#game{position:relative;width:100%;height:100%;height:100svh;overflow:hidden;background:#192b3d}#world{position:absolute;inset:0;width:100%;height:100%;display:block}.vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,transparent 35%,#10152d60 100%)}
.hud{position:absolute;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;z-index:5;pointer-events:none}.hud>*{pointer-events:auto}.player-badge{display:flex;gap:10px;align-items:center;padding:8px 15px 8px 8px;background:#181d36df;border:1px solid #ffffff1f;border-radius:40px;box-shadow:0 4px 20px #070f2325;backdrop-filter:blur(15px)}.player-initial{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#f9c28a,#cf6869);font-size:16px;font-weight:900;color:#392b39}.player-badge b{font-size:10px;letter-spacing:2px;display:block}.player-badge div>span{font-size:8px;color:#c3c5d8;letter-spacing:1px;display:block;margin-top:3px}.hud-tools{display:flex;gap:8px}.icon-button{position:relative;background:#181d36df;border:1px solid #ffffff22;border-radius:50%;width:42px;height:42px;font-size:19px;backdrop-filter:blur(15px)}.sound-slash{position:absolute;width:22px;height:1px;background:#fff8ec;transform:rotate(-45deg);left:10px;top:20px}.icon-button[aria-pressed=true] .sound-slash{display:none}
.objective{position:absolute;top:max(82px,calc(env(safe-area-inset-top) + 65px));left:20px;width:min(380px,calc(100% - 40px));display:flex;align-items:center;gap:13px;background:#181d36e8;border:1px solid #ffffff1c;box-shadow:0 10px 28px #0d13332a;border-radius:18px;padding:15px 17px;z-index:5;backdrop-filter:blur(15px);pointer-events:none}.objective-symbol{font-size:29px;color:var(--gold);width:28px;text-align:center;flex-shrink:0}.objective small{font-size:8px;color:var(--gold);letter-spacing:1.5px;font-weight:700}.objective h1{font-size:16px;letter-spacing:-.3px;margin:4px 0 5px;line-height:1.2}.objective p{font-size:10px;line-height:1.5;color:#c8cadd}.objective-count{font-size:12px;color:var(--mint);font-weight:800;white-space:nowrap;margin-left:auto}.souvenirs{position:absolute;right:22px;top:84px;display:flex;gap:8px;align-items:center;z-index:4;background:#181d36d9;padding:9px 12px;border:1px solid #ffffff1f;border-radius:30px;backdrop-filter:blur(10px)}.souvenirs>span:not(.game-time){width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#ffffff0b;filter:grayscale(1);opacity:.35;font-size:17px;transition:.4s}.souvenirs>span.collected{filter:none;opacity:1;background:#ffdc8922;box-shadow:0 0 18px #ffdb891a}.game-time{font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:1px;color:#d3d4df;padding-left:6px}
.controls{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));left:max(27px,env(safe-area-inset-left));right:max(27px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:end;z-index:8;pointer-events:none}.controls>*{pointer-events:auto}.joystick-wrap,.action-wrap{display:flex;flex-direction:column;align-items:center;gap:11px}.joystick{width:122px;height:122px;border:1px solid #ffffff50;background:#ffffff10;border-radius:50%;box-shadow:inset 0 0 30px #ffffff08,0 10px 35px #0b153040;position:relative;touch-action:none;backdrop-filter:blur(9px);cursor:grab}.joystick:active{cursor:grabbing}.joy-cross{position:absolute;inset:0;display:grid;place-items:center;font-size:60px;color:#ffffff14;font-weight:200}.thumb{position:absolute;width:54px;height:54px;left:33px;top:33px;border-radius:50%;background:linear-gradient(145deg,#faf5e8ed,#bcb5b1ca);border:1px solid #ffffffe0;box-shadow:0 5px 15px #0d163533,inset 0 1px 5px white;pointer-events:none}.control-label{font-size:8px;letter-spacing:2px;color:#e9e5f2;opacity:.7;font-weight:700;text-shadow:0 1px 4px #000}.action{width:93px;height:93px;border:2px solid #ffe2a2;border-radius:50%;background:linear-gradient(145deg,#ffbb7b,#ed775f);color:#382b36;box-shadow:0 7px 0 #934a53,0 10px 28px #10162e7a,inset 0 2px 6px #ffecca;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;transition:transform .1s}.action:active{transform:translateY(5px);box-shadow:0 2px 0 #934a53,0 6px 18px #10162e5a}.action>span{font-size:31px;line-height:1}.action b{font-size:8px;letter-spacing:1px}.action.context{background:linear-gradient(145deg,#b1ffce,#5dc5ac);border-color:#cfffdf;box-shadow:0 7px 0 #377c7f,0 10px 28px #10162e7a}.action.cooldown{filter:saturate(.3);opacity:.7}.desktop-hint{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:1.3px;white-space:nowrap;color:#eae6f5b0;z-index:6;text-shadow:0 2px 6px #000}.desktop-hint span{letter-spacing:0;color:#afafc6}
.toast{position:absolute;top:29%;left:50%;transform:translate(-50%,-10px);opacity:0;background:#fff7e9;color:#36344a;max-width:min(380px,calc(100% - 60px));padding:12px 19px;border-radius:15px;font-size:12px;line-height:1.5;font-weight:600;text-align:center;box-shadow:0 8px 25px #0d163555;transition:opacity .2s,transform .2s;z-index:12;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.encounter{position:absolute;bottom:205px;left:50%;transform:translateX(-50%);border:1px solid #b1ffce77;background:#161d35ec;color:#c7ffde;border-radius:30px;padding:10px 17px;display:flex;align-items:center;gap:12px;font-size:11px;z-index:7;box-shadow:0 4px 22px #09102955;max-width:calc(100% - 40px);white-space:nowrap}.encounter kbd{font:9px inherit;border:1px solid #8dc0b0;border-radius:4px;padding:3px 5px}
.screen{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;background:#12182b9c;backdrop-filter:blur(5px);overflow:auto;touch-action:pan-y}.start-screen{background:radial-gradient(ellipse at 50% 45%,#15172c80,#101329e8)}.start-top{position:absolute;left:30px;right:30px;top:max(22px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center}.game-brand{font-size:12px;font-weight:900;letter-spacing:3px;color:var(--gold)}.edition{font-size:8px;letter-spacing:2px;color:#c0bfd2}.start-card{width:min(430px,100%);text-align:center;margin-top:28px;position:relative}.pill{display:inline-block;font-size:8px;font-weight:800;letter-spacing:1.5px;color:var(--mint);border:1px solid #83e6bd44;background:#83e6bd0c;border-radius:20px;padding:8px 13px}h2{font-size:clamp(38px,6vw,61px);font-weight:900;letter-spacing:-2.8px;line-height:.98}.start-card h2{margin:20px 0 14px}.start-card h2 em{font-style:normal;color:var(--orange)}.start-card>p{font-size:12px;line-height:1.7;color:#cac9d9}.start-characters{height:240px;position:relative;margin:8px 0 0;display:grid;place-items:center}.start-characters:before{content:"";position:absolute;width:280px;height:180px;background:#8b78da16;box-shadow:0 0 70px #ae82ff20;border:1px solid #b39ed02e;border-radius:50%;bottom:0;transform:rotate(-10deg)}.start-characters img{width:360px;max-width:112%;height:250px;object-fit:contain;position:relative;filter:drop-shadow(0 13px 12px #080b22a8);animation:float 4s ease-in-out infinite}.character-bubble{position:absolute;right:5px;top:30px;border-radius:14px 14px 14px 0;background:var(--gold);color:#393144;padding:10px 13px;font-size:11px;font-weight:800;transform:rotate(7deg)}.character-spark{position:absolute;left:12px;top:65px;font-size:31px;color:var(--gold);animation:twinkle 3s infinite}.game-button{width:100%;min-height:55px;display:flex;justify-content:center;align-items:center;gap:25px;border-radius:16px;border:1px solid #ffd49c;background:linear-gradient(125deg,#ffb67b,#f08067);color:#342b39;font-size:12px;letter-spacing:1.5px;font-weight:900;box-shadow:0 5px 0 #a45156,0 12px 40px #0c112d44;padding:16px 20px;transition:transform .15s}.game-button:hover{filter:brightness(1.06);transform:translateY(-1px)}.game-button:active{transform:translateY(3px);box-shadow:0 2px 0 #a45156}.game-button:disabled{filter:grayscale(.4);opacity:.7}.game-button span{font-size:16px}.start-info{display:flex;justify-content:center;gap:22px;margin-top:18px;font-size:7px;letter-spacing:1.1px;color:#c4bfd8}.start-bottom{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));font-size:9px;color:#9694b2;letter-spacing:.5px}.start-card>.loading-note{font-size:9px;margin-top:12px;color:#aaa5c2;min-height:15px}.menu-card{width:min(360px,100%);text-align:center;background:#20243dea;border:1px solid #ffffff22;border-radius:25px;padding:30px}.menu-card h2{font-size:37px;margin:20px 0 15px;letter-spacing:-1.7px}.menu-card p{font-size:12px;line-height:1.7;color:#bcbdd1;margin-bottom:25px}.quiet-button{display:block;margin:16px auto 0;border:none;background:transparent;font-size:10px;color:#bbb8d1;text-underline-offset:5px;text-decoration:underline;padding:9px}
.sheet-backdrop{position:absolute;inset:0;z-index:30;background:#101529b8;backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px;touch-action:manipulation}.challenge-card{width:min(430px,100%);border-radius:26px;background:linear-gradient(150deg,#2b2d49,#1c223b);padding:27px;border:1px solid #ffffff21;box-shadow:0 20px 70px #0b102a88;text-align:center;position:relative}.challenge-card h2{font-size:32px;letter-spacing:-1.5px;line-height:1.06;margin:13px 0}.challenge-card>p{font-size:12px;color:#bfc0d7;line-height:1.6}.challenge-topline{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:var(--gold)}.challenge-close{border:1px solid #ffffff22;background:transparent;border-radius:50%;width:27px;height:27px;font-size:15px;line-height:1;letter-spacing:0}.memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:23px 0 18px}.memory-card{border:1px solid #b3a9dc50;aspect-ratio:.85;border-radius:13px;background:linear-gradient(145deg,#615780,#3d3d61);position:relative;padding:0;box-shadow:0 4px 0 #13172d;overflow:hidden;transition:transform .25s,background .25s}.memory-card:hover{transform:translateY(-2px)}.memory-back{font-size:29px;color:#e3d3ff88}.memory-face{display:none;position:absolute;inset:0;place-items:center;font-size:35px;background:#f7e9d7}.memory-face img{width:100%;height:100%;object-fit:cover}.memory-card.open .memory-face,.memory-card.matched .memory-face{display:grid}.memory-card.matched{box-shadow:0 0 0 2px var(--mint);opacity:.65;transform:scale(.95)}.challenge-footer{font-size:11px;color:var(--mint);min-height:20px;line-height:1.5}.challenge-card .game-button{margin-top:18px}.challenge-art{font-size:54px;margin:18px 0 0;filter:drop-shadow(0 4px 20px #ffdc8940)}.timing-meter{height:35px;margin:28px 0 10px;border-radius:12px;position:relative;background:#ffffff0e;border:1px solid #ffffff22;overflow:hidden}.timing-target{position:absolute;left:34%;width:32%;top:0;bottom:0;background:linear-gradient(90deg,#79ddb26b,#a4f5ca9e,#79ddb26b);border-left:1px solid #a7ffcf;border-right:1px solid #a7ffcf}.timing-needle{position:absolute;top:3px;bottom:3px;width:6px;border-radius:5px;background:var(--gold);box-shadow:0 0 12px #ffcf7b;left:0}.timing-score{display:flex;justify-content:center;gap:10px;margin:17px 0}.timing-score i{width:14px;height:14px;border:1px solid #ffffff45;border-radius:50%;background:#ffffff07}.timing-score i.lit{background:var(--mint);border-color:var(--mint);box-shadow:0 0 13px #83e6bd80}.timing-caption{font-size:9px;color:#9295b8;letter-spacing:1px}.dialogue-character{height:160px;margin-top:6px;overflow:hidden;position:relative}.dialogue-character img{width:330px;max-width:none;position:absolute;height:220px;object-fit:contain;left:50%;transform:translateX(-73%);top:-3px}.voice-button{background:#ffffff0d;border:1px solid #ffffff25;border-radius:13px;padding:12px 17px;font-size:11px;width:100%;margin-top:16px;display:flex;justify-content:center;gap:12px;color:#e3daf6}
.finish-screen{background:radial-gradient(ellipse at 50% 35%,#3e3256dd,#15192ff5);text-align:center}.finish-content{width:min(390px,100%)}.win-stamp{font-size:9px;color:var(--gold);letter-spacing:2.5px;font-weight:800}.win-stars{font-size:27px;letter-spacing:13px;color:var(--gold);margin:12px 0 16px}.finish-content h2{font-size:42px;letter-spacing:-2px}.finish-content h2 em{color:var(--orange);font-style:normal}.finish-characters{height:190px;display:grid;place-items:center;margin:4px 0 10px}.finish-characters img{width:290px;max-width:100%;height:200px;object-fit:contain;filter:drop-shadow(0 12px 9px #0c0d2a88)}.prize-caption{font-size:12px;line-height:1.7;color:#d1cadd;margin-bottom:20px}.prize-caption b{color:#fff1d3}.finish-note{font-size:10px;color:#9b97b8;margin-top:17px;line-height:1.5}.response{font-size:11px;line-height:1.6;color:var(--mint);margin-top:15px;min-height:18px;user-select:text;-webkit-user-select:text}.finish-content .quiet-button{margin-top:12px}.spark-confetti{position:absolute;width:7px;height:12px;background:var(--c);top:-20px;left:var(--x);animation:confetti var(--t) linear forwards;pointer-events:none;z-index:40}
@keyframes float{50%{transform:translateY(-6px)}}@keyframes twinkle{50%{opacity:.35;transform:scale(.7) rotate(30deg)}}@keyframes confetti{to{top:110%;transform:translateX(60px) rotate(540deg);opacity:0}}
@media(min-width:800px){.objective{left:28px;top:91px}.hud{left:28px;right:28px;top:24px}.souvenirs{top:95px;right:28px}.controls{left:50px;right:50px;bottom:45px}.start-card{margin-top:0}.start-characters{height:260px}.start-characters img{height:275px;width:410px}.encounter{bottom:190px}}
@media(max-width:650px){.souvenirs{top:190px;right:20px;padding:6px 9px;gap:5px}.souvenirs>span:not(.game-time){width:24px;height:24px;font-size:15px}.game-time{font-size:9px}.objective{padding:12px 14px}.objective h1{font-size:14px}.objective p{font-size:9px}.desktop-hint{display:none}.joystick{width:112px;height:112px}.thumb{left:29px;top:29px;width:52px;height:52px}.controls{bottom:max(25px,env(safe-area-inset-bottom));left:25px;right:25px}.action{width:85px;height:85px}.action>span{font-size:28px}.encounter{bottom:185px;font-size:10px;padding:10px 13px}.encounter kbd{display:none}.start-card h2{font-size:47px}.start-top{left:22px;right:22px}.game-brand{font-size:10px;letter-spacing:2px}.edition{font-size:6px;letter-spacing:1px}.start-card .pill{font-size:6px;letter-spacing:1px}.start-info{gap:15px;font-size:6px}.challenge-card{padding:23px}.challenge-card h2{font-size:29px}.challenge-card>p{font-size:11px}.memory-grid{gap:8px}.start-characters{height:223px}.start-characters img{height:234px;width:340px}.character-bubble{right:0;top:21px}.toast{font-size:11px;top:33%}.finish-content h2{font-size:40px}}
@media(max-height:700px){.start-card h2{font-size:39px;margin:13px 0 9px}.start-card>p{font-size:10px}.start-characters{height:173px}.start-characters img{height:185px;width:280px}.start-card{margin-top:25px}.start-info{margin-top:13px}.start-card>.loading-note{margin-top:6px;font-size:8px}.start-bottom{font-size:8px;bottom:10px}.game-button{min-height:48px;font-size:10px}.start-top{top:16px}.pill{padding:6px 11px}.character-bubble{font-size:9px;top:16px;padding:8px 10px}.character-spark{font-size:25px;top:50px}.finish-characters{height:145px}.finish-characters img{height:155px}.win-stars{margin:8px 0 10px;font-size:21px}.finish-content h2{font-size:34px}.prize-caption{font-size:10px;margin-bottom:14px}.finish-note{margin-top:10px;font-size:8px}.challenge-card{padding:20px;max-width:340px}.challenge-card h2{font-size:25px;margin:10px 0}.memory-grid{margin:15px 0 12px;gap:7px}.memory-card{aspect-ratio:1.05}.challenge-card>p{font-size:10px}.challenge-art{font-size:38px;margin:10px 0}.dialogue-character{height:105px}.dialogue-character img{height:165px;width:250px}.controls{bottom:19px}.joystick{width:96px;height:96px}.thumb{left:23px;top:23px;width:48px;height:48px}.action{width:76px;height:76px}.encounter{bottom:155px}.objective{padding:10px 13px;top:72px}.souvenirs{top:176px}.hud{top:12px}}
.dialogue-character{width:165px;margin:6px auto 0}.dialogue-character img{left:0;transform:translateX(-50%)}
.start-avatar{position:relative;width:180px;height:240px;background:url('assets/personaggi.png') left center/200% 100% no-repeat;filter:drop-shadow(0 13px 12px #080b22a8);animation:float 4s ease-in-out infinite}
@media(min-width:800px){.start-avatar{width:195px;height:260px}}
@media(max-height:700px){.start-avatar{width:130px;height:173px}}
@media(max-width:650px){.action-wrap .control-label{font-size:0}.action-wrap .control-label:after{content:"AZIONE";font-size:8px}}
@media(max-height:700px){.dialogue-character{width:125px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.spark-confetti{display:none}}

.golf-answers{display:grid;gap:10px;margin:22px 0}.golf-answer{padding:15px 12px;border:1px solid #aca5c755;border-radius:12px;background:#ffffff0a;color:#fff3de;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;min-height:48px}.golf-answer:disabled{opacity:.45}.golf-answer.correct{opacity:1;border-color:#83e6bd;background:#83e6bd22}.golf-answer:focus-visible{outline:3px solid #ffdb89;outline-offset:3px}

.lives-hud{position:absolute;right:28px;top:154px;z-index:6;display:flex;gap:8px;padding:8px 12px;background:#191d35e8;border:1px solid #bca9ff33;border-radius:20px;font-size:22px}.lives-hud[hidden]{display:none}.empty-lives{font-size:13px;color:#d1cadd}.question-lives{font-size:23px;min-height:30px;margin-top:12px}.golf-scene{display:block;width:180px;height:140px;object-fit:contain;margin:0 auto}.golf-card h2{margin-top:0}.golf-card .golf-answers{grid-template-columns:1fr 1fr;margin:15px 0}.golf-card .golf-answer{padding:13px 7px}.golf-card .challenge-footer{font-size:10px}.golf-card .game-button{margin-top:14px}
@media(max-width:650px){.lives-hud{right:20px;top:238px;font-size:20px}}
@media(max-height:700px){.golf-scene{height:100px;width:150px}.golf-card h2{font-size:24px}.question-lives{margin-top:6px;font-size:20px;min-height:25px}.golf-card .golf-answers{margin:10px 0;gap:7px}.golf-card .golf-answer{padding:10px 6px;min-height:44px}.lives-hud{top:225px}}

.arena-brand{display:grid;justify-items:center;margin:15px auto 20px;gap:5px}.arena-brand img{width:180px;height:54px;object-fit:contain}.arena-brand span{font-size:10px;letter-spacing:5px;color:#f0d3a0}.arena-card .arena-poem{font-style:italic;line-height:1.8;margin:12px 0 16px}.arena-card h2{font-size:30px}@media(max-height:700px){.arena-brand{margin:10px auto}.arena-brand img{width:140px;height:42px}.arena-card .arena-poem{font-size:10px;line-height:1.6;margin:10px 0}.arena-card h2{font-size:25px}}

/* Phone layout: readable sheets, thumb controls and unobstructed play area. */
#game{height:100dvh}.screen{touch-action:pan-y;overscroll-behavior:contain}.challenge-card{touch-action:pan-y}
@media(max-width:650px){
 .hud{top:calc(env(safe-area-inset-top) + 10px);left:14px;right:14px}.icon-button{width:44px;height:44px}
 .objective{top:calc(env(safe-area-inset-top) + 72px);left:14px;width:calc(100% - 28px);padding:10px 12px;gap:9px}.objective small{font-size:9px;letter-spacing:1px}.objective h1{font-size:16px}.objective p{font-size:12px;line-height:1.4}.objective-symbol{font-size:24px}
 .souvenirs{top:calc(env(safe-area-inset-top) + 171px);right:14px;padding:5px 9px}.lives-hud{top:calc(env(safe-area-inset-top) + 171px);left:14px;right:auto;padding:5px 10px;font-size:21px;min-height:36px;align-items:center}
 .controls{left:22px;right:22px;bottom:calc(env(safe-area-inset-bottom) + 20px)}.joystick{width:112px;height:112px}.thumb{width:52px;height:52px;left:29px;top:29px}.action{width:88px;height:88px}.action b{font-size:10px}.control-label{font-size:10px;letter-spacing:1px}
 .screen{padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);overflow-y:auto}.challenge-card{width:100%;max-width:400px;padding:22px 18px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);overflow-y:auto;scrollbar-width:thin}.challenge-card h2{font-size:29px;line-height:1.1}.challenge-card>p{font-size:13px;line-height:1.6}.challenge-close{min-width:44px;min-height:44px}.challenge-topline{font-size:9px}.challenge-footer,.golf-card .challenge-footer{font-size:12px;line-height:1.5}.game-button{min-height:52px;font-size:12px}.golf-answer{min-height:52px;font-size:14px}.golf-card .golf-answer{padding:12px 6px;min-height:50px}.golf-card .golf-answers{gap:10px}.arena-card .arena-poem{font-size:12px;line-height:1.7}.arena-brand{margin:5px auto 12px}.arena-brand img{width:155px;height:47px}.golf-scene{height:112px;width:165px}.question-lives{margin-top:10px}
 .toast{top:auto;bottom:calc(env(safe-area-inset-bottom) + 170px);font-size:12px;max-width:calc(100% - 36px);padding:10px 14px}.encounter{bottom:calc(env(safe-area-inset-bottom) + 164px);font-size:12px}.start-card>p{font-size:13px}.start-info{font-size:9px}.finish-content .prize-caption{font-size:13px}.finish-note{font-size:11px}
}
@media(max-width:650px) and (max-height:680px){.challenge-card{padding:16px}.arena-card .arena-poem{font-size:12px;line-height:1.55;margin:10px 0}.arena-card h2{font-size:25px}.arena-brand img{height:36px}.golf-scene{height:88px}.question-lives{min-height:24px;font-size:20px}.golf-card .golf-answers{margin:10px 0}.challenge-card h2{font-size:25px}}

.player-portrait{object-fit:cover;display:block}
@media(max-width:650px){
 .player-initial{width:42px;height:42px}.player-badge{gap:8px;padding:5px 12px 5px 5px}.player-badge b{font-size:14px;letter-spacing:.5px}.player-badge div>span{font-size:10px;letter-spacing:.3px}
 .objective{top:calc(env(safe-area-inset-top) + 76px);padding:12px;gap:10px}.objective small{font-size:11px;letter-spacing:.6px}.objective h1{font-size:18px;line-height:1.25}.objective p{font-size:14px;line-height:1.45}.objective-count{font-size:15px}.souvenirs,.lives-hud{top:calc(env(safe-area-inset-top) + 194px)}.game-time{font-size:12px}
 .challenge-card>p{font-size:15px;line-height:1.6}.arena-card .arena-poem{font-size:14px;line-height:1.7}.challenge-topline{font-size:11px}.challenge-footer,.golf-card .challenge-footer{font-size:13px}.golf-answer{font-size:16px;min-height:54px}.golf-card .golf-answer{min-height:54px}.game-button{font-size:14px;min-height:54px}.toast,.encounter{font-size:14px}.control-label{font-size:11px}.action b{font-size:11px}.start-card>p{font-size:15px}.start-info{font-size:10px}.prize-caption,.finish-content .prize-caption{font-size:15px}.quiet-button{font-size:14px;min-height:44px}
}
@media(max-width:650px) and (max-height:680px){.challenge-card>p{font-size:14px}.arena-card .arena-poem{font-size:14px;line-height:1.6}.arena-brand{margin:4px auto 9px}.arena-brand img{height:32px}.golf-scene{height:76px}.challenge-card{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)} }

/* Keep the island clear: guidance stays on the map and in accessible announcements. */
.objective{display:none!important}
@media(max-width:650px){.souvenirs,.lives-hud{top:calc(env(safe-area-inset-top) + 76px)}}

.emoji-rain{position:relative;height:250px;margin:14px -4px;overflow:hidden;border:1px solid #bca9ff30;border-radius:20px;background:radial-gradient(ellipse at bottom,#4d728a55,transparent 75%),#11192b88;touch-action:manipulation}
.falling-emoji{position:absolute;left:var(--lane);top:0;margin-left:-29px;width:58px;min-height:76px;border:1px solid #ffffff30;border-radius:17px;background:#26304de8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;animation:emoji-fall var(--fall) linear var(--delay) infinite;box-shadow:0 5px 15px #0003;touch-action:manipulation}.falling-emoji>span{font-size:36px;line-height:1.1}.falling-emoji small{font-size:12px;font-weight:700}.falling-emoji:disabled{visibility:hidden}.falling-emoji:focus-visible{animation-play-state:paused;outline:3px solid #ffdb89}.falling-emoji:active{background:#53617d}.emoji-reveal{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:18px;text-align:center}.emoji-reveal>span{font-size:48px}.emoji-reveal p{font-size:17px;line-height:1.6}.emoji-reveal b{color:#83e6bd}.fountain-rain-card>.game-button{margin-top:14px}
@keyframes emoji-fall{from{transform:translateY(-78px) rotate(-5deg)}to{transform:translateY(250px) rotate(5deg)}}
@media(max-height:680px){.emoji-rain{height:210px}.fountain-rain-card h2{font-size:26px}.fountain-rain-card .question-lives{margin-top:5px}.emoji-reveal p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.falling-emoji{animation:none;transform:none;top:65px}}

.intro-barbell{width:70px;height:8px;background:linear-gradient(#fff6ce,#8299b5);border-radius:3px;transform:rotate(-15deg);box-shadow:0 0 20px #ffdc8966}.intro-barbell:before,.intro-barbell:after{content:"";position:absolute;top:-15px;width:11px;height:38px;background:#f0b16f;border:3px solid #c46c5a;border-radius:4px}.intro-barbell:before{left:10px}.intro-barbell:after{right:10px}

.start-avatar{transform:scale(1.3);transform-origin:center bottom;animation:none}.start-characters{margin-top:40px}.character-bubble{z-index:2}
@media(max-width:650px){.start-characters{height:260px;margin-top:40px}.start-avatar{width:200px;height:267px;transform:scale(1.12)}.start-card h2{margin-bottom:12px}.start-card>p{font-size:14px}}
@media(max-width:650px) and (max-height:700px){.start-characters{height:215px;margin-top:25px}.start-avatar{width:165px;height:220px;transform:scale(1.1)}.start-card h2{font-size:35px}.start-card{margin-top:12px}.start-card .start-info{font-size:9px}.start-card .pill{font-size:8px}}
@media(max-width:650px) and (max-height:580px){.start-characters{height:175px;margin-top:18px}.start-avatar{width:140px;height:187px}.start-card h2{font-size:30px}.start-card>p{font-size:12px}.start-card .start-info{margin-top:10px}}

.hair-preview{width:130px;height:130px;position:relative;margin:10px auto 20px;border-radius:28px;overflow:hidden;box-shadow:0 0 30px #ffdb8930}.hair-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .7s,transform .7s}.hair-after{opacity:0;transform:scale(1.15)}.hair-preview.cut .hair-before{opacity:0;transform:scale(.9)}.hair-preview.cut .hair-after{opacity:1;transform:scale(1)}.style-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.style-choice{min-height:82px;border-radius:16px;border:1px solid #bca9ff44;background:#ffffff0a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.style-choice>span{font-size:33px}.style-choice small{font-size:12px}.style-choice:disabled{opacity:.45}.style-card>.game-button{margin-top:15px}@media(max-height:700px){.hair-preview{width:96px;height:96px;margin:6px auto 10px}.style-choice{min-height:70px}.style-card h2{font-size:25px}}
