/* Vault Fisher — webapp styles, in the family's visual language.
 *
 * Restyled 2026-09-08 onto the family system the other five games share
 * (tile-reveal-pvp/webapp/styles.css is the source of the token names): the
 * shared token set with BOTH themes, the navy introcard hero, .flabel section
 * labels, .quick-tier-btn tiers, the hard-shadow slab buttons with the
 * boomerang sheen, the paper-grain + drifting-orb ambient backdrop — and then
 * a per-build SIGNATURE, exactly as tiles (crystalline cyber vault), plinko
 * (navy + gold) and nerve (terminal market) each carry one. Fisher's is OPEN
 * WATER: deep-sea teals, an aqua accent, gold reserved for money, and
 * Baloo 2 / IBM Plex Mono as the display faces because they are the faces the
 * SCENE itself is drawn in (scene.dc.html names them inline) — the chrome
 * should look like the water it frames.
 *
 * Sized from `--tg-vh` where the lobby publishes it (the real Telegram
 * viewport height), falling back to `100dvh` standalone — a column sized from
 * `100vh` inside Telegram paints too tall on the first frame and then jumps.
 */

/* ---------------------------------------------------------------- keyframes */
/* BOOMERANG, not a loop (family standard, see plinko's pk-sheen note): out to
   the far edge and back inside ONE cycle, so 100% already matches 0% and the
   next iteration never has a visible snap-back. */
@keyframes vf-sheen{0%{transform:translateX(-140%) skewX(-18deg)}50%{transform:translateX(320%) skewX(-18deg)}100%{transform:translateX(-140%) skewX(-18deg)}}
@keyframes vf-fade{from{opacity:0}to{opacity:1}}
@keyframes vf-ambient{from{transform:translate3d(-2.5%,-2%,0)}to{transform:translate3d(2.5%,2%,0)}}
@keyframes vf-live-dot{0%,100%{opacity:.4}50%{opacity:1}}

