@import url('./fonts/fonts.css');
:root{--ink:#202e29;--cream:#fff1cd;--gold:#f3c65b;--muted:#c9c7b5;--line:rgba(255,233,187,.2);font-family:'DM Sans',system-ui,sans-serif;color:var(--cream);background:#202e29;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,select:focus-visible{outline:3px solid #fff1cd;outline-offset:4px}button:disabled{cursor:default}button{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}#game{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;isolation:isolate;user-select:none}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{display:block;width:100%;height:100%}.screen-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(27,33,27,.25),transparent 22%,transparent 72%,rgba(24,36,29,.35));z-index:1}.hud-top{position:absolute;top:22px;left:24px;right:24px;display:flex;align-items:flex-start;justify-content:space-between;z-index:3;pointer-events:none}.brand{position:relative;background:linear-gradient(135deg,#2d3a30,#17221e);border:2px solid #cbb681;border-radius:15px;padding:12px 22px 10px;box-shadow:0 5px 0 #1b251f66,0 8px 20px #12201535;text-align:center}.brand h1{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-style:italic;font-weight:800;font-size:clamp(23px,2.4vw,39px);line-height:1;letter-spacing:-.03em;margin:0;text-shadow:0 3px #0006}.brand-sub{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-size:14px;font-weight:700;letter-spacing:.22em;margin-top:6px;color:#edcb7b}.brand-crown{position:absolute;top:-20px;font-size:29px;left:calc(50% - 13px);color:#f3c65b;text-shadow:0 2px #1b251f}.match-status{position:absolute;left:50%;transform:translateX(-50%);text-align:center;top:-6px}.timer{font-family:'Barlow Condensed',Impact,sans-serif;font-size:49px;font-weight:800;font-style:italic;font-variant-numeric:tabular-nums;line-height:1;padding:6px 29px 9px;border:2px solid #b9a67f;background:linear-gradient(135deg,#2d392f,#15231e);border-radius:15px;box-shadow:0 4px 0 #15231e5e}.timer.urgent{color:#ffc27f;border-color:#e68d57}.leader-status{font-family:'Barlow Condensed',Impact,sans-serif;background:#202e29e8;border:1px solid #c0a570;border-radius:7px;padding:5px 14px;color:#e1d8bc;font-size:16px;letter-spacing:.05em;font-weight:700;margin-top:8px;white-space:nowrap}.leader-status.owned{color:#ffcf5b;border-color:#ffcf5b}.top-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:auto}.utilities{display:flex;gap:7px}.icon-btn{width:34px;height:34px;border:1px solid #c0b18e8a;border-radius:9px;color:#f1e4c3;background:#24312beb;font-size:19px;box-shadow:0 3px 8px #16221d22}.leaderboard{display:flex;flex-direction:column;gap:5px;width:205px}.leader-row{display:flex;align-items:center;gap:10px;background:#24312bef;border:1px solid #89917b4d;border-radius:8px;padding:7px 11px;font-size:12px;font-weight:700;box-shadow:0 3px 0 #13241b22;font-variant-numeric:tabular-nums}.leader-row .position{color:#abb29d;width:14px}.leader-row .avatar-dot{width:8px;height:8px;border-radius:50%;flex:none}.leader-row b{margin-left:auto;font-size:14px}.leader-row.self{border-color:#e6c464;color:#ffdf89;background:#263529}.leader-row:first-child{border-color:#bba573}.leader-row.self:first-child{border-color:#f1cd62;box-shadow:0 0 0 1px #e4bb5733}.hud-bottom{position:absolute;left:24px;right:24px;bottom:22px;z-index:3;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;pointer-events:none}.wallet{padding:11px 19px 12px;background:linear-gradient(135deg,#354236,#1b2b23);border:2px solid #bba775;border-radius:13px;min-width:174px;box-shadow:0 6px 0 #16261d44}.wallet-label{font-size:10px;letter-spacing:.14em;font-weight:700;color:#c9d0b7}.wallet>div{display:flex;align-items:center;gap:9px;margin:2px 0 3px}.wallet strong{font-family:'Barlow Condensed',Impact,sans-serif;font-style:italic;font-size:38px;line-height:1.1;font-variant-numeric:tabular-nums}.coin-mark{display:flex;align-items:center;justify-content:center;background:#f1c152;border:3px solid #b88827;box-shadow:inset 0 0 0 2px #ffe290,0 3px #8b6a27;width:28px;height:28px;border-radius:50%;color:#846020;font-size:20px;font-weight:700}.rank{font-size:10px;font-weight:600;letter-spacing:.09em;color:#c0c8b2}.abilities{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:10px;bottom:0;pointer-events:auto}.ability{overflow:hidden;position:relative;min-width:135px;height:76px;display:flex;align-items:center;justify-content:center;gap:9px;padding:9px 15px 18px;background:linear-gradient(135deg,#3d4838,#1a2922);border:2px solid #d7bb76;border-radius:13px;color:var(--cream);box-shadow:0 5px 0 #15251d88,0 8px 20px #15251d2a;transition:transform .12s,filter .12s}.ability:hover{filter:brightness(1.13);transform:translateY(-2px)}.ability:active{transform:translateY(3px)}.ability b{font-family:'Barlow Condensed',Impact,sans-serif;font-size:24px;font-style:italic;line-height:1;letter-spacing:.04em;display:block}.ability small{font-family:'Barlow Condensed',Impact,sans-serif;font-size:20px;display:block;font-weight:700;margin-top:3px;line-height:1}.ability-icon{font-size:38px;line-height:1;color:#f2c658}.dash-icon{font-style:italic}.ability kbd{position:absolute;bottom:4px;font-size:9px;letter-spacing:.08em;color:#bfc5ad;background:none;border:0;padding:0}.ability .cooldown{position:absolute;left:0;bottom:0;top:0;background:#111e1966;pointer-events:none;width:0;transition:width .05s linear}.ability.unaffordable{filter:saturate(.35);opacity:.68}.ability.recharging{border-color:#84917c}.match-info{text-align:right;font-size:10px;font-weight:700;letter-spacing:.08em;line-height:1.9;text-shadow:0 1px 5px #182c21}.live-dot{display:inline-block;width:6px;height:6px;background:#b4d2a1;border-radius:50%;margin-right:4px}.move-hint{font-size:9px;letter-spacing:.05em;color:#e5e5cd}.announcement{position:absolute;top:25%;left:50%;transform:translate(-50%,-8px);text-align:center;background:#243b2ef2;border:1px solid #e6c266;border-radius:10px;z-index:6;padding:12px 25px;color:#ffe09a;font-family:'Barlow Condensed',Impact,sans-serif;font-size:24px;font-weight:700;font-style:italic;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;max-width:85%;white-space:nowrap;box-shadow:0 8px 24px #14281b33}.announcement.show{opacity:1;transform:translate(-50%,0)}.toast{position:absolute;left:50%;bottom:128px;transform:translateX(-50%);background:#1d332be8;border:1px solid #c0a77680;padding:9px 17px;border-radius:7px;z-index:6;font-size:12px;font-weight:600;opacity:0;transition:opacity .2s;pointer-events:none;text-align:center}.toast.show{opacity:1}.context-hint{position:absolute;left:50%;bottom:140px;transform:translateX(-50%);font-size:12px;font-weight:600;text-shadow:0 2px 4px #183023,0 0 12px #183023;z-index:2;pointer-events:none;text-align:center}.context-hint kbd{background:#203229e8;padding:4px 7px;border-radius:4px;color:#f9d177;border:1px solid #bca36c;margin-right:5px}.overlay{position:absolute;inset:0;z-index:10}.menu-overlay{display:flex;align-items:center;padding:115px 6vw 65px;background:linear-gradient(90deg,rgba(22,37,29,.95) 0%,rgba(22,37,29,.89) 23%,rgba(22,37,29,.7) 41%,rgba(22,37,29,.13) 68%,rgba(22,37,29,0) 100%)}.intro-panel{max-width:520px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.17em;font-weight:700;color:#e6ce8f}.eyebrow>span{display:block;width:6px;height:6px;border-radius:50%;background:#f5cc67;box-shadow:0 0 15px #f5cc6799}.intro-panel h2{font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;font-weight:800;font-style:italic;font-size:clamp(56px,6.5vw,99px);letter-spacing:-.025em;line-height:.91;margin:18px 0 20px;text-shadow:0 4px 0 #16281f55}.intro-panel h2 em{color:#efc465;font-style:inherit}.intro-copy{font-size:14px;line-height:1.7;color:#d1d8c7;margin:0}.howto{display:flex;flex-direction:column;gap:11px;margin:26px 0}.howto>div{display:flex;align-items:center;gap:12px}.howto span{font-family:'Barlow Condensed',Impact,sans-serif;color:#c4a968;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #c7b48144;border-radius:7px;flex-shrink:0}.howto p{margin:0;color:#c6ceba;font-size:12px;line-height:1.5}.howto b{color:#f4e6bf}.menu-options{display:flex;align-items:center;gap:15px;margin-bottom:13px}.menu-options label{font-size:9px;font-weight:700;letter-spacing:.1em;color:#b8c4ac}.menu-options select{background:#223d2f;border:1px solid #75836c87;color:#eee6c7;border-radius:6px;padding:7px 24px 7px 9px;font-size:11px;cursor:pointer}.cta{border:1px solid #ffe7a6;border-radius:10px;background:linear-gradient(120deg,#f5d880,#e7b448);color:#24352a;font-family:'Barlow Condensed',Impact,sans-serif;font-size:23px;font-weight:800;font-style:italic;letter-spacing:.04em;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:17px 24px;width:100%;box-shadow:0 5px 0 #9d783e,0 8px 30px #101c1622;transition:transform .15s,filter .15s}.cta:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-2px)}.cta:active:not(:disabled){transform:translateY(3px)}.cta:disabled{opacity:.65}.cta>span:last-child{font-family:system-ui;font-style:normal;font-size:25px;line-height:1}.best{font-size:10px;letter-spacing:.04em;color:#b9c6b1;margin:17px 0 0;text-align:center}.key-guide{display:flex;gap:11px;flex-wrap:wrap;margin-top:26px;font-size:10px;color:#acbaa4}.key-guide>span{display:flex;align-items:center;gap:4px}kbd{font:inherit;font-size:9px;font-weight:600;border:1px solid #a0b0945c;border-radius:4px;padding:4px 5px;color:#e8e6cc}.scene-caption{position:absolute;right:5%;bottom:13%;display:flex;gap:12px;align-items:center;color:#fff4d2;line-height:1.7;font-size:11px;letter-spacing:.1em;text-shadow:0 2px 10px #152b1f}.scene-caption p{margin:0}.scene-caption-line{width:45px;height:1px;background:#fff1b4}.is-menu .play-only{display:none!important}.is-menu .hud-top{z-index:12}.is-menu .brand{background:transparent;border-color:transparent;box-shadow:none;padding-left:0;text-align:left}.is-menu .brand-crown{display:none}.is-menu .brand h1{font-size:27px}.is-menu .brand-sub{font-size:10px;letter-spacing:.2em}.modal-overlay{background:#15291f99;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:24px}.modal{background:linear-gradient(145deg,#344836,#1d3026);border:1px solid #a7a67b87;box-shadow:0 25px 100px #0a181b66;border-radius:18px;padding:32px;width:min(460px,100%);max-height:95dvh;overflow:auto;text-align:center}.modal .eyebrow{justify-content:center}.modal h2{font-family:'Barlow Condensed',Impact,sans-serif;font-weight:700;font-size:38px;line-height:1.05;margin:15px 0 12px;font-style:italic;letter-spacing:-.02em}.modal>p{font-size:12px;color:#c9d3bd;line-height:1.7}.controls-list{text-align:left;margin:24px 0}.controls-list>div{display:flex;gap:12px;justify-content:space-between;padding:9px 0;border-bottom:1px solid #c6cba01a;font-size:11px}.controls-list dt{color:#edcc7b;font-weight:700;flex-shrink:0}.controls-list dd{margin:0;color:#c8d4bc;text-align:right}.modal p.tip{font-size:11px;color:#aebea5;line-height:1.65;margin:20px 0}.text-button{background:none;border:0;color:#c9d3bb;font-size:11px;margin-top:17px;padding:9px}.text-button:hover{color:#ffdf8d}.result-money{font-family:'Barlow Condensed',Impact,sans-serif;font-size:70px;font-style:italic;font-weight:700;color:#f3ce73;line-height:1.1}.result-rank{font-size:11px;color:#c6d1ba;letter-spacing:.08em;margin:7px 0 20px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0}.result-stats span{display:block;font-size:9px;letter-spacing:.08em;color:#acbca1}.result-stats b{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-size:24px;margin-top:6px}.final-board{display:flex;flex-direction:column;gap:5px;margin-top:16px}.final-board .leader-row{background:none;border-color:transparent;padding:4px 8px}.final-board .leader-row.self{background:#4c5c3d55;border-color:#bdac6455}.floating{position:absolute;pointer-events:none;z-index:4;font-family:'Barlow Condensed',Impact,sans-serif;font-size:25px;font-weight:800;color:#ffe077;text-shadow:0 2px 1px #4d4826,0 0 8px #263920;animation:float-up .85s ease-out forwards}.floating.loss{color:#ffc2a6;text-shadow:0 2px 1px #633528}.name-tag{position:absolute;transform:translate(-50%,-100%);font-size:9px;font-weight:800;letter-spacing:.05em;color:#fff2d0;text-shadow:0 2px 3px #17261e;pointer-events:none}.name-tag.player{color:#ffe59a;font-size:10px}#world-labels{position:absolute;inset:0;pointer-events:none;z-index:2}.joystick{display:none}.noscript{position:absolute;inset:40% 10%;background:#203329;padding:30px;text-align:center;z-index:30}.is-paused .hud-bottom{opacity:.5}@keyframes float-up{0%{opacity:1;transform:translate(-50%,0) scale(.8)}20%{transform:translate(-50%,-12px) scale(1.1)}100%{opacity:0;transform:translate(-50%,-65px) scale(1)}}
@media(max-height:750px) and (min-width:701px){.menu-overlay{padding-top:100px;padding-bottom:30px}.intro-panel h2{font-size:68px;margin:12px 0 15px}.howto{margin:18px 0;gap:8px}.key-guide{margin-top:19px}.intro-copy{font-size:13px}.modal{padding:23px}.modal h2{font-size:33px}.result-money{font-size:55px}.results-modal .tip{margin:12px 0}.final-board{margin-top:10px}}
@media(max-width:1050px){.hud-top{left:16px;right:16px;top:18px}.brand{padding:11px 13px}.brand h1{font-size:27px}.brand-sub{font-size:11px}.leaderboard{width:166px}.leader-row{gap:6px;padding:6px 8px;font-size:10px}.leader-row b{font-size:12px}.hud-bottom{left:16px;right:16px;bottom:16px}.match-info{display:none}.wallet{min-width:145px;padding:9px 13px}.wallet strong{font-size:33px}.abilities{left:auto;right:0;transform:none;gap:7px}.ability{min-width:116px;height:70px;padding:8px 12px 17px}.ability b{font-size:22px}.ability small{font-size:18px}.ability-icon{font-size:29px}.intro-panel{max-width:450px}.scene-caption{right:4%;font-size:10px}.timer{font-size:42px}.leader-status{font-size:14px}}
@media(max-width:700px){.hud-top{top:max(16px,env(safe-area-inset-top));left:12px;right:12px}.brand{border-radius:9px;padding:8px 9px}.brand h1{font-size:20px}.brand-sub{font-size:8px;letter-spacing:.15em;margin-top:4px}.brand-crown{font-size:20px;top:-14px}.match-status{top:0;left:50%;}.timer{font-size:32px;padding:6px 14px;border-radius:10px}.leader-status{font-size:10px;padding:4px 7px;margin-top:5px}.top-right{gap:8px}.icon-btn{width:29px;height:29px;font-size:16px}.leaderboard{position:absolute;top:76px;right:0;width:141px}.leader-row{font-size:9px;padding:5px 7px;gap:5px;border-radius:6px}.leader-row b{font-size:11px}.leader-row .avatar-dot{width:6px;height:6px}.leader-row .position{width:9px}.wallet{min-width:112px;padding:7px 10px;border-radius:10px;position:absolute;bottom:104px;left:0}.wallet strong{font-size:29px}.wallet-label,.rank{font-size:8px}.coin-mark{width:23px;height:23px;font-size:16px;border-width:2px}.hud-bottom{bottom:max(20px,env(safe-area-inset-bottom));left:14px;right:14px}.abilities{gap:6px;align-items:flex-end;right:0}.ability{min-width:66px;width:66px;height:69px;padding:8px 4px;display:flex;flex-direction:column;gap:3px;border-radius:12px}.ability-icon{font-size:20px;line-height:.8}.ability b{font-size:14px}.ability small{font-size:12px;margin-top:2px}.ability kbd{display:none}.ability.shove{width:74px;height:80px}.ability.shove .ability-icon{font-size:28px}.ability.shove b{font-size:17px}.announcement{top:27%;font-size:19px;padding:10px 15px;white-space:normal;min-width:220px}.toast{bottom:126px;font-size:11px;max-width:75%;width:max-content}.context-hint{bottom:120px;font-size:10px;width:210px;left:65%;}.menu-overlay{padding:100px 26px 25px;background:linear-gradient(90deg,#16251deb,#16251da8),linear-gradient(0deg,#16251d88,transparent);align-items:center}.intro-panel{max-width:450px;width:100%}.intro-panel h2{font-size:clamp(58px,11vw,80px);margin:15px 0 18px}.intro-copy{font-size:12px;line-height:1.7}.howto{margin:22px 0;gap:10px}.howto p{font-size:11px}.eyebrow{font-size:8px;letter-spacing:.1em}.menu-options{gap:10px}.menu-options label{font-size:8px}.menu-options select{font-size:10px}.cta{font-size:22px;padding:16px 20px}.best{font-size:9px}.key-guide{display:none}.scene-caption{display:none}.is-menu .brand h1{font-size:24px}.is-menu .brand-sub{font-size:9px}.modal{padding:25px 21px;border-radius:15px}.modal h2{font-size:35px}.result-money{font-size:60px}.joystick{display:block;position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:21px;z-index:5;touch-action:none;width:100px;height:100px}.stick-ring{position:absolute;width:86px;height:86px;left:7px;top:1px;border:2px solid #f6e3ac66;border-radius:50%;background:#1e342a55;box-shadow:inset 0 0 15px #152d2433}#stick{position:absolute;width:38px;height:38px;left:22px;top:22px;border-radius:50%;background:#ede0bba6;border:2px solid #fff1c9aa;box-shadow:0 3px 7px #19322555}.joystick>span{position:absolute;bottom:0;width:100%;text-align:center;font-size:8px;letter-spacing:.1em;color:#ece3c3}.name-tag{font-size:8px}.name-tag.player{font-size:9px}}
@media(max-width:390px){.brand h1{font-size:17px}.brand-sub{font-size:7px}.timer{font-size:29px;padding:6px 11px}.abilities{gap:4px}.ability{min-width:60px;width:60px}.ability.shove{width:65px}.joystick{left:10px}.menu-overlay{padding-left:21px;padding-right:21px}.howto p{font-size:10px}.intro-panel h2{font-size:57px}.howto{margin:18px 0}}
@media(max-height:600px) and (max-width:700px){.menu-overlay{padding-top:80px;align-items:flex-start;overflow-y:auto}.intro-panel h2{font-size:45px;margin:8px 0 10px}.intro-copy{font-size:11px}.howto{margin:13px 0;gap:6px}.cta{padding:12px 18px}.best{margin-top:12px}.modal{padding:18px}.modal h2{font-size:29px}.controls-list{margin:12px 0}.modal p.tip{margin:12px 0}.result-money{font-size:46px}.result-stats{padding:9px 0}.final-board{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.floating{animation-duration:.1s}}
@media(max-width:350px){.brand{padding:8px 6px}.brand h1{font-size:14px}.brand-sub{font-size:6px}.brand-crown{font-size:17px;top:-12px}.timer{font-size:27px;padding:6px 10px}.utilities{gap:4px}.icon-btn{width:27px;height:27px}.leader-status{font-size:9px}}
@media(pointer:coarse) and (min-width:701px){.joystick{display:block;position:absolute;bottom:22px;left:25px;z-index:5;touch-action:none;width:100px;height:100px}.stick-ring{position:absolute;width:90px;height:90px;border:2px solid #f6e3ac66;border-radius:50%;background:#1e342a55}#stick{position:absolute;width:38px;height:38px;left:24px;top:24px;border-radius:50%;background:#ede0bba6;border:2px solid #fff1c9aa}.joystick>span{position:absolute;bottom:0;width:90px;text-align:center;font-size:9px;color:#ece3c3}.wallet{position:absolute;bottom:120px;left:0}.move-hint{display:none}}

/* Art pass: black lacquer, warm gold, and the tighter framing of the concept. */
:root{--ink:#24201f;--gold:#ffd450;--cream:#fff0c8}
.screen-vignette{background:linear-gradient(180deg,#3d29200c,transparent 24%,transparent 78%,#39251d22)}
.brand,.timer,.wallet,.ability{background:linear-gradient(155deg,#373330,#171719 75%);border-color:#f3dca1;box-shadow:0 3px 0 #755d39,0 6px 0 #17171999, inset 0 0 0 3px #504943}
.brand{border-radius:18px;padding:13px 18px 11px}.brand h1{text-shadow:2px 3px 0 #000;font-size:clamp(25px,2.7vw,40px);letter-spacing:.015em}.brand-sub{color:#ffe29c;font-style:italic;letter-spacing:.12em}.brand-crown{color:#ffcf32}
.timer{font-size:61px;letter-spacing:.04em;padding:3px 28px 8px;border-radius:20px;text-shadow:2px 3px #000}
.leader-status{background:#1b1b1eea;color:#ffda62;border:2px solid #d9a94b;font-size:19px;border-radius:13px;box-shadow:0 3px #3c3129;padding:5px 14px}
.leaderboard{width:220px;gap:4px}.leader-row{background:linear-gradient(135deg,#2e2928,#161719);border:2px solid #615d57;font-family:'Barlow Condensed',Impact,sans-serif;font-size:20px;letter-spacing:.03em;padding:4px 12px;border-radius:10px;box-shadow:0 2px #17171966}.leader-row b{font-size:23px}.leader-row .position{color:#fff0c8}.leader-row.self{background:linear-gradient(135deg,#2e2928,#161719);color:#ffda57;border-color:#ffd04f}.leader-row:first-child{border-color:#ebc764}.leader-row .avatar-dot{display:none}
.wallet{min-width:174px;padding:9px 17px;border-radius:18px}.wallet-label{display:none}.wallet strong{font-size:43px;text-shadow:2px 3px #000}.coin-mark{width:33px;height:33px;font-size:24px;background:#ffd73b;border-color:#af7920;box-shadow:inset 0 0 0 2px #ffec7c,0 4px #bf8c24,0 7px #ffdc4d,0 10px #a6711a;margin-right:4px}.rank{color:#dbceae}.abilities{gap:13px}.ability{width:185px;min-width:185px;height:88px;border-radius:22px;border-width:2px;padding:11px 19px 17px;gap:12px}.ability b{font-size:31px;letter-spacing:.03em;text-shadow:2px 2px #000}.ability small{font-size:27px;color:#ffe8ae}.ability-icon{width:46px;height:48px;display:grid;place-items:center}.ability-icon svg{width:46px;height:46px;fill:currentColor}.ability kbd{color:#dacda9}.ability.unaffordable{filter:saturate(.65);opacity:.8}
.announcement{background:#27201ce8;border:2px solid #e3b94f;border-radius:13px;top:22%;font-size:22px;box-shadow:0 4px #432f2466}.name-tag{font-size:10px;text-shadow:0 2px 2px #1d1817,0 0 4px #1d1817}.name-tag.player{font-size:11px}.context-hint{bottom:155px}.toast{bottom:162px;background:#211d1bea}
@media(min-width:701px){.abilities .shove{position:absolute;left:50%;transform:translateX(-50%);bottom:99px;width:126px;min-width:126px;height:27px;border:1px solid #f8d68280;border-radius:7px;padding:4px 8px;box-shadow:none;background:#27201dbb;gap:7px}.abilities .shove b{font-size:14px;letter-spacing:.04em}.abilities .shove small,.abilities .shove .ability-icon{display:none}.abilities .shove kbd{position:static;order:-1;font-size:10px;color:#ffd95c}.abilities .shove:hover{transform:translateX(-50%) translateY(-2px)}}
@media(max-width:1050px) and (min-width:701px){.brand h1{font-size:28px}.timer{font-size:45px}.leaderboard{width:180px}.leader-row{font-size:16px}.leader-row b{font-size:19px}.ability{min-width:150px;width:150px;height:79px}.ability b{font-size:25px}.ability small{font-size:22px}.abilities .shove{bottom:90px}.leader-status{font-size:14px}}
@media(max-width:700px){.brand{padding:8px 9px;border-radius:10px}.brand h1{font-size:19px}.brand-sub{font-size:8px}.timer{font-size:32px;padding:5px 14px;border-radius:11px}.leader-status{font-size:10px;padding:4px 6px;border-width:1px;border-radius:7px}.leaderboard{width:142px}.leader-row{font-size:12px;padding:3px 7px;border-width:1px}.leader-row b{font-size:15px}.wallet{min-width:112px;padding:8px 10px}.wallet strong{font-size:29px}.coin-mark{width:23px;height:23px;font-size:16px;margin-right:0}.abilities{gap:6px}.ability{width:66px;min-width:66px;height:70px;border-radius:12px;padding:7px 4px;gap:3px}.ability b{font-size:14px}.ability small{font-size:12px}.ability-icon,.ability-icon svg{width:24px;height:24px}.announcement{top:31%;font-size:17px}.context-hint{bottom:130px}.name-tag{font-size:8px}}
@media(max-width:360px){.brand h1{font-size:15px}.brand-sub{font-size:7px}.brand{padding:7px}.timer{font-size:27px;padding:5px 11px}.leader-status{font-size:9px}.ability{width:59px;min-width:59px}}
@media(max-width:700px){.brand{width:calc(50vw - 72px);padding:8px 6px}.brand h1{font-size:clamp(12px,3.8vw,18px);white-space:nowrap}.brand-sub{font-size:7px;letter-spacing:.08em}.is-menu .brand{width:auto}.is-menu .brand h1{font-size:24px}}
/* Round information stays compact so the chase remains the focus. */
.phase-strip{font-size:10px;font-weight:800;letter-spacing:.075em;color:#f9e5b1;background:#241f1cd9;border:1px solid #d7b96b66;border-radius:6px;padding:5px 10px;margin:7px auto 0;width:max-content;max-width:260px;box-shadow:0 2px 5px #1d17132b}.phase-strip.imminent{color:#ffda59;border-color:#e4ba46;background:#352a19ee}
.side-job{position:absolute;z-index:3;left:24px;bottom:130px;width:205px;padding:11px 13px;border:1px solid #e8ce8e88;border-radius:12px;background:linear-gradient(125deg,#302b27eb,#191a1deb);box-shadow:0 3px 0 #16171955;pointer-events:none}.job-label{display:flex;justify-content:space-between;color:#dbcba8;font-size:8px;font-weight:800;letter-spacing:.1em}.job-label span{font-size:9px;letter-spacing:0;color:#f8de93}.side-job strong{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-size:20px;font-weight:700;margin:4px 0 8px}.job-track{height:3px;background:#766c574d;border-radius:3px;overflow:hidden}.job-track span{display:block;height:100%;width:0;background:#ffd257;transition:width .16s}.side-job.complete{border-color:#e1c15c}.side-job.complete strong{color:#ffe29a}.side-job.complete .job-label span{color:#c5ecaf}
.name-tag.danger{color:#ffe489;font-family:Impact,sans-serif;font-size:31px;line-height:1;text-shadow:-2px -2px #63311d,2px -2px #63311d,-2px 2px #63311d,2px 2px #63311d}.context-hint strong{color:#ffe19a;background:#542d20dd;border:1px solid #f6b06f;border-radius:6px;padding:7px 10px;letter-spacing:.04em}.announcement{top:24%;padding:9px 18px;font-size:21px;pointer-events:none}.result-job{border:1px solid #b49e6455;border-radius:7px;padding:9px;color:#f2d58d;font-size:11px;font-weight:600;line-height:1.4}.result-moments{margin:13px 0!important;color:#d4d6bc!important;font-size:11px!important}.results-modal{width:min(480px,100%)}.ability.recharging small{color:#d2c4a5;font-variant-numeric:tabular-nums}.controls-list dd{max-width:70%}
@media(max-width:1050px) and (min-width:701px){.side-job{left:16px;bottom:120px;width:180px}.side-job strong{font-size:18px}.phase-strip{font-size:9px}}
@media(max-width:700px){.phase-strip{font-size:8px;padding:4px 6px;max-width:135px;white-space:normal;line-height:1.2;margin-top:5px}.side-job{left:14px;bottom:205px;width:135px;padding:8px 10px;border-radius:9px}.side-job strong{font-size:16px;margin:4px 0 6px}.job-label{font-size:7px}.job-label span{font-size:8px}.announcement{top:29%;font-size:17px;padding:8px 12px}.result-job{font-size:10px}.result-moments{font-size:10px!important}.results-modal{padding:21px}.results-modal .tip{margin:13px 0}.leaderboard{top:110px}}
@media(max-height:720px){.results-modal{padding:18px}.results-modal h2{font-size:30px;margin:10px 0}.result-money{font-size:48px}.result-rank{margin-bottom:12px}.result-stats{padding:9px 0}.final-board{margin-top:9px}.result-moments{margin:9px 0!important}.results-modal .tip{margin:10px 0}.results-modal .text-button{margin-top:9px}}
/* Keep the complete start flow usable on short windows and landscape phones. */
.objective-marker{position:absolute;z-index:2;transform:translate(-50%,-50%);pointer-events:none;white-space:nowrap;background:#211e1bf2;color:#ffe499;border:1px solid #ebc866;border-radius:7px;padding:7px 9px;font-size:10px;font-weight:800;box-shadow:0 3px 9px #17131055}
@media(min-width:701px) and (max-height:600px){.menu-overlay{background:linear-gradient(90deg,#16251deb,#16251dc9)}.intro-panel{width:100%;min-width:0}.intro-heading,.intro-actions{min-width:0}}
.result-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.result-stats span{line-height:1.4}.result-stats b{font-variant-numeric:tabular-nums}.context-hint strong kbd{font-weight:800;background:#33251ddd;border-color:#e5c37b}.modal-overlay{overflow-y:auto;overscroll-behavior:contain}.modal{max-height:calc(100dvh - 48px)}
@media(max-height:650px){.menu-overlay{align-items:flex-start;overflow-y:auto;overscroll-behavior:contain;padding-top:92px;padding-bottom:28px}.intro-panel{flex-shrink:0}.is-menu .brand h1{font-size:24px}.scene-caption{display:none}}
@media(min-width:701px) and (max-height:600px){.menu-overlay{padding:88px 5vw 24px}.intro-panel{max-width:900px;display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1fr);gap:0 30px;align-items:start}.intro-heading{padding-top:10px}.intro-panel h2{font-size:clamp(43px,6.4vw,62px);margin:12px 0 15px}.intro-copy{font-size:12px;line-height:1.5}.intro-actions .howto{margin:0 0 15px;gap:8px}.howto p{font-size:11px}.intro-actions .menu-options{margin-bottom:10px}.intro-actions .cta{padding:12px 18px;font-size:21px}.intro-actions .best{margin-top:12px;line-height:1.4}.key-guide{grid-column:1;margin-top:15px;gap:8px}.hud-top{top:15px}.brand{padding:8px 12px}.brand h1{font-size:23px}.brand-sub{font-size:9px}.timer{font-size:40px}.leader-status{font-size:12px}.phase-strip{font-size:8px}.leaderboard{width:160px}.leader-row{font-size:13px}.leader-row b{font-size:16px}.side-job{bottom:113px;width:160px;padding:8px 10px}.side-job strong{font-size:16px;margin:4px 0}.context-hint{bottom:126px}.toast{bottom:134px}}
@media(max-width:700px){.result-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-stats b{font-size:22px;margin-top:3px}.results-modal h2{font-size:31px}.result-money{font-size:54px}}
@media(pointer:coarse) and (min-width:701px){.abilities .shove{position:relative;left:auto;transform:none;bottom:auto;width:90px;min-width:90px;height:79px;border:2px solid #d7bb76;border-radius:15px;padding:8px 10px;box-shadow:0 4px 0 #15251d88;background:linear-gradient(155deg,#373330,#171719 75%);flex-direction:column;gap:4px}.abilities .shove b{font-size:22px}.abilities .shove small{display:block;font-size:16px}.abilities .shove kbd{display:none}.abilities .shove:hover{transform:translateY(-2px)}.abilities .shove:active{transform:translateY(3px)}}
@media(pointer:coarse) and (min-width:701px){.side-job{left:25px;bottom:225px;width:145px}.side-job strong{font-size:16px}}
/* Public release controls and readable help. */
button,a,select{-webkit-tap-highlight-color:transparent}a:focus-visible{outline:3px solid #fff1cd;outline-offset:3px}.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;background:#203229b8;border:1px solid #c8b47788;border-radius:8px;color:#f6e3b7;font-size:11px;font-weight:700;line-height:1.35;text-align:center;transition:background .15s,border-color .15s}.secondary-button:hover{background:#3c4933;border-color:#ead38a}.secondary-button:active{transform:translateY(1px)}.secondary-button:disabled{opacity:.55}.load-status{margin:12px 0 0;color:#e8d596;font-size:11px;line-height:1.4;text-align:center}.load-status:empty{display:none}#load-retry{width:100%;margin-top:10px}.menu-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.menu-links{display:flex;align-items:center;gap:4px}.menu-links a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 8px;color:#d0d5bf;font-size:10px;font-weight:600;text-decoration:underline;text-decoration-color:#c8b47777;text-underline-offset:3px}.menu-links a:hover{color:#ffe19b;text-decoration-color:currentColor}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.result-actions .secondary-button{min-width:0}.share-status{color:#f0d999!important;font-size:11px!important;line-height:1.5!important;margin:12px 0 0!important;overflow-wrap:anywhere}.share-status:empty{display:none}.help-modal{text-align:left;width:min(520px,100%)}.help-modal h2,.help-modal>p{text-align:center}.help-controls{display:grid;grid-template-columns:1fr;gap:0;padding:9px 12px;margin:20px 0;background:#14251d55;border:1px solid #baaa7144;border-radius:9px}.help-controls>div{display:flex;gap:14px;justify-content:space-between;padding:7px 0;font-size:11px;line-height:1.5}.help-controls dt{font-weight:800;color:#f0d48a}.help-controls dd{margin:0;text-align:right;color:#e1e6cf}.help-steps{display:grid;gap:16px}.help-steps b{display:block;color:#ffe3a0;font-size:13px}.help-steps p{margin:5px 0 0;color:#d4ddc7;font-size:12px;line-height:1.65}.settings{min-width:0;margin:22px 0 20px;padding:12px;border:1px solid #b7ad794d;border-radius:9px;text-align:left}.settings legend{padding:0 6px;font-size:10px;font-weight:800;letter-spacing:.08em;color:#f0d48a;text-transform:uppercase}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-grid>div{min-width:0}.settings label{display:block;margin-bottom:6px;color:#d6dec8;font-size:11px;font-weight:600}.settings select{display:block;width:100%;max-width:100%;min-height:40px;padding:8px 9px;border:1px solid #8d9d7a80;border-radius:7px;background:#20362a;color:#fff0c8;font-size:12px}.settings p{margin:9px 0 0;font-size:10px;color:#b9c8aa;line-height:1.4}.icon-btn{min-width:40px;min-height:40px}.text-button{min-height:40px}
@media(max-width:700px){.utilities{gap:4px}.icon-btn{width:40px;height:40px;font-size:18px}.menu-tools{margin-top:12px;gap:8px}.menu-links a{font-size:10px;padding-inline:6px}.secondary-button{font-size:11px;padding:8px 11px}.help-modal{padding:23px 19px}.help-steps{gap:13px}.help-steps p{font-size:11px}.help-controls{margin:16px 0;padding:7px 10px}.help-controls>div{font-size:10px;gap:9px}.settings{margin:17px 0;padding:10px}.settings-grid{gap:10px}.result-actions{gap:8px;margin-top:13px}.results-modal .text-button{margin-top:9px}}
@media(min-width:701px) and (max-height:600px){.menu-tools{margin-top:9px}.menu-links a{min-height:36px}.menu-tools .secondary-button{min-height:36px}.help-modal{padding:20px}.help-controls{margin:15px 0}.help-steps{gap:12px}.settings{margin:15px 0}.intro-actions .best{margin-top:10px}.key-guide{align-self:end}.top-right{gap:7px}}
@media(max-width:350px){.utilities{gap:3px}.icon-btn{width:38px;min-width:38px;height:40px}.menu-tools{flex-wrap:wrap;justify-content:center}.menu-links a{padding-inline:10px}}
.share-status{user-select:text;-webkit-user-select:text}

.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after{transition:none!important;scroll-behavior:auto!important}.reduced-motion .floating{animation:none;opacity:1}
.control-setting{grid-column:1/-1}
/* Explicit touch controls also support hybrid devices in landscape. */
@media(min-width:701px){
  .touch-controls .joystick{display:block;position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:max(25px,env(safe-area-inset-left));z-index:5;touch-action:none;width:100px;height:100px}
  .touch-controls .stick-ring{position:absolute;width:90px;height:90px;border:2px solid #f6e3ac66;border-radius:50%;background:#1e342a55}
  .touch-controls #stick{position:absolute;width:38px;height:38px;left:24px;top:24px;border-radius:50%;background:#ede0bba6;border:2px solid #fff1c9aa}
  .touch-controls .joystick>span{position:absolute;bottom:0;width:90px;text-align:center;font-size:9px;color:#ece3c3}
  .touch-controls .wallet{position:absolute;bottom:120px;left:0}
  .touch-controls .move-hint,.touch-controls .ability kbd{display:none}
  .touch-controls .abilities{left:auto;right:max(0px,env(safe-area-inset-right));transform:none;gap:9px}
  .touch-controls .ability{min-width:104px;width:104px;height:79px;flex-direction:column;gap:2px;padding:6px;border-radius:15px}
  .touch-controls .ability b{font-size:18px}
  .touch-controls .ability small{font-size:16px;margin-top:2px}
  .touch-controls .ability-icon,.touch-controls .ability-icon svg{width:24px;height:24px}
  .touch-controls .abilities .shove{position:relative;left:auto;transform:none;bottom:auto;width:90px;min-width:90px;height:79px;border:2px solid #d7bb76;border-radius:15px;padding:8px 10px;box-shadow:0 4px 0 #15251d88;background:linear-gradient(155deg,#373330,#171719 75%);flex-direction:column;gap:4px}
  .touch-controls .abilities .shove b{font-size:22px}
  .touch-controls .abilities .shove small{display:block;font-size:16px}
  .touch-controls .abilities .shove:hover{transform:translateY(-2px)}
  .touch-controls .abilities .shove:active{transform:translateY(3px)}
  .touch-controls .side-job{left:25px;bottom:225px;width:145px}
  .touch-controls .side-job strong{font-size:16px}
}
/* Keep the menu masthead behind its help dialog. */
.is-menu[data-mode="help"] .hud-top{z-index:3}

@media(max-height:450px) and (min-width:701px){.key-guide{display:none}}

/* Keep transient loss messages separate from the live combat hint. */
.context-hint{line-height:1.4}
.context-hint strong{display:block}
.toast{bottom:205px;max-width:min(520px,calc(100% - 40px));line-height:1.45}
.brand-crown svg{display:block;width:1em;height:.75em;filter:drop-shadow(0 2px 1px #1b251f)}
.leader-status::before{content:"";display:inline-block;width:.95em;height:.75em;margin-right:.3em;vertical-align:-.02em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M4 10 18 23 32 3 46 23 60 10 53 39H11Z' fill='%23ffda62'/%3E%3Cpath d='M13 45H51' stroke='%23ffda62' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.result-comparison{margin:-9px 0 17px!important;color:#f2d58d!important;font-size:11px!important;line-height:1.5!important}
.result-comparison:empty{display:none}
@media(min-width:701px) and (max-height:600px){
  .toast{bottom:176px;max-width:calc(100% - 400px)}
  .context-hint{max-width:calc(100% - 400px)}
}
@media(max-width:700px){
  .toast,.context-hint{left:auto;right:14px;transform:none;width:calc(100% - 172px);max-width:360px}
  .context-hint{bottom:130px}
  .toast{bottom:190px;padding:8px 10px;font-size:10px}
  .result-comparison{font-size:10px!important;margin-bottom:14px!important}
}
@media(min-width:701px) and (max-height:600px){
  .toast{left:208px;right:340px;bottom:22px;width:auto;max-width:none;transform:none}
  .touch-controls .toast{left:140px}
}
@media(min-width:1051px) and (max-height:600px){
  #game:not(.touch-controls) .toast{left:auto;right:24px;bottom:90px;width:min(340px,calc((100% - 450px)/2 - 40px));max-width:none;transform:none}
  #game:not(.touch-controls) .context-hint{bottom:164px}
}
