/* 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; } }

/* Adapt the restored shell to the replacement game. */
.fn-integrated .arena{height:auto;min-height:0;max-height:none}.fn-integrated .topbar{height:76px}.fn-wallet-bar{margin-bottom:18px!important}.fn-wallet svg,.fn-wallet-bar svg,.fn-announcement-button svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex-shrink:0}.fn-wallet button{font:inherit}.fn-wallet-nav button{font-size:13px}.fn-wallet-dialog .fn-dialog-header h2{font-size:25px}.fn-wallet-dialog{color-scheme:light}.fn-local-notice{font-size:12px;line-height:1.8;padding:10px 12px;border:1px solid #b8a47d;border-radius:6px;color:#6c6254}.fn-wallet-bar strong small{font-size:12px}body.fn-integrated{padding-bottom:90px}.fn-wallet-dialog .fn-dialog-body h3{font-size:24px}.fn-wallet-dialog .fn-field{font-size:16px}.fn-wallet-dialog .fn-currency-grid svg{height:24px;width:24px}.fn-wallet-dialog .fn-message{font-size:13px}#result-dialog{display:none!important}.fn-integrated .shell>footer{padding-bottom:10px}@media(max-width:580px){.fn-integrated .topbar{height:70px}.fn-wallet-dialog .fn-dialog-header h2{font-size:25px}}