/* Shared notebook-paper grain (family asset, theme-invariant neutral noise). */
:root{--paper-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E")}

/* ---------------------------------------------------------------- palettes
   The family token set (tile-reveal-pvp/webapp/styles.css is the source of
   the names and of the three-role gold split: --gold is FILL and never ink,
   --gold-text is INK on page surfaces (must clear 4.5:1), --gold-line is the
   non-text stroke (3:1)). Values below are fisher's open-water signature. */
:root, [data-theme="dark"]{
  --bg:#06131C; --header:#0A1B27; --panel:#0C202E; --tile:#153348; --edge:#265368;
  --tshadow:#03090E; --text:#EAF6FC; --hint:#7FA3B4; --line:rgba(120,214,255,.12);
  --chip:#0E2534; --blue:#4FC9EE;
  --gold:#E0A44A; --gold-text:#E9A83F; --gold-line:#E9A83F;
  --gold-edge:#9C6A1C; --gold-shadow:#7A5214; --gold-ink:#2B1C05;
  --red:#FF5A4E; --red-edge:#A81E14; --red-shadow:#7E1610; --red-ink:#2A0B08;
  --good:#7FD0A0;
  --navy:#08161F; --navy-edge:#1F4A5C;
  --sea:#46C8E8; --sea-deep:#10475C;
  /* translucent surfaces that must flip with the theme (result card, toasts) */
  --overlay:rgba(6,17,26,.95); --toastbg:rgba(5,13,19,.9);
  --brand-title:#BDEBFA;
}
[data-theme="light"]{
  /* Sea-glass: a cool pale page the aqua glows sit on — the same ambient
     trade tiles' light theme documents (never literal paper). */
  --bg:#C7E1EC; --header:#E7F4F9; --panel:#F7FCFE; --tile:#D4E9F1; --edge:#6FA5BA;
  --tshadow:#93B9C6; --text:#0A2231; --hint:#3D6172; --line:rgba(9,84,116,.14);
  --chip:#E3F2F7; --blue:#01708F;
  --gold-text:#94620C; --gold-line:#A8760F;
  --good:#1F7A4C;
  --navy:#0B1E2A; --navy-edge:#2A6076;
  --sea:#0E7E9E; --sea-deep:#10475C;
  --overlay:rgba(244,251,254,.96); --toastbg:rgba(10,30,42,.92);
  --brand-title:#0D5570;
}

/* ---------------------------------------------------------------- base */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
/* The ROOT never scrolls — same reasoning as the rest of the family (see
   nerve-pvp/webapp/styles.css): tg-viewport.js HOLDS .app at its resting
   height while the on-screen keyboard is up, so on Android (which resizes the
   whole WebView) .app can overflow body for the duration, and the engine's
   own focus-scrolling would then scroll the DOCUMENT to reveal a field —
   the header sliding off the top, the page looking "compressed upward".
   html{overflow:hidden} propagates to the viewport; body{overflow:clip}
   clips the overflow WITHOUT becoming a scroll container, so there is
   nothing left for the engine to scroll. .col owns the only vertical scroll
   (tg-keyboard.js gives it the room it needs). */
html{overflow:hidden}
body{overflow:clip}
body{background:var(--tshadow);color:var(--text);font-family:Manrope,system-ui,-apple-system,'Segoe UI',sans-serif;
  -webkit-tap-highlight-color:transparent;display:flex;justify-content:center;overscroll-behavior:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input{font:inherit}

/* overflow:CLIP, not hidden (same reasoning as the rest of the family):
   hidden still makes .app a scroll container the engine may scroll to
   reveal a focused field; clip clips identically and can never scroll.
   .col owns the vertical scroll. */
.app{position:relative;width:100%;max-width:420px;height:var(--tg-vh,100dvh);overflow:clip;z-index:0;
  display:flex;flex-direction:column;margin:0 auto;color:var(--text);
  background-color:var(--bg);background-image:var(--paper-grain);background-size:150px 150px;
  border-inline:1px solid var(--line)}

/* Ambient backdrop — the family's drifting-orb idiom (one compositor-only
   animation, see tiles' `.app::after` note), tinted to open water: two aqua
   orbs and one warm gold glint, the hook's colour under the surface.
   z-index:-1 inside .app's own stacking context: above the background colour,
   below every screen and toast. */
.app::after{content:'';position:absolute;inset:-30% -40%;z-index:-1;pointer-events:none;background-repeat:no-repeat;background:
  radial-gradient(closest-side circle,rgba(70,200,232,.26),rgba(70,200,232,0)) 24% 14%/48% 48%,
  radial-gradient(closest-side circle,rgba(16,120,160,.30),rgba(16,120,160,0)) 80% 66%/52% 52%,
  radial-gradient(closest-side circle,rgba(224,164,74,.14),rgba(224,164,74,0)) 46% 96%/36% 36%;
  animation:vf-ambient 76s ease-in-out infinite alternate;will-change:transform}
.app[data-theme="light"]::after{background:
  radial-gradient(closest-side circle,rgba(14,126,158,.20),rgba(14,126,158,0)) 24% 14%/48% 48%,
  radial-gradient(closest-side circle,rgba(60,150,190,.16),rgba(60,150,190,0)) 80% 66%/52% 52%,
  radial-gradient(closest-side circle,rgba(224,164,74,.12),rgba(224,164,74,0)) 46% 96%/36% 36%}

/* Visible by DEFAULT — the rest of the family switches screens with an
   `.active` class (`classList.toggle('active', …)`), fisher does NOT: it
   toggles the native `hidden` property, so a `display:none` base rule would
   leave the table screen painted nowhere once `hidden` came off. Do not copy
   nerve/rps's `.screen{display:none}` + `.screen.active{display:flex}` pair
   in here without also converting app.js to the class idiom. */
.screen{display:flex;flex-direction:column;flex:1;min-height:0}
/* Fisher toggles screens via the native `hidden` PROPERTY (app.js:
   `$('scr-home').hidden = atTable`), not a class — [hidden] must beat
   .screen's own `display:flex` at equal selector weight, hence !important.
   One generic rule covers every hideable element in this file (buttons,
   .caller, .stakerow, .result, ...) instead of a one-off per selector. */
[hidden]{display:none!important}

/* ---------------------------------------------------------------- header */
.gheader{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;
  background:var(--header);border-bottom:1px solid var(--line);flex:none}
.gheader .htitle{flex:1;text-align:center;line-height:1.12}
.gheader .htitle b{display:block;font:700 14px 'Baloo 2',system-ui;letter-spacing:.02em;color:var(--text)}
.gheader .htitle span{display:block;font:500 10px Manrope,system-ui;color:var(--hint)}
.hbtn{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:9px;
  background:var(--chip);border:1px solid var(--edge);cursor:pointer;flex:none}

/* The family brand header: mark + title + status pill + theme toggle. The
   Connect chip (/tg-wallet.js) inserts itself before the .hbtn and the
   How-to pill (/tg-howto.js) mounts into every .gheader — both find their
   anchors here, which is half the reason this block matches the siblings. */
.brandhead{display:flex;align-items:center;gap:8px;padding:14px 16px 8px;flex:none;min-height:58px;
  border-bottom:1px solid var(--line);background:var(--header)}
.brandlock{display:flex;align-items:center;gap:8px;min-width:0;flex:1;overflow:hidden}
.fisher-mark{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;
  border:1px solid var(--navy-edge);background:var(--navy);
  font:700 12px 'IBM Plex Mono',ui-monospace,monospace;color:var(--sea);
  box-shadow:inset 0 0 14px rgba(70,200,232,.10)}
.brandlock .btitle{display:block;flex:none;font:700 15px 'Baloo 2',system-ui;line-height:1.05;
  white-space:nowrap;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-title)}
.brandlock small{display:block;font:600 9px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.06em;color:var(--hint);margin-top:3px}
.session-pill{display:flex;align-items:center;gap:5px;padding:5px 7px;border-radius:7px;
  border:1px solid rgba(70,200,232,.25);background:rgba(70,200,232,.05);
  font:700 6.5px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.08em;color:var(--hint);white-space:nowrap}
.session-pill i{width:5px;height:5px;border-radius:50%;background:var(--sea);animation:vf-live-dot 1.4s ease-in-out infinite}

/* `flex:0 1 auto` lets the column take only the height its content needs —
   same trade nerve-pvp makes — so the footer sits directly under the content
   instead of pinned to the bottom edge with dead space above it. min-height:0
   + overflow-y keep it scrollable on the rare table with 6 seats AND the
   result panel both showing. */
.col{flex:0 1 auto;display:flex;flex-direction:column;gap:9px;padding:11px 16px 0;min-height:0;overflow-y:auto}
.gfooter{flex:none;padding:11px 16px 14px;display:flex;flex-direction:column;gap:9px}

.label{font:700 9.5px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:0.12em;color:var(--hint)}
.flabel{font:800 9.5px Manrope,system-ui;letter-spacing:.14em;color:var(--hint)}
.hint-line{font:500 11px Manrope,system-ui;color:var(--hint);text-align:center}

/* ---------------------------------------------------------------- the way in */

/* The hero. Family .introcard (always-navy panel with a .glow — it does not
   flip with the theme, same as the siblings'), fisher's signature inside it:
   a water-column gradient, surface light down to the deep, with the depth
   tape across the top in the scene's own mono face. */
.introcard{position:relative;border-radius:14px;padding:12px 13px 13px;flex:none;overflow:hidden;color:#EAF6FC;
  background:linear-gradient(180deg,#12455C 0%,#0C3247 34%,#082334 68%,#051624 100%);
  border:2px solid var(--navy-edge);box-shadow:0 4px 0 rgba(0,0,0,.3),inset 0 0 0 1px rgba(70,200,232,.07)}
.introcard .glow{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 70% at 50% -14%,rgba(198,230,243,.28),transparent 58%),
             radial-gradient(60% 42% at 82% 108%,rgba(224,164,74,.12),transparent 70%)}
.terminal-top{position:relative;display:flex;justify-content:space-between;align-items:center;padding-bottom:7px;
  border-bottom:1px solid rgba(70,200,232,.18);
  font:700 9px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.06em;color:#79B7CC}
.terminal-top em{font-style:normal;color:var(--gold)}
.introcard .mtitle{position:relative;margin-top:7px;font:600 16px 'Baloo 2',system-ui;color:#CFF1FD}
.introcard .msub{position:relative;font:500 12.5px Manrope,system-ui;color:#8FB9CC;margin-top:4px;line-height:1.5}
.introcard .msub b{color:#DDF3FC;font-weight:700}
.rule-tape{position:relative;display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.rule-tape span{padding:3px 7px;border:1px solid rgba(70,200,232,.28);border-radius:6px;
  font:700 9px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.06em;color:#9FD6E8;background:rgba(70,200,232,.05)}

.field{width:100%;padding:12px 13px;border-radius:12px;background:var(--chip);
  border:1px solid var(--line);color:var(--text);outline:none;
  /* 16px, not 15: iOS Safari zooms the whole page on focus of any input
     under 16px, which then never un-zooms itself on blur. */
  font:600 16px Manrope,system-ui}
.field:focus{border-color:var(--gold-line)}
.field::placeholder{color:var(--hint)}

.quick-row{display:flex;gap:8px}
.quick-tier-btn{flex:1;min-width:0;text-align:center;padding:11px 4px;border-radius:12px;
  background:var(--chip);border:2px solid var(--edge);box-shadow:0 3px 0 var(--tshadow);
  font:700 15px 'Baloo 2',system-ui;color:var(--text);cursor:pointer}
.quick-tier-btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--tshadow)}
.quick-tier-btn:disabled{filter:grayscale(0.7) brightness(0.75);cursor:default}
.quick-tier-btn small{display:block;margin-top:2px;font:800 9px Manrope,system-ui;letter-spacing:.06em;color:var(--hint)}
/* WALLET GATE explainer under a gated control (owner, 2026-09-17) — reuses
   .hint-line's type and .blue-link's inline "Connect wallet" action; .short
   recolors it into the balance-shortfall warning so it reads differently
   from the neutral "connect your wallet" copy. */
.wgate-note{text-align:left}
.wgate-note.short{color:var(--red)}

.lsection{display:flex;flex-direction:column;gap:7px;padding:11px 12px;border-radius:12px;
  background:var(--panel);border:1px solid var(--line)}
.testrow{display:flex;align-items:center;gap:8px;font:600 12px Manrope,system-ui;color:var(--hint);cursor:pointer}
.testrow input{width:16px;height:16px;accent-color:var(--gold)}

.joinrow{display:flex;gap:8px}
.joinrow .field{text-transform:uppercase;letter-spacing:0.2em;text-align:center;font-family:'IBM Plex Mono',ui-monospace,monospace}
.joinrow .ghost-slab{flex:0 0 96px}

/* ---------------------------------------------------------------- controls */

/* flex:none is load-bearing: .gold-slab/.ghost-slab sit in flex-column
   containers (.col, .gfooter) and .gold-slab's own overflow:hidden (needed to
   clip the .sheen shine) zeroes its flexbox "automatic minimum size" —
   without flex:none it becomes the one sibling allowed to shrink below its
   own label's height on a squeezed viewport (keyboard up), silently clipping
   the label instead of the column scrolling like everything else. Same guard
   idiom as every other game's .gold-slab/.ghost-slab. */
.gold-slab{position:relative;overflow:hidden;flex:none;text-align:center;padding:14px 16px;
  min-height:54px;line-height:1.3;border-radius:13px;width:100%;cursor:pointer;
  background:linear-gradient(180deg,#F2BA5E,var(--gold));border:2px solid var(--gold-edge);
  box-shadow:0 5px 0 var(--gold-shadow);
  font:600 17px 'Baloo 2',system-ui;color:var(--gold-ink)}
.gold-slab:active{transform:translateY(3px);box-shadow:0 2px 0 var(--gold-shadow)}
.gold-slab:disabled{filter:grayscale(0.7) brightness(0.75);cursor:default}
.gold-slab .sheen{position:absolute;inset:0 auto 0 -40%;width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);
  animation:vf-sheen 6.8s ease-in-out infinite;pointer-events:none}

.ghost-slab{flex:none;min-width:92px;text-align:center;padding:13px 14px;min-height:54px;line-height:1.3;
  border:2px solid var(--edge);border-radius:13px;background:var(--chip);box-shadow:0 4px 0 var(--tshadow);
  font:600 16px 'Baloo 2',system-ui;color:var(--text);cursor:pointer}
.ghost-slab:active{transform:translateY(2px);box-shadow:0 1px 0 var(--tshadow)}
.ghost-slab:disabled{filter:grayscale(0.7) brightness(0.75);cursor:default}

.blue-link{background:none;border:0;padding:0;color:var(--blue);font:600 12px Manrope,system-ui;cursor:pointer;text-decoration:none}

/* 44px MINIMUM TAP TARGET, grown with an overlay rather than by inflating the
   control. The close cross is a 26px chip and the two links are 12px text —
   all three are the right SIZE and the wrong TARGET, and padding them up to
   44 would wreck the header row and the code chip. ::after is transparent,
   centred, and takes the pointer for its parent. */
.hbtn,.blue-link{position:relative}
.hbtn::after,.blue-link::after{content:'';position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);width:max(100%,44px);height:44px}

/* ---------------------------------------------------------------- the table */

.table-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.codechip,.potchip{display:flex;align-items:baseline;gap:8px;padding:8px 12px;
  border:1px solid var(--edge);border-radius:12px;background:var(--chip);box-shadow:0 2px 0 var(--tshadow)}
.codechip b{font:700 15px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:0.16em;color:var(--text)}
.potchip b{font:700 15px 'IBM Plex Mono',ui-monospace,monospace;color:var(--gold-text)}

/* The table's own chrome — code, invite, pot, seats — above the water. It is
   flex:none: the scene gets every pixel this row does not need. */
.tablebar{flex:none;display:flex;flex-direction:column;gap:8px;padding:9px 16px}

/* Seats are a single scrolling strip, not a grid of cards. Six seats stacked
   two-up cost ~100px of the stage, and the scene is the thing worth looking
   at; a chip per player keeps the same facts in one 30px row. */
.seats{list-style:none;display:flex;gap:6px;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}
.seats::-webkit-scrollbar{display:none}
.seat{flex:0 0 auto;display:flex;align-items:baseline;gap:7px;padding:6px 11px;
  border:1px solid var(--edge);border-radius:999px;background:var(--chip);white-space:nowrap}
.seat b{font:600 12px Manrope,system-ui;color:var(--text)}
.seat u{text-decoration:none;font:600 10px 'IBM Plex Mono',ui-monospace,monospace;color:var(--hint)}
.seat.me{border-color:var(--gold-line)}
.seat.won{border-color:var(--good);box-shadow:inset 0 0 0 1px var(--good)}
.seat.gone{opacity:0.5}

/* ---------------------------------------------------------------- the round view: the design export's scene */

/*
 * WHY scene.css IS NOT LINKED.
 *
 * scene.css is Coreforge's own fitting sheet and most of it addresses classes
 * their React shell has and this client does not (.moment, .sheet, .fair__*,
 * .round__say). The three rules that DO apply — .game, .vf-stage, .vf-fit —
 * are reproduced here, minus one: their `.vf-fit > *{display:flex;
 * flex-direction:column}` turns the export's 5,674px scene into a flex ITEM
 * of a definite-height column, and a flex item shrinks by default — the whole
 * scroller collapses to the height of the stage and the water has no depth.
 * The export's own root already carries `flex:1;min-height:0` inline, which
 * is all it needs. Copied deliberately rather than linked; if the design's
 * fitting sheet changes, this is the block to revisit.
 */
.game{flex:1;min-height:0;display:flex;flex-direction:column}

/* The stage clips; the scene inside it scrolls. `min-height` keeps a sliver of
   water even on a short phone with the result card up. The sky colour is the
   scene's own — the artwork is fixed-palette, so it does not flip with the
   theme, and the frame around it does. */
.vf-stage{position:relative;flex:1;min-height:170px;overflow:hidden;background:#C6E6F3;
  border-top:1px solid var(--edge);border-bottom:1px solid var(--edge)}

/* The design is drawn at a fixed 352px width. app.js measures the stage and
   scales this box to it (transform, so nothing inside has to be re-authored
   in relative units), and gives it a height of stage/scale so the scroller
   still ends exactly at the bottom edge. */
.vf-fit{transform-origin:top left;display:flex;flex-direction:column;width:352px}

/* If the template cannot be fetched the round is still playable from the
   footer; this is what stands in for the water. */
.vf-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:4px;pointer-events:none;
  background:linear-gradient(180deg,#16303D 0%,var(--sea-deep) 45%,#071F2B 100%)}
.vf-fallback b{font:700 42px 'Baloo 2',system-ui;color:#EAF6FC;
  /* Tabular figures, or a counting number jitters sideways and the one thing
     the player is watching appears to wobble. */
  font-variant-numeric:tabular-nums;text-shadow:0 2px 18px rgba(0,0,0,.65)}
.vf-fallback i{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;font-style:normal;color:#CFE6EF}

/* The call. A slider for speed and a number for exactness — both, because a
   metre decides the round. Lives in .gfooter: it is the primary CTA the
   moment the window is open. */
.caller{display:flex;flex-direction:column;gap:8px}
.callhint{font:500 11px Manrope,system-ui;color:var(--hint)}
/* The scene shows the same dynamic hint in its own overlay strip — with the
   scene up, the footer copy is a duplicate one inch lower. It returns the
   moment the fallback stands in (app.js only adds .scene-up on a successful
   mount), because there it is the only instruction on screen. */
body.scene-up .callhint{display:none}
/* THE DEPTH RULER. 44px tall because it is a drag target on a phone, not
   because the track is: the visible track stays 4px and the whole 44px band
   is grabbable — a range input is a replaced element, so it takes no ::after
   and the height IS the hit area. */
#depth-range{width:100%;height:44px;accent-color:var(--gold);background:transparent}
.callrow{display:flex;align-items:center;gap:8px}
.callrow .field{flex:0 0 96px;width:auto;text-align:center;font-family:'IBM Plex Mono',ui-monospace,monospace}
.callrow .gold-slab{flex:1 1 auto;width:auto}
.unit{font:600 12px 'IBM Plex Mono',ui-monospace,monospace;color:var(--hint)}

.hostrow{display:flex;flex-direction:column;gap:8px}
.stakerow{display:flex;align-items:center;gap:8px}
.stakerow .field{flex:0 0 110px;width:auto;text-align:center;font-family:'IBM Plex Mono',ui-monospace,monospace}

/* The money strip the design export carries in its own footer panel. Our
   footer is the one that renders, so it carries it here. */
.hud{display:flex;justify-content:space-between;align-items:baseline;gap:10px;
  font:600 11px 'IBM Plex Mono',ui-monospace,monospace;color:var(--hint)}
.hud b{color:var(--text);font-variant-numeric:tabular-nums}
.hud i{font-style:normal}
#hud-clock{font:700 14px 'IBM Plex Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums;color:var(--gold-text)}

/* What the line is doing while the reveal runs — the export's own busy panel,
   in our footer because the export's footer is not the half that renders. */
.busy{display:flex;flex-direction:column;gap:4px;padding:12px 14px;min-height:96px;
  justify-content:center;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.busy strong{font:700 14px Manrope,system-ui;color:var(--text)}
.busy span{font:500 11px Manrope,system-ui;color:var(--hint)}

/* THE FOOTER DOES NOT BREATHE. Its contents swap every phase — the ruler, the
   host's buttons, the busy panel — and a footer that resized with them would
   resize the stage, and with it the scroller the reveal is animating inside.
   A scroll container that changes height mid-animation is answered by the
   browser's scroll anchoring, which snaps to the top: the catch would leave
   the screen at the exact moment it lands (the same trap scene.css documents
   for content-visibility). One resting height, all round. */
#scr-table .gfooter{min-height:154px}

/* ---------------------------------------------------------------- the result */

/* Over the water, not above it. Pushing the scene up to make room for the
   receipt would resize the scroller mid-reveal, and the browser's scroll
   anchoring answers a height change by snapping to the top — the catch would
   scroll off screen at the exact moment it lands. */
.result{position:absolute;left:10px;right:10px;bottom:10px;z-index:50;
  max-height:calc(100% - 20px);overflow-y:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--edge);border-radius:14px;box-shadow:0 5px 0 rgba(0,0,0,.25);
  background:var(--overlay);padding:12px 14px;animation:vf-fade .2s ease-out}
.resulthead{display:flex;align-items:baseline;gap:10px}
.resulthead b{font:700 20px 'Baloo 2',system-ui;color:var(--gold-text)}
.rows{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:baseline;
  padding:8px 10px;border-radius:10px;background:var(--chip);font:500 12px Manrope,system-ui;color:var(--text)}
.row span{color:var(--hint);font:600 11px 'IBM Plex Mono',ui-monospace,monospace}
.row u{text-decoration:none;font:700 12px 'IBM Plex Mono',ui-monospace,monospace;color:var(--red)}
.row.paid u{color:var(--good)}

.fair{margin-top:12px;display:flex;flex-direction:column;gap:4px}
.fair div{display:flex;align-items:baseline;gap:8px}
.fair code{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;color:var(--hint)}

/* ---------------------------------------------------------------- toasts */

.toasts{position:fixed;left:50%;bottom:calc(18px + max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px)));transform:translateX(-50%);
  display:flex;flex-direction:column;gap:6px;z-index:40;pointer-events:none}
.toast{padding:9px 14px;border-radius:12px;background:var(--toastbg);border:1px solid rgba(255,255,255,.12);
  color:#EDF2F8;font:600 12px Manrope,system-ui;max-width:86vw;text-align:center;animation:vf-fade .2s ease-out}
.toast.bad{border-color:var(--red);color:#FFD8D4}

/* ---------------------------------------------------------------- viewport & safe areas
   Modern phone viewport + notch/home-indicator handling — same block shape
   as the rest of the family (nerve-pvp/webapp/styles.css). */
.app{height:100vh;height:var(--tg-vh,100dvh)}
.gheader{height:calc(48px + max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px)));padding-top:max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px));
  padding-left:calc(14px + max(env(safe-area-inset-left,0px),var(--tg-safe-left,0px)));padding-right:calc(14px + max(env(safe-area-inset-right,0px),var(--tg-safe-right,0px)))}
.brandhead{padding-top:calc(14px + max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px)));
  padding-left:calc(16px + max(env(safe-area-inset-left,0px),var(--tg-safe-left,0px)));padding-right:calc(16px + max(env(safe-area-inset-right,0px),var(--tg-safe-right,0px)))}
