@charset "UTF-8";
:root{color-scheme:dark;--paper:#efe6d2;--ink:#1f1b17;--ink-soft:#5a5248;--ink-faint:#8f877a;--cinnabar:#b8322a;--silk:#d4c4a3;--page:#1c1a17;--page-text:#e9dfca;--ui-font:"Microsoft YaHei","PingFang SC","Hiragino Sans","Yu Gothic","Malgun Gothic","Apple SD Gothic Neo","Nirmala UI","Leelawadee UI","Segoe UI","Noto Sans","Noto Sans Devanagari","Noto Sans Bengali","Noto Sans Thai","Noto Naskh Arabic",system-ui,sans-serif;font-family:var(--ui-font)}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--page-text)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--cinnabar);outline-offset:5px}button{color:inherit}button:disabled{cursor:default}svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex-shrink:0}button svg{pointer-events:none}[hidden]{display:none!important}.app{max-width:1600px;margin:auto;padding:0 38px}.topbar{height:91px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--page-text);font-size:19px;font-weight:800;letter-spacing:2px}.brand small{display:block;font:8px/1.6 Arial,sans-serif;letter-spacing:3.7px;color:var(--ink-faint);margin-top:4px}.brand-mark{height:35px;width:35px;background:#ff8b35;border-radius:50%;position:relative;transform:rotate(-19deg);box-shadow:inset -6px -3px 0 #df6725}.brand-mark:after{content:"";position:absolute;background:var(--page);width:51px;height:5px;left:-7px;top:14px;transform:rotate(-35deg)}.brand-mark:before{content:"";position:absolute;background:#d7e6a2;width:13px;height:7px;border-radius:0 9px 0 9px;top:-4px;right:1px;transform:rotate(-22deg)}.utilities{display:flex;gap:9px}.icon-button{border:1px solid #e9dfca40;background:transparent;border-radius:50%;height:38px;width:38px;display:inline-flex;align-items:center;justify-content:center;transition:background .18s,color .18s;color:var(--page-text)}.topbar .icon-button:hover{background:#e9dfca1a;color:#fff}.mute-stroke{display:none}.muted .mute-stroke{display:block}.muted{opacity:.6}.arena{position:relative;isolation:isolate;height:calc(100dvh - 141px);min-height:640px;max-height:960px;border:10px solid var(--silk);border-radius:6px;overflow:hidden;box-shadow:0 24px 60px #0008;background:var(--paper);color:var(--ink)}.arena canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none}.arena.playing canvas{cursor:crosshair}.arena:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px #1f1b178c;border-radius:inherit;pointer-events:none;z-index:2}.menu{position:absolute;inset:0;z-index:3;pointer-events:none}.menu button{pointer-events:auto}.hero-copy{position:absolute;top:8.7%;inset-inline-start:6.4%;width:49%;}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--ink-soft);display:flex;align-items:center;gap:12px}.eyebrow>span:first-child{height:1px;width:26px;background:var(--cinnabar)}h1{font-family:Impact,"Arial Black",sans-serif;font-size:clamp(76px,8.3vw,128px);line-height:.88;letter-spacing:-1px;margin:24px 0 24px;transform:skew(-8deg);transform-origin:left bottom;font-weight:900;text-shadow:2px 3px 0 #1f1b171f;width:max-content}h1>span{display:block}h1>span:first-child{color:var(--ink)}h1>span:nth-child(2){color:var(--ink)}h1 .title-dot{color:var(--cinnabar)}.tagline{font-size:24px;letter-spacing:4px;font-weight:800;margin:0 0 12px}.hero-description{font-size:12px;color:var(--ink-soft);letter-spacing:1px;margin:0 0 25px}.start-button{background:var(--cinnabar);border:1px solid #8f241e;color:var(--paper);border-radius:6px;min-height:55px;padding:0 27px;font-size:15px;font-weight:800;letter-spacing:2px;display:flex;justify-content:space-between;align-items:center;gap:45px;box-shadow:0 4px 0 #7a1f19,0 9px 25px #1f1b1726;transition:transform .18s,background .18s,box-shadow .18s}.start-button:hover{background:#c73a31;transform:translateY(-2px);box-shadow:0 6px 0 #7a1f19,0 12px 25px #1f1b1733}.start-button:active{transform:translateY(3px);box-shadow:0 1px 0 #7a1f19}.personal-best{display:flex;align-items:center;gap:7px;color:var(--ink-soft);font-size:10px;margin-top:19px;letter-spacing:.7px}.personal-best svg{height:14px;width:14px;color:var(--cinnabar)}.mode-section{position:absolute;bottom:75px;left:6.4%;right:6.4%}.mode-heading{font-size:11px;letter-spacing:2px;color:var(--ink);margin-bottom:12px}.mode-heading>small{font-size:8px;letter-spacing:2px;color:var(--ink-soft);margin-inline-start:14px}.mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.rule-strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.rule-strip li{display:flex;flex-direction:column;justify-content:center;gap:7px;min-height:83px;padding:16px 18px;background:#ffffff59;border:1px solid #1f1b1733;border-inline-start:3px solid var(--cinnabar);border-radius:7px}.rule-strip strong{font-size:13px;font-weight:700;letter-spacing:1px}.rule-strip span{font-size:10px;color:var(--ink-soft)}.mode{display:flex;text-align:left;align-items:center;gap:13px;padding:16px 18px;background:#ffffff59;border:1px solid #1f1b1733;border-radius:7px;transition:border-color .2s,background .2s;min-height:83px}.mode:hover{border-color:#1f1b1766;background:#ffffff80}.mode.selected{border-color:var(--cinnabar);background:#ffffff8c;box-shadow:inset 0 0 0 1px #b8322a33}.mode-symbol{width:39px;height:39px;flex-shrink:0;border:1px solid #1f1b1759;border-radius:50%;font:22px/38px KaiTi,"STKaiti",serif;text-align:center;color:var(--ink)}.selected .mode-symbol{color:var(--cinnabar);border-color:#b8322a99}.mode-copy{display:block;flex:1}.mode-copy strong{display:block;font-size:13px;font-weight:700;letter-spacing:1px;white-space:nowrap}.mode-copy strong small{font-family:Arial,sans-serif;color:var(--ink-soft);font-size:8px;font-weight:400;letter-spacing:1.2px;margin-left:5px}.mode-copy>span{display:block;color:var(--ink-soft);font-size:10px;white-space:nowrap;margin-top:7px}.mode-check{width:12px;height:12px;flex-shrink:0;border-radius:50%;border:1px solid #1f1b1766}.selected .mode-check{background:var(--cinnabar);border:3px solid var(--paper);box-shadow:0 0 0 1px var(--cinnabar)}.hud{position:absolute;inset:34px 42px auto;z-index:5;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;text-shadow:0 0 6px #efe6d2,0 0 2px #efe6d2}.score-block{display:grid;grid-template-columns:auto auto;align-items:end;gap:4px 9px}.hud-label{grid-column:1 / -1;font-size:12px;color:var(--ink-soft);letter-spacing:3px}.score-block>strong{font:68px/.95 Impact,"Arial Black",sans-serif;color:var(--ink);font-variant-numeric:tabular-nums}.record{font-size:10px;color:var(--ink-soft);padding-bottom:4px;display:flex;flex-direction:column;gap:4px}.record b{font-size:16px;font-family:Arial,sans-serif;color:var(--ink)}.hud-center{text-align:center;padding-top:7px;display:flex;flex-direction:column;gap:9px}.hud-center>span:first-child{font-size:14px;font-weight:700;letter-spacing:4px}.hud-center>span:last-child{font-size:10px;letter-spacing:1px;color:var(--ink-soft)}.hud-right{display:flex;align-items:center;gap:26px}.pause-button{pointer-events:auto;color:var(--ink);border-color:#1f1b1740}.lives{display:flex;gap:10px}.lives>span{font:48px/1 Arial,sans-serif;color:var(--ink-faint);opacity:1}.lives>span.lost{color:var(--cinnabar);opacity:1;text-shadow:none}.timer{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;justify-content:flex-end;width:90px}.timer small{width:100%;font-size:10px;text-align:right;color:var(--ink-soft);letter-spacing:2px}.timer strong{font:45px/1 Impact,"Arial Black",sans-serif}.timer>span{font-size:14px;color:var(--ink-soft)}.timer.urgent{color:var(--cinnabar)}.game-tip{position:absolute;bottom:24px;left:0;right:0;text-align:center;font-size:11px;letter-spacing:2px;color:var(--ink);text-shadow:0 0 6px #efe6d2,0 0 2px #efe6d2;pointer-events:none;z-index:4}.frenzy-banner{position:absolute;top:27%;left:50%;transform:translateX(-50%) rotate(-4deg);pointer-events:none;text-align:center;z-index:4;color:var(--cinnabar);text-shadow:0 0 6px #efe6d2,2px 2px 0 #efe6d2}.frenzy-banner strong{font-size:32px;font-style:italic;letter-spacing:6px}.frenzy-banner span{display:block;font-size:12px;margin:7px}.frenzy-banner i{display:block;width:100%;height:3px;background:var(--cinnabar);transform-origin:left}.countdown{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;pointer-events:none;font:italic 110px Impact,"Arial Black","Microsoft YaHei",sans-serif;color:var(--ink);text-shadow:0 0 10px #efe6d2,0 4px 0 #efe6d2}.flash{position:absolute;inset:0;background:#ff7044;opacity:0;z-index:7;pointer-events:none}.modal{position:absolute;inset:0;z-index:20;width:min(440px,calc(100% - 40px));color:var(--ink);color-scheme:light;background:var(--paper);border:1px solid #1f1b1740;border-radius:16px;padding:38px;box-shadow:0 28px 100px #0009;text-align:center;max-height:calc(100dvh - 32px);overflow-y:auto}.modal::backdrop{background:#14120f99;backdrop-filter:blur(6px)}.modal-kicker{color:var(--cinnabar);font-size:9px;letter-spacing:3px;margin-bottom:15px}.modal h2{font-size:27px;letter-spacing:2px;margin:0 0 13px}.modal>p{font-size:12px;line-height:1.8;color:var(--ink-soft);margin:0 0 24px}.modal .start-button{width:100%;margin-top:25px;justify-content:space-between}.secondary-button{background:none;border:1px solid #1f1b1759;border-radius:6px;color:var(--ink-soft);font-size:12px;letter-spacing:2px;padding:13px 25px;margin-top:12px;width:100%}.secondary-button:hover{color:var(--ink);border-color:var(--ink)}.final-score{display:flex;flex-direction:column;gap:6px;margin:14px 0 26px}.final-score>strong{font:85px/1 Impact,"Arial Black",sans-serif;color:var(--cinnabar)}.final-score>span{font-size:10px;letter-spacing:3px;color:var(--ink-soft)}.result-stats{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:18px 0;border-top:1px solid #1f1b1726;border-bottom:1px solid #1f1b1726}.result-stats>div{display:flex;flex-direction:column;gap:8px}.round-painting{margin:20px 0 0}.round-painting canvas{display:block;max-width:100%;max-height:34vh;width:auto;height:auto;margin:0 auto;border:1px solid #1f1b1726;border-radius:3px;box-shadow:0 6px 18px #1f1b171f}.round-painting figcaption{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:10px;letter-spacing:3px;color:var(--ink-soft)}.painting-save{background:none;border:1px solid #1f1b1759;border-radius:6px;color:var(--ink);font-size:11px;letter-spacing:2px;padding:7px 14px}.painting-save:hover{border-color:var(--ink)}.painting-seals{margin:10px 0 0;font-size:11px;letter-spacing:2px;color:var(--cinnabar);text-align:start}@media(orientation:portrait){.round-painting canvas{max-height:none;width:100%}}.result-stats strong{font-size:23px;font-weight:600}.result-stats span{font-size:10px;color:var(--ink-soft)}.help-modal{width:min(510px,calc(100% - 30px));text-align:start}.dialog-close{position:absolute;right:14px;top:14px;font-size:22px;border:0;color:var(--ink-soft)}.help-row{display:flex;gap:18px;margin-top:24px}.help-row>span{font:20px/1.3 Georgia,serif;color:var(--cinnabar)}.help-row h3{font-size:14px;margin:0 0 8px}.help-row p{font-size:12px;color:var(--ink-soft);line-height:1.9;margin:0}.help-row p+p{margin-top:8px}.keyboard-help{margin-top:26px;padding-top:20px;border-top:1px solid #1f1b1726;display:flex;justify-content:space-between;font-size:10px;color:var(--ink-soft)}kbd{font:10px/1.8 monospace;background:#1f1b170d;border:1px solid #1f1b1740;border-radius:3px;padding:2px 5px}.arena:fullscreen{height:100dvh;max-height:none;border-radius:0;border:0}.arena:fullscreen .modal{position:fixed}
@media(min-width:1500px){h1{font-size:130px}.hero-copy{top:10%}.tagline{font-size:28px}}
@media(max-height:800px) and (min-width:901px){.arena{min-height:590px}.hero-copy{top:7%}h1{font-size:88px;margin:19px 0}.tagline{font-size:21px}.hero-description{margin-bottom:21px}.mode{padding:13px 15px;min-height:75px}.mode-section{bottom:69px}.personal-best{margin-top:17px}}
@media(max-width:1100px){.app{padding:0 24px}.hero-copy{inset-inline-start:5%}.mode-section{left:5%;right:5%}.mode{gap:10px;padding:14px 12px}.mode-symbol{height:33px;width:33px;font-size:20px;line-height:32px}.mode-copy strong small{display:none}.mode-copy>span{font-size:9px}.mode-check{display:none}.hero-description{font-size:11px}.tagline{font-size:21px}}
@media(max-width:700px){.app{padding:0 8px}.topbar{height:72px}.brand{font-size:17px;gap:9px}.brand small{font-size:7px;letter-spacing:3px}.brand-mark{width:30px;height:30px}.brand-mark:after{top:12px}.utilities{gap:6px}.icon-button{width:33px;height:33px}.icon-button svg{width:19px;height:19px}.arena{height:calc(100dvh - 108px);min-height:480px;border-width:6px;border-radius:6px}.hero-copy{top:6%;inset-inline-start:7%;width:84%}.eyebrow{font-size:9px;letter-spacing:2px}h1{font-size:84px;margin:23px 0 22px}.tagline{font-size:18px;letter-spacing:2px}.hero-description{font-size:10px;max-width:190px;line-height:1.8;margin:0 0 22px}.start-button{min-height:49px;font-size:13px;padding:0 19px;gap:25px}.personal-best{font-size:9px;margin-top:16px;gap:5px}.mode-section{bottom:65px;left:7%;right:7%}.mode-options{gap:7px}.mode{padding:12px 6px;gap:7px;flex-direction:column;align-items:center;text-align:center;min-height:84px}.mode-symbol{height:29px;width:29px;line-height:28px;font-size:18px}.mode-copy strong{font-size:11px;letter-spacing:.5px}.mode-copy>span{display:none}.rule-strip{gap:7px}.rule-strip li{min-height:0;padding:13px 6px;align-items:center;text-align:center}.rule-strip strong{font-size:11px;letter-spacing:.5px}.rule-strip span{display:none}.mode-heading{font-size:10px;margin-bottom:10px}.mode-heading>small{font-size:7px;letter-spacing:1.6px;margin-inline-start:9px}.hud{inset:26px 24px auto}.score-block>strong{font-size:50px}.hud-label{font-size:10px}.record{font-size:8px}.record b{font-size:12px}.hud-center{position:absolute;top:100px;left:0;right:0;gap:6px}.hud-center>span:first-child{font-size:11px}.hud-center>span:last-child{font-size:9px}.hud-right{gap:12px}.lives{gap:6px}.lives>span{font-size:35px}.timer strong{font-size:35px}.timer small{font-size:8px}.timer{width:60px}.game-tip{font-size:9px;letter-spacing:1px;bottom:24px}.modal{padding:28px}.modal h2{font-size:24px}.result-modal{padding:28px}.final-score>strong{font-size:72px}.frenzy-banner strong{font-size:25px;white-space:nowrap}.keyboard-help{gap:8px;font-size:9px}.help-row{margin-top:19px}.help-row p{font-size:11px}.arena.playing{min-height:420px}}
@media(max-width:360px){h1{font-size:73px}.hero-copy{top:7%}.tagline{font-size:16px}.hero-description{max-width:170px}.utilities{gap:4px}.fullscreen-button{display:none}.personal-best{font-size:8px}}
@media(max-height:560px) and (min-width:701px){.app{padding:0 15px}.topbar{height:58px}.arena{height:calc(100dvh - 88px);min-height:500px}.arena.playing{min-height:250px}.hero-copy{top:6%}h1{font-size:68px;margin:14px 0}.hero-description{margin-bottom:15px}.tagline{font-size:18px}.personal-best{display:none}.start-button{min-height:44px}.mode-section{bottom:63px}.mode{min-height:64px;padding:10px}.mode-symbol{height:29px;width:29px;line-height:28px}.hud{inset:20px 28px auto}.score-block>strong{font-size:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
#backdrop{position:absolute;inset:0;pointer-events:none}#game{position:relative;outline:none}.miss-flash{position:absolute;inset:0;background:linear-gradient(0deg,#ff4b3977,transparent 35%);opacity:0;pointer-events:none;z-index:4}.miss-notice{position:absolute;left:50%;bottom:65px;transform:translateX(-50%);background:var(--cinnabar);border:1px solid #8f241e;border-radius:6px;padding:11px 20px;color:var(--paper);font-size:14px;font-weight:700;pointer-events:none;z-index:5;white-space:nowrap}.combo-readout{position:absolute;left:50%;top:20%;display:flex;align-items:baseline;gap:9px;transform:translateX(-50%) rotate(-5deg);color:var(--ink);pointer-events:none;z-index:5;text-shadow:0 0 6px #efe6d2,0 2px 0 #efe6d2}.combo-readout strong{font:italic 62px/1 Impact,'Arial Black',sans-serif}.combo-readout span{font-size:19px;font-weight:800;letter-spacing:3px;color:var(--cinnabar)}.settings-modal{text-align:start;width:min(490px,calc(100% - 30px))}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid #1f1b171f;font-size:14px}.setting-row>span{flex:1}.setting-row small{display:block;font-size:11px;color:var(--ink-soft);margin-top:6px;line-height:1.65}.setting-row input[type=range]{accent-color:var(--cinnabar);width:130px;cursor:pointer}.setting-row input[type=checkbox]{accent-color:var(--cinnabar);width:19px;height:19px;cursor:pointer}.setting-row select{font:12px inherit;padding:9px 11px;color:var(--ink);border:1px solid #1f1b1759;border-radius:5px;background:#f7f1e3;max-width:130px;cursor:pointer}.setting-row:focus-within{color:var(--cinnabar)}.settings-modal .start-button{margin-top:22px}.arena.playing:after{box-shadow:inset 0 0 0 1px #1f1b178c}.score-block>strong{transform-origin:left bottom}.lives>span.lost{filter:none}
@media(max-width:700px){.utilities{gap:5px}.brand{letter-spacing:1px}.setting-row{padding:15px 0;font-size:13px}.setting-row small{font-size:10px;max-width:160px}.setting-row input[type=range]{width:100px}.combo-readout{top:25%}.combo-readout strong{font-size:48px}.miss-notice{bottom:57px;font-size:12px;padding:10px 13px}.hero-description{max-width:185px}.arena.playing .hud-center{top:80px}.settings-modal h2{font-size:22px}}
@media(max-width:370px){.utilities .fullscreen-button{display:none}}
button,a,input,select{touch-action:manipulation}
.topbar :focus-visible{outline-color:var(--page-text)}
.pause-button:hover,.dialog-close:hover{color:var(--ink);background:#1f1b170f}
@media(max-width:700px) and (max-height:760px){.hero-copy{top:4%}h1{font-size:62px;margin:14px 0}.tagline{font-size:16px;margin-bottom:8px}.hero-description{display:none}.start-button{min-height:44px}.personal-best{margin-top:12px}.mode-section{bottom:22px}.mode-heading{margin-bottom:7px}}
html:lang(ja){--ui-font:"Hiragino Sans","Yu Gothic","Noto Sans JP","Microsoft YaHei",system-ui,sans-serif}html:lang(ko){--ui-font:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif}html:lang(zh-TW){--ui-font:"Microsoft JhengHei","PingFang TC","Noto Sans TC","Microsoft YaHei",system-ui,sans-serif}html:lang(ur){--ui-font:"Noto Nastaliq Urdu","Noto Naskh Arabic","Segoe UI",system-ui,sans-serif}[dir="rtl"] h1{direction:ltr;transform-origin:right bottom}[dir="rtl"] .dialog-close{right:auto;left:14px}[dir="rtl"] .start-button svg,[dir="rtl"] .start-button>span[aria-hidden]{transform:scaleX(-1);display:inline-block}.start-button span,.secondary-button,.painting-save,.rule-strip strong,.rule-strip span,.setting-row span,.mode-heading,.modal h2,.hud-center>span,.help-row h3{overflow-wrap:anywhere}.hud-center>span{max-width:100%}

/* Independent business shell. Original game drawing and palette stay intact. */
.fn-integrated { --fn-paper:#efe6d2; --fn-ink:#1f1b17; --fn-muted:#6c6254; --fn-red:#b8322a; --fn-line:#b8a58580; padding-bottom:78px; }
.fn-integrated .app { max-width:1100px; }
.fn-integrated .topbar { height:76px; }
.fn-integrated .arena { height:calc(100dvh - 242px); min-height:470px; max-height:850px; }
.fn-integrated .fn-wallet-bar { margin-bottom:12px; }
.fn-business-open { overflow:hidden; }
.fn-wallet-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; color:var(--fn-paper); padding:10px 18px 11px; border:1px solid #d4c4a330; border-radius:6px; background:#e9dfca08; }
.fn-wallet-bar>div { display:flex; flex-direction:column; gap:3px; }
.fn-wallet-bar>div:last-child { text-align:end; }
.fn-wallet-bar span { font-size:11px; color:#c6bda9; }
.fn-wallet-bar strong { display:flex; align-items:center; gap:6px; font-size:25px; font-weight:750; line-height:1.2; }
.fn-wallet-bar>div:last-child strong { justify-content:flex-end; font-size:18px; }
.fn-wallet-bar strong small { font-size:11px; font-weight:500; }
.fn-icon { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.fn-wallet-bar .fn-icon { width:25px; height:25px; color:#dbb665; }
.fn-wallet { font-family:var(--ui-font,system-ui,sans-serif); color:var(--fn-ink); line-height:1.55; }
.fn-wallet * { box-sizing:border-box; }
.fn-wallet button { cursor:pointer; font:inherit; -webkit-tap-highlight-color:transparent; }
.fn-wallet button:disabled { cursor:wait; opacity:.6; }
.fn-wallet button:focus-visible,.fn-wallet input:focus-visible,.fn-wallet textarea:focus-visible { outline:2px solid var(--fn-red); outline-offset:3px; }
.fn-wallet-nav { position:fixed; z-index:20; bottom:0; left:50%; transform:translateX(-50%); width:min(1024px,100%); display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; background:var(--fn-paper); border:1px solid #a88d5c90; border-bottom:0; padding:7px 8px max(8px,env(safe-area-inset-bottom)); box-shadow:0 -6px 28px #0002; border-radius:9px 9px 0 0; }
.fn-wallet-nav button { min-height:50px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; border-radius:6px; background:transparent; color:var(--fn-ink); padding:3px 2px; min-width:0; font-size:12px; line-height:1.3; text-align:center; overflow-wrap:anywhere; }
.fn-wallet-nav button[aria-current="page"] { color:var(--fn-red); background:#b8322a0b; font-weight:750; }
.fn-wallet-nav .fn-icon { width:23px; height:23px; }
.fn-wallet-dialog { position:fixed; inset:auto; top:calc(var(--fn-vtop,0px) + var(--fn-vh,100dvh)/2); left:50%; transform:translate(-50%,-50%); margin:0; padding:0; width:min(560px,calc(100% - 24px)); max-width:none; height:auto; max-height:calc(var(--fn-vh,100dvh) - 24px); border:1px solid #ad9470; border-radius:9px; background-color:var(--fn-paper); background-image:radial-gradient(ellipse at 100% 100%,#b9aa8e25,transparent 55%),repeating-linear-gradient(135deg,#8f7c5c03 0px,#8f7c5c03 1px,transparent 1px,transparent 4px); box-shadow:0 24px 80px #0007; overflow:hidden; overscroll-behavior:contain; }
.fn-wallet-dialog[open] { display:flex; flex-direction:column; }
.fn-wallet-dialog::backdrop { background:#18150fd1; }
.fn-dialog-header { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:15px; padding:19px 23px 17px; border-bottom:1px solid var(--fn-line); background:#e5d8bf30; }
.fn-dialog-header h2 { margin:0; color:var(--fn-ink); font-size:24px; font-weight:850; letter-spacing:1px; line-height:1.35; overflow-wrap:anywhere; }
.fn-close { width:39px; height:39px; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--fn-line); border-radius:50%; color:var(--fn-ink); flex-shrink:0; }
.fn-close:hover { background:#1f1b170a; }
.fn-dialog-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px 23px 23px; scrollbar-width:thin; scrollbar-color:#b5a58a transparent; }
.fn-dialog-nav { position:static; transform:none; width:auto; max-width:none; flex-shrink:0; border:0; border-top:1px solid var(--fn-line); border-radius:0; box-shadow:none; padding-bottom:8px; }
.fn-wallet .currency-icon { display:inline-block; width:32px; height:32px; min-width:32px; stroke:none; flex-shrink:0; vertical-align:middle; }
.fn-wallet .currency-icon path { vector-effect:non-scaling-stroke; }
.fn-wallet .currency-icon text { stroke:none; }
.fn-wallet .network-icon { border-radius:50%; }
.fn-wallet p { margin:0 0 14px; }
.fn-wallet h3 { margin:0 0 14px; color:var(--fn-ink); }
.fn-primary,.fn-secondary { width:100%; min-height:48px; padding:12px 17px; display:flex; align-items:center; justify-content:center; gap:14px; border-radius:5px; font-weight:750!important; text-align:center; overflow-wrap:anywhere; }
.fn-primary { border:1px solid #8f241e; color:#fff5e3; background:var(--fn-red); box-shadow:0 3px 0 #7a1f1940; margin-top:18px; }
.fn-primary:hover { background:#9e2923; }
.fn-primary .fn-icon { width:20px; height:20px; }
.fn-secondary { border:1px solid #89775b9e; background:transparent; color:var(--fn-ink); margin-top:12px; font-weight:550!important; }
.fn-secondary:hover { background:#1f1b1706; }
.fn-wallet [dir="rtl"] .fn-primary>.fn-icon,.fn-wallet[dir="rtl"] .fn-primary>.fn-icon,.fn-wallet[dir="rtl"] .fn-select>.fn-icon,.fn-wallet[dir="rtl"] .fn-more-row>.fn-icon:last-child { transform:scaleX(-1); }
.fn-steps { margin:0 0 22px; padding:0; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; }
.fn-steps li { position:relative; display:flex; align-items:center; flex-direction:column; gap:5px; font-size:13px; text-align:center; }
.fn-steps li:before { content:""; position:absolute; left:-50%; right:50%; top:14px; height:1px; background:#97866b66; }
.fn-steps li:first-child:before { display:none; }
.fn-steps li>span { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; border:1px solid #a08a64; border-radius:50%; width:28px; height:28px; background:var(--fn-paper); }
.fn-steps li small { font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.fn-steps .fn-current { color:var(--fn-red); font-weight:700; }
.fn-steps .fn-current>span { background:var(--fn-red); border-color:var(--fn-red); color:#fff5e3; }
.fn-steps .fn-icon { width:17px; height:17px; }
.fn-wallet[dir="rtl"] .fn-steps li:before { right:-50%; left:50%; }
.fn-balance-card { display:flex; justify-content:space-around; gap:8px; border:1px solid var(--fn-line); padding:17px 12px; border-radius:5px; margin:0 0 12px; background:#fff8e824; }
.fn-balance-card>div { flex:1; min-width:0; display:flex; flex-direction:column; text-align:center; align-items:center; padding:0 5px; gap:4px; }
.fn-balance-card>div+div { border-inline-start:1px solid var(--fn-line); }
.fn-balance-card span { color:var(--fn-muted); font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.fn-balance-card strong { display:flex; align-items:center; justify-content:center; gap:6px; font-size:25px; line-height:1.2; overflow-wrap:anywhere; max-width:100%; }
.fn-balance-card .fn-icon { color:#b8974e; }
.fn-rate { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; font-size:11px; color:var(--fn-muted); padding-bottom:12px; border-bottom:1px solid var(--fn-line); margin-bottom:17px; }
.fn-field { display:flex; flex-direction:column; gap:8px; margin:0 0 17px; font-size:13px; font-weight:650; }
.fn-select { width:100%; min-height:68px; border:1px solid #b29a76; border-radius:5px; display:flex; align-items:center; gap:12px; color:var(--fn-ink); background:#fff8e82b; padding:12px 14px; text-align:start; }
.fn-select>span { flex:1; min-width:0; }
.fn-select strong,.fn-select small { display:block; }
.fn-select strong { font-size:16px; overflow-wrap:anywhere; line-height:1.4; }
.fn-select small { font-size:12px; color:var(--fn-muted); margin-top:2px; font-weight:400; }
.fn-select>.fn-icon { width:18px; height:18px; }
.fn-select:hover,.fn-picker-row:hover,.fn-more-row:hover,.fn-address-row:hover { background:#cdbb9621; }
.fn-address-select { display:flex; align-items:center; gap:10px; padding:12px; min-height:54px; text-align:start; width:100%; border:1px solid var(--fn-line); background:#fff8e82b; color:var(--fn-ink); border-radius:5px; }
.fn-address-select>.fn-address { flex:1; font-size:13px; font-weight:500; }
.fn-address { overflow-wrap:anywhere; word-break:break-word; unicode-bidi:plaintext; }
.fn-field input,.fn-field textarea,.fn-search input { font:16px/1.55 var(--ui-font,system-ui,sans-serif); color:var(--fn-ink); border:1px solid #b29a76; background:#fff9ec55; border-radius:5px; padding:12px; width:100%; min-width:0; }
.fn-field textarea { resize:vertical; min-height:94px; max-height:220px; }
.fn-field input::placeholder,.fn-field textarea::placeholder,.fn-search input::placeholder { color:#837969; opacity:1; }
.fn-amount-input { position:relative; display:flex; border:1px solid #b29a76; border-radius:5px; background:#fff9ec55; overflow:hidden; }
.fn-amount-input input { flex:1; border:0; background:transparent; width:0; font-size:23px; font-weight:750; }
.fn-amount-input button { border:0; border-inline-start:1px solid var(--fn-line); border-radius:0; background:transparent; color:var(--fn-red); font-size:11px; max-width:35%; padding:8px 12px; line-height:1.4; overflow-wrap:anywhere; }
.fn-detail { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:11px 0; border-bottom:1px solid #b8a58545; font-size:13px; }
.fn-detail:last-child { border:0; }
.fn-detail>span { flex:0 1 40%; color:var(--fn-muted); min-width:0; overflow-wrap:anywhere; }
.fn-detail>strong { min-width:0; max-width:65%; text-align:end; font-weight:650; overflow-wrap:anywhere; }
.fn-detail strong .currency-icon { width:23px; height:23px; min-width:23px; margin-inline-end:7px; }
.fn-detail small { font-size:11px; color:var(--fn-muted); font-weight:400; white-space:nowrap; }
.fn-net strong { font-size:22px; color:var(--fn-red); }
.fn-details { border:1px solid var(--fn-line); border-radius:5px; padding:6px 15px; margin:18px 0; }
.fn-hero-amount { display:flex; align-items:center; flex-direction:column; color:var(--fn-red); font:800 54px/1.2 Georgia,serif; padding:14px 0 0; }
.fn-hero-amount small { color:var(--fn-ink); font:600 13px/1.6 var(--ui-font,system-ui,sans-serif); margin-top:7px; }
.fn-hint { color:var(--fn-muted); font-size:12px; line-height:1.7; font-weight:400; }
.fn-center { text-align:center; }
.fn-id { font-size:11px; }
.fn-result-mark { display:flex; justify-content:center; align-items:center; width:74px; height:74px; border:3px double var(--fn-red); border-radius:50%; color:var(--fn-red); margin:22px auto 16px; }
.fn-result-mark .fn-icon { width:44px; height:44px; }
.fn-result-title { text-align:center; font-size:25px; font-weight:850; overflow-wrap:anywhere; line-height:1.4; }
.fn-address-list { display:grid; gap:12px; }
.fn-address-row { display:flex; gap:12px; align-items:center; min-width:0; width:100%; padding:16px 12px; border:1px solid var(--fn-line); background:#fff8e820; border-radius:5px; text-align:start; color:var(--fn-ink); }
.fn-address-row>span { flex:1; min-width:0; }
.fn-address-row strong,.fn-address-row small,.fn-address-row .fn-address { display:block; }
.fn-address-row strong { font-size:15px; }
.fn-address-row strong small { font-size:12px; color:var(--fn-muted); font-weight:400; margin:3px 0 8px; }
.fn-address-row .fn-address { font-size:12px; font-weight:400; line-height:1.7; }
.fn-address-row small { font-size:11px; color:var(--fn-red); margin-top:5px; }
.fn-paused { display:flex; align-items:center; justify-content:center; gap:8px; font-size:12px; color:var(--fn-muted); text-align:center; }
.fn-paused .fn-icon { width:19px; height:19px; border-radius:50%; background:#ba9755; color:#fff7e8; padding:2px; }
.fn-transfer-art { display:flex; align-items:center; justify-content:center; gap:25px; margin:30px 0; color:var(--fn-muted); }
.fn-transfer-art>.fn-icon { width:46px; height:46px; }
.fn-transfer-art>.fn-icon:nth-child(2) { width:24px; height:24px; color:var(--fn-red); }
.fn-transfer-title { font-size:18px; line-height:1.7; font-weight:750; text-align:center; }
.fn-search { display:flex; align-items:center; position:relative; margin-bottom:17px; }
.fn-search>.fn-icon { position:absolute; inset-inline-start:12px; color:var(--fn-muted); width:20px; height:20px; pointer-events:none; }
.fn-search input { padding-inline-start:42px; min-height:46px; font-size:16px; }
.fn-picker-list { display:grid; gap:7px; }
.fn-picker-row { width:100%; display:flex; align-items:center; gap:12px; min-height:68px; padding:12px; background:#fff8e820; color:var(--fn-ink); border:1px solid var(--fn-line); border-radius:5px; text-align:start; }
.fn-picker-row>span { flex:1; min-width:0; }
.fn-picker-row strong,.fn-picker-row span small { display:block; }
.fn-picker-row strong { font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
.fn-picker-row small { color:var(--fn-muted); font-size:11px; line-height:1.4; font-weight:400; }
.fn-picker-row>small { max-width:29%; text-align:end; }
.fn-picker-row .fn-icon { width:17px; height:17px; }
.fn-wallet .fn-selected { border-color:var(--fn-red); background:#b8322a0b; color:var(--fn-red); }
.fn-picker-row.fn-selected strong { color:var(--fn-ink); }
.fn-language-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.fn-language-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 10px; min-height:48px; border:1px solid var(--fn-line); background:#fff8e820; color:var(--fn-ink); border-radius:5px; font-size:13px!important; text-align:start; }
.fn-language-row>span:first-child { min-width:0; overflow-wrap:anywhere; }
.fn-language-row .fn-icon { width:20px; height:20px; }
.fn-radio { height:15px; width:15px; border:1px solid #9a8b76; border-radius:50%; flex-shrink:0; }
.fn-filter { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding:10px 0; border-bottom:1px solid var(--fn-line); }
.fn-filter button { padding:6px 15px; border:1px solid var(--fn-line); border-radius:18px; background:transparent; color:var(--fn-muted); font-size:12px; }
.fn-filter button.fn-active { background:var(--fn-red); border-color:var(--fn-red); color:#fff4e2; }
.fn-ledger { padding:0; margin:0; list-style:none; }
.fn-ledger li { display:flex; align-items:center; gap:12px; padding:18px 0; border-bottom:1px solid var(--fn-line); }
.fn-ledger li>.fn-icon { width:36px; height:36px; color:var(--fn-muted); background:#ae9a7420; padding:7px; border-radius:50%; }
.fn-ledger li>div { min-width:0; }
.fn-ledger li>div:nth-child(2) { flex:1; }
.fn-ledger strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.fn-ledger time,.fn-ledger small { display:block; color:var(--fn-muted); font-size:10px; margin-top:4px; line-height:1.45; }
.fn-ledger-value { flex:0 1 35%; text-align:end; }
.fn-ledger-value strong { font-size:20px; }
.fn-ledger-value.fn-debit strong,.fn-ledger-value.fn-debit small { color:var(--fn-red); }
.fn-empty { text-align:center; padding:35px 10px 20px; color:var(--fn-muted); }
.fn-empty>.fn-icon { width:75px; height:75px; color:#a68f64; margin-bottom:17px; }
.fn-empty h3 { font-size:22px; font-weight:750; }
.fn-empty p { font-size:13px; line-height:1.8; }
.fn-more-row { width:100%; display:flex; align-items:center; gap:17px; padding:22px 16px; background:#fff8e820; color:var(--fn-ink); border:1px solid var(--fn-line); border-radius:5px; text-align:start; margin-bottom:13px; }
.fn-more-row>.fn-icon:first-child { width:34px; height:34px; }
.fn-more-row>span { flex:1; min-width:0; }
.fn-more-row strong,.fn-more-row small { display:block; overflow-wrap:anywhere; }
.fn-more-row strong { font-size:17px; }
.fn-more-row small { margin-top:5px; font-size:12px; color:var(--fn-muted); font-weight:400; }
.fn-locale-shortcut { display:flex; align-items:center; gap:7px; margin-inline-start:auto; border:1px solid var(--fn-line); padding:5px 10px; background:transparent; color:var(--fn-muted); border-radius:4px; font-size:11px!important; }
.fn-locale-shortcut .fn-icon { width:16px; height:16px; }
.fn-fruit-art { position:relative; width:100%; height:125px; overflow:hidden; }
.fn-fruit-orange { position:absolute; top:25px; left:15%; width:85px; height:85px; border:6px solid #fff0bb; border-radius:50%; box-shadow:0 0 0 3px #f3a735,inset 0 0 0 3px #fff5d77f; background:repeating-conic-gradient(#ffab31 0deg 44deg,#ffe3a7 44deg 47deg); transform:rotate(-19deg); }
.fn-fruit-lime { position:absolute; right:12%; top:53px; width:59px; height:59px; border:5px solid #e3ee9c; border-radius:50%; box-shadow:0 0 0 3px #92a944; background:repeating-conic-gradient(#bad05b 0deg 48deg,#eff0bc 48deg 51deg); transform:rotate(28deg); }
.fn-fruit-melon { position:absolute; left:48%; top:16px; width:79px; height:89px; border:7px solid #467347; border-top:0; border-radius:6px 6px 50% 50%; background:radial-gradient(ellipse at 30% 30%,#30231c 0 3px,transparent 4px),radial-gradient(ellipse at 65% 55%,#30231c 0 3px,transparent 4px),radial-gradient(ellipse at 30% 70%,#30231c 0 3px,transparent 4px),#e7614c; transform:rotate(-24deg); }
.fn-fruit-slash { position:absolute; height:5px; width:75%; left:9%; top:63px; background:#fffef5; box-shadow:0 0 8px #dfd4bb; border-radius:50%; transform:rotate(-19deg); }
.fn-reward { text-align:center; margin:5px 0 18px; }
.fn-reward>span { font-size:14px; font-weight:700; }
.fn-reward>strong { display:flex; align-items:center; justify-content:center; gap:7px; font:800 clamp(30px,7vw,46px)/1.3 Georgia,serif; color:var(--fn-red); white-space:nowrap; }
.fn-reward strong .currency-icon { width:25px; height:25px; min-width:25px; }
.fn-reward strong small { font:650 12px/1.4 var(--ui-font,system-ui,sans-serif); color:var(--fn-ink); }
.fn-reward p { margin:5px 0 0; font-size:12px; }
.fn-route { display:grid; grid-template-columns:1fr 16px 1fr 16px 1fr; align-items:center; gap:5px; padding:13px 7px; border:1px solid var(--fn-line); border-radius:5px; margin:12px 0; }
.fn-route>span { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11px; text-align:center; min-width:0; }
.fn-route>span .fn-icon { width:26px; height:26px; color:var(--fn-red); }
.fn-route>.fn-icon { width:16px; height:16px; }
.fn-intro-rule { font-size:13px; font-weight:650; margin-bottom:6px!important; }
.fn-currency-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:15px 0; }
.fn-currency-grid>span { display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 3px; border:1px solid var(--fn-line); border-radius:4px; font-size:12px; }
.fn-currency-grid .currency-icon { width:24px; height:24px; min-width:24px; }
.fn-reminder-mark { text-align:center; padding:10px 0 20px; }
.fn-reminder-mark .fn-icon { width:60px; height:60px; }
.fn-reminder-copy { font-size:15px; line-height:1.8; text-align:center; }
.fn-reminder-paused { padding:13px; border:1px solid var(--fn-line); border-radius:5px; line-height:1.7; }
.fn-message { padding:12px; margin:16px 0 0!important; border:1px solid #8c9e6980; border-radius:5px; color:#3d5230; background:#8c9e690c; font-size:13px; overflow-wrap:anywhere; }
.fn-message.fn-message-error { color:#9b2821; border-color:#b8322a60; background:#b8322a06; }
.fn-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.fn-settlement-status { border:1px solid #b8a58580; padding:10px 13px; margin:14px 0; color:#5a5248; font-size:12px; line-height:1.6; border-radius:5px; }
.fn-settlement-status button { display:block; width:100%; margin-top:9px; border:1px solid #8f241e; background:#b8322a; color:#fff5e3; padding:9px 12px; font-size:12px; border-radius:5px; }
/* The wallet bars shorten the arena. Keep the desktop menu's two content
   sections in normal flow so larger translations cannot overlap the controls. */
@media(min-width:701px) {
  .fn-integrated .menu { display:flex; flex-direction:column; align-items:flex-start; gap:22px; padding:30px 6.4% 28px; overflow-y:auto; overscroll-behavior:contain; pointer-events:auto; scrollbar-width:thin; scrollbar-color:#aa9875 transparent; }
  .fn-integrated .hero-copy { position:static; width:49%; flex:0 0 auto; }
  .fn-integrated .hero-copy h1 { font-size:clamp(64px,9vh,100px); margin:16px 0; }
  .fn-integrated .tagline { font-size:clamp(18px,2.4vh,24px); }
  .fn-integrated .hero-description { margin-bottom:18px; }
  .fn-integrated .hero-copy .start-button { min-height:48px; }
  .fn-integrated .personal-best { margin-top:14px; }
  .fn-integrated .mode-section { position:static; width:100%; margin-top:auto; flex:0 0 auto; }
}
@media(min-width:701px) and (max-height:800px) {
  .fn-integrated .arena { min-height:460px; }
  .fn-integrated .menu { gap:18px; padding-top:24px; padding-bottom:24px; }
}
@media(max-width:700px) {
  .fn-integrated { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .fn-integrated .topbar { height:65px; gap:8px; }
  .fn-integrated .brand { font-size:15px; gap:7px; letter-spacing:.5px; }
  .fn-integrated .brand small { letter-spacing:2px; font-size:6px; }
  .fn-integrated .brand-mark { width:26px; height:26px; }
  .fn-integrated .utilities { gap:4px; }
  .fn-integrated .utilities .icon-button { width:29px; height:29px; }
  .fn-integrated .utilities .icon-button svg { width:17px; height:17px; }
  .fn-integrated .fullscreen-button { display:none; }
  .fn-integrated .arena { height:calc(100dvh - 210px - env(safe-area-inset-bottom)); min-height:360px; max-height:none; border-width:5px; }
  .fn-integrated .arena.playing { min-height:310px; }
  .fn-integrated .fn-wallet-bar { margin-bottom:8px; padding:8px 13px; min-height:60px; }
  .fn-wallet-bar strong { font-size:23px; }
  .fn-wallet-bar span { font-size:10px; }
  .fn-integrated .hero-copy { top:5%; inset-inline-start:7%; }
  .fn-integrated .hero-copy h1 { font-size:clamp(52px,14vw,76px); margin:16px 0 16px; }
  .fn-integrated .tagline { font-size:16px; }
  .fn-integrated .hero-description { display:none; }
  .fn-integrated .hero-copy .start-button { min-height:43px; font-size:12px; }
  .fn-integrated .personal-best { font-size:8px; margin-top:12px; }
  .fn-integrated .mode-section { bottom:24px; }
  .fn-integrated .rule-strip li { padding:9px 4px; }
  .fn-integrated .rule-strip strong { font-size:10px; }
  .fn-integrated .hud { inset:20px 18px auto; }
  .fn-integrated .hud-center { top:80px; }
  .fn-wallet-dialog { width:calc(100% - 18px); max-height:calc(var(--fn-vh,100dvh) - 18px); }
  .fn-dialog-header { padding:16px 17px 14px; }
  .fn-dialog-header h2 { font-size:21px; letter-spacing:.3px; }
  .fn-dialog-body { padding:17px; }
  .fn-dialog-nav button { font-size:11px; }
  .fn-select strong { font-size:15px; }
  .fn-balance-card { padding:14px 7px; }
  .fn-balance-card strong { font-size:22px; }
  .fn-balance-card:has(>div:nth-child(3)) strong { font-size:19px; }
  .fn-balance-card:has(>div:nth-child(3)) .fn-icon { display:none; }
  .fn-balance-card span { font-size:11px; }
  .fn-rate { font-size:10px; }
  .fn-picker-row { padding:11px 9px; gap:9px; }
  .fn-picker-row strong { font-size:14px; }
  .fn-picker-row>small { font-size:10px; max-width:25%; }
  .fn-picker-row .currency-icon { width:28px; height:28px; min-width:28px; }
  .fn-language-row { font-size:12px!important; padding:10px 8px; }
  .fn-more-row { padding:18px 12px; gap:13px; }
  .fn-more-row strong { font-size:16px; }
  .fn-more-row small { font-size:11px; }
}
@media(max-width:360px) {
  .fn-integrated .brand { font-size:13px; }
  .fn-integrated .brand small { letter-spacing:1px; }
  .fn-integrated .utilities { gap:3px; }
  .fn-integrated .utilities .icon-button { width:27px; height:27px; }
  .fn-dialog-body { padding:14px; }
  .fn-dialog-header { padding:13px 14px; }
  .fn-dialog-header h2 { font-size:19px; }
  .fn-balance-card strong { font-size:20px; }
  .fn-detail { gap:10px; font-size:12px; }
  .fn-net strong { font-size:19px; }
  .fn-picker-row>small { font-size:9px; }
  .fn-wallet-nav button { font-size:10px; }
  .fn-currency-grid>span { font-size:11px; gap:4px; }
  .fn-currency-grid .currency-icon { width:21px; height:21px; min-width:21px; }
  .fn-reward>strong { font-size:31px; gap:4px; }
  .fn-reward strong .currency-icon { width:22px; height:22px; min-width:22px; }
}
@media(max-height:660px) and (max-width:700px) {
  .fn-integrated .hero-copy { top:4%; }
  .fn-integrated .hero-copy h1 { font-size:50px; margin:11px 0; }
  .fn-integrated .tagline { font-size:14px; }
  .fn-integrated .personal-best { margin-top:9px; }
  .fn-integrated .hero-copy .start-button { min-height:38px; }
  .fn-integrated .mode-section { bottom:15px; }
  .fn-integrated .rule-strip li { padding:7px 4px; }
  .fn-dialog-header { padding-block:10px; }
  .fn-dialog-body { padding-top:13px; padding-bottom:13px; }
}
@media(prefers-reduced-motion:reduce) { .fn-wallet * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

/* A fixed three-second entrance, built from lightweight local vector artwork. */
.fn-entrance { position:fixed; inset:0; z-index:2147483000; display:none; place-items:center; padding:24px; overflow:hidden; background:#1c1a17; color:#1f1b17; overscroll-behavior:none; touch-action:none; }
.fn-entering .fn-entrance { display:grid; animation:fn-entrance-out 3s linear both; }
.fn-entrance-paper { position:relative; isolation:isolate; display:grid; place-items:center; width:min(560px,100%); height:min(760px,100%); min-height:0; overflow:hidden; padding:44px 32px; background-color:#efe6d2; background-image:radial-gradient(ellipse at 10% 5%,#fff8e565,transparent 65%),repeating-linear-gradient(112deg,#8a775704 0px,#8a775704 1px,transparent 1px,transparent 5px); border:6px solid #d4c4a3; border-radius:5px; box-shadow:0 24px 80px #0004; }
.fn-entrance-paper:before { content:""; position:absolute; inset:6px; border:1px solid #8f7b5840; border-radius:2px; pointer-events:none; }
.fn-entrance-paper:after { content:""; position:absolute; inset:17px; border:1px solid #8f7b5815; pointer-events:none; }
.fn-entrance-content { position:relative; z-index:1; width:100%; text-align:center; padding-bottom:8px; }
.fn-entrance-heading { display:flex; align-items:center; justify-content:center; gap:12px; color:#1f1b17; }
.fn-entrance-heading strong { font:700 clamp(25px,6vw,34px)/1.4 var(--ui-font,system-ui,sans-serif); letter-spacing:3px; overflow-wrap:anywhere; }
.fn-entrance-mark { width:5px; height:25px; background:#b8322a; transform:skew(-7deg); flex-shrink:0; }
.fn-entrance-art-wrap { width:min(320px,100%); margin:17px auto 3px; }
.fn-entrance svg { stroke:none; fill:none; flex-shrink:1; }
.fn-entrance-art { display:block; width:100%; height:auto; overflow:visible; }
.fn-entrance-half { transform-origin:160px 135px; }
.fn-entering .fn-entrance-upper { animation:fn-entrance-slice-upper 3s cubic-bezier(.22,.7,.25,1) both; }
.fn-entering .fn-entrance-lower { animation:fn-entrance-slice-lower 3s cubic-bezier(.22,.7,.25,1) both; }
.fn-entrance-blade,.fn-entrance-blade-shadow,.fn-entrance-blade-edge { stroke-dasharray:300; stroke-dashoffset:300; opacity:0; }
.fn-entering .fn-entrance-blade,.fn-entering .fn-entrance-blade-shadow,.fn-entering .fn-entrance-blade-edge { animation:fn-entrance-cut 3s ease-out both; }
.fn-entrance-drop { opacity:0; transform-box:fill-box; transform-origin:center; }
.fn-entrance-drop-a { --fn-drop-x:-27px; --fn-drop-y:16px; }
.fn-entrance-drop-b { --fn-drop-x:-35px; --fn-drop-y:-8px; }
.fn-entrance-drop-c { --fn-drop-x:31px; --fn-drop-y:-20px; }
.fn-entrance-drop-d { --fn-drop-x:37px; --fn-drop-y:11px; }
.fn-entrance-drop-e { --fn-drop-x:-20px; --fn-drop-y:25px; }
.fn-entrance-drop-f { --fn-drop-x:15px; --fn-drop-y:-27px; }
.fn-entering .fn-entrance-drop { animation:fn-entrance-splash 3s ease-out both; }
.fn-entrance-wordmark { direction:ltr; unicode-bidi:isolate; font:italic 900 clamp(31px,8.5vw,47px)/1 Impact,"Arial Black",sans-serif; letter-spacing:-1px; white-space:nowrap; transform:skew(-4deg); }
.fn-entrance-wordmark span { color:#b8322a; }
.fn-entrance-caption { margin:16px auto 0; max-width:100%; color:#6c6254; font:400 12px/1.7 var(--ui-font,system-ui,sans-serif); letter-spacing:1.4px; overflow-wrap:anywhere; }
.fn-entrance-progress { width:min(220px,80%); height:3px; margin:30px auto 0; background:#a18c6733; overflow:hidden; border-radius:2px; }
.fn-entrance-progress>span { display:block; width:100%; height:100%; background:#b8322a; transform:scaleX(0); transform-origin:left center; }
.fn-entering .fn-entrance-progress>span { animation:fn-entrance-progress 3s linear both; }
[dir="rtl"] .fn-entrance-progress>span { transform-origin:right center; }
.fn-entrance-landscape { position:absolute; inset:auto 0 0; width:100%; height:160px; z-index:0; pointer-events:none; }
.fn-entering .fn-entrance-heading,.fn-entering .fn-entrance-wordmark,.fn-entering .fn-entrance-caption { animation:fn-entrance-reveal .48s ease-out both; }
.fn-entering .fn-entrance-wordmark { animation-delay:.12s; }
.fn-entering .fn-entrance-caption { animation-delay:.2s; }
@keyframes fn-entrance-reveal { from { opacity:0; translate:0 7px; } to { opacity:1; translate:0 0; } }
@keyframes fn-entrance-slice-upper { 0%,35% { transform:translate(0,0) rotate(0); } 56%,88% { transform:translate(-9px,-14px) rotate(-9deg); } 100% { transform:translate(-11px,-16px) rotate(-10deg); } }
@keyframes fn-entrance-slice-lower { 0%,35% { transform:translate(0,0) rotate(0); } 56%,88% { transform:translate(10px,15px) rotate(8deg); } 100% { transform:translate(12px,17px) rotate(9deg); } }
@keyframes fn-entrance-cut { 0%,32% { stroke-dashoffset:300; opacity:0; } 34% { opacity:1; } 44% { stroke-dashoffset:0; opacity:1; } 55%,100% { stroke-dashoffset:0; opacity:0; } }
@keyframes fn-entrance-splash { 0%,36% { opacity:0; transform:translate(0,0) scale(.4); } 44% { opacity:.85; } 62% { opacity:.65; transform:translate(var(--fn-drop-x),var(--fn-drop-y)) scale(1); } 80%,100% { opacity:0; transform:translate(var(--fn-drop-x),calc(var(--fn-drop-y) + 12px)) scale(.5); } }
@keyframes fn-entrance-progress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes fn-entrance-out { 0%,90% { opacity:1; visibility:visible; pointer-events:auto; } 99.99% { visibility:visible; pointer-events:auto; } 100% { opacity:0; visibility:hidden; pointer-events:none; } }
@media(max-width:600px) {
  .fn-entrance { padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
  .fn-entrance-paper { width:100%; height:100%; padding:26px 22px; border-width:5px; }
  .fn-entrance-art-wrap { width:min(290px,100%); margin-top:18px; }
  .fn-entrance-heading strong { font-size:28px; }
  .fn-entrance-landscape { height:125px; }
}
@media(max-height:620px) {
  .fn-entrance-paper { padding-block:20px; }
  .fn-entrance-art-wrap { width:min(220px,100%); margin-top:8px; margin-bottom:0; }
  .fn-entrance-heading strong { font-size:25px; }
  .fn-entrance-wordmark { font-size:32px; }
  .fn-entrance-caption { margin-top:12px; font-size:11px; }
  .fn-entrance-progress { margin-top:22px; }
  .fn-entrance-landscape { height:85px; }
}
@media(max-height:430px) and (min-width:601px) {
  .fn-entrance-paper { width:min(700px,100%); padding:16px 30px; }
  .fn-entrance-content { display:grid; grid-template-columns:180px minmax(0,1fr); align-items:center; gap:8px 22px; padding:0; text-align:start; }
  .fn-entrance-art-wrap { grid-column:1; grid-row:1 / 5; width:180px; margin:0; }
  .fn-entrance-heading { justify-content:flex-start; }
  .fn-entrance-heading,.fn-entrance-wordmark,.fn-entrance-caption,.fn-entrance-progress { grid-column:2; }
  .fn-entrance-caption,.fn-entrance-progress { margin:0; }
  .fn-entrance-progress { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .fn-entering .fn-entrance-heading,.fn-entering .fn-entrance-wordmark,.fn-entering .fn-entrance-caption,
  .fn-entering .fn-entrance-half,.fn-entering .fn-entrance-blade,.fn-entering .fn-entrance-blade-shadow,
  .fn-entering .fn-entrance-blade-edge,.fn-entering .fn-entrance-drop,.fn-entering .fn-entrance-progress>span { animation:none; }
  .fn-entrance-progress>span { transform:scaleX(1); opacity:.6; }
}
