*{box-sizing:border-box} :root{font-family:'Gowun Dodum','Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#183c35;background:#e6e8d9;font-synthesis:none}body{margin:0;overscroll-behavior:none}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #ee784d;outline-offset:3px}#app{position:relative;isolation:isolate;max-width:480px;height:100dvh;min-height:640px;margin:auto;overflow:hidden;background:#d9e8cb;box-shadow:0 0 100px #173b3526}#world,.grain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.grain{z-index:1;opacity:.15;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.25' filter='url(%23n)'/%3E%3C/svg%3E")} .screen{position:absolute;inset:0;z-index:2;padding:22px 25px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column}.hidden{display:none!important}.topline,.boardhead,.bottomrow,.myrecord,.resultmeta{display:flex;align-items:center;justify-content:space-between}.pill{font-size:10px;letter-spacing:1.6px;font-weight:800;display:flex;gap:7px;align-items:center}.pill i{width:7px;height:7px;border-radius:50%;background:#ed794e}.iconbtn{background:#fff9;border:1px solid #173b3530;width:32px;height:32px;border-radius:50%;font-size:20px}.leaderboard{margin-top:16px;background:#f7f5e9ef;border:1px solid #173b352d;border-radius:15px;padding:14px 15px 0;box-shadow:0 5px 0 #173b350a}.boardhead h2{font-size:13px;margin:0}.boardhead h2 span{color:#d36941;font-size:10px;margin-left:5px}#network{font-size:9px;color:#6c7d6c}#ranks{max-height:108px;overflow-y:auto;margin-top:9px;scrollbar-width:thin}.rank{display:flex;gap:11px;align-items:center;font-size:11px;padding:5px 0;border-bottom:1px solid #173b350a}.rank b{width:17px;color:#d37545}.rank span{flex:1}.rank strong{font-size:12px}.emptyrank{font-size:11px;color:#758573;text-align:center;padding:12px 0}.myrecord{border-top:1px solid #173b3525;font-size:10px;margin-top:8px;padding:9px 0}.myrecord strong{font-size:17px}.myrecord small{font-size:10px;color:#819181}.brand{margin-top:24px;pointer-events:none}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:800}.brand h1{font-size:clamp(68px,19vw,90px);font-weight:1000;letter-spacing:-8px;line-height:1.08;margin:4px 0 9px;transform:rotate(-7deg);text-shadow:3px 4px #f4edce}.brand h1 span{color:#e67648}.brand h1 b{font-size:66px;color:#e67648;display:inline-block;transform:rotate(13deg)}.brand p{font-size:12px;line-height:1.7;font-weight:600;margin:12px 0}.lobbybottom{margin-top:auto}.wallet{text-align:right;font-size:13px;font-weight:bold;margin-bottom:10px}.tiny{font-size:8px;letter-spacing:1px;color:#667f65}.primary{width:100%;background:#ed7b4c;border:2px solid #173b35;border-radius:13px;box-shadow:0 5px 0 #173b35;min-height:57px;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;font-weight:900;font-size:19px;transition:transform .1s,box-shadow .1s}.primary:active{transform:translateY(4px);box-shadow:0 1px 0 #173b35}.primary span{font-size:25px}.bottomrow{gap:10px;margin-top:15px}.bottomrow button{background:#f3f2e5;border:1px solid #173b3555;border-radius:10px;padding:12px 13px;flex:1;font-weight:bold;font-size:12px;display:flex;justify-content:space-between}.footnote{text-align:center;font-size:9px;letter-spacing:1px;color:#657966;margin:14px 0 0}.gamehead{display:flex;justify-content:space-between;align-items:flex-start}.timer{width:145px;text-align:center}.timer>span,.score>span{display:block;font-size:10px}.timer strong{font-size:42px;line-height:1.15;font-variant-numeric:tabular-nums}.track{height:7px;background:#173b3522;border-radius:10px;overflow:hidden;margin-top:6px}.track i{display:block;height:100%;background:#ed794e;transition:width .08s}.score{text-align:right;min-width:40px}.score strong{font-size:28px}#zone{text-align:center;font-size:11px;letter-spacing:2px;margin-top:20px}#hint{text-align:center;font-size:12px;position:absolute;top:25%;left:0;right:0;color:#47684e}.controls{margin-top:auto;display:flex;gap:8px;justify-content:space-between;align-items:end}.controlgroup{display:flex;gap:6px}.controls button{width:56px;height:67px;border-radius:14px;background:#f9f4df;border:2px solid #173b35;box-shadow:0 5px 0 #173b35;font-size:29px;position:relative;user-select:none;touch-action:none}.controls button small{display:block;font-size:8px;color:#758571;line-height:8px}.controls button.forward{background:#ed7b4c;margin-bottom:17px}.controls button:active,.controls button.pressed{transform:translateY(4px);box-shadow:0 1px 0 #173b35;background:#ed7b4c}.controlnote{text-align:center;font-size:9px;letter-spacing:1px;margin:20px 0 0;color:#526a52}.overlay{position:absolute;inset:0;z-index:5;background:#183d35b8;backdrop-filter:blur(8px);padding:25px;display:flex;align-items:center;justify-content:center}.storycard,.modalcard,.resultcard{background:#f6f2e3;width:100%;border:2px solid #173b35;border-radius:23px;box-shadow:0 9px 0 #092b3240;padding:23px;max-height:calc(100dvh - 50px);overflow-y:auto}.storytop{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:2px}.storytop button{background:none;font-size:10px;letter-spacing:0;padding:5px 0}#storyArt{height:210px;margin:20px -8px 15px;border-radius:15px;overflow:hidden;background:#d7e5c7}#storyArt svg{width:100%;height:100%}.chapter{font-size:10px;color:#c76a42;letter-spacing:2px}.storycard h2{font-size:25px;letter-spacing:-1px;margin:9px 0 12px}.storycard p{font-size:12px;line-height:1.95;color:#526454;white-space:pre-line;min-height:120px;margin:0}.storydots{display:flex;gap:6px;justify-content:center;margin:20px}.storydots i{width:6px;height:6px;border-radius:10px;background:#ccd0bf}.storydots i.active{width:22px;background:#ed794e}.storycard .primary{font-size:15px;min-height:50px}.resultcard{text-align:center;position:relative;z-index:1}.resultcard .eyebrow{font-size:8px;letter-spacing:1.5px}.resultcard h2{font-size:29px;margin:15px 0 9px}.resultcard p{font-size:12px;color:#6d7b68}.resultscore{padding:20px 0 10px}.resultscore>span{display:block;font-size:11px}.resultscore strong{display:block;font-size:100px;letter-spacing:-6px;line-height:1.2;color:#e67648}.resultscore>b{font-size:13px}.resultmeta{font-size:11px;margin:15px 0;color:#ad5d37}.sync{font-size:10px!important;min-height:14px}.nickname{text-align:left;font-size:10px;display:block;margin:16px 0}.nickname input{display:block;width:100%;padding:11px 12px;margin-top:5px;border:1px solid #a1af94;border-radius:7px;background:#fff9;color:#173b35}.textbutton{background:none;font-size:12px;padding:17px}.resultactions{display:flex;border-top:1px solid #173b3520;padding-top:14px;gap:10px}.resultactions button{flex:1;background:#e6e8d6;padding:12px 4px;border-radius:8px;font-size:11px}#confetti{position:absolute;inset:0;pointer-events:none;width:100%;height:100%;z-index:2}.modalcard h2{font-size:20px}.optionrow{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:20px 0;border-bottom:1px solid #173b3518}.optionrow input{accent-color:#ed7b4c;width:23px;height:23px}.modalcard p{font-size:12px;line-height:1.8;color:#63775f}.skin{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #173b3520}.swatch{width:40px;height:47px;border:2px solid #173b35;border-radius:13px 13px 9px 9px}.skin div:nth-child(2){flex:1;font-size:12px}.skin small{display:block;font-size:10px;margin-top:4px;color:#74836c}.skin button{padding:9px 12px;background:#e2e8d2;border-radius:7px;font-size:11px}.skin button:disabled{opacity:.5;cursor:default}#toast{position:absolute;bottom:145px;left:50%;transform:translate(-50%,10px);opacity:0;background:#173b35;color:#f8f3df;z-index:10;pointer-events:none;font-size:11px;white-space:nowrap;padding:12px 18px;border-radius:30px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:370px){.screen{padding-left:16px;padding-right:16px}.controls button{width:49px}.brand h1{font-size:70px}.overlay{padding:15px}.storycard{padding:19px}}@media(max-height:750px){#app{min-height:590px}.brand{margin-top:16px}.brand h1{font-size:70px}.brand p{font-size:10px}#ranks{max-height:77px}.leaderboard{margin-top:9px}#storyArt{height:155px;margin:12px 0}.storycard p{min-height:95px;font-size:11px}.storycard h2{font-size:22px}.resultscore strong{font-size:72px}.resultscore{padding:10px 0}.resultcard h2{font-size:25px}.resultmeta{margin:8px 0}}

/* Spatial controls: forward directions above lateral directions. */
.controls{height:143px;position:relative;display:block;flex-shrink:0}
.controlgroup{position:absolute;inset:0;display:contents}
.controls button{position:absolute;width:64px;height:65px;font-size:27px;line-height:28px;padding:4px 0;border-radius:13px}
.controls button span{display:block;font-size:10px;line-height:14px;font-weight:800}
.controls button small{font-size:8px;line-height:9px}
.controls [data-dir="0"]{left:0;bottom:0}
.controls [data-dir="1"]{left:15%;top:0}
.controls button.forward{left:50%;transform:translateX(-50%);top:0;margin:0}
.controls [data-dir="3"]{right:15%;top:0}
.controls [data-dir="4"]{right:0;bottom:0}
.controls button.diagonal{background:#c3ddca}
.controls button.forward:active{transform:translate(-50%,4px)}
.controls button.diagonal:active{background:#ed7b4c}
.controlnote{font-size:9px;letter-spacing:0;margin-top:16px}
@media(max-width:370px){.controls button{width:59px}.controlnote{font-size:8px}}

/* Candy-colored arcade world and progressive direction unlocks. */
:root{background:#c4ddf7;color:#263e60}#app{background:#83dcff}.grain{opacity:.04}.leaderboard{background:#fff9f0ef;border-color:#6e8bb455;box-shadow:0 5px 0 #658cc720}.primary{background:#ff875e;border-color:#443f72;box-shadow:0 5px 0 #443f72}.brand h1{color:#443f72;text-shadow:3px 4px #fff4ad}.brand h1 span,.brand h1 b{color:#ff638f}.brand p{color:#344c78}.bottomrow button{background:#fff4fa}.storycard,.modalcard,.resultcard{background:#fff8f1;border-color:#564575}.track{background:#fff9}.track i{background:linear-gradient(90deg,#ff77a5,#ffbd59)}.controls button{background:#fff1ae;border-color:#4a4775;box-shadow:0 5px 0 #4a4775;color:#393d6b}.controls button.diagonal{background:#98efe0}.controls button.forward{background:#ffadd7}.controls button.locked{opacity:.3;filter:grayscale(.5);box-shadow:none;cursor:default}.controls button:disabled:not(.locked){opacity:.7}#stageBadge{align-self:center;margin-top:10px;background:#ffffffbd;border:1px solid #fff;border-radius:20px;padding:6px 13px;font-size:10px;font-weight:800;letter-spacing:1px;color:#4e4e8d}#stageCountdown{position:absolute;z-index:4;top:27%;left:50%;transform:translateX(-50%);width:86%;background:#fff6eff5;border:3px solid #7862bf;border-radius:24px;padding:18px 12px;text-align:center;box-shadow:0 8px 0 #7862bf33;pointer-events:none}#stageCountdown>span{font-size:14px;font-weight:900;color:#6855a5;display:block}#stageCountdown strong{display:block;font-size:78px;line-height:1.2;color:#ff638f;text-shadow:3px 3px #ffe3a0}#stageCountdown small{font-size:10px;color:#736992}#hint{top:28%}

#world3d{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#world{z-index:1}.grain{z-index:1;opacity:.025}.leaderboard{background:#f9fcfff0;border:2px solid #fff;box-shadow:0 5px 0 #6383bf33}.pill{color:#364d81}.brand h1{color:#fff9ed;-webkit-text-stroke:2px #5f4b76;text-shadow:0 5px 0 #5f4b76,3px 8px 0 #5f4b7633}.brand h1 span{color:#ff8fb6}.gamehead{color:#fff;text-shadow:0 2px 0 #49628f}.timer strong,.score strong{filter:drop-shadow(0 2px 0 #3f5388)}#zone{color:#38517b;font-weight:800;background:#f5faffba;align-self:center;padding:6px 12px;border-radius:12px;margin-top:12px}.controls button{background:linear-gradient(#fffdf8,#cfdcf0);border:3px solid #536187;box-shadow:0 5px 0 #3b496f,inset 0 2px 0 #fff;color:#45527f}.controls button.diagonal{background:linear-gradient(#d3fff6,#8cdbc9)}.controls button.forward{background:linear-gradient(#ffe4f0,#f0a7d0)}.controls button.locked{opacity:.35}.primary{background:linear-gradient(#ffb16f,#ff855e);box-shadow:0 5px 0 #614d78,inset 0 2px 0 #ffe0ae;border-color:#614d78}.brand p{display:inline-block;background:#f7fbffbd;padding:7px 10px;border-radius:9px}.controlnote{background:#eff6ffb5;border-radius:10px;padding:6px 0;color:#44577a}

/* Moonlit fantasy: one art direction across play, lobby, story and results. */
:root{background:#050c1e;color:#ffe5a4}#app{background:#0b1533 url('/quiet-park.jpg') center/cover;box-shadow:0 0 100px #10274f}.screen{color:#ffe4a1}.pill{color:#ffe4a1;text-shadow:0 2px 5px #000}.pill i{background:#ffd36d;box-shadow:0 0 12px #ffaf34}.leaderboard{background:linear-gradient(130deg,#09142eef,#1b2446e8);border:1px solid #d6a755;border-radius:12px;box-shadow:0 3px 0 #412d28,0 0 20px #0005}.boardhead h2{color:#ffe2a0}.boardhead h2 span,.rank b{color:#ffc454}#network{color:#adc3e4}.rank{border-bottom-color:#d6a75519}.rank strong{color:#ffdc81}.myrecord{border-top-color:#d6a75544}.myrecord small{color:#c8a977}.brand .eyebrow{color:#e7c47b;text-shadow:0 2px 6px #000}.brand h1{color:#fff1b0;-webkit-text-stroke:1px #b36a30;text-shadow:0 4px 0 #5a1c23,0 0 18px #ffb22c;letter-spacing:-6px}.brand h1 span,.brand h1 b{color:#ffcb65}.brand p{background:#07132dc9;color:#d8e6f9;border:1px solid #bd8f4644}.wallet{color:#ffe092;text-shadow:0 2px 6px #000}.tiny,.footnote{color:#d5bc88}.primary{color:#fff5bf;background:linear-gradient(#8c4c22,#43151b);border:2px solid #efc56d;box-shadow:0 4px 0 #281221,inset 0 0 17px #e5912d88,0 0 15px #e7983533;text-shadow:0 2px 3px #411627}.primary:active{box-shadow:0 1px 0 #281221,inset 0 0 17px #e5912d88}.bottomrow button{background:linear-gradient(#182746,#09142b);color:#ffe2a0;border-color:#b38b4a}.iconbtn{background:#0b1838cd;border-color:#d4b26a;color:#ffe5a4}.gamehead{color:#ffe49a;text-shadow:0 2px 3px #000}.timer strong,.score strong{color:#ffe1a1;filter:drop-shadow(0 2px 1px #4b232d)}.track{background:#07112e;border:1px solid #c69b48;height:8px}.track i{background:linear-gradient(90deg,#ff843c,#ffe28c)}#zone,#stageBadge{background:#07132dd9;border:1px solid #a17c42;color:#e6c783}#hint{color:#ffe2a0;text-shadow:0 2px 5px #000}.controls button{background:radial-gradient(circle at 40% 20%,#253452,#060b1c 75%);color:#ffe38c;border:2px solid #e0b659;box-shadow:0 4px 0 #3a2130,inset 0 0 10px #d9a33e33,0 0 10px #f9b13e22}.controls button.diagonal,.controls button.forward{background:radial-gradient(circle at 40% 20%,#29395d,#0a1027 75%)}.controls button span,.controls button small{color:#d8bd83}.controls button:active,.controls button.diagonal:active{background:radial-gradient(#7f5521,#291729)}.controlnote{background:#07132dc9;color:#c4b48e}.storycard,.resultcard,.modalcard{background:linear-gradient(140deg,#0a1430f5,#1d2445f8);border-color:#cba45d;color:#ffe1a1;box-shadow:0 7px 0 #251828,0 0 40px #03061688}.overlay{background:#02091bbc;backdrop-filter:blur(5px)}.storycard p,.resultcard p,.modalcard p{color:#b9c7df}.chapter,.resultmeta{color:#e5b866}#storyArt{background:#122345;border:1px solid #b08b4b}.storydots i{background:#425373}.storydots i.active{background:#edc373}.resultscore strong{color:#ffd576;text-shadow:0 3px 0 #88401f,0 0 22px #e89d3244}.nickname input{background:#07132c;border-color:#a28350;color:#ffe4a6}.resultactions{border-top-color:#a5824544}.resultactions button,.skin button{background:#293457;color:#efcf91;border:1px solid #a18450}.textbutton{color:#dfc58f}.optionrow,.skin{border-bottom-color:#c8a55d33}.optionrow input{accent-color:#e4b55c}.skin small{color:#a7b7d4}#stageCountdown{background:linear-gradient(#111a36f5,#293250f5);border-color:#e5ba67;box-shadow:0 5px 0 #39222c,0 0 25px #b47b3822}#stageCountdown>span,#stageCountdown small{color:#e5cb9c}#stageCountdown strong{color:#ffdc83;text-shadow:0 3px 0 #713c24}#toast{background:#111d3e;border:1px solid #d7ae5d;color:#ffe1a1}.emptyrank{color:#a7b7d4}

.timeitem{position:absolute;right:16px;top:28%;width:66px;min-height:70px;border:1px solid #dcb665;border-radius:14px;background:radial-gradient(#253659,#08122c);box-shadow:0 3px 0 #352339;color:#ffe29a;font-size:24px;line-height:25px;z-index:3}.timeitem b{font-size:13px;display:block}.timeitem small{display:block;font-size:9px;line-height:15px;color:#d5bc83}.timeitem:disabled{opacity:.4;cursor:default}.revivebutton{display:block;width:100%;padding:14px 8px;margin:12px 0 16px;border:1px solid #edcd80;border-radius:10px;background:linear-gradient(#35476a,#142b43);color:#ffdf93;font-size:12px;font-weight:bold}.revivebutton:disabled{opacity:.45;cursor:default}.shopsection{font-size:11px;color:#ebc777;margin:20px 0 4px;letter-spacing:1px}.itemicon{display:grid;place-items:center;font-size:28px;color:#f9d686;width:40px;height:47px;border:1px solid #a28149;border-radius:10px;background:#152545}.skin button[data-buy]{white-space:nowrap;font-size:10px;padding:10px 8px}

@font-face{font-family:'PPansRun Rush';src:url('/ppansrun-rush.woff2') format('woff2');font-style:normal;font-weight:900;font-display:swap}.brand h1{font-family:'PPansRun Rush','Gowun Dodum','Malgun Gothic',sans-serif;font-weight:900;letter-spacing:-5px;transform:rotate(-5deg);line-height:1.14}.brand h1 b{font-family:'PPansRun Rush',sans-serif;font-size:.85em}.timer strong,.score strong,.resultscore strong,#stageSeconds,.myrecord strong,.rank strong{font-family:'PPansRun Rush','Gowun Dodum','Malgun Gothic',sans-serif;font-weight:900;font-variant-numeric:tabular-nums}.timer strong{font-size:43px}.resultscore strong{letter-spacing:-3px}#stageSeconds{line-height:1.3}

/* A shared 9:16 playfield on phones and desktops. */
html{height:100%;background:#050c1e}body{min-height:100dvh;display:grid;place-items:center;background:#050c1e}#app{width:min(100vw,calc(100svh * 9 / 16));height:min(100svh,calc(100vw * 16 / 9));max-width:none;min-height:0;aspect-ratio:9/16;margin:0;container-type:size}.gamehead{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(80px,1fr);gap:10px;align-items:start}.timer{width:auto;justify-self:center;min-width:115px;background:#07132ee8;border:1px solid #d7af61;border-radius:13px;padding:7px 12px 9px;box-shadow:0 3px 10px #0005}.score{min-width:0;text-align:center;background:#07132ee8;border:1px solid #d7af61;border-radius:13px;padding:7px 8px 9px;box-shadow:0 3px 10px #0005}.timer strong{font-size:48px;line-height:1.2;color:#fff0bf;text-shadow:0 3px 0 #512523,0 0 9px #c8953633}.score strong{font-size:clamp(30px,8.8cqw,44px);line-height:1.3;color:#ffdb75;text-shadow:0 3px 0 #512523,0 0 9px #c8953633;overflow-wrap:anywhere}.timer>span,.score>span{font-size:10px;font-weight:800;color:#e1cfa5;letter-spacing:1px}.timer .track{margin-top:4px}#zone{margin-top:10px}#stageBadge{margin-top:7px}.resultscore strong{-webkit-text-stroke:.4px currentColor}
@container(height < 750px){.brand{margin-top:16px}.brand h1{font-size:70px}.brand p{font-size:10px}#ranks{max-height:77px}.leaderboard{margin-top:9px}.screen{padding-top:15px;padding-bottom:12px}#zone{margin-top:8px}.gamehead{gap:7px}.timer{min-width:104px;padding:5px 8px 7px}.score{padding:5px 6px 7px}.timer strong{font-size:43px}.controls{height:135px}.controlnote{margin-top:12px}}

/* Actual image_gen button atlas: west, northwest, north, northeast, east. */
.controls{height:150px}.controls button{width:clamp(56px,18cqw,72px);height:clamp(56px,18cqw,72px);padding:0;border:0;border-radius:50%;font-size:0;background:transparent!important;box-shadow:none!important;overflow:visible;outline-offset:5px;isolation:isolate}.controls button .direction-art{display:block;position:absolute;inset:-3px;background-size:300% 200%;background-repeat:no-repeat;clip-path:circle(49% at 50% 50%);pointer-events:none;filter:drop-shadow(0 3px 3px #020713aa);transition:filter .1s,scale .1s}.controls [data-dir="0"] .direction-art{background-position:0% 0%}.controls [data-dir="1"] .direction-art{background-position:50% 0%}.controls [data-dir="2"] .direction-art{background-position:100% 0%}.controls [data-dir="3"] .direction-art{background-position:0% 100%}.controls [data-dir="4"] .direction-art{background-position:50% 100%}.controls button .direction-caption{display:block;position:absolute;left:50%;top:calc(100% + 3px);transform:translateX(-50%);white-space:nowrap;font-family:'Gowun Dodum','Malgun Gothic',sans-serif;font-size:9px;line-height:12px;font-weight:800;color:#ffe6ab;text-shadow:0 2px 4px #000;pointer-events:none}.direction-caption em{font-size:7px;font-style:normal;font-weight:normal;color:#b0bfd9;margin-left:2px}.controls button:active .direction-art{scale:.93;filter:brightness(1.18) drop-shadow(0 1px 2px #020713aa)}.controls button:active{transform:translateY(3px)}.controls button.forward:active{transform:translate(-50%,3px)}.controls button.locked{filter:none;opacity:1}.controls button.locked .direction-art{filter:grayscale(.9) brightness(.42);opacity:.7}.controls button.locked .direction-caption{color:#8c96aa;opacity:.6}.controls button:disabled:not(.locked){opacity:.6}.controlnote{margin-top:24px}@container(height < 750px){.controls{height:140px}.controlnote{margin-top:23px}}

/* Independent generated panels: no atlas offsets or clipping. */
#lobby .lobby-image-button{position:relative;display:block;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;isolation:isolate;touch-action:manipulation;transition:transform .1s;aspect-ratio:960/285;height:auto;min-height:0;border-radius:0}
#lobby .lobby-button-art{position:absolute;inset:0;display:block;background-size:contain;background-position:center;background-repeat:no-repeat;pointer-events:none;filter:drop-shadow(0 3px 3px #0008);transition:filter .1s}
#lobby #start{width:100%;height:auto;min-height:0}#start .lobby-button-art{background-image:url('/menu-start.png')}
#lobby #start .lobby-button-label{position:absolute;left:9%;right:26%;top:50%;transform:translateY(-50%);text-align:center;display:block;font:900 clamp(17px,5cqw,23px) 'Malgun Gothic',sans-serif;white-space:nowrap;color:#fff2bc;text-shadow:0 2px 1px #5d2d10,0 0 5px #2f130dcc;pointer-events:none}
#lobby .bottomrow{display:flex;gap:10px;margin-top:4px}#lobby .bottomrow .lobby-image-button{height:auto;min-height:0;min-width:0;flex:1}
#shopOpen .lobby-button-art{background-image:url('/menu-shop.png')}#optionsOpen .lobby-button-art{background-image:url('/menu-options.png')}
#lobby .bottomrow .lobby-button-label{position:absolute;left:31%;right:6%;top:50%;transform:translateY(-50%);display:block;text-align:center;white-space:nowrap;font-size:clamp(10px,3cqw,13px);font-weight:900;color:#ffe8a6;text-shadow:0 2px 3px #020611;pointer-events:none}
#lobby .lobby-image-button:active{transform:translateY(2px)}#lobby .lobby-image-button:active .lobby-button-art{filter:brightness(1.12) drop-shadow(0 1px 2px #0008)}#lobby .lobby-image-button:focus-visible{outline:2px solid #fff2bb;outline-offset:3px}

/* Larger touch targets with translucent artwork, arranged without overlaps. */
#game .controls{height:clamp(174px,52cqw,212px)}
#game .controls button{width:clamp(68px,24cqw,96px);height:clamp(68px,24cqw,96px)}
#game .controls [data-dir="1"]{left:4%;top:0}
#game .controls [data-dir="3"]{right:4%;top:0}
#game .controls button .direction-art{opacity:.58;transition:opacity .1s,filter .1s,scale .1s}
#game .controls button:active .direction-art,#game .controls button.pressed .direction-art{opacity:.85;scale:.93}
#game .controls button.locked .direction-art{opacity:.22}
#game .controls button .direction-caption{font-size:10px}

/* Fiery image lettering and independent circular menu icons. */
#lobby #start{width:100%;height:clamp(88px,28cqw,126px);aspect-ratio:auto}
#lobby .lobby-generated-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
#lobby #start .lobby-generated-art{animation:start-glow 1.8s ease-in-out infinite}
#lobby .bottomrow{justify-content:center;gap:clamp(34px,15cqw,70px);margin-top:0}
#lobby .bottomrow .lobby-image-button{flex:0 0 clamp(72px,23cqw,100px);height:clamp(80px,26cqw,112px);aspect-ratio:auto}
#lobby .bottomrow .lobby-generated-art{animation:menu-glow 2.6s ease-in-out infinite}
#lobby #optionsOpen .lobby-generated-art{animation-delay:1.3s}
#lobby .lobby-image-button:active .lobby-generated-art{scale:.95}
@keyframes start-glow{0%,100%{filter:brightness(.94) drop-shadow(0 0 3px #ff8c2444)}50%{filter:brightness(1.24) drop-shadow(0 0 12px #ff9a24aa)}}
@keyframes menu-glow{0%,100%{filter:brightness(.95) drop-shadow(0 0 2px #ffba3344)}50%{filter:brightness(1.18) drop-shadow(0 0 6px #ffba3388)}}
@media(prefers-reduced-motion:reduce){#lobby .lobby-generated-art{animation:none!important}}

/* Full portrait shop with a luminous product showcase. */
#modal.shopmode{padding:0;background:#060b1d;backdrop-filter:none}
.shopmode .modalcard{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:none;overflow-y:auto;border-radius:0;border:0;padding:18px 20px 12px;background:radial-gradient(ellipse at 50% 42%,#633ca566,transparent 48%),radial-gradient(ellipse at 50% 85%,#174d9655,transparent 55%),linear-gradient(135deg,#081125,#161a38 55%,#070e22);box-shadow:inset 0 0 0 1px #bd965e66}
.shopmode .boardhead{flex-shrink:0;position:relative;justify-content:center;border-block:1px solid #bc965c;padding:12px 30px;background:linear-gradient(90deg,transparent,#e3ad3230,transparent)}
.shopmode .boardhead h2{font-size:20px;color:#fff0ca;text-shadow:0 2px 0 #4f311b,0 0 12px #ffb92788}
.shopmode #modalClose{position:absolute;right:0;top:4px;background:#101c36;color:#ffe2a0;border-color:#b18d4a}
.shopmode #modalBody{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center}
.shop-wallet{align-self:flex-end;display:flex;align-items:center;gap:6px;margin:14px 0 4px;padding:6px 12px;border:1px solid #b59861;border-radius:20px;background:#040b1d;color:#ffd877;font-size:14px}.shop-wallet span{font-size:8px;color:#bfa873}.shop-wallet strong{font-family:'PPansRun Rush',sans-serif}
.shop-category{font-size:11px;color:#bfb7d4;letter-spacing:3px;margin:4px 0}
.shop-showcase{position:relative;width:100%;min-height:170px;flex:1;display:flex;align-items:center;justify-content:center;isolation:isolate}
.shop-rays{position:absolute;inset:8%;z-index:-1;background:repeating-conic-gradient(from 12deg at 50% 70%,transparent 0deg 16deg,#786bff18 17deg 23deg,transparent 24deg 39deg);mask-image:radial-gradient(ellipse,#0008,transparent 70%)}
.shop-hero{height:100%;max-height:34cqh;width:85%;object-fit:contain;filter:drop-shadow(0 0 16px #9473ff88)}
.shop-hero.shop-outfit{max-height:30cqh;width:60%;object-fit:contain;background:radial-gradient(ellipse at 50% 94%,#e5b64b88,transparent 35%);border-bottom:4px solid #ffd477;border-radius:50% / 9%}
.shop-arrow{position:absolute;z-index:1;top:44%;padding:8px 0;background:transparent;border:0;color:#ffe898;font-size:30px;text-shadow:0 0 8px #ffaf29,0 3px #5d3316}.shop-arrow:first-of-type{left:0}.shop-arrow:last-of-type{right:0}
.shop-detail{text-align:center;flex-shrink:0}.shop-stars{color:#ffdc64;letter-spacing:3px;text-shadow:0 0 8px #ffbc3c;font-size:18px}.shop-detail h3{color:#fff1cc;font-size:21px;margin:5px 0}.shop-detail p{font-size:11px;margin:4px 0;line-height:1.5}.shop-owned{font-size:11px;color:#e6c98f;margin:8px 0 16px}
.shop-thumbnails{display:flex;gap:6px;width:100%;flex-shrink:0;padding:8px 2px 10px;overflow-x:auto;border-top:1px solid #bf995b77;scrollbar-width:thin}
.shop-thumb{flex:1;min-width:43px;max-width:60px;position:relative;padding:2px;border:1px solid #7784ae;border-radius:9px;background:linear-gradient(#243654,#09122a);color:#dbe5ff;box-shadow:inset 0 0 8px #040713}.shop-thumb.selected{border:2px solid #ffe99b;box-shadow:0 0 8px #ffad3877,inset 0 0 8px #ffbf3866}.shop-thumb img{display:block;width:100%;height:42px;object-fit:contain}.shop-thumb span{display:block;font-size:9px;white-space:nowrap;padding:2px 0}
.shop-purchase{flex-shrink:0;margin-top:9px;min-height:47px;width:90%;border:2px solid #ffdc78;border-radius:24px;background:linear-gradient(#ffda69,#f6b829 40%,#b76c0d);box-shadow:0 0 12px #ffbd3633,inset 0 1px #fff2bd;color:#2a1608;font-size:17px;font-weight:900;text-shadow:0 1px #fff9c2}.shop-purchase:disabled{filter:saturate(.25);opacity:.7}.shopmode .shop-footnote{font-size:9px;color:#8798bc;margin:9px 0 0;text-align:center}
@container(height < 650px){.shopmode .modalcard{padding:10px 16px}.shopmode .boardhead{padding:8px 25px}.shop-wallet{margin:8px 0 0}.shop-showcase{min-height:140px}.shop-owned{margin-bottom:6px}.shop-detail h3{font-size:18px}.shop-purchase{min-height:40px;margin-top:3px}.shop-thumb img{height:35px}}
/* A fixed ten-row dual leaderboard and a large upper coin wallet. */
#lobby{display:grid;grid-template-rows:clamp(44px,7.5cqh,60px) clamp(205px,35cqh,300px) minmax(60px,1fr) auto;gap:7px;padding:12px 18px 10px}
#lobby.hidden{display:none}
#lobby .topline{min-height:0;letter-spacing:0;align-items:center}
#lobby .top-wallet{margin:0;display:flex;align-items:center;gap:9px;max-width:82%;padding:1px 16px 1px 3px;border:1px solid #d6ab5c;border-radius:30px;background:linear-gradient(100deg,#172748f5,#071127ed);box-shadow:inset 0 1px #ffeab955,0 0 13px #ffd05a22;color:#ffe5a0}
.top-wallet img{width:45px;height:45px;object-fit:contain;filter:drop-shadow(0 0 4px #ffbe4c77)}.top-wallet div{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.top-wallet small{font-size:8px;color:#c5b38f;letter-spacing:1px}.top-wallet strong{font:900 clamp(22px,6.7cqw,31px)/1 'PPansRun Rush',sans-serif;white-space:nowrap}
#lobby #storyOpen{border:0;box-shadow:none;background:transparent;padding:0;width:44px;height:44px;flex-shrink:0}#storyOpen img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 5px #e9af3c66)}
#lobby .leaderboard{height:100%;min-height:0;margin:0;padding:12px 13px 10px;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:url('/rush-rankframe.png') center/100% 100% no-repeat;display:flex;flex-direction:column}
.ranking-titles{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex-shrink:0;padding-bottom:5px}.ranking-titles h2{margin:0;text-align:center;font-size:clamp(9px,2.7cqw,12px);color:#ffedbf;text-shadow:0 1px #421e0a,0 0 8px #ffbf3077;white-space:nowrap}.ranking-titles b{color:#ffd365;font-size:.9em}
.ranking-table{width:100%;height:100%;min-height:0;table-layout:fixed;border-collapse:collapse;font-size:clamp(8px,2.3cqw,10px);color:#e6e6f2}.ranking-table .rank-no{width:6%}.ranking-table .rank-player{width:27%}.ranking-table .rank-score{width:17%}.ranking-table thead{font-size:8px;color:#9eacc8;background:#bda15c15}.ranking-table th,.ranking-table td{padding:0 3px;border-bottom:1px solid #c7a86822;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ranking-table th{text-align:center;font-weight:700;color:#e9c986}.ranking-table .rank-name{text-align:left}.ranking-table .rank-points{text-align:right;color:#ffde86;font-family:'PPansRun Rush','Gowun Dodum','Malgun Gothic',sans-serif}.ranking-table td:nth-child(3){border-right:1px solid #c7a86877;padding-right:7px}.ranking-table th:nth-child(4){padding-left:5px}.ranking-table tbody tr:nth-child(-n+3){background:#ffe49f08}.ranking-table tbody tr:first-child th{color:#ffef99;text-shadow:0 0 6px #ffa125}
#lobby #ranks{max-height:none;overflow:visible}.ranking-footer{display:flex;justify-content:space-between;align-items:center;gap:4px;flex-shrink:0;padding-top:5px;min-height:17px;font-size:7px;color:#9baac6}.ranking-footer #network{font-size:7px;white-space:nowrap}.ranking-footer .myrecord{margin:0;padding:0;border:0;display:inline;white-space:nowrap;font-size:8px;color:#d9c591}.ranking-footer .myrecord strong{font-size:12px;color:#ffdc78}
#lobby .brand{margin:0;min-height:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transform:none}#lobby .brand img{display:block;width:100%;height:100%;max-height:20cqh;object-fit:contain;filter:drop-shadow(0 3px 4px #08102977)}
#lobby .lobbybottom{margin:0;padding:0}#lobby #start{height:clamp(80px,14cqh,110px)}#lobby .bottomrow .lobby-image-button{height:clamp(65px,12cqh,92px);flex-basis:clamp(68px,22cqw,94px)}#lobby .footnote{margin:5px 0 0;font-size:8px}
.shop-wallet img{height:26px;width:26px;object-fit:contain}
/* Full-screen settings use the same gold/navy presentation as the shop. */
#modal.optionsmode{padding:0;background:#060b1d;backdrop-filter:none}
.optionsmode .modalcard{display:flex;flex-direction:column;width:100%;height:100%;max-height:none;overflow:hidden;border-radius:0;border:0;padding:18px 18px 10px;background:radial-gradient(ellipse at 70% 20%,#4c378366,transparent 45%),radial-gradient(ellipse at 20% 90%,#194e7955,transparent 50%),linear-gradient(135deg,#081125,#161a38 55%,#070e22);box-shadow:inset 0 0 0 1px #bd965e66}
.optionsmode .boardhead{position:relative;flex-shrink:0;justify-content:center;border-block:1px solid #bc965c;padding:12px 30px;background:linear-gradient(90deg,transparent,#e3ad3230,transparent)}.optionsmode .boardhead h2{font-size:18px;color:#fff0ca;text-shadow:0 2px #4f311b,0 0 12px #ffb92788}.optionsmode #modalClose{position:absolute;right:0;top:3px;color:#ffe2a0;border-color:#b18d4a;background:#101c36}
.optionsmode #modalBody{overflow-y:auto;min-height:0;flex:1;padding:0 3px 12px;scrollbar-width:thin;scrollbar-color:#ae8851 #0b1328}.options-intro{display:flex;align-items:center;gap:12px;margin:12px 0}.options-intro img{width:64px;height:64px;object-fit:contain}.options-intro b{display:block;font-size:15px;color:#f5dc9e}.options-intro small{display:block;margin-top:6px;font-size:10px;color:#a0adc8}
.settings-panel{margin:12px 0;padding:13px 12px;border:1px solid #aa894b88;border-radius:12px;background:linear-gradient(135deg,#1e2e4acc,#0a1229dd);box-shadow:inset 0 1px #ffda7c22,0 4px 12px #0003}.settings-panel h3{font-size:14px;color:#ffe4a6;margin:0 0 8px;text-shadow:0 0 6px #efb94144}.settings-heading{display:flex;justify-content:space-between;align-items:baseline;gap:5px}.settings-heading button{border:1px solid #ad8b4c;color:#dac593;border-radius:12px;padding:4px 7px;font-size:9px;background:#0b152a}.settings-panel p{font-size:10px!important;color:#a9b8d2!important;margin:6px 0 12px;min-height:15px}
.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;font-size:12px;color:#d6def0;border-bottom:1px solid #d2a85a22}.toggle-row:last-child{border:0}.toggle-row input{width:20px;height:20px;accent-color:#e8be5c}
.volume-row{display:grid;grid-template-columns:83px minmax(0,1fr) 34px 27px;align-items:center;gap:6px;min-height:40px;font-size:10px;color:#d6def0}.volume-row:first-of-type{color:#ffe7a5}.volume-row input{width:100%;height:22px;accent-color:#efc259;cursor:pointer}.volume-row output{font-size:10px;text-align:right;color:#f1d697;font-variant-numeric:tabular-nums}.volume-row button{width:27px;height:27px;border:1px solid #ae8b4f;border-radius:50%;color:#ffeab0;background:linear-gradient(#334268,#111e39);font-size:15px}
.key-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.key-grid button{padding:8px 2px;border:1px solid #9a824d;border-radius:9px;background:linear-gradient(#293c61,#111d36);color:#efe0bd;min-width:0}.key-grid button span{display:block;white-space:nowrap;font-size:8px}.key-grid kbd{display:block;margin:8px 0 1px;font-family:inherit;font-size:12px;color:#ffe796;overflow-wrap:anywhere}.key-grid button.capturing{border-color:#fff0a0;box-shadow:0 0 11px #ffc13588;background:#66522e}.settings-story{display:block;width:100%;padding:13px;color:#fae0a0;border:1px solid #ad8a4b;border-radius:22px;background:linear-gradient(#2d3e61,#121d36);font-size:12px}.reduce-motion .lobby-generated-art{animation:none!important}
@container(height < 650px){#lobby{grid-template-rows:42px 205px minmax(50px,1fr) auto;gap:4px;padding:8px 14px}.top-wallet img{width:37px;height:37px}#lobby #storyOpen{width:39px;height:39px}#lobby .leaderboard{padding:10px 10px 8px}#lobby #start{height:80px}#lobby .bottomrow .lobby-image-button{height:67px}#lobby .footnote{font-size:7px}.ranking-titles h2{font-size:9px}.optionsmode .modalcard{padding:10px 14px}.options-intro{margin:8px 0}.options-intro img{width:48px;height:48px}}

#lobby .leaderboard{padding:26px 16px 18px}.ranking-footer{font-size:7px}.ranking-titles{padding-bottom:6px}@container(height < 650px){#lobby .leaderboard{padding:23px 12px 16px}.ranking-table{font-size:8px}.ranking-table thead{font-size:7px}.ranking-footer #network{font-size:6px}}
/* Larger ranking cells and a more prominent, sparkling start button. */
#lobby{padding-inline:10px;grid-template-rows:clamp(44px,7.2cqh,58px) clamp(232px,39cqh,340px) minmax(52px,1fr) auto;gap:5px}
#lobby .leaderboard{padding:27px 14px 17px}.ranking-titles h2{font-size:clamp(11px,3.1cqw,14px)}.ranking-table{font-size:clamp(10px,2.8cqw,12px)}.ranking-table thead{font-size:9px}.ranking-table th,.ranking-table td{padding-inline:2px}.ranking-table .rank-player{width:26%}.ranking-table .rank-score{width:18%}.ranking-footer #network{font-size:8px}.ranking-footer .myrecord{font-size:9px}.ranking-footer .myrecord strong{font-size:14px}
#lobby .brand{align-items:flex-start;transform:translateY(-7px)}#lobby .brand img{max-height:18.5cqh}
#lobby #start{height:clamp(92px,16cqh,124px);isolation:isolate}#lobby #start .lobby-generated-art{animation:start-glow 1.35s ease-in-out infinite}
#lobby #start::after{content:'';position:absolute;inset:10% 5%;border-radius:50%;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 12% 50%,#fff8d2 0 1px,transparent 3px),radial-gradient(ellipse at 80% 22%,#fff8d2 0 1.5px,transparent 4px),radial-gradient(ellipse at 92% 70%,#ffec9e 0 1px,transparent 3px);animation:start-sparkle 1.35s ease-in-out infinite;filter:drop-shadow(0 0 4px #ffe77f)}
@keyframes start-sparkle{0%,100%{opacity:.2;transform:scale(.95)}45%{opacity:1;transform:scale(1.04)}70%{opacity:.45;transform:scale(1)}}
.reduce-motion #start::after{animation:none!important}@media(prefers-reduced-motion:reduce){#lobby #start::after{animation:none}}
/* Gold results showcase. Generated button artwork includes its lettering. */
#result{padding:8px;background:radial-gradient(ellipse at 50% 35%,#4f2d3555,#030819ee 75%);backdrop-filter:blur(7px);align-items:stretch}
#result .resultcard{position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:100%;max-height:none;min-height:0;overflow-y:auto;scrollbar-width:thin;border:0;border-radius:0;box-shadow:none;padding:clamp(44px,8cqh,70px) 24px 22px;background:url('/result-frame.png') center/100% 100% no-repeat;color:#ffe6b1;animation:result-enter .45s ease-out}
.result-heading{flex-shrink:0}.result-heading .eyebrow{color:#cda96a;font-size:8px;letter-spacing:3px}.resultcard h2#resultTitle{color:#fff0c7;font-size:clamp(18px,5.2cqw,25px);margin:10px 0 7px;text-shadow:0 2px 1px #4d2713,0 0 12px #ffd96855}.resultcard p#reason{font-size:11px;line-height:1.5;color:#aebbd4;margin:0 0 10px}
#result .resultscore{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:130px;padding:8px 0 3px;background:radial-gradient(ellipse,#e4b33b16,transparent 65%)}#result .resultscore>span{font-size:11px;color:#d3b778;letter-spacing:2px}#result .resultscore strong{display:block;font-size:clamp(76px,29cqw,124px);line-height:1.22;letter-spacing:-3px;max-width:100%;color:#ffe7a0;-webkit-text-stroke:1px #eeb956;text-shadow:0 4px 0 #703613,0 7px 1px #231826,0 0 20px #f9b43e77;margin-top:4px;font-variant-numeric:tabular-nums}#result .resultscore>b{font-size:14px;color:#e4c994;margin-top:-4px}#result.new-record .resultscore strong{animation:score-shine 2s ease-in-out infinite}
#result .resultmeta{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-shrink:0;padding:9px 10px;margin:5px 0 0;border-block:1px solid #bd8e4a66;background:linear-gradient(90deg,transparent,#edbd4320,transparent);font-size:10px;color:#f2d492}.result-earned{display:flex;align-items:center;gap:2px;white-space:nowrap}.result-earned img{width:24px;height:24px;object-fit:contain}#result .sync{font-size:9px!important;line-height:1.5;color:#b0c4df;margin:8px 0 3px;min-height:14px;flex-shrink:0}
#result .nickname{margin:8px 0 9px;color:#bcb391;font-size:10px;flex-shrink:0}#result .nickname input{padding:9px 11px;margin-top:4px;color:#fff0ce;background:#060e25cc;border:1px solid #9b7a42;border-radius:8px;font-size:12px}
.result-primary-actions,#result .resultactions{display:flex;gap:7px;align-items:center;flex-shrink:0;margin:0;padding:0;border:0;min-width:0}
#result .result-image-button{position:relative;display:block;flex:1;min-width:0;width:100%;height:clamp(49px,8.7cqh,70px);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;touch-action:manipulation;transition:transform .1s}
#result .result-image-button img{display:block;object-fit:contain;width:100%;height:100%;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 5px #0006)}#result #retry img{animation:start-glow 2s ease-in-out infinite}#result #revive:disabled img{filter:grayscale(.7) brightness(.6);opacity:.65}#result .result-image-button:active:not(:disabled){transform:translateY(2px) scale(.97)}#result .result-image-button:focus-visible{outline:2px solid #ffe7a1;outline-offset:2px}
#result .revive-note{font-size:9px;color:#b3b6ca;min-height:13px;line-height:1.5;margin:1px 0 5px;flex-shrink:0}#result .resultactions .result-image-button{height:clamp(45px,7.8cqh,60px)}#result .result-home{flex-shrink:0;width:100%;padding:11px 0 2px;margin:2px 0 0;background:transparent;color:#d8c59c;font-size:11px;text-decoration:underline;text-underline-offset:3px}
@keyframes result-enter{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}@keyframes score-shine{0%,100%{filter:brightness(1)}50%{filter:brightness(1.2) drop-shadow(0 0 8px #ffe78c77)}}
.reduce-motion .resultcard,.reduce-motion .resultcard img,.reduce-motion #finalScore{animation:none!important}@media(prefers-reduced-motion:reduce){#result .resultcard,#result .resultcard img,#finalScore{animation:none!important}}
@container(height < 650px){#lobby{padding-inline:8px;grid-template-rows:42px 232px minmax(46px,1fr) auto;gap:3px}#lobby .leaderboard{padding:24px 11px 16px}.ranking-titles h2{font-size:11px}.ranking-table{font-size:10px}.ranking-table thead{font-size:8px}.ranking-footer #network{font-size:7px}#lobby .brand{transform:translateY(-5px)}#lobby #start{height:92px}#lobby .bottomrow .lobby-image-button{height:62px}#result .resultcard{padding:43px 21px 19px}#result .resultscore{min-height:118px}#result .nickname{margin:5px 0 6px}#result .sync{margin-top:5px}#result .resultmeta{padding:5px 7px}#result .resultcard p#reason{margin-bottom:4px;font-size:10px}#result .result-home{padding-top:7px}}
/* Exact native Hangul letterforms; generated flames supply the surrounding art. */
#lobby .brand{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:0;overflow:visible}
.brand-flames{position:absolute;z-index:-1;inset:-12px -3px 0;background:url('/title-flames.png') center top/contain no-repeat;pointer-events:none;filter:drop-shadow(0 0 5px #ff8c3a66)}
#lobby .brand h1{display:block;flex-shrink:0;width:max-content;max-width:100%;margin:1px 0 0;font-family:'Gowun Dodum','Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-weight:900;font-size:clamp(58px,20.8cqw,92px);line-height:1.18;letter-spacing:-5px;transform:skew(-7deg) rotate(-3deg);color:#fff5db;-webkit-text-stroke:.7px #5b3615;paint-order:stroke fill;text-shadow:0 -1px 0 #fff,0 1px 0 #f0cf87,0 2px 0 #c18a35,0 3px 0 #9e651e,0 4px 0 #784415,0 5px 0 #4d2914,0 7px 0 #081731,2px 9px 0 #081731,-2px 7px 0 #081731,0 0 15px #ffaf3b66;filter:drop-shadow(0 2px 2px #0009)}
#lobby .brand h1 span{font:inherit;color:#fff5db}#lobby .brand h1 b{font:inherit;color:#ffdf16;-webkit-text-stroke:.7px #9d5d05;text-shadow:0 -1px 0 #fff9b3,0 1px 0 #ffed57,0 2px 0 #e9af0a,0 3px 0 #b57803,0 4px 0 #8a4c00,0 5px 0 #572a0a,0 7px 0 #081731,2px 9px 0 #081731,-2px 7px 0 #081731,0 0 15px #ffb22a88}
#lobby .brand p{margin:8px 0 0;font-family:'Gowun Dodum','Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:clamp(11px,3.35cqw,15px);font-weight:900;line-height:1.4;text-align:center;letter-spacing:-.3px;transform:skew(-5deg) rotate(-2deg);color:#fff5dd;text-shadow:0 1px 0 #bc8b48,0 2px 0 #6d431c,0 3px 0 #081731,2px 0 #081731,-2px 0 #081731,0 0 8px #ffae4e55}#lobby .brand p strong{font:inherit;color:inherit}
@container(height < 650px){#lobby .brand h1{font-size:20.4cqw;line-height:1.1;margin-top:0}#lobby .brand p{margin-top:7px;font-size:3.15cqw}.brand-flames{inset:-8px -2px -3px}}
#result .resultcard{padding-top:clamp(85px,14cqh,110px)}#result .resultscore strong{line-height:1.13}#result .nickname{display:flex;align-items:center;gap:10px;margin:7px 0 8px;white-space:nowrap}#result .nickname input{flex:1;min-width:0;width:auto;margin:0;padding:8px 9px}
@container(height < 650px){#result .resultcard{padding-top:85px}#result .result-heading .eyebrow{font-size:7px;letter-spacing:2px}#result .resultcard h2#resultTitle{font-size:18px;margin:6px 0 4px}#result .resultcard p#reason{font-size:9px;line-height:1.4;margin-bottom:3px}#result .resultscore{padding:5px 0 2px;min-height:126px}#result .resultscore>span{font-size:9px}#result .resultscore>b{font-size:11px}#result .resultmeta{font-size:9px;padding:4px 6px}#result .result-earned img{width:20px;height:20px}#result .sync{font-size:8px!important;margin:5px 0 2px}#result .nickname{margin:5px 0 6px}#result .nickname input{padding:7px 8px;font-size:11px}#result .result-image-button{height:49px}#result .resultactions .result-image-button{height:44px}#result .revive-note{font-size:8px;margin:0 0 3px}#result .result-home{font-size:10px;padding-top:6px}}
#lobby .brand p{background:none;border:0;border-radius:0;box-shadow:none;padding:0;width:auto;position:static;max-width:none}
#result .resultcard{padding-bottom:36px}@container(height < 650px){#result .resultcard{padding-bottom:32px}}
#lobby .brand{display:flex;flex-direction:row;align-items:flex-start;justify-content:center}#lobby .brand img{width:100%;height:100%;max-height:19.5cqh;object-fit:contain;filter:drop-shadow(0 3px 4px #08102977)}
/* Account and five-second revival overlays. */
#result .result-heading{padding-top:clamp(23px,4.8cqh,45px)}#result .result-heading .eyebrow{margin-bottom:12px}#result .resultcard h2#resultTitle{margin-top:4px;line-height:1.3}#result .resultcard p#reason{margin-top:8px}#result .nickname input[readonly]{color:#e8d49a;background:#0d1a31}.lobby-tools{display:flex;gap:5px;align-items:center;min-height:24px;margin-top:3px}.lobby-tools button{background:#071229d9;color:#ebd397;border:1px solid #9c7e4c77;border-radius:10px;padding:3px 6px;font-size:8px}.lobby-tools #accountBadge{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-tools small{margin-left:auto;color:#e5d5b0;font-size:8px;text-shadow:0 1px 2px #000}
#accountGate{z-index:9;padding:0;align-items:stretch;background:radial-gradient(ellipse at 60% 20%,#45336788,transparent 55%),#070e22;backdrop-filter:none}.account-card{width:100%;height:100%;padding:22px 24px 20px;overflow-y:auto;scrollbar-width:thin;border:1px solid #ae8d5055;background:radial-gradient(ellipse at 50% 0,#d8a54018,transparent 48%);color:#e7ddc5}.account-emblem{display:block;width:65px;height:65px;object-fit:contain;margin:0 auto 5px}.account-card h2{text-align:center;color:#ffe7a6;font-size:23px;margin:10px 0 20px;text-shadow:0 2px #422a15,0 0 12px #ffd47744}.account-tabs{display:flex;gap:8px;margin-bottom:17px}.account-tabs button{flex:1;padding:10px;border:1px solid #7b724f;border-radius:10px;background:#111f38;color:#a9b7d0;font-size:12px}.account-tabs .selected{border-color:#ffdb7a;background:linear-gradient(#584027,#211b21);color:#ffe6a4;box-shadow:0 0 10px #e5b64e22}.account-card label{display:block;font-size:11px;margin-top:12px;color:#d9cda9}.account-card input:not([type="checkbox"]){display:block;width:100%;min-width:0;margin-top:6px;background:#070f23;border:1px solid #8e7950;border-radius:9px;color:#fff1cb;padding:11px 12px;font-size:12px}.account-card input::placeholder{color:#6f809e}.account-card input[type="checkbox"]{accent-color:#dcb65e;width:18px;height:18px;flex-shrink:0}.account-card .nickname-warning{font-size:11px;line-height:1.5;color:#ffce86;padding:9px 10px;background:#e6a84412;border-left:2px solid #d9a54b;margin:8px 0}.consent-list{margin-top:14px}.consent-list label,.account-card .delete-agree{display:flex;gap:8px;align-items:center;font-size:10px;line-height:1.5;margin-top:9px}.consent-list a{color:#f6d884;text-underline-offset:2px}.gold-action{width:100%;min-height:44px;margin-top:12px;border:1px solid #ffe39b;border-radius:22px;background:linear-gradient(#ffe7a0,#efbf52 45%,#b87d29);color:#34220d;font-size:15px;font-weight:900;box-shadow:0 0 12px #efbd4322}.gold-action:disabled{opacity:.5}.account-link{display:block;width:100%;padding:12px 5px;background:transparent;color:#d4bc8e;font-size:11px}.account-link.danger{color:#d89f9b}.account-foot,.account-copy{font-size:10px;color:#a2b0c9;line-height:1.7;text-align:center}.account-copy{font-size:12px;text-align:left;line-height:1.9}#accountError{font-size:11px;line-height:1.5;color:#ffbcaf;min-height:16px;margin:10px 0 0}.profile-summary{text-align:center;padding:25px 10px;border-block:1px solid #9e804b77}.profile-summary strong{font-size:24px;color:#ffe6a3}.profile-summary p,.profile-summary small{font-size:12px;color:#9cacc9}
#reviveOffer{z-index:6;background:#03091ae8;backdrop-filter:blur(8px);padding:20px;align-items:center}.revival-card{width:100%;max-height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 18px 8px;background:radial-gradient(ellipse at 50% 20%,#205a4f66,transparent 55%),linear-gradient(#121b37,#080f23);border:1px solid #bfa56a;border-radius:25px;box-shadow:inset 0 0 20px #caa44811,0 0 30px #63dcb022;color:#f7e9c9}.revival-art{height:clamp(120px,27cqh,220px);max-width:85%;object-fit:contain;filter:drop-shadow(0 0 12px #54eeab44)}.revival-card h2{font-size:21px;margin:8px 0;color:#ffefb4;text-shadow:0 1px 1px #875f27}.revival-card p{font-size:11px;color:#aabed1;margin:5px 0}.revival-card #reviveSeconds{font:900 56px/1.1 'PPansRun Rush',sans-serif;color:#f9d77a;margin:8px 0;text-shadow:0 0 15px #e0b03b66}.revival-track{height:5px;width:90%;background:#070d20;border-radius:5px;margin:6px 0 12px;overflow:hidden}.revival-track i{display:block;height:100%;background:linear-gradient(90deg,#72d3b7,#ffe195);transition:width .1s linear}.revival-card #revive{width:90%;height:65px;padding:0;background:none;box-shadow:none;border:0}.revival-card #revive img{width:100%;height:100%;object-fit:contain}.revival-card #revive:disabled{filter:grayscale(.8) brightness(.6);opacity:.6}.revival-card small{font-size:9px;color:#b3a67d;margin-top:8px}
@container(height < 650px){#result .result-heading{padding-top:22px}#result .result-heading .eyebrow{margin-bottom:8px}#result .resultcard h2#resultTitle{font-size:17px}.account-card{padding:15px 20px}.account-emblem{width:46px;height:46px}.account-card h2{font-size:21px;margin:8px 0 14px}.account-card input:not([type="checkbox"]){padding:9px 10px}.account-card label{margin-top:9px}.account-tabs{margin-bottom:12px}.consent-list{margin-top:10px}.account-link{padding:10px 5px}.revival-card{padding:12px 16px 6px}.revival-art{height:140px}.revival-card h2{font-size:19px}.revival-card #reviveSeconds{font-size:45px}.revival-card #revive{height:53px}}
.account-card{scrollbar-color:#b39760 #0b142b}.account-card::-webkit-scrollbar{width:5px}.account-card::-webkit-scrollbar-track{background:#0b142b}.account-card::-webkit-scrollbar-thumb{background:#a48a53;border-radius:5px}.nickname input[readonly]{cursor:default}

/* Keep text selection available for names and text entry. */
#app {
  -webkit-user-select: none;
  user-select: none;
}
#app :is(.rank-name, #profileNickname, input:not([type]), input[type="text"], input[type="password"], textarea) {
  -webkit-user-select: text;
  user-select: text;
}

#lobby .brand {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
#lobby .brand img {
  height: auto;
  max-height: 14cqh;
}
.brand-tagline {
  color: #fff5db;
  font-weight: 900;
  font-size: clamp(10px, 3cqw, 14px);
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 2px #07152e;
}

#result .result-primary-actions .result-home {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 1px solid #caa45c;
  border-radius: 22px;
  background: #15284b;
  color: #ffe6a2;
  font-size: clamp(11px, 3.6cqw, 16px);
  font-weight: 900;
  text-decoration: none;
}

#coinBox:not([hidden]) { display:inline-grid; justify-items:center; gap:3px; padding:4px 16px 7px; }
#coinBox img { width:clamp(48px,9vh,78px); filter:drop-shadow(0 0 8px #ffb422a0); animation:coin-box-bob 1.8s ease-in-out infinite; }
#earned { display:inline-block; }
@keyframes coin-box-bob {
  0%,100% { transform:translateY(0) rotate(-4deg); }
  50% { transform:translateY(-5px) rotate(4deg); }
}
@media (prefers-reduced-motion:reduce) { #coinBox img { animation:none; } }

#result .resultcard {
  box-sizing:border-box;
  padding: 21cqh clamp(22px,7cqw,48px) 8cqh;
  overflow:hidden;
}
#result .result-content { flex:1 1 auto; min-height:0; overflow:auto; scrollbar-width:thin; }
#result .result-heading { padding-top:0; }
#result .result-heading .eyebrow { margin-bottom:4px; }
#result .resultscore { min-height:0; padding:4px 0; }
#result #finalScore { font-size:min(var(--score-fit,92px),clamp(38px,11cqh,92px)); line-height:1; }
#result .result-footer { display:grid; flex:none; gap:clamp(3px,1cqh,9px); padding-top:5px;
  align-self:center; width:min(100%,480px,56cqh); }
#result .result-footer > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(6px,2cqw,15px); }
#result .result-footer .result-image-button {
  position:relative; width:100%; height:auto; aspect-ratio:240 / 92; margin:0; padding:0;
}
#result .result-footer .result-image-button span {
  position:absolute; inset:0 5% 0 26%; display:grid; place-items:center;
  color:#ffedbc; font-size:clamp(12px,3.8cqw,22px); font-weight:900; text-shadow:0 2px 3px #020611;
}

#result .result-content { text-align:center; }
#result .result-score-line { display:flex; justify-content:center; align-items:baseline; gap:.22em; max-width:100%; }
#result .result-score-line b { font-size:clamp(21px,5cqw,32px); color:#ffdf89; }
#result .result-heading { margin:clamp(4px,1.2cqh,10px) 0 0; }
#result .resultcard h2#resultTitle { margin:0; font-size:clamp(14px,4.5cqw,20px); }
#result .resultcard p#reason { margin:3px 0 5px; }
#result #coinBox:not([hidden]) { width:auto; margin:0 auto 4px; }
#result #coinBox img { width:clamp(54px,12cqh,92px); }

@font-face { font-family:'Gowun Dodum'; src:url('/gowun-dodum.woff2') format('woff2'); font-display:swap; }
.timeitem { padding:4px 2px; line-height:1; }
.timeitem img { display:block; width:clamp(34px,11cqw,52px); height:clamp(32px,10cqw,48px); object-fit:contain; margin:0 auto 2px; }
.shop-thumbnails { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.shop-thumb { min-width:0; max-width:none; }
.shop-thumb img { height:clamp(40px,8cqh,70px); }
.shop-thumb span { font-size:clamp(10px,3.1cqw,14px); }
#result #coinBox .coin-box-label { width:clamp(130px,53cqw,230px); animation:none; filter:drop-shadow(0 0 5px #ffb42280); }

#lobby { background-color:#46123380; }
#lobby :is(.lobby-generated-art,.brand>img) { filter:hue-rotate(305deg) saturate(1.13); }
#lobby .leaderboard { background-color:#39132dc9; border-color:#ea91c6; }
#lobby .brand-tagline { color:#ffdaee; text-shadow:0 2px 5px #44102e; }
#result { background:radial-gradient(ellipse at 50% 32%,#90396180,#220c21ee 75%); }
#result .resultcard { background:none; color:#ffe1ef; }
#result .resultcard::before {
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:url('/result-frame.png') center/100% 100% no-repeat;
  filter:none;
}
#result :is(.result-image-button img,#coinBox img) { filter:hue-rotate(305deg) saturate(1.2); }
#result #coinBox .coin-box-label { filter:hue-rotate(305deg) saturate(1.2); }
#result .result-footer .result-image-button span { color:#ffe1ee; }
#result #finalScore { color:#ffd5eb; -webkit-text-stroke-color:#ee9fc8; text-shadow:0 4px #7e315f,0 0 20px #f597cb88; }
#result .result-score-line b,#result .resultscore>span { color:#ffd1e8; }
#result .resultmeta { background:#57233b55; border-color:#f7abcf66; }
#result .nickname input[readonly] { color:#ffe1ef; background:#331630; border-color:#cf81aa; }

.shopmode #modalClose { width:auto; min-width:58px; height:34px; padding:0 13px; border-radius:10px; font-size:14px; font-weight:900; }
#lobby .lobby-image-button { filter:hue-rotate(295deg) saturate(1.15); }
#lobby .lobby-image-button { filter:drop-shadow(0 0 8px #ffc65378); }
#lobby .lobby-generated-art { filter:none; }
#result .result-footer .result-image-button img { filter:drop-shadow(0 0 6px #ffbf595c); }
.shopmode #modalClose {
  background:linear-gradient(#fff0a7,#d69431 52%,#8c4713);
  color:#251206; border:1px solid #ffe593; box-shadow:0 0 12px #ffca555e;
}

#lobby { background-image:linear-gradient(#45102d38,#280e29ab),url('/result-frame.png'); background-size:100% 100%; }
.optionsmode .option-label { display:block; width:85px; height:17px; object-fit:contain; object-position:left center; }
.optionsmode h3 .option-label { width:122px; height:23px; }
.optionsmode .toggle-row .option-label { width:108px; height:20px; }
.optionsmode .key-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.optionsmode .volume-row .option-label { width:100%; }
#lobby,#result { --love-center:#ffdce6; }
#lobby {
  background-color:#f1c6d5;
  background-image:radial-gradient(ellipse 44% 38% at 50% 56%,var(--love-center) 45%,transparent),url('/result-frame.png');
}
#lobby .brand-tagline { color:#612843; text-shadow:0 1px #fff8; }
#result { background:radial-gradient(ellipse,#ffe9f2bf,#844a66c9); }
#result .resultcard { color:#632640; }
#result .resultcard::before {
  background:radial-gradient(ellipse 44% 38% at 50% 56%,var(--love-center) 45%,transparent),url('/result-frame.png') center/100% 100% no-repeat;
}
#result :is(.resultscore>span,.result-score-line b,.resultcard h2#resultTitle,.resultcard p#reason,.sync) { color:#6b2c4b; text-shadow:none; }
#result #finalScore { color:#a83c66; -webkit-text-stroke-color:#7a2548; text-shadow:0 3px #efb7cc; }
#result .resultmeta { background:#fff9f8a6; border-color:#d782a766; }
#result .nickname input[readonly] { color:#602643; background:#fff8f9; border-color:#c7789a; }
#result #coinBox img { filter:drop-shadow(0 1px 5px #ab5a8166); }
#result #coinBox .coin-box-label { filter:drop-shadow(0 1px 4px #ab5a8166); }

/* The lobby and result share the crown frame's cream gold and cherry pink palette. */
#app {
  --love-ink:#62283f;
  --love-button:linear-gradient(#fff4ce,#ffe0a0 68%,#ffd287);
  --love-edge:#c8894b;
}
#lobby .leaderboard {
  background:#fff8f7e8; border:1px solid #dfa0ad; border-radius:16px;
  box-shadow:0 3px 0 #c0798c35; padding:clamp(8px,2cqh,16px) 12px;
}
#lobby .leaderboard :is(h2,th,td,strong,.ranking-footer,.myrecord) {
  color:var(--love-ink); text-shadow:none;
}
#lobby :is(.lobby-image-button,#accountBadge,#installHelp,#installGame),
#result .result-footer .result-image-button,
#result #coinBox .coin-box-label {
  background:var(--love-button); color:var(--love-ink);
  border:1px solid var(--love-edge); border-radius:15px;
  box-shadow:inset 0 2px #fff9e6,0 3px #ad664d55;
  font-family:'Gowun Dodum','Malgun Gothic',sans-serif; font-weight:900;
  text-shadow:none; filter:none;
}
#lobby #start {
  height:clamp(40px,8cqh,64px); max-width:86%; margin:0 auto;
  font-size:clamp(19px,5.9cqw,30px);
}
#lobby .bottomrow { gap:8px; margin:7px 0 4px; }
#lobby .bottomrow .lobby-image-button {
  flex:0 1 40%; height:clamp(34px,6cqh,50px); font-size:clamp(14px,4cqw,19px);
}
#lobby .lobby-image-button { display:grid; place-items:center; }
#lobby .brand img { filter:drop-shadow(0 2px 2px #b3556f55); }
#result .result-footer .result-image-button {
  display:grid; place-items:center; aspect-ratio:auto;
  height:clamp(36px,7.2cqh,56px);
}
#result .result-footer .result-image-button span {
  position:static; color:inherit; text-shadow:none;
  font-size:clamp(14px,4.2cqw,21px);
}
#result #coinBox .coin-box-label {
  display:block; width:auto; padding:5px 12px; font-size:clamp(12px,4cqw,19px);
  text-decoration:none;
}
#result #coinBox { text-decoration:none; }
#result #finalScore { font-family:'Gowun Dodum','Malgun Gothic',sans-serif; letter-spacing:-.045em; }
/* Button artwork supplies its own edge; focus must not draw a second frame. */

#result .resultcard { padding-top:16cqh; }
#result :is(.resultmeta,#newbest,#earned,.nickname) { color:var(--love-ink); }
#result .result-content { scrollbar-color:#c8799c transparent; }

:is(.shopmode,.optionsmode) .modalcard {
  color:var(--love-ink); background:linear-gradient(155deg,#fff1f3,#ffdce6 55%,#f3e5ff);
  box-shadow:inset 0 0 0 2px #ecc194;
}
:is(.shopmode,.optionsmode) .boardhead {
  background:#fff2ec; border-color:#dfab91; border-radius:14px;
}
:is(.shopmode,.optionsmode) .boardhead h2,
.optionsmode :is(.options-intro b,.options-intro small,.volume-row,.volume-row output),
.shopmode :is(.shop-category,.shop-detail h3,.shop-detail p,.shop-footnote,.shop-wallet,.shop-wallet span) {
  color:var(--love-ink); text-shadow:none;
}
.optionsmode .settings-panel {
  background:#fff9f7; border-color:#e5a9b9; box-shadow:0 3px #ce88a225;
}
.optionsmode .settings-panel p { color:#78465e!important; }
.optionsmode #modalBody { scrollbar-color:#c8799c #fff0f5; }
.optionsmode input:is([type="range"],[type="checkbox"]) { accent-color:#bc6385; }
:is(.shopmode,.optionsmode) #modalClose,
.optionsmode :is(.volume-row button,.settings-heading button,.key-grid button,.settings-story),
.shopmode :is(.shop-purchase,.shop-arrow,.shop-thumb),
#reviveOffer .revival-card #revive {
  background:var(--love-button); border:1px solid var(--love-edge); color:var(--love-ink);
  box-shadow:inset 0 2px #fff9e6,0 2px #ad664d55; text-shadow:none;
}
.optionsmode #modalClose { width:auto; min-width:55px; padding:0 9px; border-radius:10px; font-size:13px; }
.optionsmode .key-grid kbd { color:#65334a; }
.optionsmode .key-grid button.capturing,.shopmode .shop-thumb.selected {
  background:#ffd1e3; border-color:#a44e70;
}
.shopmode .shop-wallet { background:#fff3d8; border-color:#dfab91; }
.shopmode .shop-wallet strong,#game :is(.score strong,.timer strong,#stageSeconds) {
  font-family:'Gowun Dodum','Malgun Gothic',sans-serif; font-weight:900;
}
#game .controls button .direction-art {
  display:grid; place-items:center; inset:0; clip-path:none; border-radius:50%;
  background:var(--love-button); border:2px solid #fff4d3; color:var(--love-ink);
  filter:none; box-shadow:0 3px #ad664d55; opacity:.78;
}
#game .direction-art::before { font:900 clamp(21px,8cqw,38px)/1 system-ui; }
#game [data-dir="0"] .direction-art::before { content:'←'; }
#game [data-dir="1"] .direction-art::before { content:'↖'; }
#game [data-dir="2"] .direction-art::before { content:'↑'; }
#game [data-dir="3"] .direction-art::before { content:'↗'; }
#game [data-dir="4"] .direction-art::before { content:'→'; }
#game .timeitem { background:var(--love-button); border-color:var(--love-edge); color:var(--love-ink); }
#game .timeitem small { color:#72364b; }
#reviveOffer .revival-card { background:#fff1f3; color:var(--love-ink); border-color:#dfab91; }
#reviveOffer .revival-card :is(h2,p,small,#reviveSeconds,.account-link) { color:var(--love-ink); text-shadow:none; }
#reviveOffer .revival-card #revive { width:80%; border-radius:15px; font-weight:900; }
.options-blossom { display:grid; place-items:center; width:45px; height:45px; border-radius:50%; background:#ffe7ac; color:#a33e65; font-size:30px; }

#lobby .topline .top-wallet {
  background:#fff3da; color:#62283f; border:1px solid #cf9457;
  box-shadow:0 2px #c8867155; border-radius:20px;
}
#lobby .top-wallet :is(small,strong) { color:#62283f; font-family:inherit; text-shadow:none; }
#lobby #storyOpen { background:none; border:0; box-shadow:none; }
#lobby #storyOpen img { width:100%; height:100%; object-fit:contain; }
#lobby .leaderboard {
  background:linear-gradient(#fff8f3,#fff1f5); border:1px solid #d597a8;
  border-radius:16px; box-shadow:0 3px #b8738a40,inset 0 0 0 3px #ffffff8c;
}
#lobby .ranking-titles { gap:6px; padding-bottom:4px; }
#lobby .ranking-titles h2 {
  padding:4px 2px; border-radius:9px; background:#f6cedc; color:#67253f; font-weight:900;
}
#lobby .ranking-titles h2:nth-child(2) { background:#e9dcf6; }
#lobby .ranking-titles b { color:#793950; }
#lobby .ranking-table thead { background:#f8e2e9; }
#lobby .ranking-table tbody tr:nth-child(even) { background:#fae6ee80; }
#lobby .ranking-table tbody tr:nth-child(-n+3) th { color:#813250; font-weight:900; background:#f7d9e6; }
#lobby .ranking-table :is(th,td) { border-color:#dca6b747; }
#lobby .ranking-table .rank-points { font-weight:900; }
#lobby .ranking-footer { color:#723b52; }
#lobby .lobbybottom .lobby-image-button {
  position:relative; isolation:isolate; background:none; border:0; box-shadow:none;
}
#lobby .lobby-image-button img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:fill; z-index:-1;
}
#lobby .bottomrow .lobby-image-button span { padding-left:25%; }
#lobby #start span { padding-right:10%; }
#lobby .lobby-image-button:active { transform:scale(.97); }

.shopmode .boardhead {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center; gap:5px; padding:6px;
}
.shopmode .boardhead h2 { margin:0; white-space:nowrap; font-size:clamp(13px,4cqw,20px); }
.shopmode .boardhead .shop-wallet { margin:0; padding:3px 5px; justify-self:start; align-self:center; }
.shopmode .boardhead .shop-wallet span { display:none; }
.shopmode .boardhead .shop-wallet img { width:clamp(16px,4cqw,24px); height:auto; }
.shopmode .boardhead #modalClose { position:static; justify-self:end; }
.shopmode #modalBody { overflow:auto; padding:3px 2px 8px; }
.shopmode .shop-showcase { flex:1 0 clamp(105px,30cqh,265px); min-height:0; }
.shopmode .shop-arrow { min-width:28px; border-radius:12px; padding:0 5px; }
.shopmode .shop-hero { filter:drop-shadow(0 3px 8px #b05e8b38); }
.shopmode .shop-thumbnails { grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; overflow:visible; }
.shopmode .shop-thumb {
  background:url('/shop-slot.png') center/100% 100% no-repeat;
  border:1px solid transparent; border-radius:12px; box-shadow:none;
}
.shopmode .shop-thumb.selected { border-color:#a54d72; box-shadow:0 0 0 1px #a54d72; }
.shopmode .shop-thumb img { height:clamp(28px,6cqh,50px); }
.shopmode .shop-thumb span { font-size:clamp(8px,2.6cqw,12px); }

.shopmode .shop-thumb.selected { background:url('/shop-slot.png') center/100% 100% no-repeat; }
.shopmode .shop-owned { color:#713951; }
#lobby .lobby-image-button img { object-fit:contain; }
#lobby #start { height:clamp(48px,10cqh,80px); }

#story { background:radial-gradient(ellipse,#ffdeebd9,#854862db); }
#story .storycard {
  color:var(--love-ink); background:linear-gradient(#fff8f4,#ffe2ec);
  border:2px solid #e5ad82; border-radius:22px; box-shadow:0 5px #894b604f;
}
#story .storycard :is(p,.chapter,.storytop) { color:#703950; }
#story #storyArt {
  height:auto; aspect-ratio:2.15; background:#f7cbda; border:1px solid #e0a7b9;
}
#story #storyArt img { display:block; width:100%; height:100%; object-fit:cover; }
#story :is(#storyNext,#skipStory) {
  background:var(--love-button); color:var(--love-ink); border:1px solid var(--love-edge);
  box-shadow:inset 0 2px #fff9e6,0 2px #ad664d55; text-shadow:none;
}
#story #skipStory { border-radius:10px; padding:4px 8px; }
#story .storydots i.active { background:#ae5277; }
#story #storyArt { aspect-ratio:900 / 328; }
#story .storycard h2 { color:#542239; font-size:clamp(20px,5.6cqw,30px); font-weight:800; }
#story .storycard p { color:#542239; font-size:clamp(13px,3.55cqw,18px); line-height:1.65; min-height:0; }
#story .storycard :is(.chapter,.storytop) { color:#66334a; font-size:clamp(11px,3cqw,14px); font-weight:700; }
#story :is(#storyNext,#skipStory) { color:#502438; font-size:clamp(13px,3.6cqw,17px); font-weight:800; }

#lobby { padding-bottom:clamp(35px,8cqh,95px); }
#lobby .leaderboard { width:90%; min-width:0; justify-self:center; }
#lobby .brand { flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:0; }
#lobby .brand img:first-child { width:76%; height:auto; min-height:0; max-height:calc(100% - 28px); }
#lobby .brand img.brand-tagline { width:48%; height:clamp(23px,4cqh,38px); object-fit:contain; flex-shrink:0; }
#lobby .lobbybottom { width:87%; justify-self:center; }
#lobby .lobbybottom button:is(#start,#shopOpen,#optionsOpen) {
  background:transparent; border:0; box-shadow:none; padding:0;
}
#lobby .lobbybottom #start { width:60%; height:clamp(42px,9cqh,78px); }
#lobby .lobbybottom .bottomrow { margin:3px 0; gap:5%; }
#lobby .lobbybottom .bottomrow .lobby-image-button { flex-basis:42%; height:clamp(34px,6cqh,54px); }
#lobby .lobbybottom .lobby-image-button img { object-fit:fill; }
#lobby .lobby-tools small { color:#6b304c; text-shadow:none; }
#accountGate { background:linear-gradient(150deg,#fff2eb,#ffdce6 60%,#f0e1ff); }
#accountGate .account-card {
  color:var(--love-ink); border:2px solid #e7b88c; border-radius:20px;
  background:radial-gradient(ellipse at 50% 0,#fff9ed,transparent 65%);
  scrollbar-color:#c8799c #fff0f5;
}
#accountGate .account-emblem { width:clamp(58px,12cqh,92px); height:auto; }
#accountGate :is(h2,label,.account-foot,.account-copy,.profile-summary,.account-link) { color:var(--love-ink); text-shadow:none; }
#accountGate .account-card input:not([type=checkbox]) { background:#fffaf7; color:#57273e; border-color:#cc8ca8; }
#accountGate .account-card input::placeholder { color:#886878; }
#accountGate .account-tabs button { background:#fff5f3; color:#62283f; border-color:#d09aae; }
#accountGate :is(.gold-action,.account-tabs .selected) {
  background:var(--love-button); color:var(--love-ink); border-color:var(--love-edge);
}
#accountGate .account-card .nickname-warning { background:#fff0d2; color:#763b41; }
#accountGate .account-link.danger { color:#9a3856; }
.shopmode .shop-showcase { flex-basis:clamp(86px,23cqh,230px); }
.shopmode .shop-hero { max-height:25cqh; }
.shopmode .shop-thumbnails { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; max-width:470px; }
.shopmode .shop-thumb { padding:4px; }
.shopmode .shop-thumb img { height:clamp(37px,6.8cqh,64px); }
.shopmode .shop-thumb span { font-size:clamp(10px,2.8cqw,14px); }
#result .result-footer .result-image-button { background:none; box-shadow:none; border:0; }
#result .result-footer .result-image-button img { width:100%; height:100%; object-fit:fill; }
#result #coinBox { position:relative; isolation:isolate; }
#result #coinBox::before {
  content:''; position:absolute; z-index:-1; top:-12%; width:135%; height:90%;
  background:radial-gradient(ellipse,#fffce4 0%,#ffd06b99 34%,transparent 68%);
  animation:chest-halo 2s ease-in-out infinite alternate; pointer-events:none;
}
@keyframes chest-halo { from { opacity:.65; transform:scale(.9); } to { opacity:1; transform:scale(1.12); } }
#result #coinBox .coin-box-label {
  width:clamp(155px,53cqw,255px); height:auto; padding:0; background:none; box-shadow:none; border:0;
}
@media(prefers-reduced-motion:reduce){#result #coinBox::before{animation:none}}

#reviveOffer .revival-card :is(h2,p,small) img { display:block; height:auto; margin:auto; }
#reviveOffer .revive-title-art { width:min(100%,320px); }
#reviveOffer .revive-description-art { width:min(100%,250px); }
#reviveOffer .revive-note-art { width:min(100%,240px); }
#reviveOffer .revive-skip-art { width:80px; height:auto; }
#reviveOffer .revival-card #revive { background:none; border:0; box-shadow:none; }
#reviveOffer .revival-card #revive img { display:block; }
#result .result-heading h2 img { display:block; width:min(96%,330px); max-height:6.2cqh; object-fit:contain; margin:auto; }
#result .resultcard p#reason { font-size:clamp(11px,3.2cqw,15px); }
#result .resultcard .sync { font-size:clamp(10px,2.9cqw,14px)!important; }
#result .resultcard :is(.resultmeta,.nickname,.nickname input) { font-size:clamp(11px,3.1cqw,15px); }
#lobby .ranking-table .rank-no { width:8%; }
#lobby .ranking-table .rank-player { width:25%; }
#lobby .ranking-table .rank-score { width:17%; }
#lobby .ranking-table th:nth-child(4) { padding-inline:1px; }
#lobby .ranking-footer #network { color:#713951; }
#lobby {
  grid-template-rows:12cqh clamp(174px,36cqh,340px) minmax(36px,1fr) auto;
}
#lobby .lobbybottom #start,
#lobby .lobbybottom .bottomrow .lobby-image-button {
  height:auto; aspect-ratio:4 / 1;
}
#lobby .lobbybottom #start { width:72%; }
#lobby .lobbybottom .bottomrow .lobby-image-button { flex-basis:46%; }
#lobby .lobbybottom .lobby-image-button img { object-fit:contain; }
.optionsmode .boardhead {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:8px; padding:6px 8px 6px 12px;
}
.optionsmode .boardhead h2 { margin:0; font-size:clamp(16px,4.9cqw,24px); line-height:1.25; }
.optionsmode .boardhead #modalClose {
  position:static; min-width:54px; height:38px; font-size:14px; font-weight:800;
}
.optionsmode .settings-panel { padding:12px; }
.optionsmode .settings-panel :is(.toggle-row,.volume-row output,.settings-story),
.optionsmode .options-intro small { color:#62283f; font-size:clamp(13px,3.6cqw,18px); }
.optionsmode .options-intro b { font-size:clamp(16px,4.3cqw,22px); }
.optionsmode .settings-panel p { font-size:clamp(12px,3.5cqw,17px)!important; }
.optionsmode h3 .option-label { width:min(175px,100%); height:30px; }
.optionsmode .toggle-row .option-label { width:145px; height:26px; }
.optionsmode .volume-row { grid-template-columns:clamp(85px,27cqw,145px) minmax(0,1fr) 43px 32px; min-height:43px; }
.optionsmode .volume-row .option-label { height:25px; }
.optionsmode .volume-row button { width:32px; height:32px; }
.optionsmode .settings-heading button { font-size:clamp(11px,3.3cqw,15px); min-height:34px; white-space:nowrap; }
.optionsmode .key-grid { gap:7px; }
.optionsmode .key-grid button { min-height:clamp(60px,11cqh,88px); padding:8px 3px; }
.optionsmode .key-grid button span { font-size:clamp(11px,3.45cqw,17px); }
.optionsmode .key-grid kbd { font-size:clamp(16px,5cqw,24px); font-weight:900; }
#lobby .lobbybottom #start,
#lobby .lobbybottom .bottomrow .lobby-image-button { aspect-ratio:580 / 196; }
#result .result-footer { gap:clamp(8px,1.6cqh,15px); width:min(100%,460px,61cqh); }
#result .result-footer > div { gap:clamp(8px,3cqw,20px); }
#result .result-footer .result-image-button { height:auto; aspect-ratio:420 / 161; min-width:0; }
#result .result-footer .result-image-button img { object-fit:contain; filter:none; }
#lobby { grid-template-rows:15cqh clamp(174px,36cqh,340px) minmax(36px,1fr) auto; padding-top:5px; }
#lobby .topline { align-self:start; }
#game .controls button .direction-art {
  background:url('/blossom-direction.png') center/contain no-repeat;
  border:0; box-shadow:none; color:#55213b; opacity:1;
  filter:drop-shadow(0 3px 3px #572e484d);
}
#game .controls button .direction-art::before {
  font-size:clamp(28px,11cqw,53px);
}
#game .controls button.locked .direction-art {
  opacity:.42; filter:grayscale(.8);
}
#game .controls button .direction-caption {
  color:#51243a; background:#fff5eced; border-radius:8px;
  padding:1px 5px; font-weight:900; text-shadow:none; white-space:nowrap;
}
#game .controls button .direction-caption em { color:inherit; }
#game .controls button .direction-art {
  background-size:300% 200%;
  clip-path:circle(44%);
}
#game .controls button .direction-art::before { content:none; }
#game .controls [data-dir="0"] .direction-art { background-position:0% 100%; }
#game .controls [data-dir="1"] .direction-art { background-position:0% 0%; }
#game .controls [data-dir="2"] .direction-art { background-position:50% 0%; }
#game .controls [data-dir="3"] .direction-art { background-position:100% 0%; }
#game .controls [data-dir="4"] .direction-art { background-position:100% 100%; }

#game { --direction-area-height:clamp(174px,52cqw,212px); }
#game .controls { height:var(--direction-area-height); }
#game .timeitem {
  top:auto; bottom:calc(var(--direction-area-height) + 28px);
  right:clamp(19px,7cqw,44px); width:clamp(49px,15cqw,73px); min-height:0;
  padding:0; border:0; background:transparent; box-shadow:none;
}
#game .timeitem img { width:100%; height:auto; margin:0; }
#game .timeitem small {
  width:max-content; max-width:100%; margin:0 auto; padding:2px 4px;
  background:#fff7ef; border-radius:7px; font-weight:800; line-height:1.25;
}
#game .timeitem:disabled { opacity:.75; filter:grayscale(1); }
#app button:enabled:is(:active,.pressed) {
  translate:0 2px; scale:.95; filter:brightness(.82) saturate(1.12);
}
@media(prefers-reduced-motion:reduce){
  #app button:enabled:is(:active,.pressed) { translate:none; scale:none; }
}
#game .gamehead { position:relative; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; padding-inline:clamp(30px,9.4cqw,48px); }
#game .gamehead :is(.timer,.score) {
  width:100%; min-width:0; min-height:clamp(63px,20cqw,100px);
  padding:10px 12% 9px; border:0; box-shadow:none;
  background:url('/blossom-hud.png') center/100% 100% no-repeat;
}
#game .gamehead :is(.timer,.score)>span { color:#672b45; text-shadow:none; letter-spacing:0; font-size:clamp(9px,2.75cqw,14px); }
#game .gamehead :is(.timer,.score)>strong { color:#65223e; text-shadow:none; filter:none; line-height:1.05; font-size:clamp(23px,8.6cqw,48px); }
#game .timer .track { margin:5px auto 0; width:86%; height:6px; border-color:#b96e83; background:#f9d0dc; }
#game .timer .track i { background:linear-gradient(90deg,#a33766,#e886a2); }
#game :is(#zone,#stageBadge) {
  color:#632b43; background:linear-gradient(#fff4e7,#ffdce7);
  border-color:#c88e56; box-shadow:0 2px #a9567338; font-weight:800;
}
#game #quit { position:absolute; top:0; left:-12px; flex:none; align-self:start; display:grid; place-items:center; width:clamp(44px,11cqw,52px); height:auto; aspect-ratio:1; padding:0; border:0; background:transparent; box-shadow:none; text-shadow:none; }
#game #quit img { display:block; width:76%; height:76%; aspect-ratio:1; object-fit:contain; pointer-events:none; }
.shopmode .shop-showcase { flex-basis:clamp(78px,20cqh,210px); }
.shopmode .shop-thumbnails {
  width:min(100%,48cqh,530px); max-width:none;
  gap:clamp(6px,1.8cqw,12px); padding:8px 2px;
}
.shopmode .shop-thumb {
  aspect-ratio:1; display:grid; grid-template-rows:minmax(0,1fr) auto;
  align-items:center; justify-items:center; min-height:0; overflow:hidden;
  padding:13% 13% 12%; color:#55243b;
}
.shopmode .shop-thumb img { width:100%; height:100%; min-height:0; object-fit:contain; }
.shopmode .shop-thumb span {
  max-width:100%; overflow:hidden; text-overflow:ellipsis;
  font-size:clamp(12px,4cqw,20px); font-weight:900; line-height:1.1;
}
.shopmode .shop-detail p,.shopmode .shop-owned { font-size:clamp(12px,3.4cqw,17px); }
#game .gamehead :is(.timer,.score) {
  box-sizing:border-box; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:3px;
  padding:clamp(14px,4.3cqw,31px) 13% clamp(12px,3.6cqw,26px);
}
#game .gamehead :is(.timer,.score)>span { white-space:nowrap; line-height:1.2; }
#game .gamehead :is(.timer,.score)>strong {
  max-width:100%; margin:0; white-space:nowrap; overflow-wrap:normal;
  font-size:clamp(19px,7.3cqw,44px);
}
#game .timer .track { width:75%; margin:2px 0 0; flex:none; }
#result .result-footer .result-image-button { transition:scale .1s ease-out,translate .1s ease-out; }
#result .result-footer .result-image-button img,
#result .result-footer #retry img { animation:none; filter:none; }
#app #result .result-footer .result-image-button:enabled:is(:active,.pressed) {
  transform:none; translate:0 3px; scale:.93; filter:none;
}
@media(prefers-reduced-motion:reduce) {
  #app #result .result-footer .result-image-button:enabled:is(:active,.pressed) {
    translate:none; scale:none; filter:brightness(.9);
  }
}
#lobby .lobby-tools { justify-content:center; }
#lobby .lobby-tools small { margin:0; }
#lobby #storyOpen img { filter:none; }
.optionsmode .settings-story + .settings-story { margin-top:7px; }
#result .resultcard { padding-top:12cqh; padding-bottom:6cqh; }
#result .result-content { overflow:hidden; min-width:0; }
#result #finalScore { font-size:min(var(--score-fit,80px),10cqh); }
#result #coinBox img:not(.coin-box-label) { width:min(16cqw,9cqh); }
#result #coinBox .coin-box-label { width:min(52cqw,30cqh); }
#result .result-heading h2 img { max-height:5cqh; }
#result .resultmeta { margin:2px 0; padding:4px 6px; }
#result .nickname { min-width:0; margin:3px 0; }
#result .nickname input { min-width:0; padding-block:4px; }
#result .result-footer { width:min(100%,440px,53cqh); gap:clamp(4px,1cqh,9px); }
#accountGate .profile-summary :is(strong,p,small) { color:#58233e; }
#accountGate .profile-summary strong { font-size:clamp(24px,7cqw,38px); }
#accountGate .profile-summary :is(p,small) { font-size:clamp(13px,3.7cqw,19px); }
#accountGate :is(.gold-action,.account-link) { font-size:clamp(14px,4cqw,20px); font-weight:800; }
.shopmode .shop-purchase{background:url("/shop-buy-heart.png") center/contain no-repeat;border:0;box-shadow:none;border-radius:0;min-height:0;height:auto;aspect-ratio:480/132;width:min(88%,36cqh,340px);padding:0;text-indent:5%;color:#58233e;font-size:clamp(12px,3.7cqw,18px);white-space:nowrap}

#app :is(button, button *, img) {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (pointer:coarse) {
  #app button, #app button * { -webkit-tap-highlight-color: transparent; }
}

/* Keep the lobby frame visible underneath both the live and WebGL interfaces. */
#app.lobby-visible {
  background:radial-gradient(ellipse 44% 38% at 50% 56%,#ffdce6 45%,transparent),
    #f1c6d5 url('/result-frame.png') center/100% 100% no-repeat;
}
#app.lobby-visible > :is(#world, #world3d, .grain) { visibility:hidden; }
#app > #lobby { background:transparent; }
#app :is(button, button *, img) { -webkit-tap-highlight-color:transparent; }

/* Gameplay contact feedback avoids layout and browser gesture delays. */
#game .controls button{touch-action:none;transition:scale .06s ease-out,translate .06s ease-out}
#game .controls button.pressed:not(:disabled){scale:.93;translate:0 2px}
#timebar{width:100%;transform-origin:left center;transition:none}
/* Permanent art layer: never hidden by a snapshot or a WebGL UI texture. */
#app.lobby-visible{background:#f1c6d5}
#lobbyBackdrop{position:absolute;inset:clamp(7px,1.3cqh,12px) 0 0;z-index:0;width:100%;height:calc(100% - clamp(7px,1.3cqh,12px));object-fit:fill;pointer-events:none;user-select:none;display:none}
#app.lobby-visible>#lobbyBackdrop{display:block}
#targetHint{position:absolute;top:0;left:0;z-index:1;pointer-events:none;white-space:nowrap;font:bold 12px/1.4 sans-serif;color:#ffe3a0;background:#0a1434ec;border:1px solid #ebbc5f;border-radius:6px;padding:3px 8px}
#game .controls button{transition:none;will-change:transform}
#app .overlay{backdrop-filter:none}
#nicknameFeedback{color:#912446;font-size:12px;line-height:1.5;margin:4px 0 8px}
#nicknameFeedback:empty{display:none}
#accountGate .password-field{display:block;position:relative}
#accountGate .password-field input{padding-right:48px}
#accountGate .password-field .password-toggle{position:absolute;inset:0 4px 0 auto;width:40px;height:100%;min-height:0;padding:7px;display:grid;place-items:center;background:transparent;border:0;box-shadow:none;border-radius:8px;color:#71364e;filter:none}
#accountGate .password-toggle svg{width:23px;height:23px;pointer-events:none}

/* Readable consent rows on the pale cherry-blossom account screen. */
#accountGate .consent-list{margin-top:18px;padding:12px 13px;background:#fffafc;border:1px solid #d89bb0;border-radius:13px}
#accountGate .consent-list label{display:flex;align-items:flex-start;gap:10px;margin:0;padding:8px 0;color:#54243b;font-size:15px;font-weight:650;line-height:1.55}
#accountGate .consent-list a{color:#85264e;font-size:inherit;font-weight:800;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
#accountGate .consent-list input[type="checkbox"]{width:21px;height:21px;margin:1px 0 0;accent-color:#a53b63}
#accountGate .consent-list a:focus-visible{outline:2px solid #85264e;outline-offset:3px;border-radius:2px}

/* Native modal top layer stays above the first-run story and sign-up form. */
#updateDialog{box-sizing:border-box;width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 36px);margin:auto;padding:26px 22px 18px;overflow:auto;text-align:center;background:linear-gradient(155deg,#fffdf5,#fff0f5);color:#54243b;border:2px solid #e8b6c5;border-radius:26px;box-shadow:0 18px 70px #48203855,0 0 0 5px #fff4f8aa;font-family:inherit}
#updateDialog::backdrop{background:#361b34a6}
#updateDialog .update-emblem{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 15px;border:2px solid #f2c269;border-radius:50%;background:linear-gradient(#fff5c8,#ffdc80);color:#a23b62;font:700 46px/1 sans-serif;box-shadow:0 4px 0 #e8b58155}
#updateDialog .update-eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;margin:0 0 8px;color:#85405e}
#updateDialog h2{font-size:26px;line-height:1.3;margin:0 0 10px;color:#64223e;font-weight:800}
#updateVersion{display:inline-block;font-size:15px;font-weight:700;margin:0 0 13px;padding:4px 13px;border-radius:30px;background:#f8dce7;color:#742645}
#updateDescription{font-size:16px;line-height:1.65;margin:0}
#updateStatus{font-size:13px;line-height:1.6;color:#753e55;margin:14px 0 17px;min-height:22px}
#updateDialog button{display:block;width:100%;min-height:48px;padding:12px 8px;border-radius:15px;font-family:inherit;font-size:17px;font-weight:700;line-height:1.4;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
#updateNow{background:linear-gradient(#fff2bb,#ffdb83);border:1px solid #d99c47;color:#642b40;box-shadow:0 3px 0 #cb965c66;font-size:17px;font-weight:800}
#updateLater{background:transparent;border:0;color:#7d435b;margin-top:8px;font-size:15px}
#updateDialog button:active:not(:disabled){transform:scale(.96)}
#updateDialog button:disabled{opacity:.7;cursor:wait}
#updateDialog button:focus-visible{filter:brightness(1.1)}

/* Uniform focus for image and ordinary buttons, including dynamically created
   account/shop/update controls. Keep inputs and consent links accessible. */
:is(button,[role="button"]):is(:focus,:focus-visible){outline:none!important;outline-width:0!important}
:is(button,[role="button"]):focus-visible:not(:disabled):not(:active):not(.pressed){filter:brightness(1.12) saturate(1.08)}

.optionsmode .music-volume-label{display:flex;flex-direction:column;gap:3px;color:#62283f;line-height:1.3;font-size:clamp(12px,3.3cqw,16px)}
.optionsmode .music-volume-label b{font-weight:800}
.optionsmode .music-volume-label small{font-size:clamp(10px,2.6cqw,12px);color:#80516a}
.optionsmode .volume-row:has(.music-volume-label){min-height:55px}
#musicResume{position:absolute;z-index:12;top:8px;left:50%;transform:translateX(-50%);max-width:48%;min-height:32px;padding:7px 10px;border:1px solid #d6a76a;border-radius:20px;background:#fff5d9;color:#642d47;font-size:clamp(10px,3cqw,14px);font-weight:800;line-height:1.3;box-shadow:0 2px 6px #813a5530}
#musicResume[hidden]{display:none}

/* The result message occupies the space freed by the redundant account rows. */
#result :is(.nickname,#syncStatus){display:none}
#result .result-content{display:flex;flex-direction:column;align-items:stretch}
#result .result-content>:is(.resultscore,#coinBox,.resultmeta){flex:none}
#result .result-heading{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:clamp(10px,2cqh,18px) 0}
#result .resultcard h2#resultTitle{width:100%;margin:0}
#result .result-heading h2 img{width:100%;max-width:none;max-height:9cqh;object-fit:contain}
#result .resultcard p#reason{font-size:clamp(12px,3.4cqw,17px);margin:8px 0 0;line-height:1.5}

/* Keep the equipped outfit's remaining assists visible throughout the run. */
#outfitStatus{flex:none;align-self:center;display:grid;grid-template-columns:auto auto auto;align-items:center;gap:5px;min-width:0;max-width:100%;margin-top:5px;padding:4px 8px;border:1px solid #c8789c;border-radius:12px;background:linear-gradient(125deg,#fffaf5b3,#ffe2efb3);color:#662b48;box-shadow:0 2px 6px #68334c16;pointer-events:none;}
#outfitStatus[hidden]{display:none}
#outfitStatusLabel{font-size:clamp(11px,3.1cqw,16px);font-weight:800;line-height:1.25;white-space:nowrap}
.correction-count{grid-column:2;grid-row:1;display:flex;align-items:baseline;justify-content:center;gap:3px;font-size:clamp(11px,3.1cqw,16px);line-height:1.1;font-weight:800;white-space:nowrap}
#outfitRemaining{font-family:inherit;font-size:clamp(18px,5cqw,26px);font-variant-numeric:tabular-nums;font-weight:900;line-height:1;color:#a32d60}
.correction-count b{font-size:inherit}
.correction-pips{grid-column:3;grid-row:1;display:flex;gap:3px}
.correction-pips i{display:block;width:8px;height:8px;border-radius:50%;background:#dfcbd3;box-shadow:inset 0 1px 2px #6a354b30}
.correction-pips i[hidden]{display:none}
.correction-pips i.available{background:#ec8db4;box-shadow:inset 0 1px 1px #fff8,0 0 3px #ec8db455}
#outfitStatus.gold-outfit{background:linear-gradient(125deg,#fffdf3f5,#ffe9bdf5);border-color:#d1a152}
#outfitStatus.gold-outfit .correction-pips i.available{background:#dea638}
#outfitStatus.exhausted:not(.just-corrected){background:#f5edf0ed;border-color:#bb9aa9}
#outfitStatus.exhausted:not(.just-corrected) #outfitRemaining{color:#836273}
#outfitStatus.just-corrected{background:linear-gradient(125deg,#fff8ddb3,#ffd2e6b3);border:2px solid #e5a83e;padding:3px 7px;box-shadow:0 0 0 2px #fff4c666,0 0 14px #edb44444;animation:correction-pop .45s ease-out}
#outfitStatus.just-corrected #outfitStatusLabel{color:#9b2457}
#game.has-correction #hint{position:static;align-self:center;transform:none;max-width:100%;margin:8px 0 0;font-size:clamp(10px,2.8cqw,14px)}
@keyframes correction-pop{0%{scale:.94}45%{scale:1.06}100%{scale:1}}
@media(prefers-reduced-motion:reduce){#outfitStatus.just-corrected{animation:none}}
#app.reduce-motion #outfitStatus.just-corrected{animation:none}

/* Budget every shop row within the fixed game canvas, including small phones. */
.shopmode .modalcard{padding:clamp(7px,1.4cqh,14px) clamp(12px,4cqw,22px);overflow:hidden}
.shopmode .boardhead{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"wallet title close";align-items:center;gap:4px;padding:3px 4px;margin:0}
.shopmode .boardhead h2{grid-area:title;font-size:clamp(14px,4.4cqw,23px);font-weight:800;line-height:1.2;white-space:nowrap;text-align:center;color:#63243f;text-shadow:none}
.shopmode .boardhead #modalClose{grid-area:close;position:static;justify-self:end;align-self:center;min-width:44px;min-height:36px;width:auto;height:36px;padding:0 9px;margin:0;font-size:clamp(12px,3.5cqw,17px)}
.shopmode .boardhead .shop-wallet{grid-area:wallet;container-type:inline-size;justify-self:start;align-self:center;justify-content:center;width:100%;min-width:0;max-width:100%;height:auto;aspect-ratio:3;gap:3px;margin:0;padding:0 8px;border:0;border-radius:0;background:url('/blossom-wallet-frame.png') center/contain no-repeat;box-shadow:none;font-size:clamp(16px,4.8cqw,24px)}
.shopmode .boardhead .shop-wallet img{flex:none;width:1.05em;height:1.05em}
.shopmode .boardhead .shop-wallet strong{flex:none;min-width:0;font-size:min(1em,calc((100cqw - 1.05em - 4px) / var(--balance-chars,3) * 1.6));font-weight:900;line-height:1.1;color:#732b49;font-variant-numeric:tabular-nums;overflow-wrap:normal;white-space:nowrap}
.shopmode .boardhead .shop-wallet span{display:none}
.shopmode #modalBody{display:grid;flex:1;min-height:0;width:100%;grid-template-rows:auto minmax(0,1fr) auto 30cqh 8cqh auto;justify-items:center;align-items:stretch;gap:3px;padding:3px 0 0;overflow:hidden}
.shopmode .shop-category{font-size:clamp(12px,3.5cqw,17px);font-weight:800;line-height:1.4;letter-spacing:1px;margin:0;color:#86445e}
.shopmode .shop-showcase{height:100%;min-height:0;min-width:0;flex:none}
.shopmode .shop-hero,.shopmode .shop-hero.shop-outfit{position:absolute;inset:0;margin:auto;width:80%;height:100%;max-height:100%;min-height:0;object-fit:contain}
.shopmode .shop-arrow{top:50%;translate:0 -50%;min-width:38px;min-height:44px;font-size:24px;padding:0}
.shopmode .shop-detail{width:100%;min-height:0}
.shopmode .shop-stars{font-size:clamp(12px,3.4cqw,18px);line-height:1.1}
.shopmode .shop-detail h3{font-size:clamp(20px,5.5cqw,29px);font-weight:800;line-height:1.15;color:#63243f;margin:2px 0}
.shopmode .shop-detail p,.shopmode .shop-owned{font-size:clamp(11px,3.2cqw,16px);line-height:1.3;margin:2px 0;color:#784159}
.shopmode .shop-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));width:calc(45cqh - 6px);max-width:100%;height:100%;gap:5px;padding:3px 0 0;overflow:hidden}
.shopmode .shop-thumb{width:100%;height:100%;min-width:0;max-width:none;min-height:0;aspect-ratio:1;padding:11% 12% 10%}
.shopmode .shop-thumb span{font-size:clamp(12px,3.8cqw,19px);line-height:1.1;padding:0}
.shopmode .shop-purchase{width:min(100%,29cqh);height:100%;min-height:0;margin:0;aspect-ratio:480/132;font-size:clamp(12px,3.7cqw,18px);align-self:center}
.shopmode .shop-footnote{font-size:clamp(9px,2.7cqw,13px);line-height:1.5;margin:0;color:#82556a}
#pickupStatus{display:flex;flex-wrap:wrap;align-self:center;justify-content:center;gap:4px;margin-top:6px;max-width:100%;pointer-events:none}
#pickupStatus span{padding:3px 7px;background:#fff8ebed;border:1px solid #d4a270;border-radius:10px;color:#63243f;font-size:clamp(10px,2.8cqw,14px);font-weight:800}
#forkHint{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin-top:8px;pointer-events:none}
#forkHint>span{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 3px;border:1px solid #92b8a3;border-radius:13px;background:#ecfff1ed;color:#305847}
#forkHint>span.item-route{border-color:#d8a15c;background:#fff3d8f5;color:#71324e}
#forkHint b{font-size:clamp(13px,3.8cqw,19px);font-weight:900;white-space:nowrap}
#forkHint small{font-size:clamp(9px,2.5cqw,12px);line-height:1.2}
#forkHint[hidden],#pickupStatus[hidden],#pickupStatus span[hidden]{display:none}
#game.choosing-fork #hint{display:none}
/* Reuse the zone line for short notifications: no layout shift or playfield cover. */
#zoneLine{position:relative;flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:6px;min-height:clamp(34px,5.8cqh,49px);margin-top:4px;pointer-events:none}
#game #zoneLine :is(#zone,#stageBadge){margin:0;width:100%;min-width:0;padding:6px 4px;line-height:1.2;font-size:clamp(10px,2.8cqw,14px);letter-spacing:0;white-space:nowrap;text-align:center}
#zoneLine.has-notice :is(#zone,#stageBadge){visibility:hidden}
#gameToast{position:absolute;left:50%;top:50%;translate:-50% -50%;width:max-content;max-width:100%;padding:5px 12px;border:1px solid #b96d8c66;border-radius:16px;background:rgba(255,246,250,.62);color:#5b2942;text-shadow:0 1px 2px #fffc;font-size:clamp(12px,3.3cqw,17px);font-weight:800;line-height:1.3;text-align:center;pointer-events:none;opacity:0;transition:opacity .15s;box-shadow:none}
#gameToast.show{opacity:1}
#game #pickupStatus span{background:#fff8eb99;border-color:#d4a27066}

/* Image-generated lobby wallet, kept at its native 3:1 frame ratio. */
#lobby .topline .top-wallet{container-type:inline-size;width:clamp(90px,calc(20cqw + var(--balance-chars,2)*2cqw),140px);height:auto;aspect-ratio:3;max-width:40%;padding:0 clamp(8px,2.3cqw,12px);display:flex;justify-content:center;align-items:center;gap:3px;border:0;border-radius:0;box-shadow:none;background:url('/blossom-wallet-frame.png') center/contain no-repeat}
#lobby .top-wallet img{flex:none;width:clamp(18px,5.2cqw,26px);height:clamp(18px,5.2cqw,26px);filter:none}
#lobby .top-wallet div{flex:0 1 auto;min-width:0;display:block;text-align:center}
#lobby .top-wallet strong{display:block;font-size:min(22px,calc((100cqw - 24px) / var(--balance-chars,3) * 1.45));font-weight:900;line-height:1;white-space:nowrap;text-align:center;color:#62283f}

/* Three bottom controls first; the existing two-row five-way layout unlocks later. */
#game:not(.five-directions){--direction-area-height:calc(clamp(68px,24cqw,96px) + 22px)}
#game .controls{flex:none;transition:height .32s ease-out}
#game .timeitem{transition:bottom .32s ease-out}
#game:not(.five-directions) .controls :is([data-dir="0"],[data-dir="4"]){visibility:hidden;pointer-events:none}
#game:not(.five-directions) .controls [data-dir="2"]{top:0;bottom:auto;margin-bottom:0}
@media(prefers-reduced-motion:reduce){#game .controls,#game .timeitem{transition:none}}
#app.reduce-motion #game .controls,#app.reduce-motion #game .timeitem{transition:none}

/* Sakura HUD: readable rose pills and a compact centered cream assist badge. */
#zoneLine{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6px;margin-top:6px;min-height:clamp(31px,5.5cqh,47px)}
#game #zoneLine :is(#zone,#stageBadge){display:flex;align-items:center;justify-content:center;gap:4px;min-height:clamp(29px,5cqh,43px);padding:5px 6px;border:1px solid #c4808d;border-radius:30px;background:linear-gradient(155deg,#fffdf6f2,#ffe5e9e8);box-shadow:inset 0 0 0 1px #fff9,0 2px 3px #7c304d26;color:#742c45;text-shadow:0 1px 0 #fff9;font-size:clamp(10px,2.65cqw,15px);font-weight:800;letter-spacing:-.015em}
#game #zone::before{content:attr(data-icon);flex:none;font-size:clamp(15px,4.6cqw,25px);line-height:1}
#game #stageBadge::before{content:'👑';flex:none;font-size:clamp(15px,4.6cqw,25px);line-height:1}
#game #zoneLine #stageBadge{font-size:clamp(9px,2.5cqw,14px);padding-inline:7px;gap:3px}
#outfitStatus,#outfitStatus.gold-outfit{margin-top:7px;padding:6px 10px;gap:4px;border:1px solid #d7a04f;border-radius:28px;background:linear-gradient(150deg,#fffdf4ed,#fff1cae3);box-shadow:inset 0 0 0 1px #fff9,0 2px 3px #7c4e3029;color:#7b3046}
#outfitStatusLabel,.correction-count{font-size:clamp(12px,3.4cqw,18px)}
#outfitRemaining{font-size:clamp(20px,5.6cqw,29px);color:#8e354e}
.correction-pips{gap:4px;margin-left:2px}
.correction-pips i{width:clamp(7px,2.2cqw,12px);height:clamp(7px,2.2cqw,12px);background:#e6d5bd;box-shadow:inset 0 1px 1px #a67b3430}
#outfitStatus .correction-pips i.available,#outfitStatus.gold-outfit .correction-pips i.available{background:linear-gradient(#ffd86a,#ffb92d);box-shadow:inset 0 0 0 1px #dda92d,0 1px 0 #fff}
#outfitStatus.just-corrected{padding:5px 9px;border:2px solid #e5a83e;background:linear-gradient(125deg,#fff8dded,#ffd2e6e3);box-shadow:0 0 0 2px #fff4c666,0 0 14px #edb44444}
#game #hint,#game.has-correction #hint{position:static;align-self:center;flex:none;transform:none;max-width:100%;margin:8px 0 0;font-size:clamp(12px,3.8cqw,21px);font-weight:800;line-height:1.4;text-align:center;color:#fff6ca;text-shadow:0 1px 1px #813d34,1px 0 1px #813d34,-1px 0 1px #813d34,0 -1px 1px #813d34,0 2px 5px #a35d43;pointer-events:none}
#game #hint.obstacle-warning::before,#game #hint.obstacle-warning::after{content:'✦';margin:0 4px;color:#ffe58a}

/* Three-slice GPT panel: scale the straight middle, preserve the rounded caps. */
#game #zoneLine :is(#zone,#stageBadge),#game #outfitStatus{position:relative;isolation:isolate;border:0;background:none;box-shadow:none;min-height:clamp(32px,5.8cqh,50px)}
#game #zoneLine :is(#zone,#stageBadge)::after,#game #outfitStatus::after{content:'';position:absolute;z-index:-1;inset:-4px -2px;pointer-events:none;border-style:solid;border-color:transparent;border-width:0 clamp(21px,3.5cqh,29px);border-image-source:url('/blossom-hud-pill.png');border-image-slice:0 360 fill;border-image-repeat:stretch}
#game #outfitStatus{padding:5px 13px;margin-top:5px}
#game #outfitStatus.just-corrected{filter:brightness(1.08);box-shadow:none}
#game #hint,#game.has-correction #hint{margin-top:5px}

/* Allocate a bounded table area, so all ten rows and the footer always fit. */
#lobby .leaderboard{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:3px;width:90%;padding:clamp(7px,1.5cqh,12px) clamp(7px,2.2cqw,12px);overflow:hidden}
#lobby .ranking-titles{padding:0;gap:5px}
#lobby .ranking-titles h2{padding:3px 2px;font-size:clamp(10px,2.8cqw,14px);line-height:1.2}
#lobby .ranking-table{height:100%;margin:0;font-size:clamp(9.5px,2.8cqw,14px);line-height:1.1}
#lobby .ranking-table thead{font-size:clamp(8px,2.5cqw,12px);line-height:1.1}
#lobby .ranking-table :is(th,td){padding:0 2px;line-height:1.1}
#lobby .ranking-table .rank-no{width:9%}
#lobby .ranking-table .rank-player{width:24%}
#lobby .ranking-table .rank-score{width:17%}
#lobby .ranking-table .rank-name{font-size:clamp(9.8px,3cqw,15px);letter-spacing:-.03em}
#lobby .ranking-table td:nth-child(3){padding-right:3px}
#lobby .ranking-footer{min-height:0;padding-top:2px;font-size:clamp(7px,2cqw,10px);line-height:1.2}
#lobby .ranking-footer :is(#network,.myrecord){font-size:inherit}
#lobby .ranking-footer .myrecord strong{font-size:clamp(10px,2.9cqw,14px);line-height:1.1}
#lobby :is(.brand,.lobbybottom){translate:0 clamp(5px,1cqh,9px)}

@font-face{font-family:'Nunito';src:url('/nunito.woff2') format('woff2');font-style:normal;font-weight:200 1000;font-display:swap}
@font-face{font-family:'Jua';src:url('/jua.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
#lobby .top-wallet strong,.shopmode .boardhead .shop-wallet strong{font-family:'Nunito',sans-serif;font-weight:900;letter-spacing:-.02em;color:#813651;text-shadow:0 1px 0 #fff7;font-variant-numeric:tabular-nums}
.shopmode .boardhead .shop-wallet{align-items:center;justify-content:center}
.shopmode .boardhead .shop-wallet strong{line-height:1;text-align:center}
.shopmode .boardhead .shop-wallet{position:relative;display:grid;place-items:center;width:min(100%,calc(64px + var(--balance-chars,2)*6px));padding:0 8px;gap:0}
.shopmode .boardhead .shop-wallet img{position:absolute;left:8px;top:50%;translate:0 -50%;width:16px;height:16px}
.shopmode .boardhead .shop-wallet strong{width:100%;padding-left:12px;font-size:min(15px,calc((100cqw - 20px) / var(--balance-chars,3)*1.6))}
#lobby .leaderboard :is(h2,b,th,td,strong),#lobby .leaderboard .myrecord,#lobby .leaderboard #network{font-family:'Nunito','Jua','Gowun Dodum',sans-serif;font-weight:400;color:#713148;text-shadow:none}
#lobby .ranking-titles :is(h2,b){font-weight:900;letter-spacing:.005em}
#lobby .ranking-table .rank-points,#lobby .ranking-table tbody th,#lobby .ranking-footer .myrecord strong{font-weight:800;font-variant-numeric:tabular-nums}
#lobby .topline .top-wallet{position:relative;display:grid;place-items:center;padding-inline:10px;gap:0}
#lobby .top-wallet img{position:absolute;left:9px;top:50%;translate:0 -50%;width:18px;height:18px}
#lobby .top-wallet div{width:100%;padding-left:16px;text-align:center}
#lobby .topline .top-wallet strong{font-size:min(15px,calc((100cqw - 40px) / var(--balance-chars,3) * 1.3));line-height:1;text-align:center}

@font-face{font-family:'PPansRun Petal';src:url('/ppansrun-petal.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
#lobby .ranking-titles :is(h2,b),#lobby .ranking-table thead th{font-family:'PPansRun Petal','Jua',sans-serif;font-weight:700;letter-spacing:.015em}
#lobby .ranking-titles h2{font-size:clamp(12px,3.7cqw,18px);line-height:1.25}
#lobby .ranking-table{font-size:clamp(10px,3.15cqw,16px);line-height:1.2}
#lobby .ranking-table :is(th,td){font-family:'Nunito','Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-weight:700;color:#59253c;letter-spacing:0;line-height:1.2}
#lobby .ranking-table thead th{font-size:clamp(8.5px,2.5cqw,12px);font-weight:700}
#lobby .ranking-table .rank-name{letter-spacing:-.03em}
#lobby .ranking-table .rank-points,#lobby .ranking-table tbody th{font-family:'Nunito',sans-serif;font-weight:800;letter-spacing:0}

/* A single persistent wallet floats above both lobby and shop. */
#sharedWallet{
  --wallet-width:clamp(86px,24cqw,118px);
  position:absolute;z-index:7;left:clamp(10px,3cqw,14px);
  top:calc(clamp(7px,1.4cqh,14px) + 21px - var(--wallet-width)/6);
  width:var(--wallet-width);height:calc(var(--wallet-width)/3);aspect-ratio:3;
  container-type:inline-size;display:none;place-items:center;padding:0 10px;margin:0;
  border:0;border-radius:0;box-shadow:none;background:url('/blossom-wallet-frame.png') center/contain no-repeat;
  pointer-events:none;color:#813651;text-shadow:none;
}
#sharedWallet img{position:absolute;left:9px;top:50%;translate:0 -50%;width:18px;height:18px;object-fit:contain;filter:none}
#sharedWallet>div{width:100%;min-width:0;display:block;padding-left:16px;text-align:center}
#sharedWallet strong{display:block;font-family:'Nunito',sans-serif;font-weight:900;font-size:min(15px,calc((100cqw - 10px)/var(--balance-chars,3)*1.5));line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center;color:#813651;text-shadow:0 1px 0 #fff7}
#app.lobby-visible #sharedWallet{display:grid}
#app:has(#story:not(.hidden)) #sharedWallet,#app:has(#accountGate:not(.hidden)) #sharedWallet,#app:has(#modal:not(.hidden):not(.shopmode)) #sharedWallet{display:none}
#lobby .topline{justify-content:flex-end}
#lobby{grid-template-rows:13.5cqh clamp(190px,40cqh,360px) minmax(36px,1fr) auto;padding-bottom:4.5cqh}
#lobby .ranking-table td.rank-points{padding-inline:1px}