.col{padding-left:calc(16px + max(env(safe-area-inset-left,0px),var(--tg-safe-left,0px)));padding-right:calc(16px + max(env(safe-area-inset-right,0px),var(--tg-safe-right,0px)))}
.tablebar{padding-left:calc(16px + max(env(safe-area-inset-left,0px),var(--tg-safe-left,0px)));padding-right:calc(16px + max(env(safe-area-inset-right,0px),var(--tg-safe-right,0px)))}
.gfooter{padding-left:calc(16px + max(env(safe-area-inset-left,0px),var(--tg-safe-left,0px)));padding-right:calc(16px + max(env(safe-area-inset-right,0px),var(--tg-safe-right,0px)));
  padding-bottom:calc(16px + max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px)))}
button,a{touch-action:manipulation}

/* COMPACT SPACING ON SHORT SCREENS — keyed on the LAYOUT height, not a plain
   media query, for the same reason as the rest of the family: on Android the
   on-screen keyboard shrinks the real viewport, and tg-viewport.js holds .app
   at its resting height while a field is focused — var(--tg-vh,100dvh) IS
   that held height, so a step function on it does not move while typing.
   `(h - 730px) * 999` is hugely positive above the breakpoint and hugely
   negative below it; clamp() turns that into a two-value switch (compact at
   or below 730px, normal above). Copied verbatim from nerve-pvp/webapp/
   styles.css so every game in the family compacts at the same height. */
