:root{--red:#ed1736;--ink:#201f23;--paper:#f6f3ee;--muted:#77716f;--line:#e4ded7;--green:#17865a}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-tap-highlight-color:transparent}button,input,label{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,input:focus-visible+span{outline:3px solid #3845bd;outline-offset:5px}button:disabled{cursor:default}[hidden]{display:none!important}#loading{display:grid;place-items:center;min-height:100dvh;font-weight:bold;color:var(--red)}.site-header,.play-header{display:flex;align-items:center;justify-content:space-between;max-width:1240px;margin:auto;padding:28px 40px}.brand{width:146px;height:auto;mix-blend-mode:multiply}.plain{border:0;background:transparent;color:var(--ink);padding:10px 0;font-weight:700;font-size:13px}.plain span{margin-left:8px}.landing{max-width:1240px;min-height:calc(100dvh - 200px);padding:50px 40px 80px;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;display:flex;align-items:center;gap:8px}.eyebrow>span{display:inline-block;background:var(--red);width:7px;height:7px;border-radius:50%}h1{font-size:clamp(60px,7.7vw,101px);line-height:.98;letter-spacing:-6px;margin:29px 0 23px;font-weight:900}h1 em{color:var(--red);font-style:normal}.lead{font-size:19px;color:#6d6767;line-height:1.55}.mode-picker{border:0;padding:0;display:flex;gap:10px;margin:28px 0 18px;max-width:410px}.mode-picker legend{font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:bold;color:var(--muted);padding:0;margin-bottom:12px}.mode-picker label{flex:1;cursor:pointer;position:relative}.mode-picker input{position:absolute;opacity:0}.mode-picker label>span{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;padding:15px 13px;background:#fff9;gap:6px}.mode-picker input:checked+span{border:1.5px solid var(--red);background:#fff0f2;box-shadow:0 0 0 1px #ed173611}.mode-picker b{font-size:14px}.mode-picker small{font-size:11px;color:var(--muted)}.mode-picker i{font-style:normal;color:var(--red)}.primary{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--red);color:#fff;border:0;border-radius:14px;padding:19px 22px;font-weight:bold;font-size:16px;width:100%;max-width:410px;box-shadow:0 6px 0 #c00f29;transition:transform .15s,box-shadow .15s}.primary:hover{background:#de1230}.primary:active{transform:translateY(3px);box-shadow:0 3px 0 #c00f29}.primary span{font-size:23px}.micro{font-size:11px;color:var(--muted);margin-top:19px}.preview-scene{position:relative;height:500px;background:var(--red);border-radius:44% 47% 38% 46%;isolation:isolate}.card{container-type:inline-size;position:relative;aspect-ratio:1;background:white;border-radius:50%;box-shadow:0 10px 0 #dcd4ca,0 19px 30px #2c180f12;outline:1px solid #e4dfd9;flex-shrink:0;user-select:none;-webkit-user-select:none;transition:outline-color .16s,box-shadow .16s}.preview-card{position:absolute;width:60%;box-shadow:0 7px 0 #e5dcd0,0 20px 40px #70071c44}.one{left:-4%;top:9%;transform:rotate(-14deg)}.two{right:-5%;bottom:3%;transform:rotate(10deg)}.scene-label{position:absolute;right:10%;top:7%;font-size:11px;letter-spacing:3px;color:#fff;font-weight:bold;transform:rotate(8deg)}.scene-note{position:absolute;left:0;bottom:11%;font-weight:bold;color:#fff;font-size:17px;line-height:1.2;transform:rotate(-7deg)}.scene-note span{display:block;font-size:45px;transform:rotate(15deg);margin-left:64px}.spark{position:absolute;color:#f3c953;z-index:3;font-size:55px}.spark1{right:-6%;top:28%;transform:rotate(12deg)}.spark2{left:26%;bottom:-5%;font-size:35px}footer{max-width:1240px;margin:auto;display:flex;align-items:center;gap:15px;padding:24px 40px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}footer img{width:170px;mix-blend-mode:multiply}footer .footer-note{margin-left:auto}.play-header{padding:20px 30px;max-width:1050px}.play-header .brand{width:115px}.play-tools{display:flex;align-items:center;gap:23px}.help-trigger[aria-label]{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:32px;height:32px;padding:0}.game-shell{width:min(100%,950px);margin:auto;padding:0 28px 24px}.scorebar{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#fff;border:1px solid var(--line);border-radius:16px}.scorebar>div{display:flex;flex-direction:column;gap:4px;min-width:85px}.stat-label{font-size:9px;letter-spacing:1.2px;font-weight:700;color:var(--muted)}.scorebar strong{font-size:29px;line-height:1;font-weight:900}.scorebar .round{text-align:center}.round b{font-size:13px}.scorebar .clock{text-align:right}.clock.urgent strong{color:var(--red)}.instruction{text-align:center;font-size:13px;margin:20px 0 26px;color:var(--muted)}.instruction b{color:var(--ink)}.board{display:grid;grid-template-columns:1fr 26px 1fr;gap:24px;align-items:center;max-width:810px;margin:auto}.between{text-align:center;font-size:26px;font-weight:300;color:#b7aead}.symbol{position:absolute;border:0;padding:0;background:transparent;border-radius:50%;width:max(42px,var(--draw));height:max(42px,var(--draw));transform:translate(-50%,-50%);display:grid;place-items:center;z-index:1}.symbol img{width:var(--draw);height:var(--draw);max-width:none;object-fit:contain;pointer-events:none;transform:rotate(var(--turn));transition:filter .15s,scale .15s}.symbol:hover img{scale:1.06}.symbol:focus-visible{outline:2px dashed var(--red);outline-offset:1px}.symbol.correct{outline:3px solid var(--green);background:#65d3a31c;z-index:3}.symbol.correct img{filter:drop-shadow(0 2px 2px #16805225)}.symbol.wrong{animation:nope .28s;background:#ff24471c;outline:2px solid #e72342}.card.success{outline:3px solid var(--green);box-shadow:0 9px 0 #b1d8c3,0 16px 28px #21845a18}.feedback{margin:30px 0 12px;min-height:30px;text-align:center;font-size:14px;font-weight:bold;color:var(--muted)}.feedback.good{color:var(--green)}.feedback.bad{color:var(--red)}.game-foot{display:flex;justify-content:space-between;font-size:10px;color:#938b87;padding-top:16px;border-top:1px solid var(--line)}dialog{border:0;border-radius:24px;padding:36px 28px;max-width:420px;width:calc(100% - 36px);background:#fffdf9;box-shadow:0 25px 100px #0003;color:var(--ink)}dialog::backdrop{background:#251919a6;backdrop-filter:blur(5px)}.close{position:absolute;right:15px;top:10px;background:none;border:0;font-size:29px;padding:5px;color:var(--muted)}h2{font-size:34px;letter-spacing:-1px;line-height:1.05;margin:19px 0}.help-example{display:flex;align-items:center;justify-content:center;gap:32px;margin:16px 0 24px}.help-example img{width:55px;height:55px;object-fit:contain}.help-example img:last-child{transform:rotate(30deg);width:42px}.help-example span{font-size:26px;color:var(--red)}ol{padding:0;list-style:none;counter-reset:item}li{position:relative;padding:0 0 19px 33px;counter-increment:item}li:before{content:counter(item);position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;background:var(--red);color:white;font-size:12px;font-weight:bold;display:grid;place-items:center}li b{font-size:13px;display:block;margin-bottom:5px}li span{color:var(--muted);font-size:12px;line-height:1.45;display:block}.help-note{font-size:11px;line-height:1.5;color:var(--muted);border-top:1px solid var(--line);padding-top:13px}.wide{width:100%;text-align:center;margin-top:17px}.result-score{margin:26px 0;display:flex;flex-direction:column;text-align:center}.result-score strong{font-size:92px;letter-spacing:-5px;color:var(--red);line-height:1}.result-score span{font-size:13px;color:var(--muted);margin-top:12px}#record-message{text-align:center;font-size:13px;margin-bottom:26px}#result .eyebrow{justify-content:center}#result h2{text-align:center}.preview-card .symbol{pointer-events:none}@keyframes nope{25%{translate:-3px}75%{translate:3px}}@media(max-width:760px){.site-header{padding:22px 22px 10px}.site-header .brand{width:125px}.landing{display:flex;flex-direction:column;padding:30px 24px 50px;gap:42px;min-height:auto;align-items:stretch}.intro h1{font-size:72px;letter-spacing:-4px;margin:23px 0 19px}.lead{font-size:16px}.mode-picker{margin-top:23px;max-width:none}.primary{max-width:none}.micro{text-align:center}.preview-scene{height:340px;width:min(100%,430px);align-self:center;margin:0 0 22px}.one{width:57%}.two{width:57%}.scene-note{font-size:14px}.scene-label{font-size:9px}.spark1{right:0}.spark2{bottom:0}footer{padding:20px 24px;flex-wrap:wrap;gap:10px}footer img{width:145px}footer .footer-note{display:none}.play-header{padding:14px 20px}.game-shell{padding:0 20px 20px;max-width:470px}.scorebar{padding:12px 15px}.scorebar strong{font-size:25px}.stat-label{font-size:8px}.scorebar>div{min-width:72px}.instruction{font-size:12px;margin:16px 0 18px}.board{grid-template-columns:1fr;justify-items:center;gap:22px}.board .card{width:min(100%,35dvh,310px)}.between{display:none}.feedback{margin-top:23px;font-size:12px;min-height:18px}.game-foot{font-size:8px;padding-top:11px;gap:10px}.symbol{width:max(40px,var(--draw));height:max(40px,var(--draw))}}@media(max-height:740px) and (max-width:760px){.play-header{padding-top:9px;padding-bottom:9px}.scorebar{padding:8px 12px}.scorebar strong{font-size:23px}.instruction{margin:11px 0 14px}.board{gap:19px}.board .card{width:min(100%,33dvh,270px)}.feedback{margin-top:20px;margin-bottom:7px}.game-foot{padding-top:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Player identity, shared records and accessible audio controls. */
.player-form{max-width:410px;margin-top:24px}.player-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.player-fields label{font-size:11px;font-weight:bold;color:#504a49;display:flex;flex-direction:column;gap:8px}.player-fields input{min-width:0;width:100%;padding:13px 12px;border:1px solid #d9d1ca;border-radius:11px;font-size:15px;background:#fff;color:var(--ink);font-family:inherit}.player-fields input:focus{outline:2px solid var(--red);outline-offset:2px}.player-form p{font-size:10px;line-height:1.5;color:#756d68;margin-top:10px}.audio-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.audio-toggle{padding:8px 11px;border:1px solid #d8d0c9;border-radius:999px;background:#fff9;color:#57504c;font-size:11px;font-weight:bold}.audio-toggle[aria-pressed=true]{background:#fff0f2;border-color:#ed173644;color:#b8142e}.scene-note{color:#30241c;background:#ffe3a4;padding:11px 14px;border-radius:12px;left:-2%;bottom:8%;z-index:4;box-shadow:0 5px 0 #a6641233}.scene-note span{color:var(--red);margin-left:60px}.scene-label{color:#30241c;background:#fff2d6;border-radius:999px;padding:9px 12px;z-index:4;right:9%;top:5%}.records-section{max-width:1160px;margin:0 auto 70px;padding:32px;background:#fff;border:1px solid var(--line);border-radius:22px}.records-header{display:flex;align-items:center;justify-content:space-between;gap:25px}.records-header h2{margin:12px 0;font-size:35px}.records-header p,#records-status{font-size:12px;color:var(--muted);line-height:1.5}.records-header .plain{white-space:nowrap}.leaderboard{margin:20px 0 0;padding:0}.leaderboard li{padding:14px 12px;display:grid;grid-template-columns:40px 1fr auto;gap:13px;align-items:center;border-top:1px solid var(--line);font-size:14px}.leaderboard li::before{content:none}.leaderboard .rank{color:#9a928e;font-size:12px}.leaderboard li:nth-child(-n+3) .rank{font-weight:bold;color:var(--red)}.leaderboard .record-points{font-weight:bold;color:var(--red);font-size:20px}.leaderboard .record-points small{font-weight:normal;font-size:10px;color:var(--muted);margin-left:5px}.in-game-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px}.in-game-controls .audio-controls{margin:0}.in-game-controls>span{font-size:11px;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:48%}.scorebar .clock{min-width:96px;display:grid;place-items:center;gap:0}.scorebar.timed .clock{width:96px;height:96px;background:conic-gradient(var(--red) var(--angle,360deg),#eee6df 0);padding:5px;border-radius:50%}.timer-disc{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.timed .timer-disc{width:86px;height:86px;background:white;border-radius:50%}.timed #clock{font-size:45px;line-height:1;color:var(--red);font-variant-numeric:tabular-nums;font-weight:900;letter-spacing:-2px}.timed #clock-label{font-size:7px;letter-spacing:1px}.clock.urgent{animation:timerPulse 1s ease-in-out infinite}.clock.urgent .timer-disc{background:#fff0f2}.scorebar.timed{border-color:#ed17364a}.countdown{position:fixed;inset:0;z-index:100;background:#f6f3eeFA;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center}.countdown .eyebrow{color:var(--red)}.countdown p{color:var(--muted);font-size:18px}.countdown strong{font-size:clamp(65px,24vw,180px);font-weight:900;line-height:1.2;color:var(--red);letter-spacing:-5px;min-height:210px;display:grid;place-items:center}.countdown strong.go{font-size:clamp(48px,10vw,90px);letter-spacing:-2px}.countdown-note{font-size:12px;line-height:1.5;color:var(--muted)}.start-error{font-size:12px;color:var(--red);line-height:1.5}.help-note{margin-bottom:22px}.primary:disabled{opacity:.65;cursor:wait}.result-score{margin-bottom:20px}#record-message{line-height:1.5}.micro{text-align:left}@keyframes timerPulse{50%{box-shadow:0 0 0 5px #ed173622}}@media(max-width:760px){.player-form{max-width:none}.landing{padding-top:24px}.intro h1{font-size:66px}.preview-scene{height:320px}.scene-note{font-size:12px;left:0}.scene-note span{font-size:32px;margin-left:50px}.scene-label{font-size:8px;right:7%}.records-section{margin:0 20px 35px;padding:23px 18px}.records-header{gap:10px}.records-header h2{font-size:26px}.records-header .eyebrow{font-size:8px;letter-spacing:1px}.records-header p{font-size:10px}.records-header .plain{font-size:10px}.leaderboard li{font-size:12px;padding-left:0;padding-right:0;grid-template-columns:25px 1fr auto;gap:8px}.leaderboard .record-points{font-size:18px}.in-game-controls{padding-bottom:10px}.in-game-controls .audio-toggle{font-size:9px;padding:7px 8px}.in-game-controls>span{font-size:10px}.scorebar{padding:9px 14px}.scorebar.timed .clock{width:88px;height:88px;min-width:88px}.timed .timer-disc{width:78px;height:78px}.timed #clock{font-size:43px}.scorebar>div{min-width:70px}.board .card{width:min(100%,31dvh,290px)}.instruction{margin-top:13px;margin-bottom:17px}.board{gap:20px}.feedback{margin-top:23px}.countdown strong{min-height:200px}.micro{text-align:center}}@media(max-height:740px) and (max-width:760px){.play-header{padding-top:8px;padding-bottom:8px}.in-game-controls{padding-bottom:7px}.scorebar{padding-top:6px;padding-bottom:6px}.scorebar.timed .clock{width:77px;height:77px;min-width:77px}.timed .timer-disc{width:67px;height:67px}.timed #clock{font-size:36px}.board .card{width:min(100%,27.5dvh,255px)}.instruction{font-size:11px;margin:10px 0 13px}.board{gap:16px}.feedback{margin-top:18px}.game-foot{font-size:7px}.scorebar strong{font-size:23px}}
#result{max-width:520px;max-height:92dvh;overflow-y:auto;padding:28px}#result>h2{font-size:29px}#result .result-score{margin:18px 0}#result .result-score strong{font-size:66px;letter-spacing:-3px}#result #record-message{font-size:12px;margin:17px 0}#result .records-section{margin:20px 0 25px;padding:18px 0 0;border:0;border-radius:0;border-top:1px solid var(--line);background:none}#result .records-header h3{font-size:20px;letter-spacing:-.5px;margin:8px 0}#result .records-header .eyebrow{font-size:8px;letter-spacing:1px}#result .records-header p{font-size:10px;margin:5px 0}#result .records-header .plain{font-size:10px}#result .leaderboard{max-height:200px;overflow-y:auto;margin-top:12px}#result .leaderboard li{font-size:12px;padding:10px 3px;grid-template-columns:25px 1fr auto;gap:9px}#result .leaderboard .record-points{font-size:18px}#result #records-status{font-size:10px;margin-bottom:0}.landing{min-height:calc(100dvh - 190px)}@media(max-width:760px){#result{padding:25px 22px}#result .leaderboard{max-height:165px}#result .records-header h3{font-size:19px}}
/* Device-independent vector icons: no emoji glyph substitution on iOS. */
.ui-icon{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;flex-shrink:0}.plain .ui-icon{margin-left:4px}.primary>span{display:flex;align-items:center}.primary .ui-icon{width:25px;height:25px}.mode-picker i .ui-icon{width:13px;height:13px}.spark{display:block;line-height:1}.spark .ui-icon{width:1em;height:1em;stroke-width:2.4}.scene-note span .ui-icon{width:42px;height:42px}.audio-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px}.audio-toggle .ui-icon{width:14px;height:14px}.audio-toggle[aria-pressed=false] .ui-icon{opacity:.55}.play-header .in-game-controls{margin-left:auto;padding:0;gap:15px}.play-header #player-label{max-width:160px}.play-header .play-tools{margin-left:22px}.asset-status{font-size:12px;color:#6d6767;line-height:1.4;margin:12px 0}.symbol{width:max(44px,var(--draw));height:max(44px,var(--draw))}.preview-scene{max-width:100%}
/* Fit two genuinely larger cards into the available mobile viewport. */
@media(max-width:760px), (max-width:1000px) and (max-height:520px){
 #play{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
 #play .play-header{flex:0 0 48px;height:48px;min-height:48px;width:100%;max-width:none;padding:2px 10px;gap:8px}
 #play .play-header .brand{width:88px}
 #play .play-header .in-game-controls{margin-left:auto;padding:0;gap:0;flex-shrink:0}
 #play #player-label{display:none}
 #play .play-header .audio-controls{gap:3px;margin:0;flex-wrap:nowrap}
 #play .audio-toggle{width:40px;height:40px;padding:8px;border-radius:50%;border-color:#ded6ce;background:#fff9;position:relative}
 #play .audio-toggle .ui-icon{width:18px;height:18px}
 #play .audio-label{display:none}
 #play .audio-toggle[aria-pressed=false]:after{content:'';position:absolute;left:9px;top:19px;width:21px;height:2px;background:#a79b95;transform:rotate(-45deg);box-shadow:0 -1px 0 var(--paper)}
 #play .play-tools{margin-left:0;gap:8px;flex-shrink:0}
 #play .play-tools #finish{font-size:10px;padding:10px 0}
 #play .help-trigger[aria-label]{width:30px;height:30px;font-size:12px}
 #play .game-shell{width:100%;max-width:none;flex:1;min-height:0;display:flex;flex-direction:column;padding:0 10px 4px}
 #play .scorebar{flex:0 0 78px;height:78px;min-height:78px;padding:4px 12px;border-radius:14px}
 #play .scorebar:not(.timed){flex-basis:62px;height:62px;min-height:62px}
 #play .scorebar>div{min-width:62px}
 #play .scorebar strong{font-size:25px}
 #play .stat-label{font-size:7px;letter-spacing:.8px}
 #play .round b{font-size:11px}
 #play .scorebar .clock{min-width:66px}
 #play .scorebar.timed .clock{width:66px;height:66px;min-width:66px;padding:4px}
 #play .timed .timer-disc{width:58px;height:58px}
 #play .timed #clock{font-size:36px;letter-spacing:-1.5px}
 #play .timed #clock-label{font-size:6px;letter-spacing:.5px}
 #play .instruction{flex:0 0 27px;display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px;line-height:1.3;margin:0;text-align:center}
 #play .board{flex:1;min-height:0;width:100%;max-width:none;margin:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;justify-items:center}
 #play .board .card{width:var(--play-card-size,240px);height:var(--play-card-size,240px);aspect-ratio:1;box-shadow:0 5px 0 #dcd4ca,0 10px 18px #2c180f0c}
 #play .between{display:none}
 #play .feedback{flex:0 0 31px;height:31px;min-height:31px;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1.3;margin:3px 3px 0;text-align:center}
 #play .game-foot{display:none}
 #play .symbol{width:max(44px,var(--draw));height:max(44px,var(--draw))}
 .site-header .plain{font-size:11px}.site-header{gap:12px}.site-header .ui-icon{width:14px;height:14px}
}
/* Keep the cards together instead of spreading them across equal grid tracks. */
@media(max-width:760px), (max-width:1000px) and (max-height:520px){
 #play{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 #play .play-header{flex-basis:44px;height:44px;min-height:44px}
 #play .instruction{flex-basis:22px}
 #play .board{grid-template-rows:repeat(2,var(--play-card-size,240px));gap:12px;align-content:center}
 #play .feedback{flex-basis:22px;height:22px;min-height:22px;margin-top:2px}
}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 #play .play-header{flex-basis:38px;height:38px;min-height:38px;padding-top:0;padding-bottom:0}
 #play .audio-toggle{width:34px;height:34px}
 #play .game-shell{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 34px 22px;column-gap:10px;row-gap:0;max-width:none;padding:0 8px 4px}
 #play .scorebar,#play .scorebar:not(.timed){grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;width:100%;max-width:none;height:100%;min-height:0;align-self:stretch;padding:8px 4px;border-radius:14px}
 #play .scorebar>div{min-width:0;text-align:center}
 #play .scorebar strong{font-size:30px}
 #play .stat-label{font-size:7px;letter-spacing:.4px}
 #play .round b{font-size:10px}
 #play .scorebar.timed .clock{width:76px;height:76px;min-width:76px;padding:4px}
 #play .timed .timer-disc{width:68px;height:68px;gap:2px}
 #play .timed #clock{font-size:40px}
 #play .timed #clock-label{font-size:6px}
 #play .instruction{grid-column:1;grid-row:2;display:block;align-self:center;font-size:9px;line-height:1.3;padding:2px 1px}
 #play .board{grid-column:2;grid-row:1 / 3;grid-template-columns:repeat(2,var(--play-card-size,240px));grid-template-rows:var(--play-card-size,240px);gap:10px;justify-content:center;align-content:center;height:100%;min-width:0}
 #play .feedback{grid-column:2;grid-row:3;height:22px;min-height:22px;margin:0;font-size:10px}
}

