/* Crystal Vault (Updated UI). Presentation only, loaded after styles.css.
   Keep screen geometry, visibility rules, touch targets and server timing in
   the existing client. All imagery is local and authored for this variant. */
@font-face{font-family:Manrope;src:url(updated-art/Manrope.ttf) format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
:root,[data-theme="dark"]{
  --bg:#0c101a;--header:#101621;--panel:#171e2c;--chip:#131b28;--tile:#253042;--edge:#45526a;
  --tshadow:#060910;--text:#edf0f8;--hint:#a3adc1;--line:rgba(179,194,220,.14);--brand-title:#f0edf8;
  --blue:#89dcea;--navy:#101522;--navy-edge:#353c54;--gold:#e8c783;--gold-text:#ebce95;
  --gold-edge:#b19561;--gold-shadow:#6d5939;--gold-ink:#211a11;
  --red:#ef7964;--red-edge:#92453d;--red-shadow:#49212a;--red-ink:#230e13;
  --surface:linear-gradient(145deg,rgba(255,255,255,.045),transparent 55%),var(--panel);
  --metal:linear-gradient(145deg,#344157,#232c3e 44%,#192233);
}
[data-theme="light"]{
  --bg:#e7eaf1;--header:#f2f3f8;--panel:#fafbff;--chip:#edf0f7;--tile:#d6dce8;--edge:#a3afc4;
  --tshadow:#c3cada;--text:#232b3c;--hint:#59657a;--line:rgba(45,61,86,.17);--brand-title:#25273c;
  --blue:#276677;--gold-text:#77521f;--red:#a9362e;--surface:linear-gradient(135deg,#fff,#eef1f8);
  --metal:linear-gradient(145deg,#e6ebf5,#cdd5e5 48%,#b9c5d8);
}
.app,.app :is(button,input,span,b,strong,small,em,i,div,a){font-family:Manrope,system-ui,sans-serif}
.app{background:radial-gradient(ellipse at 85% 9%,rgba(108,83,155,.13),transparent 44%),radial-gradient(ellipse at 0 58%,rgba(46,93,111,.1),transparent 54%),var(--bg);border-inline-color:var(--line)}
.app::before{inset:0;background:url(updated-art/vault-depth.svg) center top/100% auto repeat-y,url(updated-art/vault-engraving.svg) center top/420px 900px repeat-y;opacity:.7;mask-image:linear-gradient(#000,rgba(0,0,0,.72));-webkit-mask-image:linear-gradient(#000,rgba(0,0,0,.72))}
/* Move the cropped dial into the open area beside the player seats. */
.app:has(#scr-game.active)::before{background-position:center 140px,center top}
.app::after{inset:0;background:var(--paper-grain) 0 0/150px 150px repeat,radial-gradient(ellipse at 8% 36%,rgba(52,112,129,.11),transparent 58%),radial-gradient(ellipse at 96% 78%,rgba(111,76,151,.09),transparent 55%);animation:none;will-change:auto}
.app>.sv-sweep{inset:0;background:linear-gradient(90deg,rgba(2,5,12,.3),transparent 12%,transparent 88%,rgba(2,5,12,.28));box-shadow:inset 5px 0 0 #02050b18,inset -5px 0 0 #02050b18;animation:none;will-change:auto}
.app[data-theme="light"]::before{opacity:.62;filter:brightness(.24)}
.app[data-theme="light"]::after{background:radial-gradient(ellipse at 95% 10%,rgba(142,122,202,.08),transparent 55%)}
.app[data-theme="light"]>.sv-sweep{background:linear-gradient(90deg,#5d6c8610,transparent 12%,transparent 88%,#5d6c8610);box-shadow:inset 5px 0 0 #5d6c8609,inset -5px 0 0 #5d6c8609}
/* The etched lines catch a passing light. This layer is masked by the same
   engraving and relief the surface is drawn with, so only the lines, facets
   and mechanism rings ever glint; two soft bands drift across it on the
   compositor (transform only, no repaint). Very faint on purpose: the mask's
   own stroke opacity (.10-.16) scales the band down to a few percent. */
.app>.cv-glare{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;opacity:.75;
  -webkit-mask-image:url(updated-art/vault-engraving.svg),url(updated-art/vault-depth.svg);mask-image:url(updated-art/vault-engraving.svg),url(updated-art/vault-depth.svg);
  -webkit-mask-size:420px 900px,100% auto;mask-size:420px 900px,100% auto;
  -webkit-mask-position:center top,center top;mask-position:center top,center top;
  -webkit-mask-repeat:repeat-y,repeat-y;mask-repeat:repeat-y,repeat-y}
.app:has(#scr-game.active)>.cv-glare{-webkit-mask-position:center top,center 140px;mask-position:center top,center 140px}
.app>.cv-glare::before,.app>.cv-glare::after{content:'';position:absolute;top:-20%;bottom:-20%;left:-100%;width:80%;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.9) 50%,transparent 70%);
  animation:cv-glare-drift 17s linear infinite;will-change:transform}
.app>.cv-glare::after{width:60%;background:linear-gradient(105deg,transparent 35%,rgba(200,188,255,.7) 50%,transparent 65%);animation-duration:29s;animation-delay:-11s}
@keyframes cv-glare-drift{from{transform:translateX(0)}to{transform:translateX(300%)}}
.app[data-theme="light"]>.cv-glare::before{background:linear-gradient(105deg,transparent 30%,rgba(78,66,132,.6) 50%,transparent 70%)}
.app[data-theme="light"]>.cv-glare::after{background:linear-gradient(105deg,transparent 35%,rgba(58,98,122,.45) 50%,transparent 65%)}
.brandhead .btitle{font-size:14px;font-weight:800;line-height:1.25;text-transform:none;letter-spacing:-.035em;min-width:0}
.ui-edition{display:block;font-size:9px;font-weight:700;letter-spacing:.12em;color:var(--hint);margin-top:3px}
.gheader,.app[data-theme="light"] .gheader{background:linear-gradient(90deg,transparent,rgba(131,123,162,.035),transparent),var(--header);border-bottom-color:var(--line);box-shadow:0 1px 0 rgba(255,255,255,.025)}
.gheader .htitle b{font-family:Manrope,system-ui;font-weight:750;letter-spacing:-.025em}
.hbtn{background:var(--surface);border-radius:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.gem-hero-row::before{width:150px;height:95px;background:radial-gradient(ellipse,rgba(157,117,219,.16),transparent 67%)}
.gem-hero{width:94px;height:94px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.25));animation:cv-hover 9s ease-in-out infinite}
@keyframes cv-hover{50%{transform:translateY(-3px)}}
.modecard,.hero{border:1px solid #42435d;border-radius:12px;background:linear-gradient(125deg,rgba(165,144,213,.08),transparent 48%),#131927;box-shadow:inset 0 1px 0 rgba(226,224,255,.065),0 8px 24px rgba(0,0,0,.17)}
.modecard.sel{border-color:#66587f}
.modecard .glow,.hero .glow{background:radial-gradient(ellipse at 100% 0,rgba(131,85,205,.095),transparent 64%)}
.modecard .mtitle{font:750 19px Manrope,system-ui;color:#e2d6fa;letter-spacing:-.03em;text-shadow:none}
.modecard .msub{color:#b2b8cc;font-size:12px;line-height:1.5}
.modecard .mtag{font-size:9px;font-weight:650;letter-spacing:.08em;color:#aab0c3}
.hero .hlabel{color:#a9b2c7;font-weight:700;letter-spacing:.16em}
.hero .hmult{font-family:Manrope,system-ui;font-weight:750;letter-spacing:-.065em;color:#f1dfb6;text-shadow:0 2px 16px rgba(232,199,131,.09)}
.hero .hmult.blown{color:var(--red)}
.hero .hmult .hmult-unit{font-weight:600;letter-spacing:-.035em}
.hero .dial{opacity:.055;right:-12px;top:-16px}
.hero .dial g{animation:none}
.hero .hpot,.hero .hnext{border-radius:7px;background:rgba(6,9,16,.3);border-color:rgba(186,194,219,.13)}
.hero .hnext .lbl{color:#bfa575}.hero .hnext .val{color:#efd6a4}
.hero .hpot .unit,.hero .hfoot .open{color:#a8b2c8}.hero .hfoot .bombs{color:#d69990}
.hero .prog{height:4px;background:#282d3e}
.hero .prog .fill{background:linear-gradient(90deg,#7963ae,#a9d6e5)}
.hero .prog .fill .sheen{animation:none;background:none}
:is(.field,.lsection,.prow,.turnbar,.sharechip,.seedbox,.fresh-reset){border-radius:9px;background:var(--surface);border-color:var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.field{background:var(--chip);box-shadow:inset 0 2px 5px rgba(0,0,0,.12)}
.field:focus{border-color:#ac92d4;box-shadow:0 0 0 2px rgba(164,131,211,.13)}
#code-input{font-family:Manrope,system-ui!important;font-weight:650}
.chipbtn{border-radius:7px;background:var(--chip);font-weight:650}
.chipbtn.on{background:#38304b;color:#f0e5ff;border-color:#9177b6;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.gold-slab,.vallow{border:1px solid #b39a6e;border-radius:9px;background:linear-gradient(120deg,#f0d8a6,#d8b36e);box-shadow:inset 0 1px 0 #fff0c7,0 2px 0 #786344,0 6px 15px rgba(0,0,0,.17);font-weight:800;font-size:15px;color:#261e12;transition:transform .15s ease,filter .2s ease}
.gold-slab:active,.vallow:active{transform:translateY(2px);box-shadow:inset 0 2px 6px rgba(60,40,10,.22),0 1px 0 #786344}
.gold-slab .sheen{background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);animation-duration:11s}
/* A slightly sunnier primary entry action, without changing other gold controls. */
#create-btn:not(:disabled):not(.dim){background:linear-gradient(120deg,#ffe39a,#edc45c);border-color:#d9b85e;box-shadow:inset 0 1px 0 #fff2bd,0 2px 0 #8b7036,0 6px 18px rgba(226,177,63,.12);color:#261e12}
#create-btn:not(:disabled):not(.dim):active{box-shadow:inset 0 2px 6px rgba(60,40,10,.22),0 1px 0 #8b7036}
.gold-slab.dim,.gold-slab:disabled{background:var(--chip);border-color:var(--edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.03);color:var(--hint);cursor:default}
.ghost-slab,.vblock{font-weight:750;font-size:15px;border-radius:9px;border-width:1px;background:var(--surface);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 2px 0 var(--tshadow)}
.gfooter{background:linear-gradient(180deg,transparent,var(--bg) 15%)}
.turnbar.yours{background:linear-gradient(110deg,rgba(128,93,178,.1),rgba(83,153,171,.065)),var(--chip);border-color:rgba(163,139,210,.42)}
.turnbar .tb-yours{color:var(--blue)}
.roomcode .code{font:700 42px Manrope,system-ui;letter-spacing:.15em;text-shadow:none;color:var(--text)}
.prow .pav,.stepper .sbtn,.av{border-width:1px;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 2px 4px rgba(0,0,0,.16);background:var(--metal)}
.prow.host .pav{background:#342d46;border-color:#867499;color:#eadbff;box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}
.avwrap.on .av{background:#35314b;color:#e9deff;border-color:#b5a1d4;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.avwrap.dead .av{background:linear-gradient(135deg,#592d32,#281b25);color:#ffad99;border-color:#c97465;box-shadow:none}
.avname{color:var(--blue)}
.sharechip{background:var(--surface);border-color:var(--line)}
.sharechip.you{box-shadow:inset 2px 0 0 #89cede}.sharechip.active{border-color:#9681b8;background:linear-gradient(120deg,rgba(151,113,206,.12),transparent),var(--chip)}
.sharechip .shareclaim{background:#111725;border-color:#405269;box-shadow:inset 0 1px 0 rgba(255,255,255,.055)}
.sharechip .claimvalue strong{font-family:Manrope,system-ui;font-weight:750;letter-spacing:-.05em;text-shadow:none}
.sharechip .claimvalue i{color:#a6d9e3}.sharechip .shareclaim small{color:#a9b7cb}
.sharechip.you.alive .shareclaim{background:#182332;border-color:#7195a8;animation:none}
.sharechip.out{border:1px solid #a45d53;background:linear-gradient(110deg,rgba(163,65,54,.17),transparent 75%),var(--chip);box-shadow:inset 2px 0 0 #cc7868}
.sharechip.out .shareclaim{background:#4b292e;border-color:#9e625a}.sharechip.out .outburst{animation:none}
.sharechip.winner{border-color:#b69a68;background:linear-gradient(110deg,rgba(208,172,105,.1),transparent),var(--chip);box-shadow:inset 2px 0 0 #d7b679}
.sharechip.winner .shareclaim{background:linear-gradient(135deg,#eddaad,#caab72);border-color:#d5b881;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.sharechip .winner-crown,.sharehead.final b{text-shadow:none}
.crystallegend .legendchip{border-radius:5px;font-weight:600}
.crystallegend .legendchip.azure{color:var(--blue);border-color:#4b8094}
.crystallegend .legendchip.gold{color:var(--gold-text);border-color:#8b7551}
.crystallegend .legendchip.prism{color:#c8acf1;border-color:#75618e}
.app[data-theme="light"] .crystallegend .legendchip.prism{color:#715095}
/* The board is a recessed vault bed; chamfered plates sit above its seams. */
.gridwrap{padding:9px;border:1px solid #3c4357;border-radius:13px;background:linear-gradient(135deg,#090e17,#151b28 52%,#0b0e17);box-shadow:inset 0 2px 8px #030509,0 1px 0 rgba(193,187,213,.12),0 10px 28px rgba(0,0,0,.22)}
.gridwrap::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 5px 5px,#738096 0 1px,transparent 1.6px),radial-gradient(circle at calc(100% - 5px) 5px,#738096 0 1px,transparent 1.6px),radial-gradient(circle at 5px calc(100% - 5px),#738096 0 1px,transparent 1.6px),radial-gradient(circle at calc(100% - 5px) calc(100% - 5px),#738096 0 1px,transparent 1.6px);opacity:.55}
.gridwrap::before{content:'';position:absolute;inset:4px;border:1px solid rgba(158,161,191,.09);border-radius:9px;pointer-events:none}
.gridwrap[data-cols]{--trad:9px;gap:7px}
.tile{filter:drop-shadow(0 3px 1px rgba(0,0,0,.35))}
.tile .plate,.tile .face{border-radius:0;clip-path:polygon(10% 0,90% 0,100% 10%,100% 90%,90% 100%,10% 100%,0 90%,0 10%)}
.tile .plate.hiddenp,.tile .face.front{background:linear-gradient(139deg,rgba(216,220,245,.13),transparent 23%,transparent 70%,rgba(132,109,177,.08)),var(--metal);border:1px solid #596279;box-shadow:inset 0 2px 0 rgba(221,224,247,.12),inset 0 -4px 0 rgba(2,6,15,.4),inset 2px 0 0 rgba(147,165,198,.045);overflow:hidden;transition:transform .18s ease,filter .18s ease}
.tile:nth-child(3n+1) .hiddenp{background:linear-gradient(125deg,rgba(166,176,218,.08),transparent 48%),var(--metal)}
.tile .inner-line{inset:5px;border:1px solid rgba(165,176,205,.18);border-radius:2px;clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%)}
.tile .hiddenp::before,.tile .face.front::before{content:'';position:absolute;width:30%;height:30%;transform:rotate(45deg);border:1px solid rgba(185,195,218,.075);background:linear-gradient(135deg,rgba(179,189,219,.05),transparent)}
.tile .tnum{color:#d3d9e8;opacity:.56;font-weight:500;font-size:10px;font-variant-numeric:tabular-nums}
.tile.tappable .plate.hiddenp:hover{transform:translateY(-1px);filter:brightness(1.17)}
.tile.tappable .plate.hiddenp:active{transform:translateY(2px) scale(.97);filter:brightness(1.3)}
.tile:not(.tappable) .plate.hiddenp{filter:saturate(.4) brightness(.72)}
/* Include the legacy red modifier: its higher specificity left a bottom strip
   visible on bomb flip, landing and settled plates. */
.tile .band-top,.tile .band-bot,.tile .band-bot.red{display:none;background:none}
.tile .crystal.azure{--crystal-bg:#112a37;--crystal-edge:#4b93a6;--crystal-shadow:#10202d}
.tile .crystal.gold{--crystal-bg:#332a20;--crystal-edge:#b39256;--crystal-shadow:#241e19}
.tile .crystal.prism{--crystal-bg:#2a2040;--crystal-edge:#a285cb;--crystal-shadow:#21172e}
.tile .plate.safep.crystal,.tile .plate.popp.crystal,.tile .face.back.crystal{background:radial-gradient(ellipse at 50% 38%,rgba(211,214,248,.11),rgba(211,214,248,.055) 35%,rgba(211,214,248,.012) 70%,rgba(211,214,248,0) 100%),var(--crystal-bg);border:1px solid var(--crystal-edge);box-shadow:inset 0 1px 0 rgba(239,226,255,.2),inset 0 -3px 0 rgba(0,0,0,.3)}
/* Re-skin the existing decorative glyphs. Factor text, server grade classes,
   reveal markup and timer-based cleanup continue to come from app.js. */
.tile .glyph{background:center/contain no-repeat;filter:drop-shadow(0 3px 2px rgba(0,0,0,.35));width:min(calc(var(--ico) * 1.24),86%);height:min(calc(var(--ico) * 1.24),86%)}
.tile .glyph>*{opacity:0}
.tile .gem-azure{background-image:url(updated-art/gems/azure.webp)}
.tile .gem-gold{background-image:url(updated-art/gems/gold.webp);filter:drop-shadow(0 3px 2px #0005) drop-shadow(0 0 3px #f5c56830)}
.tile .gem-prism{background-image:url(updated-art/gems/prism.webp);filter:drop-shadow(0 3px 2px #0005) drop-shadow(0 0 5px #bc8af659)}
/* Animate a small light pool behind the artwork, keeping facets and labels crisp.
   Azure has no halo. Offset phases avoid a board-wide synchronized pulse. */
.tile .crystal.gold{--halo-color:245,194,91;--halo-low:.16;--halo-high:.32;--halo-period:4.8s}
.tile .crystal.prism{--halo-color:186,121,255;--halo-low:.28;--halo-high:.52;--halo-period:3.8s}
.tile .crystal:is(.gold,.prism)::before{content:'';position:absolute;inset:-8%;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,rgba(var(--halo-color),.8) 0%,rgba(var(--halo-color),.52) 18%,rgba(var(--halo-color),.26) 36%,rgba(var(--halo-color),.1) 54%,rgba(var(--halo-color),.025) 72%,rgba(var(--halo-color),0) 94%);opacity:var(--halo-low);transform:scale(.9)}
/* Keep the same light pool through both DOM handoffs; begin breathing at rest. */
.tile .plate.safep.crystal:is(.gold,.prism)::before{animation:cv-gem-glow var(--halo-period) ease-in-out infinite;animation-delay:.4s}
.tile:nth-child(3n+2) .plate.safep.crystal::before{animation-delay:.9s}
.tile:nth-child(3n) .plate.safep.crystal::before{animation-delay:1.5s}
@keyframes cv-gem-glow{50%{opacity:var(--halo-high);transform:translateY(-1px) scale(1.08)}}
/* Idle drift is under one pixel and starts only on settled, opened tiles. */
.tile .plate.safep .gem-gold{--gem-drift:.45px;animation:cv-gem-drift 7.6s ease-in-out infinite;animation-delay:.4s}
.tile .plate.safep .gem-prism{--gem-drift:.75px;animation:cv-gem-drift 6.8s ease-in-out infinite;animation-delay:.7s}
.tile:nth-child(3n+2) .plate.safep .glyph{animation-delay:1.1s}
@keyframes cv-gem-drift{0%,100%{transform:translate(0,0) rotate(0deg)}25%{transform:translateX(var(--gem-drift)) translateY(-.35px) rotate(.35deg)}75%{transform:translateX(calc(-1 * var(--gem-drift))) translateY(.2px) rotate(-.35deg)}}
/* A short specular catch follows the outer, top or central facet edges.
   It is nested inside the glyph, so the glint and idle drift move together. */
.gem-azure,.gem-card.azure{--glint-color:#d9f9ff;--glint-duration:11s;--glint-strength:.62}
.gem-gold,.gem-card.gold{--glint-color:#fff0c7;--glint-duration:9.4s;--glint-strength:.8;--glint-route:cv-glint-gold;--glint-angle:cv-glint-angle-gold}
.gem-prism,.gem-card.prism{--glint-color:#f7eaff;--glint-duration:8.6s;--glint-strength:.94;--glint-route:cv-glint-prism;--glint-angle:cv-glint-angle-prism}
.cv-edge-glint{color:var(--glint-color);overflow:visible;opacity:0;animation:cv-glint-window var(--glint-duration,10s) linear infinite;animation-delay:var(--glint-delay,0s)}
.tile .plate.safep .glyph>.cv-edge-glint{display:block}
.tile:nth-child(4n+2) .cv-edge-glint{--glint-delay:-1.7s}
.tile:nth-child(4n+3) .cv-edge-glint{--glint-delay:-4.4s}
.tile:nth-child(4n) .cv-edge-glint{--glint-delay:-6.2s}
.cv-glint-head{transform:translate(56px,5px);animation:var(--glint-route,cv-glint-travel) var(--glint-duration,10s) linear infinite;animation-delay:var(--glint-delay,0s)}
/* The tiny vector tail has a true alpha gradient and tapers to zero width.
   Its gradient lives in a separate image document, avoiding repeated SVG IDs. */
.cv-glint-tail{transform:rotate(30deg);animation:var(--glint-angle,cv-glint-angle-azure) var(--glint-duration,10s) steps(1,end) infinite;animation-delay:var(--glint-delay,0s)}
@keyframes cv-glint-window{0%,20%,56%,100%{opacity:0}24%,49%{opacity:var(--glint-strength,.8)}}
@keyframes cv-glint-travel{0%,20%{transform:translate(56px,5px)}28.13%{transform:translate(82px,20px)}35.66%{transform:translate(96px,44px)}45.98%{transform:translate(81px,79px)}56%,100%{transform:translate(56px,106px)}}
@keyframes cv-glint-angle-azure{0%,20%{transform:rotate(30deg)}28.13%{transform:rotate(59.74deg)}35.66%{transform:rotate(113.2deg)}45.98%,100%{transform:rotate(132.8deg)}}
/* Gold catches the crown. Prism traces the central triangular facet junctions. */
@keyframes cv-glint-gold{0%,20%{transform:translate(31px,20px)}37.74%{transform:translate(56px,5px)}56%,100%{transform:translate(82px,20px)}}
@keyframes cv-glint-angle-gold{0%,20%{transform:rotate(-30.96deg)}37.74%,100%{transform:rotate(29.98deg)}}
@keyframes cv-glint-prism{0%,20%{transform:translate(44px,35px)}32.81%{transform:translate(68.5px,35px)}47.37%{transform:translate(64px,62.5px)}56%,100%{transform:translate(47.5px,62.5px)}}
@keyframes cv-glint-angle-prism{0%,20%{transform:rotate(0deg)}32.81%{transform:rotate(99.29deg)}47.37%,100%{transform:rotate(180deg)}}
/* Keep the shared renderer's anchor, but move this explanation into How to play. */
#crystal-legend{display:none!important}
/* All flip tracks end with the shared client's existing 560ms cleanup.
   Separate faces and narrow metal edges give the rotating plate thickness. */
/* REVEAL LAYERING (2026-09-24, "sometimes goes underneath other cards").
   Cause: the drop-shadow filter on .tile makes every tile its own stacking
   context, so whatever a tile paints past its edge sits under every LATER
   sibling. The old raise, .tile:has(.flip-inner){z-index:2}, lasted only while
   the flip ran: the burst spawns at 280ms and outlives the 560ms land, where
   .persp/.flip-inner are removed, so mid-burst the tile fell back into DOM
   order and the next tiles painted over its sparks (and over the old landing
   ring, which grew to 3.4x the tile). Now app.js marks the tile .cv-revealing
   from the first frame of the flip until the settle. While marked the tile
   has no filter and z-index:auto, so it is NOT a stacking context: its
   z-indexed layers join the board's isolated context and outrank every plate
   there, for as many reveals as are running at once. */
html[data-ui="updated"] .gridwrap{isolation:isolate}
html[data-ui="updated"] .tile.cv-revealing{filter:none;z-index:auto}
html[data-ui="updated"] .tile.cv-revealing>.flip-shadow{z-index:1}
html[data-ui="updated"] .tile.cv-revealing>.persp{z-index:2}
html[data-ui="updated"] .tile.cv-revealing>.gainwrap{z-index:10}
.tile .persp{perspective:360px;perspective-origin:50% 42%}
.tile .flip-inner{transform:translateZ(-2px) rotateY(180deg);animation:cv-turn var(--cv-flip-duration,.56s) cubic-bezier(.4,0,.25,1) forwards}
.tile .face.front{transform:translateZ(2px)}
.tile .face.back{transform:rotateY(180deg) translateZ(2px)}
.tile .flip-inner::before,.tile .flip-inner::after{content:'';position:absolute;top:10%;bottom:10%;width:4px;background:linear-gradient(#9ca9c0,#52617a 20%,#202b3e 75%,#8490a7);transform:translateX(-50%) rotateY(90deg);backface-visibility:visible;pointer-events:none}
.tile .flip-inner::before{left:0}.tile .flip-inner::after{left:100%}
.tile .flip-shadow{bottom:-3px;height:9px;background:radial-gradient(ellipse,rgba(0,0,0,.58),rgba(0,0,0,0) 72%);filter:none;animation:cv-drop var(--cv-flip-duration,.56s) ease-in-out forwards}
.tile .shadeA{background:linear-gradient(105deg,#dce8ff22,#05080ddd 85%);animation:cv-shade-front var(--cv-flip-duration,.56s) ease-in-out forwards}
.tile .shadeB{background:linear-gradient(110deg,#e6d5ff33,#05080dcc 85%);opacity:0;animation:cv-shade-back var(--cv-flip-duration,.56s) ease-in-out forwards}
@keyframes cv-turn{
  0%{transform:translateZ(-2px) rotateX(0deg) rotateY(0deg)}
  16%{transform:translateY(-2px) translateZ(12px) rotateX(5deg) rotateY(-12deg)}
  52%{transform:translateY(-5px) translateZ(38px) rotateX(11deg) rotateY(92deg)}
  82%{transform:translateY(-1px) translateZ(9px) rotateX(-3deg) rotateY(186deg)}
  100%{transform:translateZ(-2px) rotateX(0deg) rotateY(180deg)}
}
@keyframes cv-drop{0%,100%{opacity:.5;transform:translateY(0) scale(1)}52%{opacity:.24;transform:translateY(5px) scale(1.16,.75)}}
@keyframes cv-shade-front{0%{opacity:0}20%{opacity:.14}55%,100%{opacity:.85}}
@keyframes cv-shade-back{0%,48%{opacity:.8}82%{opacity:.12}100%{opacity:0}}
/* The light flash rides the new face itself, so it turns with the plate: it
   catches as the face swings past edge-on and is gone before the 560ms land. */
html[data-ui="updated"] .tile .face.back::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,rgba(var(--cv-face-flash,226,244,255),.95) 0%,rgba(var(--cv-face-flash,226,244,255),.5) 38%,rgba(var(--cv-face-flash,226,244,255),.12) 70%,rgba(var(--cv-face-flash,226,244,255),0) 100%);opacity:0;animation:cv-face-flash var(--cv-flip-duration,.56s) ease-out forwards}
html[data-ui="updated"] .tile .face.back.crystal.azure{--cv-face-flash:214,248,255;--cv-face-peak:.62}
html[data-ui="updated"] .tile .face.back.crystal.gold{--cv-face-flash:255,236,188;--cv-face-peak:.8}
html[data-ui="updated"] .tile .face.back.crystal.prism{--cv-face-flash:246,230,255;--cv-face-peak:.92}
html[data-ui="updated"] .tile .face.back.red{--cv-face-flash:255,160,104;--cv-face-peak:.55}
@keyframes cv-face-flash{0%,46%{opacity:0}60%{opacity:var(--cv-face-peak,.7)}100%{opacity:0}}
/* UPDATED reveal burst (2026-09-24 polish). Tile-relative layers, transparent
   by construction; only transform and opacity animate, so a phone webview
   composites it. Timeline from the spawn at the flip's midpoint (280ms):
   sheen .22-.68s (across the landed face), ring .03-.59s (prism echo .15-.75s),
   rays/halo to ~.82s, sparks to ~.82s, twinkles linger to ~.84s; app.js
   removes the node at 880ms. The face flash (above) rides the turning face;
   the gem pop and the light pool behind it (below) are the landed plate's.
   Nothing reaches more than 13px past the tile (inset:max(-N%,-13px)), inside
   the board's 9px padding + 6px spacer, so no ancestor clips it or grows a
   scrollbar for it. Grade sets the colours and the peaks: azure restrained,
   gold warmer and fuller, prism the most. */
html[data-ui="updated"] .tile>.cv-reveal-burst{position:absolute;inset:0;z-index:9;overflow:visible;pointer-events:none;background:transparent}
html[data-ui="updated"] .cv-reveal-burst>*{position:absolute;pointer-events:none}
html[data-ui="updated"] .cv-reveal-bloom{inset:max(-18%,-11px);background:radial-gradient(circle at 50% 50%,rgba(var(--cv-burst-rgb),.82) 0%,rgba(var(--cv-burst-rgb),.3) 34%,rgba(var(--cv-burst-rgb),.08) 56%,rgba(var(--cv-burst-rgb),0) 72%);opacity:0;transform:scale(.3);animation:cv-reveal-bloom .48s ease-out forwards}
/* Gold and prism: one diagonal specular band sweeps the new face. */
html[data-ui="updated"] .cv-reveal-sheen{inset:0;overflow:hidden;clip-path:polygon(10% 0,90% 0,100% 10%,100% 90%,90% 100%,10% 100%,0 90%,0 10%)}
html[data-ui="updated"] .cv-reveal-sheen::before{content:'';position:absolute;top:-25%;bottom:-25%;left:0;width:46%;background:linear-gradient(100deg,rgba(var(--cv-hot-rgb),0) 18%,rgba(var(--cv-hot-rgb),.5) 50%,rgba(var(--cv-hot-rgb),0) 82%);opacity:0;transform:translateX(-120%) rotate(14deg);animation:cv-reveal-sheen .46s .22s cubic-bezier(.35,.1,.3,1) forwards}
/* A thin expanding shockwave: a bright 1-2px band on a transparent disc. */
html[data-ui="updated"] .cv-reveal-ring{inset:max(-22%,-13px);border-radius:50%;background:radial-gradient(closest-side,rgba(var(--cv-hot-rgb),0) 84%,rgba(var(--cv-hot-rgb),.95) 91%,rgba(var(--cv-burst-rgb),.6) 95%,rgba(var(--cv-burst-rgb),0) 100%);opacity:0;transform:scale(.28);animation:cv-reveal-ring .56s .03s cubic-bezier(.16,.72,.3,1) forwards}
html[data-ui="updated"] .cv-reveal-ring--echo{animation-delay:.15s;animation-duration:.6s;--cv-ring-peak:.55}
/* Soft rays that seem to come from behind the gem: the centre is masked out. */
html[data-ui="updated"] .cv-reveal-rays{inset:max(-24%,-13px);border-radius:50%;background:repeating-conic-gradient(from -4deg,rgba(var(--cv-ray-rgb),0) 0deg,rgba(var(--cv-ray-rgb),.62) 4deg,rgba(var(--cv-ray-rgb),0) 9deg,rgba(var(--cv-ray-rgb),0) 30deg);-webkit-mask-image:radial-gradient(closest-side,transparent 40%,#000 58%,rgba(0,0,0,.45) 80%,transparent 100%);mask-image:radial-gradient(closest-side,transparent 40%,#000 58%,rgba(0,0,0,.45) 80%,transparent 100%);opacity:0;transform:scale(.55) rotate(-10deg);animation:cv-reveal-rays .78s .02s cubic-bezier(.2,.6,.3,1) forwards}
/* Prism only: a pastel hue ring that turns as it fades, a gentle shimmer. */
html[data-ui="updated"] .cv-reveal-halo{inset:max(-20%,-12px);border-radius:50%;background:conic-gradient(from 0deg,rgba(255,150,226,.75),rgba(150,206,255,.75),rgba(160,255,226,.62),rgba(255,228,150,.7),rgba(206,160,255,.78),rgba(255,150,226,.75));-webkit-mask-image:radial-gradient(closest-side,transparent 60%,#000 76%,transparent 96%);mask-image:radial-gradient(closest-side,transparent 60%,#000 76%,transparent 96%);opacity:0;transform:scale(.7) rotate(0deg);animation:cv-reveal-halo .8s ease-out forwards}
html[data-ui="updated"] .cv-reveal-particle{position:absolute;left:50%;top:50%;width:3%;height:13%;border-radius:45%;background:linear-gradient(rgb(var(--cv-hot-rgb)),rgb(var(--cv-particle-rgb)) 42%,rgba(var(--cv-particle-rgb),0));opacity:0;transform:translate(-50%,-50%) rotate(var(--cv-r)) scale(.3);transform-origin:50% 50%;animation:cv-reveal-spark .7s var(--cv-delay) linear forwards}
html[data-ui="updated"] .cv-reveal-particle:nth-of-type(3n){background:rgb(var(--cv-hot-rgb))}
html[data-ui="updated"] .cv-reveal-particle:nth-of-type(3n+1){animation-duration:.62s}
html[data-ui="updated"] .cv-reveal-particle:nth-of-type(3n+2){animation-duration:.78s}
/* Four-point twinkles on the gem's outline; they turn and linger past the sparks. */
html[data-ui="updated"] .cv-reveal-glint{left:var(--cv-gx);top:var(--cv-gy);width:30%;height:30%;background:radial-gradient(circle,#fff 0 10%,rgba(var(--cv-hot-rgb),.95) 20%,rgba(var(--cv-particle-rgb),.6) 42%,rgba(var(--cv-particle-rgb),0) 68%);clip-path:polygon(50% 0,56% 44%,100% 50%,56% 56%,50% 100%,44% 56%,0 50%,44% 44%);opacity:0;transform:translate(-50%,-50%) scale(0);animation:cv-reveal-glint .5s var(--cv-gd) cubic-bezier(.3,.6,.35,1) forwards}
html[data-ui="updated"] .cv-reveal-burst--azure{--cv-burst-rgb:75,224,255;--cv-particle-rgb:96,231,255;--cv-hot-rgb:232,253,255;--cv-bloom-peak:.72;--cv-ring-peak:.72}
html[data-ui="updated"] .cv-reveal-burst--gold{--cv-burst-rgb:255,200,83;--cv-particle-rgb:255,200,83;--cv-hot-rgb:255,244,202;--cv-ray-rgb:255,214,128;--cv-bloom-peak:.9;--cv-ring-peak:.92;--cv-ray-peak:.8}
html[data-ui="updated"] .cv-reveal-burst--prism{--cv-burst-rgb:197,133,255;--cv-particle-rgb:202,145,255;--cv-hot-rgb:255,255,255;--cv-ray-rgb:226,196,255;--cv-bloom-peak:.95;--cv-ring-peak:1;--cv-ray-peak:.92}
html[data-ui="updated"] .cv-reveal-burst--bomb{--cv-burst-rgb:225,62,51;--cv-particle-rgb:126,28,30;--cv-hot-rgb:19,12,19;--cv-bloom-peak:.9}
html[data-ui="updated"] .cv-reveal-burst--bomb .cv-reveal-bloom{background:radial-gradient(circle at 50% 50%,rgba(231,71,53,.62) 0%,rgba(44,12,20,.38) 45%,rgba(20,8,15,0) 72%)}
html[data-ui="updated"] .cv-reveal-burst--bomb .cv-reveal-particle{width:14%;height:14%;border-radius:50%;animation-name:cv-reveal-puff}
/* Blender pass 1: the alpha sheets decorate the existing authoritative face.
   18 columns / 30fps; 100% stays tile-relative on every board and phone width.
   Background percentages use (sheet width - viewport width), so 18/17 × 100%
   travels exactly 18 cells, ending just past the no-repeat row at 600ms. */
html[data-ui="updated"] .cv-fx-sprite{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;background-repeat:no-repeat;background-size:1800% 100%;background-position:0 0;animation:cv-fx-frames .6s steps(18,end) forwards}
html[data-ui="updated"] .cv-fx-sprite--emergence-azure{background-image:url(updated-art/fx/emergence-azure.webp)}
html[data-ui="updated"] .cv-fx-sprite--emergence-gold{background-image:url(updated-art/fx/emergence-gold.webp)}
html[data-ui="updated"] .cv-fx-sprite--emergence-prism{background-image:url(updated-art/fx/emergence-prism.webp)}
html[data-ui="updated"] .cv-fx-sprite--sparks{background-image:url(updated-art/fx/sparks.webp);mix-blend-mode:screen;filter:sepia(.8) saturate(3) hue-rotate(135deg)}
html[data-ui="updated"] .cv-reveal-burst--gold .cv-fx-sprite--sparks{filter:sepia(.8) saturate(3)}
html[data-ui="updated"] .cv-reveal-burst--prism .cv-fx-sprite--sparks{filter:sepia(.8) saturate(3) hue-rotate(220deg)}
html[data-ui="updated"] .cv-fx-sprite--bomb{background-image:url(updated-art/fx/bomb.webp)}
@keyframes cv-fx-frames{to{background-position:105.882353% 0}}
html[data-ui="updated"] .gainwrap .p{display:none}
@keyframes cv-reveal-bloom{0%{opacity:0;transform:scale(.3)}28%{opacity:var(--cv-bloom-peak,.9);transform:scale(.62)}100%{opacity:0;transform:scale(1)}}
@keyframes cv-reveal-sheen{0%{opacity:0;transform:translateX(-120%) rotate(14deg)}22%{opacity:1}100%{opacity:0;transform:translateX(250%) rotate(14deg)}}
@keyframes cv-reveal-ring{0%{opacity:0;transform:scale(.28)}10%{opacity:var(--cv-ring-peak,.9)}100%{opacity:0;transform:scale(1)}}
@keyframes cv-reveal-rays{0%{opacity:0;transform:scale(.55) rotate(-10deg)}26%{opacity:var(--cv-ray-peak,.8)}100%{opacity:0;transform:scale(1) rotate(18deg)}}
@keyframes cv-reveal-halo{0%{opacity:0;transform:scale(.7) rotate(0deg)}30%{opacity:.8}100%{opacity:0;transform:scale(1) rotate(150deg)}}
@keyframes cv-reveal-spark{0%{opacity:0;transform:translate(-50%,-50%) rotate(var(--cv-r)) scale(.4);animation-timing-function:cubic-bezier(.2,.7,.4,1)}14%{opacity:1;transform:translate(-50%,-50%) translate(calc(var(--cv-x) * .34),calc(var(--cv-y) * .34)) rotate(calc(var(--cv-r) + 40deg)) scale(1.15);animation-timing-function:cubic-bezier(.25,.6,.35,1)}100%{opacity:0;transform:translate(-50%,-50%) translate(var(--cv-x),var(--cv-y)) rotate(calc(var(--cv-r) + 170deg)) scale(.2)}}
@keyframes cv-reveal-puff{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}16%{opacity:.86}100%{opacity:0;transform:translate(-50%,-50%) translate(var(--cv-x),var(--cv-y)) scale(1.35)}}
@keyframes cv-reveal-glint{0%{opacity:0;transform:translate(-50%,-50%) scale(0) rotate(0deg)}34%{opacity:1;transform:translate(-50%,-50%) scale(var(--cv-gs,1)) rotate(40deg)}66%{opacity:.8;transform:translate(-50%,-50%) scale(calc(var(--cv-gs,1) * .7)) rotate(64deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(0) rotate(90deg)}}
/* The gem lands with a small overshoot. It is the glyph that pops, from its
   final size, so the plate never jumps; the popp plate clips it to the tile. */
html[data-ui="updated"] .tile .plate.popp.crystal.azure{--cv-pop:1.05}
html[data-ui="updated"] .tile .plate.popp.crystal.gold{--cv-pop:1.085}
html[data-ui="updated"] .tile .plate.popp.crystal.prism{--cv-pop:1.12}
html[data-ui="updated"] .tile.cv-revealing .plate.popp .glyph{animation:cv-gem-pop .46s cubic-bezier(.33,0,.3,1) both}
/* Behind the gem, the plate's own light pool flares on the land and settles to
   the resting halo (none on azure), so the hand-off to the settled plate at
   the 1200ms re-render is seamless. The glyph paints above it. */
html[data-ui="updated"] .tile .plate.popp.crystal.azure::before{content:'';position:absolute;inset:-8%;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,rgba(128,228,255,.75) 0%,rgba(128,228,255,.38) 22%,rgba(128,228,255,.1) 50%,rgba(128,228,255,0) 74%);opacity:0}
html[data-ui="updated"] .tile.cv-revealing .plate.popp.crystal::before{animation:cv-pool-flare .72s ease-out both}
@keyframes cv-pool-flare{0%{opacity:0;transform:scale(.8)}18%{opacity:.95;transform:scale(1.08)}100%{opacity:var(--halo-low,0);transform:scale(.9)}}
@keyframes cv-gem-pop{0%{transform:scale(1)}34%{transform:scale(var(--cv-pop,1.07))}68%{transform:scale(.975)}100%{transform:scale(1)}}
.tile .bomb-glyph{background-image:url(updated-art/bomb/bomb.webp);mix-blend-mode:normal}
.tile .crystal-factor{background:rgba(5,9,16,.7);right:3px;bottom:3px;font:750 9px Manrope,system-ui;padding:1px 2px;color:#f3eff8}
.tile .plate.bombp,.tile .face.back.red{background:radial-gradient(ellipse at 45% 45%,#642d2d,#211824 80%);border:1px solid #b36955;box-shadow:inset 0 1px 0 rgba(255,166,120,.18),inset 0 -3px 0 rgba(0,0,0,.35)}
/* A soft, full-surface impact instead of the legacy opaque yellow flash. */
.tile .bombp .flashfill{background:radial-gradient(ellipse at 50% 45%,rgba(255,181,130,.3),rgba(240,116,80,.1) 42%,rgba(240,116,80,0) 78%);pointer-events:none}
/* The legacy landing ring grew to 3.4x the tile, past the neighbours and the
   column edge; the burst's bounded shockwave replaces it on this entry. */
html[data-ui="updated"] .tile .popring{display:none}
/* The flip ends at the final size: a second landing scale/flash caused a jump. */
.tile .plate.popp.t0,.tile .plate.popp.t1,.tile .plate.popp.t2{animation:none;transform:none;filter:none}
.gainwrap .gain{font-size:10px;text-shadow:0 2px 6px #070912;color:#e4d2ff;letter-spacing:.025em}
.gainwrap .p{opacity:.65;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.bombover .whiteout{background:#f6b78b;opacity:.22}
.bombover .redveil{box-shadow:inset 0 0 100px rgba(228,87,59,.26);background:rgba(47,10,18,.19)}
.bombover .burst{opacity:.2}
.bombover .banner{border:1px solid #c27a65;border-radius:10px;background:linear-gradient(130deg,#4b2930,#1d1420);box-shadow:inset 0 1px 0 rgba(255,203,179,.15),0 14px 50px rgba(0,0,0,.6);animation:cv-impact .5s cubic-bezier(.2,.8,.3,1) both}
.bombover .banner .big{color:#ffb39b;font-weight:800;font-size:29px;letter-spacing:-.055em}.bombover .banner .sub{color:#e1b1a7;font-weight:600}
@keyframes cv-impact{from{transform:translateY(-8px) scale(1.12);opacity:0}to{transform:none;opacity:1}}
.sheet{background:var(--surface);border:1px solid var(--edge);border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -12px 60px rgba(0,0,0,.36)}
.sheet.gold-top{border-top:1px solid #c7af82}.vtile{border-width:1px;border-style:solid;border-radius:9px;animation:none}
.sheetback{background:rgba(5,8,15,.76)}
.seedbox .sh{font-family:ui-monospace,Menlo,monospace}
.end-summary{border-radius:12px;border-color:#565169;background:linear-gradient(145deg,rgba(150,113,193,.09),transparent 42%),#131927;box-shadow:inset 0 1px 0 rgba(255,255,255,.075),0 8px 26px rgba(0,0,0,.2)}
.end-summary::before{border-radius:9px;border-color:rgba(187,178,210,.07)}
.end-kicker,.end-ledger-title b{color:#b7acd0}.end-title{color:#f1dfb6;font-weight:750;text-shadow:none;letter-spacing:-.04em}
.end-totals>span,.end-player{border-radius:7px;border-color:rgba(181,183,211,.15);background:#1a2130}
.end-player.winner{background:linear-gradient(100deg,rgba(156,124,205,.1),#1a2130 48%)}
.end-player.you{border-color:#779cac;box-shadow:inset 2px 0 0 #89c9d5}
.end-summary .positive{color:#b0dbd7}.end-rank{border-radius:5px;border-color:#534b67;color:#d3c6e9}
.end-receipt{border-radius:7px;border-color:#535269;background:rgba(168,156,198,.065);color:#d6c4ed}
.app[data-theme="light"] .tile .tnum{color:#2e3d55;opacity:.8}
.app[data-theme="light"] .tile .plate.hiddenp,.app[data-theme="light"] .tile .face.front{border-color:#8b9bb3;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),inset 0 -3px 0 #a6b2c6}
.app[data-theme="light"] .gridwrap{border-color:#a0aec4;background:linear-gradient(140deg,#a6b2c7,#cdd5e4);box-shadow:inset 0 2px 6px rgba(59,75,100,.2),0 6px 15px rgba(48,58,80,.12)}
.app[data-theme="light"] .tile .inner-line{border-color:rgba(68,88,120,.2)}
.app :is(button,a,input):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
/* Fit the shared header chips without changing their order or controls. */
.app .gheader{gap:6px}
.app .gheader .htitle{min-width:0}
.app #scr-game>.gheader{position:relative;justify-content:flex-end}
.app #scr-game>.gheader>.htitle{position:absolute;left:50%;transform:translateX(-50%);
  flex:none;width:max-content;max-width:calc(100% - 144px);pointer-events:none}
.app .gheader .htitle b{font-size:12px;line-height:1.2}
.app .gheader .htitle span{font-size:9px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* PROVABLY FAIR is a header square (2026-09-24), the 3D Plinko pattern: the
   family shield in the blue, on the same 26px .hbtn as play-again, with the
   44px hit area styles.css gives every .hbtn. #fair-hash stays inside it for
   app.js to write, visually hidden; the receipt sheet shows the full commit. */
.app .gheader .fairbtn{color:var(--blue)}
.app .gheader .fairbtn svg{display:block;flex:none}
.app .gheader .fairbtn .fh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.app .gheader :is(.tgh-pill,.step-back,.lobby-back){padding-inline:6px;font-size:9px;gap:3px;margin-right:0}
.app .gheader .tgw-chip{padding-inline:6px;gap:3px}
.app .gheader .tgw-chip .tgw-addr{font-size:9px}
.app .gheader .tgw-chip .tgw-bal{font-size:10px}
.app .col,.app .sheet{scrollbar-width:thin;scrollbar-color:var(--edge) transparent}
.app[data-theme="light"] .tgw-chip[data-state="disconnected"]{color:var(--gold-text);border-color:#a38d61}
.app[data-theme="light"] .tgw-chip[data-state="disconnected"] .tgw-mark{color:var(--gold-text)}
.app .amb{opacity:.45}
/* Reduced motion never changes the timer-driven application state. */
@media(prefers-reduced-motion:reduce){.app *,.app *::before,.app *::after,.tile *,.tile *::before,.tile *::after{animation:none!important;transition:none!important}}

@media(prefers-reduced-motion:reduce){.cv-edge-glint{display:none!important;animation:none!important}.cv-edge-glint *{animation:none!important}}
@media(prefers-reduced-motion:reduce){html[data-ui="updated"] .cv-reveal-burst{display:none!important}}

/* ── the round's hero panel is hidden (owner, 2026-09-17) ─────────────────
   "all this info is already displayed lower": the pot is on the TOTAL POT
   line (below), and every seat's share and multiplier is
   on its own share chip. Updated entry only — the original keeps its hero.
   The markup stays because app.js writes #hero-mult/#hero-pot/#hero-next and
   updated-ui.test.js compares this page's ids against the original's. */
#scr-game .hero{display:none}

/* ── TOTAL POT line, share-card offline state, board fit ──────────────────
   Owner, 2026-09-24 (annotated screenshot): the avatar squares are gone from
   this page, the pot is ONE slim row where the full-width provably-fair strip
   stood (that is the header shield now), and the height both rows took goes
   to what follows: the share cards' second row in a 4-player round, the board
   in a 2-player one. Updated entry only; the original keeps .avrow/.fairstrip. */

/* One compact row, ~26px: gem, TOTAL POT, the TON figure (the loud part), then
   the note right-aligned. It is an inline-size container so the note can drop
   its "fixed vault · " lead on a narrow line and keep to one row; anything
   still too long ellipsizes instead of wrapping. */
#game-col>.potline{container:cv-pot/inline-size;display:flex;align-items:baseline;gap:6px;flex:none;min-width:0;padding:4px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:inset 0 1px 0 rgba(255,255,255,.035);line-height:16px;white-space:nowrap}
.potline .pl-gem{flex:none;align-self:center;color:var(--gold)}
.potline .pl-k{flex:none;font:800 9px/16px Manrope,system-ui;letter-spacing:.09em;text-transform:uppercase;color:var(--hint)}
.potline .pl-v{flex:none;font:800 15px/16px Manrope,system-ui;letter-spacing:-.03em;color:var(--gold-text);font-variant-numeric:tabular-nums}
.potline .pl-v small{margin-left:3px;font:800 9px Manrope,system-ui;letter-spacing:.06em;color:var(--hint)}
.potline .pl-note{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:right;font:600 10.5px/16px Manrope,system-ui;color:var(--hint)}

/* A disconnected seat (the avatar row's dimmed square, .avwrap.off): its name
   dims and the weight line reads "×1.20 offline" where it said "×1.20 total",
   the same line at the same size (two letters longer), in the wait colour.
   The claim stays at full strength: the seat is still escrowed and paid. */
.sharechip.offline .sharename{opacity:.62}
.sharechip.offline .shareweight .offtag{font:800 10px Manrope,system-ui;color:var(--gold-text)}

/* The board takes the height the column has left. .gridfit flexes into that
   leftover (flex:1 1 0) and is a size container, so the board is the smaller
   of its width and height (100cqmin): the full column width whenever that
   fits, smaller only on a short viewport. Its floor is the board at a 44px
   tile (--gf-tile-min; gaps 7px, padding 9px + border 1px a side), capped at
   the column width; below that the column scrolls, as it always did, rather
   than the tiles getting smaller than a fingertip.
   No clipping: container-type:size is size + layout + style containment, NOT
   paint, so nothing inside is clipped. Layout containment only makes the
   reveal burst's spill (at most 13px past a tile, 3px past the board) ink
   overflow: painted, never a scrollbar. That spill still lands inside the
   board's own 10px edge plus the column's 16px sides, the 9px column gap above
   and, below, the gap and the 6px spacer, which is flex:none here so a full
   column cannot squeeze it away. Browsers without cq units keep the old
   fixed-width board (the @supports guard). */
@supports (container-type:size) and (width:1cqmin){
  #game-col>.gridfit{--gf-tile-min:44px;--gf-cols:6;
    --gf-floor:calc(var(--gf-cols) * var(--gf-tile-min) + (var(--gf-cols) - 1) * 7px + 20px);
    --gf-colw:calc(100vw - 32px - max(env(safe-area-inset-left,0px),var(--tg-safe-left,0px)) - max(env(safe-area-inset-right,0px),var(--tg-safe-right,0px)));
    container:cv-board/size;flex:1 1 0;min-height:min(var(--gf-floor),var(--gf-colw));display:flex;justify-content:center;align-items:flex-start}
  #game-col>.gridfit:has(>.gridwrap[data-cols="4"]){--gf-cols:4}
  #game-col>.gridfit:has(>.gridwrap[data-cols="5"]){--gf-cols:5}
  #game-col>.gridfit>.gridwrap{width:100cqmin;max-width:none;margin:0}
  #game-col>.gridfit+div{flex:none}
}

/* ── Same-size eliminated card · counting shares (owner, 2026-09-25) ──────
   "when someone is eliminated, the size of the rectangle with their name and
   split shouldn't change, it should just be red": on the original page an
   out seat's card spans the whole row (styles.css .sharechip.out, grid-column
   1/-1), which in a 4-player round opens a third row of cards and takes that
   height from the board. Here it keeps its own cell: same width, same height,
   still red, struck through, OUT, and it still shakes, now without the scale
   pop, so it never grows over its neighbour or its row. The sole winner keeps
   its cell too, so settlement does not reflow the strip either. Every card
   row is the same height (1fr rows under the auto header row), whatever each
   card says. Updated entry only; the original keeps its full-row out card. */
#share-strip{grid-template-rows:auto;grid-auto-rows:1fr}
#share-strip>.sharechip.out,#share-strip>.sharechip.sole-winner{grid-column:auto;min-height:0}
#share-strip>.sharechip.out{padding:6px 8px}
#share-strip>.sharechip.eliminated{animation:cv-share-out 1.05s cubic-bezier(.25,.8,.35,1)}
@keyframes cv-share-out{0%{transform:translateX(0);filter:brightness(1)}12%{transform:translateX(-3px);filter:brightness(1.75)}26%{transform:translateX(3px)}40%{transform:translateX(-2px);filter:brightness(1.3)}56%{transform:translateX(1.5px)}74%{transform:translateX(-.5px)}100%{transform:translateX(0);filter:brightness(1)}}
/* A changed share counts to its new figure (share-count.js). While it moves,
   its claim box glows green when it grows and red when it shrinks, then fades
   back when the count lands. Tabular digits keep the box from twitching. */
#share-strip .sharechip .shareclaim{transition:border-color .5s ease,box-shadow .5s ease}
#share-strip .sharechip .claimvalue strong{font-variant-numeric:tabular-nums;transition:color .5s ease}
#share-strip .sharechip.count-up .shareclaim{border-color:#5fbf8c;box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 0 0 1px rgba(95,191,140,.32),0 0 12px rgba(95,191,140,.3)}
#share-strip .sharechip.count-down .shareclaim{border-color:#b86a60;box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 0 0 1px rgba(184,106,96,.3),0 0 10px rgba(184,106,96,.26)}
#share-strip .sharechip.count-up:not(.winner) .claimvalue strong{color:#a4efc4}
#share-strip .sharechip.count-down:not(.winner) .claimvalue strong{color:#f2b2a8}

/* Elimination screen (updated page): it takes the taps while it is up, so a
   double tap can dismiss it and a single stray tap cannot reach a tile beneath. */
html[data-ui="updated"] .bombover.open{pointer-events:auto;touch-action:manipulation;cursor:pointer}