.col{gap:clamp(7px, calc(7px + (var(--tg-vh,100dvh) - 730px) * 999), 9px);padding-top:clamp(8px, calc(8px + (var(--tg-vh,100dvh) - 730px) * 999), 11px)}
.gfooter{padding-top:clamp(7px, calc(7px + (var(--tg-vh,100dvh) - 730px) * 999), 11px);gap:clamp(7px, calc(7px + (var(--tg-vh,100dvh) - 730px) * 999), 9px)}

/* ---------------------------------------------------------------- desktop scale-up
   Mobile-first Telegram mini app: a fixed 420px column is unreadably small on
   a large monitor. `zoom` scales every px unit uniformly (layout, fonts) with
   no transform side effects. .app's own height must be divided back out,
   because viewport units resolve against the REAL viewport and are then
   multiplied by the zoom. Same block as the rest of the family. */
:root{--app-zoom:1}
@media (min-width:680px) and (min-height:720px){ :root{--app-zoom:1.1} }
@media (min-width:900px) and (min-height:860px){ :root{--app-zoom:1.22} }
@media (min-width:1200px) and (min-height:1000px){ :root{--app-zoom:1.32} }
.app{zoom:var(--app-zoom);height:calc(var(--tg-vh,100dvh) / var(--app-zoom))}