/* Email identity and separate, explicit contact preferences. */
.player-form .email-field{margin-top:12px;display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:bold;color:#504a49}
.player-form .email-field input{width:100%;min-width:0;padding:13px 12px;border:1px solid #d9d1ca;border-radius:11px;font-size:15px;background:#fff;color:var(--ink);font-family:inherit}
.player-form .email-field input:focus{outline:2px solid var(--red);outline-offset:2px}
.player-form .consent-row{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:11px;line-height:1.5;font-weight:normal;color:#504a49;cursor:pointer}
.player-form .consent-row input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;accent-color:var(--red)}
.player-form .consent-row a{color:#b8142e;text-underline-offset:2px}.player-form .consent-row small{display:block;color:#756d68;font-size:10px}
@media(max-width:760px){.player-form .consent-row{font-size:12px}.player-form .email-field input{font-size:16px}}

.remembered-player{max-width:410px;margin-top:24px;padding:19px 20px;border:1px solid #e4ded7;border-radius:16px;background:#fff}
.remembered-player h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.6px;color:var(--ink)}
.remembered-player p{font-size:13px;line-height:1.5;color:var(--muted);margin:9px 0 4px}
.remembered-player .plain{color:#b8142e;font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:8px 0}
@media(max-width:760px){.remembered-player{max-width:none}.remembered-player h2{font-size:23px}}

/* Cinemarket owns the welcome; En Foco identifies the game. */
.corporate-brand{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-decoration:none;color:var(--ink)}
.corporate-brand img{display:block;width:246px;max-width:100%;height:auto;mix-blend-mode:multiply}
.corporate-brand>span{font-size:11px;letter-spacing:.9px;margin-left:2px;font-weight:600;color:#5d5552}
#home .site-header{padding-top:25px;padding-bottom:17px}
.game-identity img{display:block;width:246px;max-width:75%;height:auto;mix-blend-mode:multiply}
.game-identity p{margin:13px 0 0;font-size:12px;letter-spacing:1px;color:#6d6767}.game-identity strong{color:var(--ink)}
#home .intro h1{font-size:clamp(43px,5.1vw,66px);line-height:1.02;letter-spacing:-3px;margin:28px 0 21px;max-width:620px}
#home .intro h1 em{display:block}
#home .lead{max-width:480px;font-size:17px;line-height:1.55}
#home .landing{padding-top:34px}
.footer-invite{margin-left:auto;display:flex;align-items:flex-end;flex-direction:column;gap:7px;text-align:right}
.footer-invite>span{font-size:12px;font-weight:bold;color:var(--ink)}
.footer-invite a{font-size:11px;line-height:1.4;color:#b8142e;text-decoration:none}.footer-invite a:hover{text-decoration:underline}
.footer-invite .ui-icon{width:12px;height:12px;vertical-align:-2px;margin-left:3px}
.play-signature{display:flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap}
.play-signature>span{font-size:20px;line-height:1;color:var(--red)}
.play-signature>b{font-size:14px;font-weight:700;letter-spacing:-.3px}
#play .play-signature .brand{width:105px}
.result-catalog{display:block;margin:20px auto 4px;max-width:340px;text-align:center;color:#b8142e;font-size:12px;line-height:1.5;text-underline-offset:3px}
#result>h2{font-size:30px;line-height:1.1;max-width:360px;margin:18px auto 0}
.feedback.good{color:var(--red)}.symbol.correct{outline-color:var(--red);background:#ed173612}.card.success{outline-color:var(--red)}
@media(max-width:760px){
 #home .site-header{padding:22px 22px 10px;align-items:center}
 .corporate-brand img{width:205px}.corporate-brand>span{font-size:9px;letter-spacing:.6px}
 .game-identity img{width:210px}.game-identity p{margin-top:11px;font-size:11px}
 #home .intro h1{font-size:clamp(37px,10.5vw,48px);letter-spacing:-1.6px;line-height:1.04;margin:23px 0 18px}
 #home .lead{font-size:15px;line-height:1.55}
 #home .landing{padding-top:27px;gap:40px}
 #home .preview-scene .one{left:0}#home .preview-scene .two{right:0}
 .footer-invite{width:100%;margin:12px 0 0;align-items:flex-start;text-align:left;gap:6px}
 .footer-invite>span{font-size:13px}.footer-invite a{font-size:12px}
 #play .play-signature{gap:4px}#play .play-signature .brand{width:70px}#play .play-signature>b{font-size:10px}#play .play-signature>span{font-size:14px}
 #result>h2{font-size:28px}
}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 #play .play-signature{gap:5px}#play .play-signature .brand{width:70px}#play .play-signature>b{font-size:10px}#play .play-signature>span{font-size:14px}
}
@media(max-width:360px){#home .site-header{padding-left:18px;padding-right:18px;gap:9px}.corporate-brand img{width:181px}.corporate-brand>span{font-size:8px}#home .site-header .plain{font-size:10px}#play .play-signature .brand{width:56px}#play .play-signature>b{font-size:9px}#play .play-signature{gap:3px}}

/* Requested compact welcome. Gameplay layout and sound controls remain unchanged. */
#home .site-header{justify-content:flex-end;padding-top:22px;padding-bottom:8px}
#home .corporate-brand{margin-left:auto}
#home .corporate-brand img{width:290px}
#home .game-identity img{width:290px;max-width:90%}
#home .game-identity p{font-size:16px;letter-spacing:.7px;margin-top:12px}
#home .landing{min-height:calc(100dvh - 160px);padding-top:22px;padding-bottom:24px}
#home .intro h1{font-size:clamp(38px,4.1vw,52px);letter-spacing:-2px;margin:22px 0 16px;line-height:1.04}
#home .intro h1 em{display:inline}
#home .lead{font-size:16px;line-height:1.45;margin-bottom:16px}
#home .player-form{margin-top:18px;max-width:450px}
#home .player-form p{font-size:11px;line-height:1.4;margin:9px 0 0}
#home .player-form .consent-row{margin-top:8px;font-size:11px;line-height:1.4}
#home .player-form .consent-row small{display:inline;font-size:inherit}
#home .mode-picker{margin-top:18px}
#home .micro{margin-bottom:0}
#home .home-help{max-width:1240px;margin:0 auto;padding:12px 40px 24px;display:flex;justify-content:flex-end}
#home .home-help .plain{padding:12px 0;font-size:13px}
#home .preview-scene .one{left:0}#home .preview-scene .two{right:0}
#home .preview-scene .spark1{right:0}
@media(max-width:760px){
 #home .site-header{padding:18px 22px 8px}
 #home .corporate-brand img{width:245px;max-width:75vw}
 #home .game-identity img{width:255px}
 #home .game-identity p{font-size:15px;margin-top:10px}
 #home .landing{padding-top:20px;padding-bottom:15px;gap:32px}
 #home .intro h1{font-size:clamp(33px,9.3vw,45px);letter-spacing:-1.6px;margin:20px 0 14px}
 #home .lead{font-size:15px}
 #home .player-form .consent-row{font-size:12px}
 #home .home-help{padding:10px 22px 22px}
}

/* Direct game launch, aligned brands, and a red playing surface. */
#home .welcome-brands{max-width:1240px;padding:28px 40px 0;margin:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
#home .welcome-brands .corporate-brand{padding-top:9px}
#home .landing{padding-top:0;min-height:0;row-gap:24px;align-items:center}
#home .intro h1{margin-top:26px}
#home .launch-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:20px}
.launch-buttons{display:flex;gap:16px;width:450px;max-width:100%}
.launch{flex:1;display:flex;gap:12px;align-items:center;justify-content:center;min-height:74px;border-radius:22px;border:2px solid #201f23;font-size:23px;font-weight:900;letter-spacing:-.5px;transition:transform .15s,box-shadow .15s}
.launch svg{height:27px;width:27px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.launch.practice{background:#ffcf4b;color:#201f23;box-shadow:0 7px 0 #b58417}
.launch.challenge{background:var(--red);color:#fff;border-color:#b50b26;box-shadow:0 7px 0 #aa0923}
.launch.challenge svg{fill:currentColor;stroke:none}
.launch:hover{transform:translateY(-2px)}.launch:active{transform:translateY(5px);box-shadow:0 2px 0 #7d5620}
.launch[aria-busy=true]{opacity:.65;cursor:wait}
.home-help-button{display:flex;align-items:center;gap:12px;padding:17px 22px;border:2px solid #201f23;border-radius:18px;font-size:16px;font-weight:bold;background:#fff;color:var(--ink);box-shadow:0 5px 0 #d7d0c7}
.home-help-button>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#201f23;color:white;font-weight:900}
#play{background:var(--red);min-height:100dvh}
#play .play-header{background:var(--paper);max-width:none;padding-left:max(20px,calc((100vw - 990px)/2));padding-right:max(20px,calc((100vw - 990px)/2))}
#play .play-signature .play-cinemarket{width:158px;max-width:none;mix-blend-mode:multiply;height:auto}
#play .game-shell{padding-top:16px}
#play .instruction,#play .instruction b,#play .game-foot,#play .feedback{color:white}
#play .scorebar{display:grid;grid-template-columns:1fr 1fr 1fr;background:var(--paper);gap:10px}
#play .scorebar>.clock{justify-self:center}
#play .scorebar>.round{text-align:right;align-items:flex-end;justify-self:end}
#play .board .card{box-shadow:0 8px 0 #a30c25,0 15px 28px #5c001640}
#play .symbol.correct{outline-color:#17865a;background:#17865a1f}
#play .card.success{outline:5px solid #1eae6b;box-shadow:0 0 0 9px #1eae6b44,0 8px 0 #105f3c}
#play .feedback.good{color:#fff;background:#096e40;border-radius:10px}
#play .feedback.bad{color:#fff;background:#8a0920;border-radius:10px}
#result.champion{border:3px solid #e7b329;background:#fffaf0}
#result.champion #result-title{color:#a36700}
#result.champion .your-record{background:#fff0b0;border:1px solid #e7b329;border-radius:12px;padding:13px 8px}
#result.champion .your-record .rank{font-size:20px;color:#8a5700}
#record-sparks{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:20px}
#record-sparks i{position:absolute;left:var(--x);top:-16px;width:9px;height:15px;background:var(--spark-color);border-radius:3px;animation:record-spark 2.5s var(--delay) ease-out both}
@keyframes record-spark{0%{transform:translate(0,-10px) rotate(0);opacity:0}10%{opacity:1}100%{transform:translate(var(--drift),620px) rotate(660deg);opacity:0}}
@media(max-width:760px){
 #home .welcome-brands{padding:22px 24px 0;gap:14px;align-items:flex-start}
 #home .welcome-brands .game-identity{width:54%;flex-shrink:0}
 #home .welcome-brands .game-identity img{width:100%;max-width:100%}
 #home .welcome-brands .game-identity p{font-size:11px;letter-spacing:0;margin-top:9px;white-space:nowrap}
 #home .welcome-brands .corporate-brand{padding-top:8px;min-width:0;max-width:44%}
 #home .welcome-brands .corporate-brand img{width:100%;max-width:100%}
 #home .landing{row-gap:24px;padding-top:0}
 #home .launch-actions{grid-row:2;gap:10px;align-items:stretch;padding-bottom:0;flex-wrap:wrap}
 .launch-buttons{width:100%;gap:12px}.launch{min-height:66px;font-size:22px;border-radius:18px}
 .home-help-button{margin-left:auto;font-size:13px;padding:12px 16px;margin-top:9px}
 #home .preview-scene{grid-row:3}
 #play .play-signature .play-cinemarket{width:100px}
 #play .play-signature .brand{width:68px}
 #play .game-shell{padding-top:8px}
 #play .scorebar{gap:4px}
}
@media(max-width:360px){#play .play-signature .play-cinemarket{width:74px}#play .play-signature .brand{width:52px}#play .play-tools{gap:4px}#play .play-header{gap:4px}#play .audio-toggle{width:34px;height:34px}}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 #play .play-signature .play-cinemarket{width:110px}
 #play .scorebar,#play .scorebar:not(.timed){display:flex;flex-direction:column}
 #play .scorebar>.round{align-items:center;text-align:center}
 #play .game-shell{padding-top:5px}
}
@media(prefers-reduced-motion:reduce){#record-sparks{display:none}.launch{transition:none}}
@media(max-width:760px){
 #home .launch-actions{flex-wrap:nowrap;gap:10px}
 .launch-buttons{width:auto;flex:1;gap:10px;min-width:0}
 .launch{flex-direction:column;gap:5px;min-width:0;min-height:74px;font-size:17px;padding:10px 7px}
 .launch svg{width:22px;height:22px}
 .home-help-button{flex-direction:column;justify-content:center;gap:5px;margin-top:0;font-size:11px;padding:10px;min-height:74px;white-space:nowrap}
 .home-help-button>span{width:22px;height:22px;font-size:15px}
}
@media(max-width:760px){#home .landing{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}.launch-actions{grid-row:2}.preview-scene{grid-row:3}}

/* Decorative stacks: bounded depth, no effect on game rules or hit areas. */
#play .board{position:relative;isolation:isolate}
#play .board .card{--depth:0px;box-shadow:0 calc(var(--depth)*.33) 0 1px #d9d3c9,0 calc(var(--depth)*.33 + 1px) 0 1px #9b817d,0 calc(var(--depth)*.66) 0 1px #eee8df,0 calc(var(--depth)*.66 + 1px) 0 1px #9b817d,0 var(--depth) 0 1px #fffaf3,0 calc(var(--depth) + 1px) 0 1px #9b817d;transition:outline-color .14s}
#play .board .card.success{outline:4px solid #19b56e}
#play .board .card.deck-flyer{position:absolute;left:var(--fly-x);top:var(--fly-y);width:var(--fly-size);height:var(--fly-size);z-index:8;pointer-events:none;contain:layout paint;box-shadow:0 4px 0 #ddd3c8;outline:3px solid #19b56e;animation:deck-transfer .42s cubic-bezier(.22,.65,.3,1) both}
@keyframes deck-transfer{0%{transform:translate(0,0) scale(1);opacity:.92}70%{opacity:.9}100%{transform:translate(var(--fly-dx),var(--fly-dy)) scale(.94);opacity:0}}
#play .symbol img{transition:none}
#play .clock.urgent{animation:none}
#result{width:calc(100% - 24px);max-width:490px;max-height:calc(100dvh - 24px);padding:18px 20px;overscroll-behavior:contain}
#result::backdrop{backdrop-filter:none;background:#251919b3}
#result>.eyebrow{font-size:9px;letter-spacing:1.5px}
#result>h2{font-size:25px;line-height:1.1;margin:8px auto 0}
#result .result-score{margin:6px 0}
#result .result-score strong{font-size:49px;letter-spacing:-2px}
#result #record-message{font-size:11px;line-height:1.3;margin:6px 0}
#result #record-message:empty,#result #records-status:empty{display:none}
#result .records-section{margin:10px 0 14px;padding:7px 0 0}
#result .records-header{gap:6px}
#result .records-header h3{font-size:18px;margin:5px 0}
#result .records-header .plain{font-size:10px;min-height:34px;padding:5px}
#result .leaderboard{margin:3px 0 0;max-height:170px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#result .leaderboard li,#result.champion .leaderboard .your-record{min-height:34px;height:34px;padding:3px 5px;grid-template-columns:23px minmax(0,1fr) auto;gap:7px;border-radius:0}
#result .leaderboard li>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#504a49}
#result .leaderboard .rank,#result.champion .your-record .rank{font-size:13px}
#result .leaderboard .record-points{font-size:17px}
#result .leaderboard .record-points small{font-size:9px}
#result #records-status{font-size:11px;line-height:1.3;margin:5px 0 0}
#result #again{flex-direction:row;min-height:49px;width:100%;font-size:19px;border-radius:16px;padding:8px 14px;gap:9px;margin:0 0 9px}
#result #again svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2}
#result #back-home{min-height:38px;margin:0;padding:8px;font-size:13px}
#result .result-catalog{display:block;text-align:center;margin:0;padding:7px 3px;font-size:11px;line-height:1.3}
#result #retry-save{margin:3px 0;min-height:36px;color:#b50b26}
@media(max-width:760px){
 #home .welcome-brands{padding:12px 18px 0;gap:12px;align-items:center}
 #home .welcome-brands .corporate-brand{padding-top:0}
 #home .welcome-brands .game-identity p{margin-top:4px}
 #home .landing{padding:0 18px 18px;row-gap:14px}
 #home .intro h1{font-size:clamp(31px,8.8vw,50px);line-height:1.04;letter-spacing:-1.6px;margin:13px 0 8px}
 #home .lead{font-size:13px;line-height:1.35;margin:7px 0 10px}
 #home .player-form{margin-top:10px}
 #home .player-fields{gap:9px}
 #home .player-fields label,#home .player-form .email-field{gap:4px;font-size:10px}
 #home .player-fields input,#home .player-form .email-field input{padding:9px 10px;font-size:16px;height:38px}
 #home .player-form .email-field{margin-top:8px}
 #home .player-form p{font-size:10px;line-height:1.3;margin:7px 0}
 #home .player-form .consent-row{font-size:10px;line-height:1.3;margin-top:7px;gap:7px}
 #home .remembered-player{padding:12px;margin-top:10px}
 #home .remembered-player h2{font-size:20px;margin:0 0 5px}
 #home .remembered-player p{margin:4px 0;font-size:12px}
 #home .remembered-player .plain{min-height:36px;padding:7px 0}
 #home .launch,#home .home-help-button{min-height:60px;padding:7px 6px}
 #home .preview-scene{height:200px;max-width:300px;margin:0 auto 4px}
 #home .scene-note{font-size:10px;padding:6px 8px}
 #home .scene-note span{font-size:20px}
 #home .scene-label{font-size:7px;padding:5px 7px}
}
@media(max-width:760px) and (max-height:740px){#home .preview-scene{display:none}#home .landing{row-gap:11px}#home .launch-actions{padding-bottom:7px}}
@media(max-width:360px){#result{padding:13px 14px}#result>h2{font-size:22px}#result .records-header h3{font-size:16px}#result .result-score strong{font-size:44px}}
@media(prefers-reduced-motion:reduce){.deck-flyer{display:none!important}}
@media(min-width:620px) and (max-height:520px){
 #result{max-width:790px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:22px;row-gap:3px;padding:14px 20px}
 #result:not([open]){display:none}
 #result>.eyebrow,#result>h2,#result>.result-score,#result>#record-message,#result>#retry-save,#result>#again,#result>#back-home,#result>.result-catalog{grid-column:1}
 #result>.eyebrow{grid-row:1}#result>h2{grid-row:2;font-size:22px;margin:2px 0}#result>.result-score{grid-row:3;margin:0}#result .result-score strong{font-size:42px}
 #result>#record-message{grid-row:4;margin:2px 0}#result>#retry-save{grid-row:5}#result>#again{grid-row:6;margin:5px 0 7px;min-height:44px}#result>#back-home{grid-row:7;min-height:32px}#result>.result-catalog{grid-row:8;padding:4px}
 #result>.records-section{grid-column:2;grid-row:1/9;margin:0;padding:0;border:0;align-self:center}
}

/* Champion presentation: finite, transform-only effects; no extra page overlay. */
#result.champion{border:3px solid #e7b329;background:linear-gradient(145deg,#fff6d8,#fffdf7 50%,#fff2c5);box-shadow:0 0 0 5px #ffce4426,0 25px 100px #0005}
#result.champion #result-title{color:#966000;text-transform:uppercase;letter-spacing:-.7px;font-weight:900}
#result.champion #result-title:before{content:'★  N.º 1 · EN FOCO  ★';display:block;font-size:11px;letter-spacing:2px;margin-bottom:6px;color:#a26b00}
#result.champion #result-score{color:#a66a00;text-shadow:0 2px 0 #fff,0 5px 16px #eeb72740}
#result.champion .leaderboard .your-record{background:linear-gradient(100deg,#ffd553,#fff1b9);border:1px solid #dcaa22;border-radius:7px;font-weight:800}
#result.champion .your-record .rank{color:#855000;font-weight:900}
#result.champion #record-message{font-weight:700;color:#805113}
#record-sparks{z-index:3;contain:strict}
#record-sparks i{top:42%;width:7px;height:12px;border-radius:2px;animation:champion-confetti 2.8s var(--delay) cubic-bezier(.15,.5,.4,1) both}
#record-sparks i:nth-child(3n){width:9px;height:9px;border-radius:50%}
@keyframes champion-confetti{0%{transform:translate(0,30px) rotate(0);opacity:0}8%{opacity:1}35%{transform:translate(var(--dx),var(--rise)) rotate(160deg);opacity:1}100%{transform:translate(var(--drift),500px) rotate(var(--spin));opacity:0}}
@keyframes champion-entry{0%{transform:scale(.88);opacity:.4}65%{transform:scale(1.025);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes champion-score{0%{transform:scale(.8)}50%{transform:scale(1.16)}100%{transform:scale(1)}}
@keyframes champion-rank{0%{transform:translateX(28px);opacity:0}100%{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:no-preference){#result.champion{animation:champion-entry .6s ease-out both}#result.champion #result-score{animation:champion-score .75s .15s ease-out both}#result.champion .your-record{animation:champion-rank .6s .25s ease-out both}}
@media(prefers-reduced-motion:reduce){#result.champion,#result.champion #result-score,#result.champion .your-record{animation:none}#record-sparks{display:none}}

/* Compact arcade controls and more room for the playing cards. */
#play .play-tools{display:flex;align-items:center;gap:10px}
#play .play-tools .game-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 16px;border:2px solid #9d0923;border-radius:14px;background:#ed1736;color:#fff;box-shadow:0 4px 0 #a50b26;font-size:14px;font-weight:900;line-height:1;transition:transform .12s,box-shadow .12s}
#play .play-tools .game-control svg{width:15px;height:15px;fill:currentColor;flex-shrink:0}
#play .play-tools .help-trigger{width:44px;height:44px;padding:0;background:#ffcf4b;color:#372400;border-color:#9d7417;box-shadow:0 4px 0 #ae7a0d;font-size:26px;font-weight:900;transform:rotate(-4deg)}
#play .play-tools .game-control:hover{transform:translateY(-2px)}
#play .play-tools .game-control:active{transform:translateY(3px);box-shadow:0 1px 0 #8d651c}
#play .play-signature{gap:12px}
#play .board{margin-top:18px}
@media(min-width:761px) and (min-height:521px){
 #play .game-shell{max-width:1020px}
 #play .board{max-width:920px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:24px}
 #play .board .card:not(.deck-flyer){width:100%;height:auto;max-width:420px;aspect-ratio:1;justify-self:center}
 #play .feedback{margin-top:22px}
}
@media(max-width:760px), (max-width:1000px) and (max-height:520px){
 #play .play-header{padding:2px 8px 5px;gap:4px;flex-basis:48px;min-height:48px;height:48px}
 #play .play-signature{gap:4px}
 #play .play-signature .play-cinemarket{width:92px}
 #play .play-signature .brand{width:64px}
 #play .play-header .audio-controls{gap:2px}
 #play .audio-toggle{width:32px;height:36px;padding:6px}
 #play .play-tools{gap:4px;margin-left:0}
 #play .play-tools .help-trigger{width:36px;height:36px;min-height:36px;font-size:24px;padding:0;border-radius:11px}
 #play .play-tools #finish{min-height:36px;height:36px;width:64px;padding:5px 4px;font-size:11px;border-radius:11px;gap:0}
 #play .play-tools #finish svg{display:none}
 #play .board{margin-top:0}
}
@media(max-width:359px){#play .play-signature .play-cinemarket{width:72px}#play .play-signature .brand{width:44px}}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 #play .game-shell{grid-template-rows:minmax(0,1fr) 22px;padding-top:4px}
 #play .board{grid-row:1;margin-top:0}
 #play .feedback{grid-row:2}
}
@media(prefers-reduced-motion:reduce){#play .play-tools .game-control{transition:none}}

/* Larger in-game signatures, with a dedicated logo row on narrow phones. */
#play .play-signature .play-cinemarket{width:210px}
#play .play-signature .brand{width:140px}
@media(max-width:760px), (max-width:1000px) and (max-height:520px){
 #play .play-signature .play-cinemarket{width:128px}
 #play .play-signature .brand{width:88px}
}
@media(max-width:520px) and (orientation:portrait){
 #play .play-header{display:grid;grid-template-columns:1fr auto;grid-template-rows:40px 36px;gap:3px 12px;flex-basis:88px;height:88px;min-height:88px;padding:3px 12px 6px}
 #play .play-signature{grid-column:1/-1;grid-row:1;justify-self:center;gap:16px}
 #play .play-signature .play-cinemarket{width:154px}
 #play .play-signature .brand{width:106px}
 #play .play-header .in-game-controls{grid-column:1;grid-row:2;margin-left:0;justify-self:start}
 #play .play-tools{grid-column:2;grid-row:2;justify-self:end}
}
@media(max-width:359px) and (orientation:portrait){
 #play .play-signature .play-cinemarket{width:142px}
 #play .play-signature .brand{width:98px}
}

/* Match the welcome screen to the red playing surface. */
body:has(#home:not([hidden])){background:var(--red)}
#home{min-height:100dvh;background:var(--red);color:#fff}
#home .welcome-brands{background:var(--paper);max-width:none;padding-left:max(40px,calc((100vw - 1160px)/2));padding-right:max(40px,calc((100vw - 1160px)/2));padding-bottom:22px}
#home .landing{padding-top:28px}
#home .intro h1{color:#fff}
#home .intro h1 em{color:#ffe081}
#home .lead,#home .asset-status,#home .player-form p,#home .player-fields label,#home .player-form .email-field,#home .player-form .consent-row,#home .player-form .consent-row small{color:#fff}
#home .player-form .consent-row a{color:#fff;font-weight:700;text-decoration-thickness:1px}
#home .player-form .consent-row input{accent-color:#201f23}
#home .player-fields input:focus,#home .email-field input:focus{outline:3px solid #ffe081;outline-offset:2px}
#home .preview-scene{background:#cc1230}
#home .launch.challenge{background:#fffdf5;color:#a50b26;border-color:#870e23;box-shadow:0 7px 0 #970b25}
#home .launch.practice{border-color:#8c6013;box-shadow:0 7px 0 #9f1029}
#home .home-help-button{box-shadow:0 5px 0 #970b25}
#home .start-error{background:#fff4d5;color:#6b1820;padding:10px 12px;border-radius:10px}
#home .remembered-player{border-color:#fff5;box-shadow:0 5px 0 #a50b262e}
#home button:focus-visible{outline-color:#ffe081}
@media(max-width:760px){
 #home .welcome-brands{padding-left:22px;padding-right:22px;padding-bottom:18px}
 #home .landing{padding-top:18px}
}

/* Center the two home brands on a shared vertical axis. */
#home .welcome-brands{align-items:center;padding-top:24px;padding-bottom:24px}
#home .welcome-brands .corporate-brand{padding-top:0}
#home .welcome-brands .corporate-brand img{width:335px}
@media(max-width:760px){
 #home .welcome-brands{align-items:center;gap:4%;padding-top:20px;padding-bottom:20px}
 #home .welcome-brands .game-identity{width:45%;flex-shrink:0}
 #home .welcome-brands .game-identity img{width:100%;max-width:100%}
 #home .welcome-brands .corporate-brand{width:51%;max-width:51%;margin-left:0;padding-top:0;flex-shrink:0}
 #home .welcome-brands .corporate-brand img{width:100%;max-width:100%}
}

/* Lightweight arcade countdown: transform/opacity animations, no blur or canvas. */
#countdown{background:#ed1736;color:#fff;backdrop-filter:none;isolation:isolate;overflow:hidden;padding:max(22px,env(safe-area-inset-top)) 22px max(22px,env(safe-area-inset-bottom));gap:15px}
#countdown::before{content:'';position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at center,#ff6a5826 0,transparent 65%),repeating-conic-gradient(from 12deg at 50% 54%,#b900271c 0deg 15deg,transparent 15deg 30deg)}
#countdown .countdown-brand{padding:12px 19px 10px;background:#fffaf0;border:3px solid #201f23;border-radius:17px;box-shadow:0 5px 0 #930d28;transform:rotate(-4deg)}
#countdown .countdown-brand img{display:block;width:160px;height:auto;mix-blend-mode:multiply}
#countdown .countdown-title{font-size:clamp(28px,5vw,46px);line-height:1.05;letter-spacing:-1.3px;margin:11px 0 0;font-weight:900;text-shadow:0 3px 0 #a80b27}
#countdown #countdown-greeting{color:#fff6dc;background:#980a2d55;border:1px solid #ffced04d;padding:8px 17px;border-radius:99px;font-size:16px;line-height:1.2;margin:0;max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#countdown .countdown-disc{position:relative;display:grid;place-items:center;width:clamp(210px,30vw,300px);aspect-ratio:1;margin:20px 0;background:#fffaf0;border:4px solid #201f23;border-radius:50%;box-shadow:0 10px 0 #960b27,0 0 0 12px #ffcf4b26}
#countdown .countdown-disc::after{content:'';position:absolute;inset:10px;border:2px dashed #ed173633;border-radius:50%;pointer-events:none}
#countdown .countdown-orbit{position:absolute;inset:-22px;border:3px dashed #ffe081b3;border-radius:50%;animation:countdown-orbit 12s linear infinite;pointer-events:none}
#countdown #countdown-number{min-height:0;width:100%;height:100%;font-size:clamp(110px,18vw,166px);color:#ed1736;font-weight:900;line-height:1;letter-spacing:-7px;text-shadow:0 5px 0 #ffd85c;z-index:1}
#countdown #countdown-number.go{font-size:clamp(35px,6vw,52px);letter-spacing:-2px;color:#9a1330;text-shadow:0 3px 0 #ffcf4b;transform:rotate(-5deg)}
#countdown[data-phase="go"] .countdown-disc{background:#ffcf4b}
#countdown .countdown-note{display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;max-width:320px;font-size:12px;line-height:1.4;font-weight:700;background:#a20b2a66;padding:10px 14px;border-radius:13px}
#countdown .countdown-note svg{width:23px;height:23px;flex-shrink:0;color:#ffe081}
#countdown .countdown-doodles{position:absolute;inset:0;z-index:-1;pointer-events:none}
#countdown .doodle{position:absolute;width:88px;height:88px;display:grid;place-items:center;border:3px solid #201f23;border-radius:24px;background:#fffaf0;box-shadow:0 6px 0 #960b27;animation:countdown-float 2.6s ease-in-out infinite;--tilt:-14deg}
#countdown .doodle img{width:76%;height:76%;object-fit:contain}
#countdown .d1{left:max(4%,calc(50% - 430px));top:24%;--tilt:-15deg}
#countdown .d2{right:max(4%,calc(50% - 430px));top:28%;--tilt:14deg;animation-delay:-.8s}
#countdown .d3{left:max(8%,calc(50% - 360px));bottom:18%;--tilt:12deg;animation-delay:-1.4s}
#countdown .d4{right:max(8%,calc(50% - 360px));bottom:14%;--tilt:-12deg;animation-delay:-2s}
#countdown .countdown-star{position:absolute;color:#ffcf4b;font-size:62px;text-shadow:0 3px 0 #a80b27;animation:countdown-spark 1.6s ease-in-out infinite}
#countdown .star-a{top:12%;right:20%;transform:rotate(12deg)}
#countdown .star-b{bottom:12%;left:20%;font-size:42px;animation-delay:-.8s}
@keyframes countdown-orbit{to{transform:rotate(360deg)}}
@keyframes countdown-float{0%,100%{transform:translateY(0) rotate(var(--tilt))}50%{transform:translateY(-13px) rotate(calc(var(--tilt) + 6deg))}}
@keyframes countdown-spark{0%,100%{scale:.85;opacity:.65}50%{scale:1.12;opacity:1}}
@media(max-width:600px){
 #countdown{gap:13px}
 #countdown .countdown-brand img{width:140px}
 #countdown .countdown-title{font-size:32px}
 #countdown .countdown-disc{width:min(62vw,260px);margin:27px 0}
 #countdown .doodle{width:58px;height:58px;border-width:2px;border-radius:17px}
 #countdown .d1{left:-12px;top:21%}#countdown .d2{right:-10px;top:25%}
 #countdown .d3{left:0;bottom:1%}#countdown .d4{right:-6px;bottom:0%}
 #countdown .star-a{right:6%;top:10%;font-size:42px}#countdown .star-b{left:9%;bottom:8%;font-size:34px}
}
@media(max-height:620px){
 #countdown{gap:8px}
 #countdown .countdown-brand{padding:8px 14px}#countdown .countdown-brand img{width:110px}
 #countdown .countdown-title{font-size:28px;margin-top:5px}
 #countdown #countdown-greeting{font-size:14px;padding:6px 12px}
 #countdown .countdown-disc{width:min(48vh,200px);margin:20px 0}
 #countdown #countdown-number{font-size:100px}
 #countdown #countdown-number.go{font-size:33px}
 #countdown .countdown-note{font-size:11px;padding:8px 12px}
}
@media(max-height:440px) and (orientation:landscape){
 #countdown{display:grid;grid-template-columns:1fr 210px 1fr;grid-template-rows:auto auto auto;column-gap:28px;align-content:center;justify-items:center;padding:18px 45px}
 #countdown .countdown-brand{grid-column:1;grid-row:1}
 #countdown .countdown-title{grid-column:1;grid-row:2;font-size:26px}
 #countdown #countdown-greeting{grid-column:1;grid-row:3;max-width:240px}
 #countdown .countdown-disc{grid-column:2;grid-row:1/4;width:190px;margin:0}
 #countdown .countdown-note{grid-column:3;grid-row:1/4;max-width:185px}
 #countdown .doodle{opacity:.35;width:46px;height:46px}#countdown .d1{top:4%;left:4%}#countdown .d2{top:4%;right:4%}#countdown .d3{bottom:3%;left:9%}#countdown .d4{bottom:3%;right:7%}
 #countdown .countdown-star{display:none}
}
@media(prefers-reduced-motion:reduce){#countdown .countdown-orbit,#countdown .doodle,#countdown .countdown-star{animation:none}}

:root:fullscreen{background:#ed1736}
:root:-webkit-full-screen{background:#ed1736}
#play .play-tools #leave-fullscreen{padding:0;width:44px;height:44px;min-height:44px;flex-shrink:0;background:#fffaf0;color:#201f23;border-color:#a79c89;box-shadow:0 4px 0 #b4a894}
#play .play-tools #leave-fullscreen svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px), (max-width:1000px) and (max-height:520px){#play .play-tools #leave-fullscreen{width:36px;height:36px;min-height:36px;border-radius:11px}#play .play-tools #leave-fullscreen svg{width:20px;height:20px}}

/* Carry the countdown's paper stickers, ink outlines and arcade depth into the UI. */
#home,#play{background-color:#ed1736;background-image:radial-gradient(ellipse at 50% 45%,#ff765522,transparent 67%),repeating-conic-gradient(from 12deg at 50% 48%,#b9002714 0deg 15deg,transparent 15deg 30deg)}
#home .welcome-brands{background:transparent;isolation:isolate;position:relative;padding-top:32px;padding-bottom:30px}
#home .welcome-brands .game-identity,#home .welcome-brands .corporate-brand{position:relative;isolation:isolate}
#home .welcome-brands .game-identity::before,#home .welcome-brands .corporate-brand::before{content:'';position:absolute;inset:-12px -16px;background:#fffaf0;border:3px solid #201f23;border-radius:19px;box-shadow:0 6px 0 #950c29;z-index:-1;pointer-events:none}
#home .welcome-brands .game-identity::before{transform:rotate(-2deg)}
#home .welcome-brands .corporate-brand::before{transform:rotate(1.5deg)}
#home .intro h1{text-shadow:0 3px 0 #9a0b29}
#home .intro h1 em{color:#ffe081;text-shadow:0 3px 0 #9a0b29}
#home .lead{font-weight:500}
#home .remembered-player{background:#fffaf0;border:3px solid #201f23;border-radius:20px;box-shadow:0 7px 0 #990a29}
#home .remembered-player h2{font-weight:900}
#home .player-fields input,#home .email-field input{border:2px solid #201f23;border-radius:12px;box-shadow:0 3px 0 #950c29;background:#fffaf0}
#home .player-form .consent-row input{accent-color:#201f23}
#home .launch,#home .home-help-button{border:3px solid #201f23;box-shadow:0 7px 0 #920c29,0 9px 0 #201f2322}
#home .launch.practice{background:#ffcf4b}
#home .launch.challenge{background:#fffaf0;color:#a30c29}
#home .launch.challenge{position:relative}#home .launch.challenge::after{content:'';position:absolute;right:11px;top:10px;width:16px;height:16px;background:#a30c29;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);pointer-events:none}
#home .launch.challenge{gap:10px}
#home .home-help-button{background:#fffaf0;color:#201f23}
#home .home-help-button>span{background:#ffcf4b;color:#201f23;border:2px solid #201f23;border-radius:9px}
#home .preview-scene{background:#a7092a2e;border:2px dashed #ffcf4b66}
#home .preview-card{border:3px solid #201f23;background:#fffaf0;box-shadow:0 8px 0 #b5a793,0 10px 0 #201f23}
#home .preview-card.one{animation:arcade-card-one 6s ease-in-out infinite}
#home .preview-card.two{animation:arcade-card-two 7s ease-in-out infinite}
#home .scene-note,#home .scene-label{border:2px solid #201f23;box-shadow:0 4px 0 #201f2329}
#home .spark{color:#ffcf4b;text-shadow:0 3px 0 #8a0c28;animation:arcade-spark 3s ease-in-out infinite}
#play .play-header{border-bottom:3px solid #201f23}
#play .scorebar{border:3px solid #201f23;background:#fffaf0;border-radius:20px;box-shadow:0 5px 0 #ffcf4b,0 7px 0 #990a29;animation:arcade-panel-in .35s ease-out both}
#play .scorebar .stat-label{color:#504a43;font-weight:900}
#play .scorebar>div:first-child strong{background:#ffcf4b;color:#201f23;border:2px solid #201f23;border-radius:10px;padding:3px 10px;box-shadow:0 3px 0 #b8891f;min-width:44px;text-align:center;width:max-content;font-variant-numeric:tabular-nums}
#play .scorebar .round b{background:#201f23;color:#fffaf0;padding:5px 9px;border-radius:9px;font-weight:800}
#play .scorebar.timed .clock{outline:2px solid #201f23;outline-offset:1px}
#play .timed .timer-disc{background:#fff1c3}
#play .clock.urgent .timer-disc{background:#ed1736}
#play .clock.urgent #clock,#play .clock.urgent #clock-label{color:white}


#play .feedback{border-radius:99px;background:#970d2966;border:1px solid #fff3;color:#fffaf0;font-weight:800;padding-left:12px;padding-right:12px;align-self:center;width:100%}
#play .feedback.good{background:#096e40;border-color:#1bd383;animation:arcade-notice .25s ease-out}
#play .feedback.bad{background:#201f23;color:#ffe081;border-color:#ffcf4b;animation:arcade-notice .25s ease-out}
#play .audio-toggle{border:2px solid #201f23;background:#fffaf0;box-shadow:0 3px 0 #c4b8a5}
#result{border:3px solid #201f23;background:#fffaf0;box-shadow:0 9px 0 #940d29,0 25px 100px #0003}
#result #again{background:#ffcf4b;color:#201f23;border:3px solid #201f23;box-shadow:0 5px 0 #b8891f}
@keyframes arcade-card-one{0%,100%{transform:translateY(0) rotate(-14deg)}50%{transform:translateY(-7px) rotate(-11deg)}}
@keyframes arcade-card-two{0%,100%{transform:translateY(0) rotate(10deg)}50%{transform:translateY(7px) rotate(7deg)}}
@keyframes arcade-spark{0%,100%{scale:.9}50%{scale:1.06}}
@keyframes arcade-panel-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes arcade-notice{from{transform:scale(.97);opacity:.7}to{transform:scale(1);opacity:1}}
@media(hover:hover){#home .launch:hover,#home .home-help-button:hover{transform:translateY(-3px)}#home .launch:active,#home .home-help-button:active{transform:translateY(4px);box-shadow:0 2px 0 #920c29}}
@media(max-width:760px){
 #home .welcome-brands{padding-top:25px;padding-bottom:25px}
 #home .welcome-brands .game-identity::before,#home .welcome-brands .corporate-brand::before{inset:-8px -5px;border-width:2px;border-radius:13px;box-shadow:0 4px 0 #950c29}
 #home .intro h1{text-shadow:0 2px 0 #9a0b29}
 #home .launch.challenge::after{width:12px;height:12px;top:8px;right:8px}
 #home .launch.challenge{gap:6px}
 #play .scorebar{border-radius:15px}
 #play .scorebar .round b{font-size:10px;padding:4px 7px}
 #play .scorebar>div:first-child strong{padding:2px 8px;border-radius:8px;min-width:40px}
 #play .feedback{font-size:10px}
}
@media(max-width:359px){#home .launch{font-size:19px}#home .launch.challenge::after{width:10px;height:10px}#home .launch.challenge{gap:4px}}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){#play .scorebar{box-shadow:3px 0 0 #ffcf4b,5px 0 0 #990a29}}
@media(prefers-reduced-motion:reduce){#home .preview-card,#home .spark,#play .scorebar,#play .feedback.good,#play .feedback.bad{animation:none}}
@media(max-width:760px) and (max-height:620px){#home .welcome-brands{padding-top:20px;padding-bottom:20px}}
@media(max-width:760px) and (max-height:620px){#home .landing{padding-bottom:16px}}

/* Restore the clear home header and add the corporate logo to the countdown. */
#home .welcome-brands{background:var(--paper);border-bottom:3px solid #201f23;padding-top:24px;padding-bottom:24px}
#home .welcome-brands .game-identity::before,#home .welcome-brands .corporate-brand::before{display:none}
#countdown .countdown-brands{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:100%}
#countdown .countdown-corporate{padding:12px 18px;background:#fffaf0;border:3px solid #201f23;border-radius:16px;box-shadow:0 5px 0 #930d28;transform:rotate(2deg);max-width:100%}
#countdown .countdown-corporate img{display:block;width:290px;max-width:100%;height:auto;mix-blend-mode:multiply}
@media(max-width:760px){#home .welcome-brands{padding-top:20px;padding-bottom:20px}}
@media(max-width:600px){#countdown .countdown-brands{gap:10px}#countdown .countdown-corporate{padding:10px 15px}#countdown .countdown-corporate img{width:min(72vw,280px)}}
@media(max-height:620px){#countdown .countdown-brands{gap:8px}#countdown .countdown-corporate{padding:8px 13px}#countdown .countdown-corporate img{width:min(72vw,240px)}}
@media(max-width:760px) and (max-height:620px){#home .landing{padding-bottom:12px}}
@media(max-height:440px) and (orientation:landscape){
 #countdown{grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr)}
 #countdown .countdown-brands{grid-column:1;grid-row:1;width:100%;max-width:220px;gap:9px}
 #countdown .countdown-brand{width:100%;max-width:160px;padding:7px 12px}
 #countdown .countdown-brand img{width:100%}
 #countdown .countdown-corporate{width:100%;max-width:220px;padding:8px 10px}
 #countdown .countdown-corporate img{width:100%}
}
#home .welcome-brands .game-identity,#home .welcome-brands .corporate-brand{isolation:auto}

/* Rondas uses compositor rotation on the real card, including its buttons. */
.rounds-rotating>#card-a{animation:rounds-spin var(--spin-duration) linear infinite;transform-origin:center}
.rounds-rotating>#card-b{animation:rounds-spin var(--spin-duration) linear infinite reverse;transform-origin:center}
@keyframes rounds-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.rounds-scorebar #score{font-size:clamp(24px,4vw,40px);white-space:nowrap}
.rounds-scorebar .round b{white-space:nowrap}
.collection-action{display:flex;justify-content:center;margin:14px 0 6px}
.collection-action button{background:#fff5d7;color:#17191a;border:2px solid #161819;border-radius:14px;padding:10px 16px;box-shadow:3px 3px 0 #161819;font-weight:800;min-height:44px}
.collection-action span{margin-left:10px;color:#a20a23}
#mode-picker,#stage-result,#medals-dialog{background:#fff8e9;color:#17191a;border:3px solid #141617;border-radius:24px;box-shadow:8px 8px 0 #111;max-width:min(580px,calc(100vw - 28px));width:580px;padding:26px;max-height:calc(100dvh - 28px);overflow:auto}
#mode-picker::backdrop,#stage-result::backdrop,#medals-dialog::backdrop{background:#31000bc9;backdrop-filter:blur(4px)}
#mode-picker h2,#stage-result h2,#medals-dialog h2{font-size:clamp(27px,5vw,40px);margin:10px 0 18px;line-height:1.05}
.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mode-option{border:3px solid #17191a;border-radius:18px;background:#ffc83d;text-align:left;padding:18px 16px;box-shadow:4px 5px 0 #17191a;color:#17191a;cursor:pointer;transition:transform .15s}
.mode-option:hover{transform:translateY(-3px)}
.mode-option b{font-size:25px;display:block;line-height:1.1}
.mode-option small{font-size:14px;display:block;line-height:1.45;margin-top:10px}
.mode-option.rounds-option{background:#ed1736;color:white}
.mode-badge{display:inline-block;background:#17191a;color:#fff7df;border-radius:8px;padding:4px 9px;font-size:12px;font-weight:850;margin-bottom:12px;letter-spacing:.04em}
.rounds-rules{font-size:14px;line-height:1.5;margin:20px 0 10px}
.motion-choice{display:flex;gap:10px;align-items:start;font-size:14px;line-height:1.4;cursor:pointer}
.motion-choice input{width:22px;height:22px;flex:0 0 22px;accent-color:#bf1230;margin:0}
.motion-choice small{display:block;color:#60666b}
#stage-summary{line-height:1.45;font-size:17px;margin:0 0 16px}
.medal-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0}
.medal-chip{display:flex;align-items:center;gap:6px;border:1px solid #ddd3bb;border-radius:12px;background:#fff;padding:6px 10px;font-size:13px}
.medal-icon{display:block;color:#d1944a;width:52px;flex:0 0 52px}
.medal-icon svg{display:block;width:100%;height:auto}
.medal-chip .medal-icon{width:30px;flex-basis:30px}
.medal-icon.silver{color:#bfc6d3}.medal-icon.gold{color:#ffd33d}.medal-icon.blue{color:#80c9ef}.medal-icon.purple{color:#bf92eb}.medal-icon.green{color:#64d6a1}.medal-icon.red{color:#ff788d}
.medal-grid{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.medal-tile{background:#fff;border:2px solid #ddd5c5;border-radius:16px;padding:14px;display:grid;justify-items:center;text-align:center;gap:7px}
.medal-tile b{font-size:16px;line-height:1.15}
.medal-tile p{font-size:12px;margin:0;line-height:1.4;color:#62676a}
.medal-tile small{font-size:11px;font-weight:850;color:#787b7d}
.medal-tile.earned{border-color:#212626;box-shadow:2px 3px 0 #ffc83d}
.medal-tile.earned small{color:#087c4c}
.medal-tile.locked .medal-icon{filter:grayscale(1);opacity:.45}
.records-filter{display:flex;align-items:center;gap:10px;font-size:12px;margin:8px 0}
.records-filter select{min-height:40px;max-width:100%;background:white;border:1px solid #c9c9c4;border-radius:8px;padding:8px;color:#17191a;font:inherit;font-weight:700}
.rounds-ranking-detail{display:block;font-size:11px;color:#636b6d}
.preview-notice{background:#ffc83d;color:#17191a;text-align:center;font:700 12px/1.3 system-ui;padding:6px;position:relative;z-index:2}
@media(max-width:420px){#mode-picker,#stage-result,#medals-dialog{padding:20px 16px;border-radius:18px}.mode-options{gap:10px}.mode-option{padding:13px 11px}.mode-option b{font-size:22px}.mode-option small{font-size:12px}.rounds-rules{font-size:12px;margin:15px 0 10px}.medal-grid{gap:8px}.medal-tile{padding:10px 8px}.medal-tile b{font-size:14px}.rounds-scorebar .round b{font-size:13px}.rounds-scorebar #mode-label{font-size:9px}.rounds-scorebar #score{font-size:24px}.collection-action{margin:10px 0 0}.collection-action button{padding:7px 13px}}
@media(max-height:650px){#mode-picker h2,#stage-result h2{font-size:28px;margin:4px 0 12px}.mode-option{padding:12px}.mode-option small{margin-top:6px}.mode-badge{margin-bottom:7px}.rounds-rules{margin:12px 0 8px}.medal-row{margin:6px 0}#result .medal-row:empty{display:none}}
@media(prefers-reduced-motion:reduce){.rounds-rotating>#card-a,.rounds-rotating>#card-b{animation:none}.mode-option{transition:none}}

body:has(#play:not([hidden]))>.preview-notice{display:none}

#result.rounds-complete{border-color:#17191a;background:#fff7df;box-shadow:0 0 0 7px #ffc83d,8px 12px 0 #111}#result.rounds-complete h2{color:#a10e29}

/* Gentle independent drift only in round4; symbols and hit areas move together. */
.rounds-drifting>#card-a{animation-name:rounds-spin,drift-a;animation-duration:var(--spin-duration),6.6s;animation-timing-function:linear,ease-in-out;animation-iteration-count:infinite;animation-direction:normal,alternate}
.rounds-drifting>#card-b{animation-name:rounds-spin,drift-b;animation-duration:var(--spin-duration),7.4s;animation-timing-function:linear,ease-in-out;animation-iteration-count:infinite;animation-direction:reverse,alternate}
@keyframes drift-a{0%{translate:-3px -3px}45%{translate:3px 0}100%{translate:0 3px}}
@keyframes drift-b{0%{translate:3px 3px}55%{translate:-3px 0}100%{translate:0 -3px}}
.progress-note{font-size:14px;font-weight:850;color:#fff7d6;margin:10px 0 0}
.medal-icon{width:72px;flex-basis:72px;position:relative;filter:drop-shadow(0 3px 1px #30251440)}
.medal-icon::after{content:"";position:absolute;inset:5% 8% 24%;border-radius:50%;background:linear-gradient(115deg,transparent 30%,#fff9 48%,transparent 64%);opacity:0;pointer-events:none}
.earned .medal-icon::after,.medal-chip .medal-icon::after{animation:medal-shine 4.2s ease-in-out infinite}
@keyframes medal-shine{0%,40%,100%{opacity:0;transform:scaleX(.5) translateX(-35%)}52%{opacity:.85}65%{opacity:0;transform:scaleX(.8) translateX(30%)}}
.medal-tile.earned{background:linear-gradient(145deg,#fff,#fff3cb);border-color:#ac8b3b;box-shadow:0 3px 0 #b48c43,0 8px 13px #2d140d15}
.medal-tile.locked .medal-icon{filter:grayscale(1);opacity:.5}
.medal-tile p{font-size:12px;line-height:1.35}
#result.round-stage-result{display:none;max-height:calc(100dvh - 18px);width:560px;padding:18px 22px}
#result.round-stage-result[open]{display:flex;flex-direction:column;gap:5px}
#result.round-stage-result .result-score{display:none}
#result.round-stage-result h2{font-size:clamp(26px,5vw,38px);line-height:1.06;margin:2px 0 5px}
#result.round-stage-result #record-message{font-size:14px;line-height:1.35;margin:1px 0 5px;min-height:0}
#result.round-stage-result .eyebrow{font-size:10px}
.earned-summary{display:flex;align-items:center;justify-content:center;gap:10px}
#result .medal-row{margin:0;gap:4px;flex-wrap:nowrap}
#result .medal-chip{padding:0;border:0;background:none;box-shadow:none}
#result .medal-chip .medal-icon{width:38px;flex-basis:38px}
.medals-link{background:none;border:0;border-bottom:1px solid currentColor;color:#b30c2a;font-weight:850;font-size:12px;padding:5px 0;cursor:pointer;min-height:40px}
.ranking-note{font-size:10px;line-height:1.3;color:#6d7373;margin:4px 0}
.your-position{background:#ffda58;color:#302a15;border-radius:8px;padding:5px 10px;text-align:center;font-size:12px;font-weight:900;margin:3px 0}
#result.round-stage-result .records-header{gap:8px;align-items:center}
#result.round-stage-result .records-header h3{font-size:17px}
#result.round-stage-result .leaderboard{max-height:232px;min-height:0}
#result.round-stage-result .leaderboard li{padding:7px 8px;min-height:40px}
#result.round-stage-result .record-points{white-space:nowrap;font-size:17px}
#result.round-stage-result #records-status{font-size:11px;min-height:0;margin:3px 0}
#result.round-stage-result #again{min-height:48px;font-size:19px;justify-content:center;margin-top:5px;padding:10px 16px}
#result.round-stage-result #back-home{min-height:34px;padding:5px;margin:0;font-size:13px}
#result.round-stage-result .result-catalog{font-size:11px;margin:0}
#result.round-stage-result .records-section{margin-top:3px;min-height:0}
#help .motion-choice{margin:12px 0}
@media(max-width:420px){#result.round-stage-result{padding:14px 14px;width:calc(100vw - 20px)}#result.round-stage-result h2{font-size:27px}.medal-icon{width:65px;flex-basis:65px}.medal-tile p{font-size:11px}.progress-note{font-size:12px}#result.round-stage-result .leaderboard li{min-height:39px;padding:5px 6px}#result.round-stage-result .leaderboard{max-height:200px}#result .medal-chip .medal-icon{width:32px;flex-basis:32px}}
@media(max-height:620px){#result.round-stage-result{padding:11px 13px;gap:3px}#result.round-stage-result h2{font-size:25px}#result.round-stage-result .leaderboard{max-height:190px}#result.round-stage-result #again{min-height:44px;font-size:17px}#result.round-stage-result .result-catalog{font-size:10px}#result .medal-chip .medal-icon{width:29px;flex-basis:29px}}
@media(prefers-reduced-motion:reduce){.rounds-drifting>#card-a,.rounds-drifting>#card-b{animation:none;translate:none}.medal-icon::after{animation:none!important;opacity:0!important}}
.medal-grid>.medal-tile::before{display:none}
@media(max-height:620px){
 #result.round-stage-result{padding:9px 11px;gap:3px}
 #result.round-stage-result>.eyebrow{display:none}
 #result.round-stage-result h2{font-size:22px;line-height:1.05;margin:0 0 3px}
 #result.round-stage-result #record-message{font-size:12px;line-height:1.25;margin:0 0 3px}
 #result.round-stage-result .records-header h3{font-size:14px}
 #result.round-stage-result .records-header button{font-size:11px;min-height:28px;padding:3px 6px}
 #result.round-stage-result .ranking-note{font-size:9px;margin:2px 0}
 #result.round-stage-result .your-position{padding:3px 8px;font-size:11px;margin:2px 0}
 #result.round-stage-result .leaderboard{max-height:176px}
 #result.round-stage-result .leaderboard li{font-size:12px;min-height:31px;padding:3px 5px}
 #result.round-stage-result .rounds-ranking-detail{font-size:9px}
 #result.round-stage-result .record-points{font-size:14px}
 #result.round-stage-result #again{min-height:40px;font-size:16px;padding:7px 12px;margin-top:3px}
 #result.round-stage-result #back-home{min-height:26px;padding:3px;font-size:12px}
 #result.round-stage-result .result-catalog{font-size:9px;line-height:1.2}
 #result.round-stage-result .medal-chip .medal-icon{width:24px;flex-basis:24px}
 #result.round-stage-result .medals-link{min-height:28px;padding:2px 0;font-size:11px}
}

/* Round failure: centered, playful, compact. No changes to the playing cards. */
#result.round-failed{border:3px solid #b50d2d;background:linear-gradient(160deg,#fffbee,#fff0d3);box-shadow:0 0 0 4px #ffc947,7px 8px 0 #2c131c;text-align:center;align-items:center}
#result.round-failed h2{width:100%;text-align:center;color:#a60d2a;letter-spacing:-.04em}
#result.round-failed #record-message{width:100%;max-width:440px;text-align:center;color:#5c3d45;text-wrap:balance}
#result.round-failed .earned-summary,#result.round-failed .records-section,#result.round-failed #again,#result.round-failed #back-home{width:100%;box-sizing:border-box}
#result.round-failed .earned-summary:not(:has(.medal-chip)){display:none}
.failure-hero{width:104px;height:78px;position:relative;margin:0 auto 2px;flex:0 0 auto}
.failure-hero svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 4px 0 #50212b25)}
.round-failed .failure-hero{animation:failure-pop .6s cubic-bezier(.2,.8,.2,1) both}
@keyframes failure-pop{0%{opacity:0;transform:translateY(-14px) rotate(-16deg) scale(.7)}65%{opacity:1;transform:translateY(2px) rotate(5deg) scale(1.06)}100%{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
.failure-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:240px;margin:2px auto 6px}
.failure-stats>div{background:#fff8e8;border:2px solid #e9bd6b;border-radius:12px;padding:7px 12px;box-shadow:0 3px 0 #dfc78b;display:flex;align-items:center;justify-content:center;gap:10px}
.failure-stats>div:first-child{background:#ffe46f;border-color:#7b442e}
.failure-stats small{font-size:10px;font-weight:850;line-height:1.1;text-transform:uppercase;max-width:48px;color:#5e3b37}
.failure-stats strong{font-size:29px;line-height:1;font-weight:950;color:#a10d2b}
#result.round-failed .records-header{position:relative;display:block;min-height:24px;text-align:center}
#result.round-failed .records-header>div{width:100%;padding:0 30px;box-sizing:border-box}
#result.round-failed .records-header h3{text-align:center;margin:0 auto}
#result.round-failed #refresh-records{position:absolute;right:0;top:-3px;font-size:0!important;width:28px;height:28px;min-height:28px;padding:5px;display:flex;align-items:center;justify-content:center}
#result.round-failed #refresh-records svg{width:16px;height:16px;flex:0 0 16px}
#result.round-failed .ranking-note,#result.round-failed #records-status{text-align:center}
#result.round-failed .leaderboard{text-align:left}
#result.round-failed #again{background:linear-gradient(#ff3c59,#d51036);color:white;border-color:#351a22;box-shadow:0 4px 0 #351a22,0 7px 0 #ffc947;border-radius:15px;text-shadow:0 1px 0 #6c102c;font-weight:900;justify-content:center}
#result.round-failed #again:hover{background:linear-gradient(#ff5872,#e91a40);transform:translateY(-1px)}
#result.round-failed #again:active{transform:translateY(3px);box-shadow:0 1px 0 #351a22}
#result.round-failed #back-home,#result.round-failed .result-catalog{align-self:center;justify-content:center;text-align:center}
@media(max-width:420px){.failure-hero{width:83px;height:62px}.failure-stats{max-width:225px;margin:1px auto 4px}.failure-stats>div{padding:6px 9px}.failure-stats strong{font-size:26px}#result.round-failed h2{font-size:28px}#result.round-failed #record-message{font-size:12px}}
@media(max-height:620px){
 #result.round-failed{gap:3px;padding:8px 11px}
 #result.round-failed h2{font-size:22px;line-height:1.08;margin:0 0 2px}
 #result.round-failed #record-message{font-size:11px;line-height:1.2;margin:0 0 2px}
 .failure-hero{width:58px;height:40px;margin:0 auto}
 .failure-stats{max-width:210px;margin:0 auto 4px;gap:7px}
 .failure-stats>div{padding:4px 8px;border-radius:9px;gap:8px;box-shadow:0 2px 0 #dfc78b}
 .failure-stats small{font-size:8px;max-width:34px}.failure-stats strong{font-size:22px}
 #result.round-failed .records-header{min-height:20px}
 #result.round-failed .records-header h3{font-size:14px;line-height:20px}
 #result.round-failed #refresh-records{top:-3px;min-height:25px;width:25px;height:25px}
 #result.round-failed #again{margin-top:2px;min-height:38px;font-size:15px;padding:6px 8px}
 #result.round-failed .ranking-note{font-size:8px;margin:1px 0}
 #result.round-failed .records-section{margin-top:2px}
}
@media(prefers-reduced-motion:reduce){.round-failed .failure-hero{animation:none}#result.round-failed #again{transition:none;transform:none}}

/* A compact trophy shelf shares the existing points column. No cards are blocked. */
#play .medal-dock{display:flex;gap:2px;align-items:center;min-height:21px;margin-top:3px;line-height:0}
.medal-slot{display:block;width:19px;flex:0 0 19px}.medal-slot .medal-icon{width:100%;filter:drop-shadow(0 1px 1px #30251440)}
.medal-slot.locked{opacity:.16;filter:grayscale(1)}.medal-slot.pending{opacity:0}
#medal-flight-layer{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden}
.medal-flight{position:absolute;left:calc(50% - 54px);top:calc(45% - 62px);width:108px;height:124px;transform-origin:50% 50%;pointer-events:none;filter:drop-shadow(0 5px 10px #36130b66)}
.medal-flight .medal-icon{width:108px;filter:drop-shadow(0 0 10px #ffe783)}
.medal-flight .medal-icon::after{opacity:.8;background:linear-gradient(120deg,transparent 30%,#fff9 48%,transparent 64%)}
.medal-flight b{position:absolute;left:50%;top:100%;transform:translateX(-50%);white-space:nowrap;background:#fff4c8;border:2px solid #201f23;border-radius:16px;padding:7px 14px;color:#30221e;font-size:16px;box-shadow:0 3px 0 #ca8e19}
.medal-live-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){#play .medal-dock{gap:1px;min-height:17px;margin-top:2px;max-width:96px;flex-wrap:wrap}.medal-slot{width:14px;flex-basis:14px}.medal-flight,.medal-flight .medal-icon{width:88px}.medal-flight{left:calc(50% - 44px);top:calc(45% - 51px);height:102px}.medal-flight b{font-size:14px}}
@media(max-width:360px){#play .medal-dock{max-width:75px;gap:1px}.medal-slot{width:11px;flex-basis:11px}}
@media(max-height:520px) and (orientation:landscape){#play .medal-dock{max-width:86px}.medal-slot{width:12px;flex-basis:12px}}

#final-trumpets{height:60px;width:230px;max-width:70%;margin:0 auto;pointer-events:none}
#final-trumpets svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 0 #b6792555)}
#final-trumpets .horn-left{transform-origin:60px 40px;animation:trumpet-victory .75s ease-in-out 4}
#final-trumpets .horn-right{transform-origin:180px 40px;animation:trumpet-victory .75s .15s ease-in-out 4 reverse}
#final-trumpets .music-note{animation:trumpet-note 1.2s ease-out 3;transform-origin:center}
@keyframes trumpet-victory{0%,100%{rotate:-4deg;scale:.98}50%{rotate:4deg;scale:1.08}}
@keyframes trumpet-note{0%{opacity:0;translate:0 5px}30%{opacity:1}100%{opacity:0;translate:0 -9px}}
@media(max-height:620px){#final-trumpets{height:34px;width:180px;margin:0 auto}#result.rounds-complete .leaderboard{max-height:170px}}
@media(prefers-reduced-motion:reduce){#final-trumpets *{animation:none!important}}

/* One shared centre axis for every result state. Names remain left aligned. */
#result.round-stage-result{align-items:stretch;text-align:center}
#result.round-stage-result>.eyebrow{width:100%;justify-content:center;text-align:center}
#result.round-stage-result #result-title{width:100%;max-width:none;align-self:center;margin-inline:0;text-align:center;text-wrap:balance}
#result.round-stage-result #record-message{width:100%;max-width:none;align-self:center;margin-inline:0;text-align:center;text-wrap:balance}
#result.round-stage-result .earned-summary{width:100%;align-self:center;justify-content:center;align-items:center;margin-inline:0}
#result.round-stage-result .medal-row{justify-content:center;align-items:center}
#result.round-stage-result .medals-link{display:flex;align-items:center;justify-content:center;text-align:center}
#result.round-stage-result .records-section{width:100%;max-width:none;align-self:stretch;margin-inline:0}
#result.round-stage-result .records-header{display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:0;position:relative;min-height:34px;text-align:center}
#result.round-stage-result .records-header>div{grid-column:2;min-width:0;width:100%;padding:0;text-align:center}
#result.round-stage-result .records-header h3{width:100%;margin-inline:0;text-align:center;line-height:1.15;text-wrap:balance}
#result.round-stage-result #refresh-records{position:static;grid-column:3;justify-self:end;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;width:auto;height:auto;min-height:32px;padding:4px 2px;font-size:10px!important;line-height:1}
#result.round-stage-result #refresh-records svg{width:14px;height:14px;flex:0 0 14px;margin:0}
#result.round-stage-result .ranking-note,#result.round-stage-result #records-status{text-align:center}
#result.round-stage-result #again,#result.round-stage-result #back-home{width:100%;align-self:stretch;justify-content:center;text-align:center;margin-inline:0}
#result.round-stage-result .result-catalog{width:100%;max-width:none;align-self:stretch;margin-inline:0;text-align:center;text-wrap:balance}
#result.round-stage-result .leaderboard{text-align:left}
#result.round-stage-result .leaderboard .rank{text-align:center}
#result.round-stage-result .leaderboard .record-points{text-align:right}
@media(max-width:420px){
 #result.round-stage-result .records-header{grid-template-columns:30px minmax(0,1fr) 30px;min-height:30px}
 #result.round-stage-result #refresh-records{width:28px;height:28px;min-height:28px;padding:5px;font-size:0!important;gap:0}
 #result.round-stage-result #refresh-records svg{width:16px;height:16px;flex-basis:16px}
}
@media(max-height:620px){
 #result.round-stage-result .records-header{min-height:24px}
 #result.round-stage-result #refresh-records{min-height:24px;height:24px;padding:3px}
}

/* Small arcade reward ticket, centred below the cards instead of a full bar. */
#play #feedback{
 display:flex;position:relative;align-items:center;justify-content:center;gap:9px;
 width:fit-content;min-width:174px;max-width:min(420px,calc(100% - 24px));height:auto;min-height:38px;
 flex:0 0 auto;align-self:center;justify-self:center;margin:20px auto 7px;padding:6px 16px;
 border:2px solid #241c23;border-radius:13px;
 background:linear-gradient(180deg,#fffaf0,#fff0c7);color:#30232a;
 box-shadow:0 4px 0 #241c23,0 7px 0 #9d0d2b44;
 font-size:13px;font-weight:900;line-height:1.2;text-align:center;text-wrap:balance;
 font-variant-numeric:tabular-nums;pointer-events:none;
}
#play #feedback::before{
 content:'';display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;
 border:1px solid #241c2333;border-radius:50%;background:#ffcf4b;color:#30232a;font-size:14px;line-height:1;
}
#play #feedback.good{background:linear-gradient(180deg,#ffe993,#ffcf4b);color:#30232a;border-color:#241c23;animation:feedback-prize .25s cubic-bezier(.2,.8,.2,1)}
#play #feedback.good::before{content:'';background:#168356;color:#fff;border-color:#095c3b;font-size:15px;font-weight:900}
#play #feedback.bad{background:linear-gradient(180deg,#fff5eb,#ffe0d5);color:#8e1230;border-color:#241c23;animation:feedback-prize .22s ease-out}
#play #feedback.bad::before{content:'';background:#c71b3b;color:#fff;border-color:#a00f2c;font-size:20px}
@keyframes feedback-prize{0%{transform:scale(.88) rotate(-2deg);opacity:.6}65%{transform:scale(1.04) rotate(1deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@media(max-width:760px),(max-width:1000px) and (max-height:520px){
 #play #feedback{min-width:142px;max-width:calc(100% - 16px);min-height:26px;margin:3px auto 4px;padding:3px 12px;gap:6px;font-size:10px;border-radius:10px;box-shadow:0 3px 0 #241c23}
 #play #feedback::before{width:16px;height:16px;flex-basis:16px;font-size:11px}
 #play #feedback.good::before{font-size:12px}
 #play #feedback.bad::before{font-size:16px}
}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 #play .game-shell{grid-template-rows:minmax(0,1fr) 32px}
 #play #feedback{grid-column:2;grid-row:2;margin:0 auto 3px;max-width:calc(100% - 12px)}
}
@media(prefers-reduced-motion:reduce){#play #feedback.good,#play #feedback.bad{animation:none}}

#play #feedback::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27m12%204%202%206%206%202-6%202-2%206-2-6-6-2%206-2z%27%20fill%3D%27%2330232a%27%2F%3E%3C%2Fsvg%3E");background-position:center;background-size:contain;background-repeat:no-repeat}

#play #feedback.good::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27m6%2012%204%204%208-9%27%20stroke%3D%27white%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E");background-position:center;background-size:contain;background-repeat:no-repeat}

#play #feedback.bad::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27m8%208%208%208m0-8-8%208%27%20stroke%3D%27white%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E");background-position:center;background-size:contain;background-repeat:no-repeat}

/* Prize overlay uses the approved artwork without cropping. */
.prize-launch{background:#ffda54!important;color:#242329!important;border:3px solid #242329!important;border-radius:16px!important;font-size:clamp(16px,2.5vw,22px)!important;font-weight:850!important;padding:12px 22px!important;box-shadow:0 5px 0 #a87813!important;cursor:pointer}.prize-launch:focus-visible{outline:3px solid #a92157;outline-offset:4px}.collection-action{gap:14px;flex-wrap:wrap}#result-prize{width:100%;max-width:none;margin:5px auto 12px;display:block}#result-prize[hidden],#home-prize[hidden]{display:none!important}.prize-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 20px));max-width:660px;max-height:calc(100dvh - 20px);overflow:auto;padding:12px;background:#fff8e8;border:3px solid #242329;border-radius:22px;box-shadow:0 10px 0 #9a152c;color:#242329}.prize-dialog::backdrop{background:rgba(30,10,20,.84)}.prize-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 5px 12px}.prize-dialog-header h2{font-size:clamp(19px,4vw,25px);line-height:1.1;margin:0;max-width:none;text-align:left}.prize-dialog-header button{flex:0 0 40px;width:40px;height:40px;border:2px solid #242329;border-radius:12px;background:#ffda54;color:#242329;font-size:29px;line-height:1;cursor:pointer}.prize-dialog img{display:block;width:100%;height:auto;max-height:calc(100dvh - 180px);object-fit:contain;border-radius:13px;background:#d50d25}.prize-reference{font-size:14px;line-height:1.2;font-weight:850;text-align:center;margin:12px 0 7px}.prize-registration{font-size:12px;line-height:1.4;text-align:center;margin:0 5px 4px;color:#69646a}@media(max-height:600px){.prize-dialog{padding:8px}.prize-dialog-header{padding-bottom:6px}.prize-dialog img{max-height:calc(100dvh - 140px)}.prize-reference{margin:8px 0 5px}.prize-registration{font-size:11px}}

/* Separate physical prize and rental bonus. */
.collection-action{flex-wrap:wrap;gap:12px}.bonus-launch{background:#ffe05d!important;color:#201e20!important}.bonus-dialog{background:#151518;color:#fff}.bonus-dialog .prize-dialog-header{background:#151518;color:#fff}.bonus-dialog .prize-dialog-header h2{color:#fff}.bonus-dialog .prize-dialog-header button{color:#fff}.bonus-reference-block{padding:16px 20px;text-align:center;background:#ffe05d;color:#171719}.bonus-reference-block span{display:block;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.bonus-reference-block strong{display:block;margin-top:8px;font-size:clamp(.75rem,2.7vw,1.1rem);overflow-wrap:anywhere;line-height:1.4}.bonus-dialog .prize-registration{color:#eee}.bonus-terms{margin:12px 20px 20px;color:#e7e7e8;font-size:.82rem;line-height:1.5}.bonus-terms summary{cursor:pointer;font-weight:700}.bonus-terms p{margin-top:10px}.bonus-dialog img{background:#151518}

.bonus-poster{position:relative;width:min(100%,60vh);margin:0 auto}.bonus-dialog .bonus-poster img{width:100%;height:auto;max-height:none;display:block}.bonus-poster .bonus-reference-block{position:absolute;left:6.95%;top:70.4%;width:86.27%;height:6.49%;padding:0;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center}.bonus-poster .bonus-reference-block span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.bonus-poster .bonus-reference-block strong{margin:0;padding:0 5px;font:700 clamp(.6rem,1.6vw,.8rem)/1.2 monospace;letter-spacing:0;text-align:center;overflow-wrap:anywhere}

/* Public achievements: only earned medal counts and reward badges. */
#result.round-stage-result .leaderboard,#result.rounds-complete .leaderboard{max-height:300px}
#result .leaderboard li,#result.round-stage-result .leaderboard li,#result.champion .leaderboard .your-record{height:auto;min-height:58px;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 5px}
#result .ranking-player{min-width:0;display:grid;gap:5px;text-align:left}
#result .ranking-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750;line-height:1.2;color:#403c3b}
#result .ranking-achievements{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
#result .ranking-achievement{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;border:1px solid #ddd4bc;border-radius:5px;background:#fff9e9;color:#6b541b;font-size:10px;font-weight:800;line-height:1.2;padding:3px 5px}
#result .ranking-achievement svg{width:13px;height:13px;flex-shrink:0}
#result .ranking-prize{background:#ffe17b;border-color:#d0a62c;color:#5f3b07;box-shadow:0 1px 0 #d6b33e}
#result .ranking-discount{background:#d6f6df;border-color:#74b58a;color:#215d34;box-shadow:0 1px 0 #94cca7}
#result .leaderboard .record-points{align-self:center;white-space:nowrap}
@media(max-width:420px){#result .ranking-name{font-size:13px}#result .ranking-achievement{font-size:9px;padding:3px 4px}#result .ranking-achievement svg{width:12px;height:12px}#result .leaderboard li,#result.round-stage-result .leaderboard li{gap:5px;grid-template-columns:20px minmax(0,1fr) auto;padding:7px 3px}#result.round-stage-result .leaderboard{max-height:290px}}
@media(max-height:620px){#result.round-stage-result .leaderboard{max-height:205px}#result .leaderboard li,#result.round-stage-result .leaderboard li{min-height:52px;padding:5px 3px}#result .ranking-name{font-size:12px}#result .ranking-achievement{font-size:9px}}