/* GROUP TABLE (PLATFORM-SEAM §1). A table anchored to an operator's chat card
   has NO code and NO invite link — it is found by the card, and the way back is
   that chat. Hide the invite/code affordances rather than offer a code that
   would not work. The 3% commission disclosure is untouched: it is disclosed
   exactly once per screen in BOTH entry models. `prefers-reduced-motion` must
   stay the last block in this file, so this goes above it. */
body.group-entry #copy-invite { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sheen { animation: none; opacity: 0; }
  .app::after { animation: none; }
  .session-pill i { animation: none; }
  .gold-slab, .ghost-slab, .quick-tier-btn { transition: none; }
  /* The scene's own hundred loops are paused by scene.keyframes.css's global
     rule; the hook still moves, because it is the round rather than
     decoration. */
}

/* ---- COPY NOTICES (2026-09-15) ----------------------------------------
   Shared by BOTH entry points: #copy-invite is wired on each, so either page
   can reach the last-resort branch. Token fallbacks are for index.html, which
   does not load fisher-tokens.css. */
/* A copy that worked and a copy that could not must not look alike: `bad` is
   the red danger panel, `good` is the same success green the paid rows and
   won seats use, so the answer is readable at a glance from across the table. */
.toast.good{background:var(--vf-success-bg,#123326);border-color:var(--good)}
/* LAST RESORT ONLY: both clipboard paths refused, so the value is printed —
   and it has to be takeable by hand.
/* THE NOTICE MUST NOT COST THE PLAYER THE ROUND. The toasts host is fixed to
   the bottom of the screen, which on the table screen is exactly where the
   depth ruler and Call it live — so an interactive notice sitting there for
   twenty seconds would cover the only controls that matter inside a ten-second
   call window, with nothing to dismiss it. The toast itself therefore stays
   pointer-events:none like every other one: only the value and the dismiss
   take taps, and app.js also clears the notice on the next phase change so it
   can never survive into a call window it would block. */
.toast.copy-manual{position:relative;pointer-events:none;max-width:92vw;text-align:left;
  padding-right:30px}
.toast.copy-manual code{display:block;margin-top:var(--vf-space-2,8px);
  pointer-events:auto;
  font:650 var(--vf-type-small,11.5px)/1.5 var(--vf-mono,"IBM Plex Mono",ui-monospace,monospace);color:var(--gold-text);
  -webkit-user-select:all;user-select:all;overflow-wrap:anywhere}
.toast.copy-manual .vf-toast-x{position:absolute;top:2px;right:4px;
  pointer-events:auto;cursor:pointer;border:0;background:none;color:inherit;
  font:700 15px/1 Manrope,system-ui;padding:6px 8px;opacity:.7}
.toast.copy-manual .vf-toast-x::after{content:"";position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px}

/* ── the round-end door (owner, 2026-09-17) ───────────────────────────────
   A small chip back to the lobby, under whatever big "play again" the footer
   shows, so the next round stays the loud option. lobby-back.js fills the
   slot with the same chip (and the same group-mode behaviour) the header
   uses. It is revealed ONLY while the end-of-round panel is up: a live round
   still offers no way out (see game-lobby/test/no-in-round-exit.test.js). */
.end-exit{display:none;justify-content:center;margin-top:2px}
#scr-table:has(#result:not([hidden])) .end-exit{display:flex}
