/* ============================================================ CHAUSLA  v2
   A card table: green felt, gold foil, ivory cards.
   ------------------------------------------------------------------------ */
:root{
  /* Deep, desaturated British racing green. Nearly black at the base so the
     ivory cards and champagne accents are the only bright things on screen. */
  --felt-0:#071A12;   /* page ground            */
  --felt-1:#0D2619;   /* elevated surface       */
  --felt-2:#133022;   /* secondary surface      */
  --felt-3:#1B4330;   /* top of a light pool    */
  --line:#1C3E2A;     /* hairline               */
  --line-2:#27503A;

  /* A second accent so the table is not champagne-or-nothing: a deep copper
     for declarations and anything that is about to cost someone money. */
  --copper-1:#C97A4A; --copper-2:#9E5C34; --copper-bg:rgba(201,122,74,.12);
  /* A cool counterweight, used for state rather than decoration. */
  --jade-1:#5FBF93; --jade-bg:rgba(95,191,147,.12);

  /* Muted champagne, not yellow-gold. Used sparingly: brand, winner, money,
     primary action. --gold-1 is the only one that should ever read as bright. */
  --gold-1:#C9A96A; --gold-2:#AE9158; --gold-3:#7F673A; --gold-4:#3F3420;

  --ivory:#EFE8DA; --ink:#0A1711;
  --muted:#7E9185; --muted-2:#56675C;
  --red:#B5323C; --win:#5FBF93; --lose:#D4796C;

  /* Surfaces 20-24, buttons 12-14, pills full. Not everything is a pill. */
  --r-s:12px; --r-m:14px; --r-l:22px;

  /* Depth instead of borders: a faint top highlight and a soft, wide shadow. */
  --lift:inset 0 1px 0 rgba(255,255,255,.045);
  --shadow-1:0 1px 2px rgba(0,0,0,.45),0 14px 34px -18px rgba(0,0,0,.7);
  --shadow-2:0 2px 8px rgba(0,0,0,.5),0 32px 64px -24px rgba(0,0,0,.8);
  --hair:linear-gradient(90deg,transparent,rgba(201,169,106,.28),transparent);

  /* Restrained foil. No white-hot stop; it should look like brushed metal. */
  --foil:linear-gradient(103deg,#8A7343 0%,#C9A96A 38%,#E3CC97 50%,#C9A96A 62%,#8A7343 100%);
  --ease:cubic-bezier(.22,1,.36,1);
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%}html{overflow-x:hidden}body{overflow-x:clip}body{
  margin:0; color:var(--ivory); background:var(--felt-0);
  font:400 15px/1.55 "Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:-.005em;
  overscroll-behavior:none; -webkit-font-smoothing:antialiased;
}
/* Lacquered table: one soft light pool from above, nothing else. */
body::before{
  content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(125% 78% at 50% -14%, var(--felt-3) 0%, var(--felt-1) 44%, var(--felt-0) 100%),
    radial-gradient(60% 40% at 88% 8%, rgba(201,122,74,.07), transparent 70%),
    radial-gradient(55% 38% at 8% 92%, rgba(95,191,147,.05), transparent 70%);
}
/* Felt weave at 2-3%, plus the signature: one large embossed spade, barely
   visible, anchored behind the top of the table. The motif is what makes this
   read as designed rather than assembled. */
body::after{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.022' d='M50 8c0 0-22 20-22 34a13 13 0 0 0 20 11l-5 20h14l-5-20a13 13 0 0 0 20-11C72 28 50 8 50 8z'/%3E%3C/svg%3E"),
    repeating-linear-gradient(45deg,rgba(255,255,255,.014) 0 1px,transparent 1px 4px),
    repeating-linear-gradient(-45deg,rgba(0,0,0,.05) 0 1px,transparent 1px 4px);
  background-repeat:no-repeat,repeat,repeat;
  background-position:50% 3%,0 0,0 0;
  background-size:min(46vw,250px) auto,auto,auto;
  mask-image:radial-gradient(100% 70% at 50% 2%,#000 18%,transparent 78%);
}
/* The serif is a *moment* face: hero, room code, winner, big figures. Every
   other heading stays in the sans so the hierarchy reads as deliberate. */
h1,h2,h3{margin:0;font-weight:700;letter-spacing:-.01em}.display,.serif{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}input{font:inherit}
::selection{background:var(--gold-2);color:var(--ink)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
[hidden]{display:none!important}

/* ------------------------------------------------------------------ chrome */
.shell{min-height:100vh;min-height:100dvh;width:100%;max-width:min(1080px,100%);display:flex;flex-direction:column;
  padding:calc(var(--safe-t) + 18px) 18px calc(var(--safe-b) + 24px);margin:0 auto}

/* Header: wordmark left, one status label and icon-only controls right. No
   outlines -- these are not actions, they are chrome. */
.bar{display:flex;align-items:center;gap:14px;min-height:36px}.mark{display:flex;align-items:center;gap:10px;font-weight:700;font-size:10.5px;letter-spacing:.34em}.mark i{font-style:normal;background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:14px}.mark span{background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.bar-r{margin-left:auto;display:flex;align-items:center;gap:2px}

/* A status label, not a chip. */
.tag{display:inline-flex;align-items:center;min-height:30px;padding:4px 6px;
  font-size:10px;letter-spacing:.16em;font-weight:600;color:var(--muted-2);
  background:none;border:0;border-radius:var(--r-s);white-space:nowrap;
  transition:color .2s,background .2s}.tag.lit{color:var(--gold-1)}
/* Icon-only controls: no chrome until touched. */
.bar-r button.tag{min-width:32px;justify-content:center;font-size:13px;letter-spacing:0;color:var(--muted-2)}.bar-r button.tag:hover,.bar-r button.tag:focus-visible{color:var(--gold-1);background:rgba(255,255,255,.04)}
/* Connectivity only speaks up when something is wrong. */
.dot{width:6px;height:6px;border-radius:50%;background:transparent;flex:0 0 auto;margin-left:6px}.dot.off{background:var(--lose);box-shadow:0 0 8px rgba(196,124,114,.7);animation:pulse 1.4s infinite}@keyframes pulse{50%{opacity:.25}}

/* Section labels: small, quiet, barely spaced. They should whisper. */
.eyebrow{font-size:9.5px;letter-spacing:.13em;font-weight:600;color:var(--muted-2);text-transform:uppercase}.muted{color:var(--muted)}.sm{font-size:13px}
/* Fine print: explanation lives at the bottom of the hierarchy. */
.fine{font-size:12px;line-height:1.5;color:var(--muted-2)}

/* The default is NO container. Content sits on the continuous table surface,
   separated by space. Only genuinely separate modules opt into a surface. */
.panel{padding:0;background:none;border:0;border-radius:0;box-shadow:none}.panel+.panel{margin-top:30px}

/* An actual raised module: faint gradient, hairline top highlight, soft
   shadow. No outline anywhere. */
.panel.raised,.sheet,.toast{
  background:linear-gradient(180deg,var(--felt-2),var(--felt-1));
  border-radius:var(--r-l);padding:20px;
  box-shadow:var(--shadow-1),var(--lift)}.panel.raised+.panel.raised{margin-top:14px}

/* Extremely fine gold divider. */
.rule{height:1px;background:var(--hair);margin:22px 0;border:0}
/* ------------------------------------------------------------------ buttons */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 18px;border-radius:var(--r-m);font-weight:600;font-size:14px;letter-spacing:.01em;
  border:0;background:var(--felt-2);color:var(--ivory);
  box-shadow:var(--lift),0 1px 2px rgba(0,0,0,.4);
  transition:transform .12s var(--ease),filter .2s,box-shadow .2s,background .2s;overflow:hidden}.btn:hover{background:#133023}.btn:active{transform:scale(.978)}.btn:disabled{opacity:.34;cursor:not-allowed}
/* The one primary action on a screen. */
.btn.gold{color:var(--ink);background:var(--foil);font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 10px 28px -14px rgba(201,169,106,.55)}.btn.gold::after{content:"";position:absolute;inset:0;
  background:linear-gradient(103deg,transparent 38%,rgba(255,255,255,.4) 50%,transparent 62%);
  transform:translateX(-120%)}.btn.gold:not(:disabled):hover::after{animation:sheen 1s var(--ease)}@keyframes sheen{to{transform:translateX(120%)}}
/* Secondary: no fill, no outline. Just a label. */
.btn.ghost{background:none;box-shadow:none;color:var(--muted);font-weight:600}.btn.ghost:hover{background:rgba(255,255,255,.04);color:var(--ivory)}.btn.danger{background:none;box-shadow:none;color:var(--lose)}.btn.danger:hover{background:rgba(196,124,114,.08)}.btn.wide{width:100%}.btn.tiny{padding:8px 12px;font-size:12px;border-radius:var(--r-s);min-height:32px}
/* A quiet text action, e.g. "View proof". */
.btn.link{padding:6px 0;background:none;box-shadow:none;color:var(--gold-1);font-size:12.5px;
  font-weight:600;border-radius:0}.btn.link:hover{background:none;color:#DCC18A}.row{display:flex;gap:9px;flex-wrap:wrap}.field{flex:1 1 170px;min-width:0;padding:15px 16px;border-radius:var(--r-m);border:0;
  background:rgba(0,0,0,.3);color:var(--ivory);outline:none;box-shadow:var(--lift);transition:box-shadow .2s}.field::placeholder{color:var(--muted-2)}.field:focus{box-shadow:var(--lift),0 0 0 2px rgba(201,169,106,.3)}.field.code-in{text-transform:uppercase;letter-spacing:.22em;font-weight:700;text-align:center}

/* --------------------------------------------------------------------- home */
.hero{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;padding:28px 0 18px;gap:6px}.hero h1{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(58px,17.5vw,122px);line-height:.88;letter-spacing:-.025em;max-width:100%}
/* background-clip:text clips to the element box, so a tight line-height eats
   the descender of the italic 'y' in "Outplay." -- the same trap the room code
   works around above. The em is given its own line box plus padding on all
   four sides: bottom for the descender, left and right for the italic lean. */
.hero h1 em{display:inline-block;font-style:italic;line-height:1;
  padding:.04em .11em .19em .05em;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.hero .sub{color:var(--muted);font-size:14px;max-width:30ch;margin-top:10px}
/* ---------------------------------------------------------- the living fan
   Real perspective, an idle breath, a lean toward the pointer or the phone's
   tilt, and faces that turn over every few seconds. --rx/--ry are driven from
   JS; everything else runs on the compositor. */
.fan{position:relative;height:clamp(150px,44vw,196px);width:clamp(200px,58vw,264px);
  margin-bottom:16px;flex:0 0 auto;perspective:1000px;
  transform-style:preserve-3d;will-change:transform}.fan-glow{position:absolute;inset:-18% -12% -26%;border-radius:50%;pointer-events:none;
  background:radial-gradient(50% 50% at 50% 55%,rgba(201,169,106,.17),transparent 72%);
  filter:blur(10px);animation:fanBreath 7s ease-in-out infinite}@keyframes fanBreath{50%{opacity:.55;transform:scale(1.07)}}.fan-slot{position:absolute;left:50%;top:0;margin-left:calc(clamp(72px,21vw,100px) / -2);
  transform-style:preserve-3d;will-change:transform;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) var(--pose);
  transition:transform .5s var(--ease);
  animation:fanIn .9s var(--ease) backwards, float 6s ease-in-out infinite}.fan-slot[data-s="0"]{--pose:translate3d(-42%,6px,-40px) rotate(-17deg);animation-delay:.05s,0s}.fan-slot[data-s="1"]{--pose:translate3d(0,-8px,20px) rotate(1deg);animation-delay:.15s,.9s}.fan-slot[data-s="2"]{--pose:translate3d(42%,6px,-40px) rotate(18deg);animation-delay:.25s,1.8s}.fan-slot .card.lg{--w:clamp(72px,21vw,100px)}@keyframes fanIn{from{opacity:0;transform:translate3d(0,46px,-220px) rotate(0) scale(.82)}}@keyframes float{50%{translate:0 -7px}}
/* the slow turn-over */
.fan-face{transform-style:preserve-3d;transition:transform .3s var(--ease),opacity .3s}.fan-slot.turning .fan-face{transform:rotateY(90deg) scale(.94);opacity:.25}@media(prefers-reduced-motion:reduce){
  .fan-slot{animation:none;transition:none}.fan-glow{animation:none}
}



/* -------------------------------------------------------------------- cards */
.card{
  --w:78px; --h:calc(var(--w) * 1.42);
  position:relative;flex:0 0 var(--w);width:var(--w);height:var(--h);
  border-radius:calc(var(--w) * .095);background:linear-gradient(168deg,#fffdf7,#f7f2e6 55%,#e9e2d0);
  color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -8px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.9);
  display:flex;align-items:center;justify-content:center;padding:0;
  transition:transform .18s var(--ease),box-shadow .18s,opacity .18s;
  will-change:transform;touch-action:manipulation}.card::before{content:"";position:absolute;inset:3.5%;border-radius:inherit;
  border:1px solid rgba(22,18,10,.1)}
/* Sizes here are deliberate: the corner index bottom and the pip top are
   within ~2px of each other on a 78px card, so changing one without the other
   makes them overlap. See the geometry note in README. */
/* The rank and the suit are two rows in a flex column with a real gap, so the
   clearance between them is a length we control rather than a side effect of
   line-height. Every size below inherits it. */
.card .pip{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:calc(var(--w) * .055);font-family:"Manrope",system-ui,sans-serif;font-weight:800;
  font-size:calc(var(--w) * .36);letter-spacing:-.04em;text-align:center}
.card .pip .pv{display:block;line-height:.78;font-style:normal}
/* Every rank is set in the sans. Cormorant ships oldstyle figures (1 reads as a
   small-cap I) and its J is a bare descending stroke that reads as a pipe at
   38px -- both were visible on real cards in the showdown. */.card .suit{display:block;font-size:calc(var(--w) * .23);line-height:.9;font-style:normal;
  font-family:"Helvetica Neue",system-ui,sans-serif}.card .idx{font-variant-numeric:lining-nums tabular-nums;position:absolute;top:4.5%;left:7%;font-size:calc(var(--w) * .13);font-weight:800;line-height:1;
  letter-spacing:-.03em;font-family:"Manrope",sans-serif}.card .idx b{display:block;font-size:calc(var(--w) * .105);font-weight:600;line-height:1.05}.card.r{color:var(--red)}.card.ten .pip{font-size:calc(var(--w) * .30)}.card:not(.flat):hover{transform:translateY(-5px);box-shadow:0 2px 6px rgba(0,0,0,.5),0 24px 48px -16px rgba(0,0,0,.75)}.card.sel{box-shadow:0 0 0 2px var(--gold-1),0 24px 48px -16px rgba(0,0,0,.75);transform:translateY(-7px)}.card.spent{opacity:.2;filter:grayscale(.7);pointer-events:none;transform:none}.card.flat{cursor:default}.card.mini{--w:58px}.card.xs{--w:46px}.card.lg{--w:100px}
/* back face, used for the deal animation and opponent stacks */
.card.back{background:
  radial-gradient(circle at 50% 50%,rgba(244,220,154,.18),transparent 62%),
  repeating-linear-gradient(45deg,#123b28 0 4px,#0d2e1f 4px 8px);
  box-shadow:var(--shadow-1),inset 0 0 0 1px rgba(244,220,154,.22)}.card.back::after{content:"";position:absolute;inset:11%;border-radius:6px;border:1px solid rgba(201,169,106,.28)}@keyframes dealIn{from{opacity:0;transform:translate(0,-180px) rotate(-14deg) scale(.7)}}

/* ------------------------------------------------------------------ arrange */
.trays{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:620px){.trays{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:900px){.trays{grid-template-columns:repeat(4,minmax(0,1fr))}}.tray{position:relative;border:1px dashed rgba(255,255,255,.07);border-radius:var(--r-m);padding:10px 10px 8px;
  background:rgba(0,0,0,.16);min-height:104px;transition:border-color .2s,background .2s,box-shadow .2s;cursor:pointer}.tray.on{border-style:solid;border-color:var(--gold-2);background:rgba(201,169,106,.07);
  box-shadow:0 0 0 1px rgba(201,169,106,.25),0 8px 28px -14px rgba(201,169,106,.5)}.tray.full{border-style:solid;border-color:transparent;background:rgba(0,0,0,.26);box-shadow:var(--lift)}.tray.drop{border-color:var(--gold-1);background:rgba(201,169,106,.14)}.tray-h{display:flex;align-items:center;gap:6px;font-size:9.5px;letter-spacing:.1em;
  font-weight:600;color:var(--muted-2);margin-bottom:7px;text-transform:uppercase;
  white-space:nowrap;min-height:15px;overflow:hidden}.tray-h .best{letter-spacing:.1em;font-size:8px;padding:2px 5px;border-radius:4px;
  background:rgba(201,169,106,.18);color:var(--gold-1)}.tray-h .n{color:var(--muted-2)}.tray-h .rk{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;letter-spacing:.04em;font-size:10px;color:var(--ivory);
  font-weight:700;text-transform:none;opacity:0;transition:opacity .25s}.tray.has .tray-h .rk{opacity:.85}/* Three cards always fit, regardless of what .mini is set to elsewhere: the
   width is derived from the tray, not from a fixed pixel size. Growing .mini
   from 46 to 58px is what made them spill out of a half-width tray. */
.tray-c{display:flex;gap:4px;min-height:62px;align-items:flex-start}
/* --w MUST be an absolute length: it feeds font-size and height calcs, where
   a percentage resolves against the parent font-size / containing-block
   height, not the width. A percentage here collapsed the pips to nothing and
   left an empty card with a hairline. Viewport units keep it responsive and
   absolute at the same time. Three cards fit the tray at every breakpoint.
   2 columns below 620px, 3 columns to 900px, 4 above. */
.tray-c .card{--w:min(58px,calc(16.666vw - 17px))}
@media(min-width:620px){.tray-c .card{--w:min(58px,calc(11.111vw - 16px))}}
@media(min-width:900px){.tray-c .card{--w:58px}}.tray.disc{border-color:#4a3550}.tray.disc .tray-h{color:#b48fc4}.tray.disc.on{border-color:#b48fc4;background:rgba(180,143,196,.08)}.handbar{position:sticky;bottom:0;margin:12px -16px calc(var(--safe-b) * -1 - 16px);border-top:1px solid var(--line);
  padding:12px 16px calc(var(--safe-b) + 14px);
  background:linear-gradient(180deg,transparent,rgba(5,16,11,.93) 26%);
  backdrop-filter:blur(10px);z-index:5}.hand{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:10px 0 10px;
  scrollbar-width:thin;scroll-snap-type:x proximity}.hand::-webkit-scrollbar{height:4px}.hand::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:4px}.hand .card{scroll-snap-align:center}.handtop{display:flex;align-items:center;gap:8px;font-size:10.5px;letter-spacing:.16em;font-weight:800;color:var(--gold-2)}.handtop .rest{margin-left:auto;display:flex;gap:6px}.seg{display:inline-flex;border:1px solid var(--line-2);border-radius:999px;overflow:hidden;background:rgba(0,0,0,.3)}.seg button{min-height:32px;padding:6px 13px;font-size:10.5px;letter-spacing:.1em;font-weight:800;color:var(--muted)}.seg button.on{background:var(--foil);color:var(--ink)}.seats{display:flex;flex-direction:column;gap:2px}.seat{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.035)}.seat:last-child{border-bottom:0}.seat .nm{font-weight:700;display:flex;align-items:center;gap:7px;min-width:0}.seat .nm b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat .st{margin-left:auto;font-size:11.5px;letter-spacing:.1em;font-weight:700;color:var(--muted);white-space:nowrap}.seat .st.ok{color:var(--win)}.seat .st.no{color:var(--lose)}.chip{font-size:9px;letter-spacing:.11em;font-weight:600;padding:3px 8px;border-radius:999px;
  background:rgba(201,169,106,.1);color:var(--gold-1);border:0}.chip.you{background:var(--jade-bg);color:var(--jade-1)}.chip.dlr{background:rgba(255,255,255,.055);color:var(--muted)}

/* ------------------------------------------------------------------- lobby */
.codebox{text-align:center;padding:6px 0 2px}
/* Room codes mix letters and digits, so they need lining figures -- Cormorant's
   default oldstyle 7 drops below the baseline. Extra line-height keeps the
   J/Q descenders from being clipped by the background-clip box. */
.codebox .val{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(50px,15vw,82px);line-height:1.18;
  font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"tnum" 1;
  letter-spacing:.14em;background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;
  font-weight:600;padding:2px 0 2px .14em}.toggle{display:flex;align-items:center;gap:12px;padding:13px 0}.toggle .sw{flex:0 0 46px;height:27px;border-radius:999px;background:rgba(0,0,0,.45);
  border:1px solid var(--line-2);position:relative;transition:background .2s,border-color .2s}.toggle .sw::after{content:"";position:absolute;top:2px;left:2px;width:21px;height:21px;border-radius:50%;
  background:var(--muted);transition:transform .22s var(--ease),background .22s}.toggle.on .sw{background:rgba(201,169,106,.3);border-color:var(--gold-3)}.toggle.on .sw::after{transform:translateX(19px);background:var(--gold-1)}

/* ----------------------------------------------------------------- results */
.showdown{display:flex;flex-direction:column;gap:9px}.hrow{border:0;border-radius:var(--r-l);padding:14px;background:rgba(0,0,0,.2);box-shadow:var(--lift);
  animation:rise .45s var(--ease) backwards}@keyframes rise{from{opacity:0;transform:translateY(14px)}}.hrow-h{display:flex;align-items:center;gap:9px;margin-bottom:10px}.hrow-h .no{font-family:"Cormorant Garamond",serif;font-size:21px;color:var(--gold-2);line-height:1}.hrow-h .wn{margin-left:auto;font-size:11px;letter-spacing:.12em;font-weight:800;color:var(--gold-1)}.pile{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px}.pset{flex:0 0 auto;text-align:center;opacity:.52;transition:opacity .3s;padding:3px 7px;border-radius:12px}.pset.won{opacity:1;background:rgba(201,169,106,.09);box-shadow:inset 0 0 0 1px rgba(201,169,106,.3)}.pset .cc{display:flex;gap:3px;margin-bottom:5px}.pset .lb{font-size:10px;letter-spacing:.08em;font-weight:700;color:var(--muted);white-space:nowrap}.pset.won .lb{color:var(--gold-1)}.pset .rk{font-size:9px;letter-spacing:.1em;color:var(--muted-2);text-transform:uppercase}
/* flip-in on reveal */
@keyframes flip{from{transform:rotateY(90deg) scale(.9);opacity:0}}.pset .card{animation:flip .4s var(--ease) backwards;backface-visibility:hidden}

/* ------------------------------------------------- the winner moment
   This is the one dramatic beat in the product, so it sits directly on the
   table with nothing boxing it in and a lot of air around it. */
.trophy{text-align:center;padding:52px 0 38px}.trophy .eyebrow{color:var(--gold-3);letter-spacing:.2em;font-size:10.5px}.trophy .who{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-style:italic;font-size:clamp(46px,14vw,86px);line-height:1;letter-spacing:-.025em;
  margin:18px 0 6px;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.trophy .takes{display:block;font-size:14px;letter-spacing:.04em;color:var(--muted);font-weight:400}.trophy .what{margin-top:16px;font-size:12px;color:var(--muted-2);letter-spacing:.06em}.cel-cards{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin:30px 0 8px;max-width:100%}.cel-cards .card{animation:slam .46s var(--ease) backwards}@keyframes slam{from{opacity:0;transform:translateY(-54px) rotate(-11deg) scale(1.3)}}

/* ------------------------------------------------- ledger as a statement
   One figure per player reads as the result; the running total sits under it
   in lower contrast. Gains and losses are stated, not shouted. */
.stmt{display:flex;flex-direction:column}.stmt-row{display:grid;grid-template-columns:1fr auto;align-items:baseline;
  column-gap:16px;row-gap:5px;padding:17px 0}.stmt-row+.stmt-row{border-top:1px solid rgba(255,255,255,.035)}.stmt-row .who{font-weight:600;font-size:15px;display:flex;align-items:center;gap:8px;min-width:0}.stmt-row .who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.stmt-row .net{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em}.stmt-row .net.up{color:var(--win)}.stmt-row .net.dn{color:var(--lose)}.stmt-row .net.flat{color:var(--muted)}.stmt-row .sub{grid-column:1;font-size:11.5px;color:var(--muted-2);letter-spacing:.04em}.stmt-row .tot{grid-column:2;text-align:right;font-size:12.5px;color:var(--muted);
  font-variant-numeric:tabular-nums}.stmt-row.lead .who b{color:var(--gold-1)}

/* kept for the in-sheet round history */
.delta{font-weight:600;font-variant-numeric:tabular-nums}.delta.up{color:var(--win)}.delta.dn{color:var(--lose)}.bal{color:var(--muted-2);font-weight:400}.banner{display:flex;gap:11px;align-items:flex-start;border-radius:var(--r-m);padding:13px 15px;
  font-size:13px;border:0;background:rgba(201,169,106,.07);color:var(--gold-1);margin-bottom:14px;
  box-shadow:var(--lift)}.banner.warn{background:rgba(196,124,114,.08);color:var(--lose)}

/* ------------------------------------------------- fairness, not cryptography
   The main screen states that the deal was verified. The hash and seed live
   behind a disclosure for anyone who actually wants them. */
.verif{display:flex;align-items:center;gap:11px;padding:2px 0}.verif .seal{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  font-size:11px;color:var(--jade-1);background:var(--jade-bg)}.verif .txt{min-width:0}.verif .txt b{display:block;font-size:13.5px;font-weight:600}.verif .txt span{display:block;font-size:11.5px;color:var(--muted-2);letter-spacing:.03em}.verif .btn.link{margin-left:auto;flex:0 0 auto}.proof{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:var(--muted-2);
  word-break:break-all;line-height:1.6;margin-top:14px;padding-top:14px;
  border-top:1px solid rgba(255,255,255,.04)}

/* ------------------------------------------------------------------- toast */
.toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--safe-b) + 18px);
  z-index:60;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:min(92vw,420px)}.toast{background:rgba(8,20,14,.96);border:1px solid var(--gold-4);color:var(--ivory);
  border-radius:14px;padding:12px 16px;font-size:13.5px;font-weight:600;box-shadow:var(--shadow-2);
  animation:toastIn .3s var(--ease);width:100%;text-align:center}@keyframes toastIn{from{opacity:0;transform:translateY(14px) scale(.95)}}.toast.out{animation:toastOut .25s var(--ease) forwards}@keyframes toastOut{to{opacity:0;transform:translateY(8px) scale(.97)}}@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ================================================================ SHOWDOWN
   Cards turn over one at a time, hand by hand, then the winner is called.
   ------------------------------------------------------------------------ */
.sd-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}.sd-top .eyebrow{margin:0}.sd-skip{margin-left:auto}.sd-prog{height:3px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden;margin:10px 0 16px}.sd-prog i{display:block;height:100%;width:0;background:var(--foil);transition:width .5s var(--ease)}.sd-row{border:0;border-radius:var(--r-l);padding:16px;background:rgba(0,0,0,.2);box-shadow:var(--lift);
  margin-bottom:10px;animation:rise .4s var(--ease) backwards;transition:border-color .4s,box-shadow .4s}.sd-row.live{background:rgba(201,169,106,.045);box-shadow:var(--lift),0 0 0 1px rgba(201,169,106,.16),0 18px 44px -24px rgba(201,169,106,.4)}.sd-row-h{display:flex;align-items:center;gap:9px;margin-bottom:11px;min-height:24px}.sd-row-h .no{font-family:"Cormorant Garamond",serif;font-variant-numeric:lining-nums;
  font-size:22px;color:var(--gold-2);line-height:1;min-width:16px}.sd-call{margin-left:auto;font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--gold-1);
  opacity:0;transform:translateX(8px);transition:opacity .35s var(--ease),transform .35s var(--ease)}.sd-call.in{opacity:1;transform:none}.sd-seats{display:flex;gap:11px;overflow-x:auto;padding-bottom:5px}.sd-seat{flex:0 0 auto;text-align:center;padding:5px 8px 6px;border-radius:13px;
  transition:opacity .45s var(--ease),background .45s,box-shadow .45s,transform .45s var(--ease)}.sd-row.done .sd-seat{opacity:.4}.sd-row.done .sd-seat.won{opacity:1;background:rgba(201,169,106,.08);
  box-shadow:inset 0 0 0 1px rgba(201,169,106,.34);transform:translateY(-3px)}.sd-cards{display:flex;gap:4px;min-height:70px;justify-content:center}.sd-seat .nm{font-size:10.5px;letter-spacing:.07em;font-weight:700;color:var(--muted);
  margin-top:6px;white-space:nowrap}.sd-seat.won .nm{color:var(--gold-1)}.sd-seat .rk{font-size:9px;letter-spacing:.11em;color:var(--muted-2);text-transform:uppercase;
  opacity:0;transition:opacity .35s;min-height:12px}.sd-row.done .sd-seat .rk{opacity:1}.sd-seat.won .rk{color:var(--gold-2)}

/* a card turning face up */
@keyframes turn{
  0%{transform:rotateY(-92deg) translateY(-14px) scale(.92);opacity:0}
  55%{opacity:1}
  100%{transform:none;opacity:1}
}.sd-cards .card{animation:turn .36s var(--ease) backwards;backface-visibility:hidden}.sd-slot{flex:0 0 38px;width:38px;height:54px;border-radius:5px;
  border:1px dashed rgba(255,255,255,.07);background:rgba(0,0,0,.18)}

/* ----------------------------------------------------------- celebration */
.celebrate{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;
  padding:calc(var(--safe-t) + 20px) 18px calc(var(--safe-b) + 20px);
  background:radial-gradient(120% 90% at 50% 40%,#17402b,#040c08);
  backdrop-filter:blur(6px);
  animation:fadeIn .4s var(--ease);overflow-y:auto}@keyframes fadeIn{from{opacity:0}}.celebrate .fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.cel{position:relative;text-align:center;max-width:520px;width:100%}.cel .eyebrow{animation:rise .5s var(--ease) .1s backwards}.cel h1{font-size:clamp(46px,15vw,88px);line-height:.92;letter-spacing:-.02em;margin:6px 0 2px;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:popIn .6s var(--ease) .18s backwards}@keyframes popIn{from{opacity:0;transform:scale(.72) translateY(18px)}}.cel .who{font-size:17px;font-weight:700;margin-top:8px;animation:rise .5s var(--ease) .34s backwards}.cel .det{color:var(--muted);font-size:13.5px;margin-top:5px;animation:rise .5s var(--ease) .4s backwards}.cel-cards{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin:22px 0 8px;max-width:100%}.cel-cards .card{animation:slam .46s var(--ease) backwards}@keyframes slam{from{opacity:0;transform:translateY(-54px) rotate(-11deg) scale(1.3)}}.cel .amt{font-family:"Cormorant Garamond",serif;font-variant-numeric:lining-nums;
  font-size:clamp(34px,11vw,56px);line-height:1;margin-top:16px;color:var(--gold-1);
  animation:popIn .5s var(--ease) .8s backwards}.cel .btn{margin-top:22px;animation:rise .5s var(--ease) 1s backwards}@keyframes ring{0%{transform:scale(.6);opacity:.65}100%{transform:scale(2.5);opacity:0}}.cel .halo{position:absolute;left:50%;top:38%;width:200px;height:200px;margin:-100px 0 0 -100px;
  border-radius:50%;border:2px solid var(--gold-2);animation:ring 1.5s ease-out .2s infinite;pointer-events:none}@media (prefers-reduced-motion:reduce){
  .cel .halo{display:none}
}

/* ============================================================ HELP / MODAL */
.modal{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(2,7,5,.72);backdrop-filter:blur(7px);animation:fadeIn .25s var(--ease)}@media(min-width:700px){.modal{align-items:center}}.sheet{width:min(640px,100%);max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;
  background:linear-gradient(180deg,#123024,#081610);border:1px solid var(--line-2);
  border-radius:var(--r-l) var(--r-l) 0 0;box-shadow:var(--shadow-2);animation:sheetUp .36s var(--ease)}@media(min-width:700px){.sheet{border-radius:var(--r-l)}}@keyframes sheetUp{from{transform:translateY(40px);opacity:0}}.sheet-h{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 12px;
  border-bottom:1px solid var(--line);flex:0 0 auto}.sheet-b{padding:16px 18px calc(var(--safe-b) + 24px);overflow-y:auto;-webkit-overflow-scrolling:touch}.sheet-b .eyebrow{margin-bottom:8px}.steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:7px;font-size:13.5px;line-height:1.5}.steps li::marker{color:var(--gold-2);font-weight:800}.chart{display:flex;flex-direction:column;gap:7px}.hrow-x{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:12px;
  background:rgba(0,0,0,.26);border:1px solid var(--line)}.hrow-x .hno{font-family:"Cormorant Garamond",serif;font-variant-numeric:lining-nums;
  font-size:19px;color:var(--gold-2);width:14px;flex:0 0 14px;text-align:center}.hcards{display:flex;gap:3px;flex:0 0 auto}.hmeta{min-width:0}.hmeta b{font-size:13.5px}.hmeta .sm{line-height:1.4;margin-top:1px}.note{margin-top:12px;border-left:2px solid var(--gold-3);background:rgba(201,169,106,.07);
  border-radius:0 10px 10px 0;padding:11px 13px;font-size:13px;line-height:1.55}.tbl{width:100%;border-collapse:collapse;font-size:13px}.tbl th{text-align:left;font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-2);padding:0 8px 7px 0;font-weight:800}.tbl td{padding:8px 8px 8px 0;border-top:1px solid var(--line);vertical-align:top}.tbl td:last-child,.tbl th:last-child{text-align:right;padding-right:0;white-space:nowrap}

/* a hand sitting out of order */
.tray.bad{border-style:solid;border-color:#8c4a44;background:rgba(226,118,111,.08);
  box-shadow:0 0 0 1px rgba(226,118,111,.22)}.tray.bad .tray-h{color:var(--lose)}.tray.bad .tray-h .rk{color:var(--lose)}

/* a hand that was just moved into its place in the order */
@keyframes moved{
  0%{box-shadow:0 0 0 1px rgba(201,169,106,.55),0 10px 30px -14px rgba(201,169,106,.7)}
  100%{box-shadow:none}
}.tray.moved{animation:moved .7s var(--ease)}

/* ------------------------------------------------------------------ ledger */
.lg-list{display:flex;flex-direction:column;gap:10px}.lg-round{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:rgba(0,0,0,.14)}.lg-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}.lg-rows{display:flex;flex-direction:column;gap:3px}.lg-row{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:baseline;
  font-size:13.5px;font-variant-numeric:tabular-nums;padding:3px 0}.lg-row + .lg-row{border-top:1px solid rgba(255,255,255,.05)}.lg-nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.lg-w{color:var(--muted);font-size:12px;letter-spacing:.04em;min-width:34px;text-align:right}.lg-bal{color:var(--muted);min-width:58px;text-align:right}

/* ------------------------------------------------- showdown on small screens
   The seat strip used to be a horizontal scroller, so on a phone you had to
   swipe sideways inside every hand to see who played what. Below 620px the
   seats become a wrapping grid instead: two across, which lands a 4-player
   table as a clean 2x2 and a 2-player table side by side. Rows are tightened
   at the same time so more than one hand is on screen at once. */
@media(max-width:620px){
  .sd-row{padding:10px}.sd-row-h{margin-bottom:8px;min-height:20px;gap:7px}.sd-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;overflow-x:visible;padding-bottom:0}.sd-seat{flex:none;min-width:0;padding:5px 3px 6px;border-radius:11px}.sd-cards{gap:3px;min-height:0}.sd-cards .card.xs{--w:38px}.sd-cards .card.xs .idx{display:none}.sd-cards .card.xs .pip{font-size:calc(var(--w) * .46)}.sd-cards .card.xs.num .pip{font-size:calc(var(--w) * .42)}.sd-cards .card.xs.ten .pip{font-size:calc(var(--w) * .34)}.sd-seat .nm{font-size:9.5px;letter-spacing:.05em}.sd-seat .rk{font-size:8px;letter-spacing:.07em}
  /* Finished hands shrink further so the live one keeps the room. */
  .sd-row.done{padding:8px 10px}.sd-row.done .sd-cards .card.xs{--w:33px}
}
/* Three seats fit in a row again once there is a little more width. */
@media(min-width:420px) and (max-width:620px){
  .sd-seats{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}
}.stakes{align-items:center}.stakes .btn.tiny{min-width:54px}

/* ------------------------------------------------------------------- menu */
.sheet.short{max-height:none}.menu-list{display:flex;flex-direction:column;gap:8px}
/* These are controls, so they look like controls: a real surface, a lit icon
   tile, and a chevron that says something happens when you press it. */
.menu-item{position:relative;display:flex;align-items:center;gap:13px;width:100%;text-align:left;
  padding:13px 42px 13px 12px;border-radius:var(--r-m);cursor:pointer;color:var(--ivory);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.022));
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.25);
  transition:transform .14s var(--ease),background .16s,border-color .16s}.menu-item:hover{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04));
  border-color:rgba(201,169,106,.3)}.menu-item:active{transform:scale(.985)}.menu-item::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-52%);
  font-size:19px;color:var(--muted-2);transition:color .16s,transform .16s}.menu-item:hover::after{color:var(--gold-1);transform:translateY(-52%) translateX(2px)}.menu-item .mi-i{flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:10px;
  background:linear-gradient(180deg,rgba(201,169,106,.2),rgba(201,169,106,.08));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);font-size:15px;color:var(--gold-1)}.menu-item b{display:block;font-weight:600;font-size:14.5px}.menu-item i{display:block;font-style:normal;font-size:12px;color:var(--muted-2);margin-top:2px}.menu-item.danger{border-color:rgba(212,121,108,.22)}.menu-item.danger:hover{border-color:rgba(212,121,108,.45);
  background:linear-gradient(180deg,rgba(212,121,108,.14),rgba(212,121,108,.05))}.menu-item.danger .mi-i{color:var(--lose);
  background:linear-gradient(180deg,rgba(212,121,108,.2),rgba(212,121,108,.07))}.menu-item.danger:hover::after{color:var(--lose)}.menu-item.danger b{color:var(--lose)}

/* ------------------------------------------------------------------- chat */
.tag .pip-dot{position:absolute;top:4px;right:3px;width:5px;height:5px;border-radius:50%;
  background:var(--gold-1);font-style:normal}.bar-r button.tag{position:relative}.tag.eye{font-size:11px;letter-spacing:.04em;gap:3px;color:var(--muted)}.ch-line{max-width:86%;align-self:flex-start;background:rgba(255,255,255,.04);
  border-radius:4px 13px 13px 13px;padding:8px 12px}.ch-line.mine{align-self:flex-end;background:rgba(201,169,106,.1);border-radius:13px 4px 13px 13px}.ch-who{display:block;font-size:10.5px;letter-spacing:.06em;color:var(--gold-2);font-weight:600;margin-bottom:2px}.ch-line.mine .ch-who{color:var(--gold-1)}.ch-txt{font-size:14px;line-height:1.45;overflow-wrap:anywhere}.ch-sys{align-self:center;font-size:11.5px;color:var(--muted-2);letter-spacing:.03em;padding:2px 0}.ch-bar .field{flex:1 1 auto;padding:12px 14px;font-size:14px}

/* --------------------------------------------------------------- watching */
.watchmark{display:flex;align-items:center;gap:14px}.watchmark .eye-big{font-size:22px;opacity:.8}.watchmark b{font-weight:600}.seat-kick{margin-left:auto}.seat .seat-kick + .st{margin-left:12px}

/* ======================================================= REVEAL CHOREOGRAPHY
   Twelve movements, all in champagne / ivory / dark green. The drama is in
   the timing and the weight, never in colour. Nothing here glows neon.
   ------------------------------------------------------------------------ */

/* 1. deal cascade -- cards arrive in sequence, not all at once */
.deal .card{animation:dealCascade .52s var(--ease) backwards}
/* The cards arrive from off the top of the strip, fanned, and settle. */
@keyframes dealCascade{
  0%{opacity:0;transform:translate3d(0,-54px,-120px) rotate(-11deg) scale(.82)}
  60%{opacity:1}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}}.hand{perspective:900px}

/* 2. the turn -- a real 3D flip with perspective, not a fade */
.flip3d{perspective:900px}@keyframes turnOver{
  0%{transform:rotateY(90deg) scale(.92);opacity:0}
  55%{opacity:1}
  100%{transform:rotateY(0) scale(1);opacity:1}}.turn{animation:turnOver .42s var(--ease) backwards;backface-visibility:hidden;transform-style:preserve-3d}

/* 3. the decider -- the card that settles the round takes its time */
@keyframes decide{
  0%{transform:rotateY(90deg) scale(1.22);opacity:0}
  40%{opacity:1}
  70%{transform:rotateY(0) scale(1.22)}
  100%{transform:rotateY(0) scale(1)}}.decider{animation:decide 1.15s cubic-bezier(.16,.84,.26,1) backwards;z-index:3}.decider::after{content:"";position:absolute;inset:-7%;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 0 1px rgba(201,169,106,.5),0 0 34px rgba(201,169,106,.3);
  animation:deciderHalo 1.15s var(--ease) backwards}@keyframes deciderHalo{0%,45%{opacity:0}70%{opacity:1}100%{opacity:0}}

/* 4. the winner lifts and warms */
@keyframes claim{0%{transform:translateY(0) scale(1)}45%{transform:translateY(-9px) scale(1.055)}
  100%{transform:translateY(0) scale(1.012)}}.sd-seat.won{animation:claim .62s var(--ease)}

/* 5. everyone else recedes */
.sd-row.done .sd-seat:not(.won){filter:saturate(.35) brightness(.72);transform:scale(.97);
  transition:filter .5s var(--ease),transform .5s var(--ease),opacity .5s}

/* 6. gold sweep across the taken hand */
@keyframes sweepAcross{to{transform:translateX(220%)}}.sd-seat.won .sd-cards{position:relative;overflow:hidden;border-radius:9px}.sd-seat.won .sd-cards::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(103deg,transparent 36%,rgba(240,228,196,.5) 50%,transparent 64%);
  transform:translateX(-220%);animation:sweepAcross .95s var(--ease) .14s}

/* 7. the collide -- a shockwave ring when declarations meet */
@keyframes shock{0%{transform:translate(-50%,-50%) scale(.1);opacity:.85;border-width:3px}
  100%{transform:translate(-50%,-50%) scale(5.2);opacity:0;border-width:1px}}.shockwave{position:absolute;left:50%;top:50%;width:190px;height:190px;border-radius:50%;
  border:3px solid rgba(201,169,106,.75);pointer-events:none;animation:shock .95s var(--ease) forwards}

/* 8. screen shake, two weights */
@keyframes shakeHard{
  0%,100%{transform:translate3d(0,0,0)}
  10%{transform:translate3d(-9px,3px,0)} 22%{transform:translate3d(8px,-4px,0)}
  35%{transform:translate3d(-6px,-3px,0)} 48%{transform:translate3d(6px,3px,0)}
  62%{transform:translate3d(-4px,2px,0)} 78%{transform:translate3d(3px,-2px,0)}
  90%{transform:translate3d(-2px,1px,0)}}.shake{animation:shakeHard .6s cubic-bezier(.36,.07,.19,.97)}.shake-soft{animation:shakeHard .38s cubic-bezier(.36,.07,.19,.97);animation-timing-function:ease-out}

/* 9. the losing hand shatters and falls */
/* 10. champagne motes, not confetti */
@keyframes mote{0%{transform:translate3d(0,0,0) scale(0);opacity:0}
  18%{opacity:1;transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(var(--mx),var(--my),0) scale(.25);opacity:0}}.mote{position:absolute;left:50%;top:50%;width:6px;height:6px;border-radius:50%;
  background:var(--gold-1);pointer-events:none;animation:mote 1.25s var(--ease) forwards}

/* 11. the winner locks in */
@keyframes lockIn{0%{transform:scale(1.3);opacity:0;filter:blur(7px)}
  60%{transform:scale(.97);opacity:1;filter:blur(0)}
  100%{transform:scale(1)}}.locked-in{animation:lockIn .7s var(--ease) backwards}

/* 12. round transition wipe */
@keyframes wipe{0%{transform:scaleX(0);transform-origin:left}
  48%{transform:scaleX(1);transform-origin:left}
  52%{transform:scaleX(1);transform-origin:right}
  100%{transform:scaleX(0);transform-origin:right}}.wiper{position:fixed;inset:0;z-index:70;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--felt-3),var(--felt-2),transparent);
  animation:wipe .9s var(--ease) forwards}

/* ------------------------------------------------------------- the clash
   Declarations arrive FACE DOWN, drive into the middle, hit, and only then
   turn over. All movement is transform + opacity so it stays smooth on a
   phone; the only filter is on the cards that are already leaving. */
.clash{position:relative;display:flex;flex-direction:column;align-items:center;
  gap:clamp(10px,3vw,18px);padding:clamp(18px,5vw,30px) 0 12px;overflow:visible;
  border-radius:var(--r-l);
  background:radial-gradient(74% 56% at 50% 46%,rgba(5,18,12,.72),rgba(3,10,7,.93))}
/* Sides live in their own positioned ring so the headline above them is in
   normal flow and can never be overlapped. The ring owns the perspective --
   putting it on .clash made position:fixed children resolve against it, which
   is how the darkening ended up painted over the cards. */
.clash-ring{position:relative;width:100%;flex:1 0 auto;
  min-height:clamp(230px,52vh,330px);perspective:1100px;transform-style:preserve-3d}.clash-ring.static{display:grid;place-items:center;min-height:0;perspective:none}.clash-ring.static .cl-side{position:static;transform:none}@keyframes fadeIn{from{opacity:0}}

/* impact flash: one frame of light, no colour cast */
.cl-flash{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;
  background:radial-gradient(42% 42% at 50% 50%,rgba(240,228,196,.5),transparent 70%)}.cl-flash.hit{animation:flashHit .5s var(--ease) forwards}@keyframes flashHit{0%{opacity:0;transform:scale(.4)}12%{opacity:1}100%{opacity:0;transform:scale(1.7)}}

/* Positioned from the CONTAINER, not with transform percentages: a transform
   percentage resolves against the element itself, so "30%" on a 193px-wide
   side was 58px and two of them overlapped by 85px. --ox/--oy are real
   lengths, set per layout below. */
.cl-side{position:absolute;left:50%;top:50%;z-index:2;
  display:flex;flex-direction:column;align-items:center;
  gap:clamp(5px,1.6vw,9px);transform-style:preserve-3d;will-change:transform,opacity;
  transform:translate(-50%,-50%) translate(var(--ox,0px),var(--oy,0px)) scale(var(--sc,1));
  transition:transform .8s cubic-bezier(.2,.9,.25,1),opacity .6s}
/* two declarations: left and right, far enough apart to read separately */
.clash[data-n="2"] .cl-side[data-i="0"]{--ox:calc(-1 * clamp(98px,27vw,172px))}.clash[data-n="2"] .cl-side[data-i="1"]{--ox:clamp(98px,27vw,172px)}
/* three: two below, one above, so nothing shares a line */
.clash[data-n="3"] .cl-side[data-i="0"]{--ox:calc(-1 * clamp(88px,25vw,156px));--oy:clamp(52px,13vw,82px)}.clash[data-n="3"] .cl-side[data-i="1"]{--ox:clamp(88px,25vw,156px);--oy:clamp(52px,13vw,82px)}.clash[data-n="3"] .cl-side[data-i="2"]{--ox:0px;--oy:calc(-1 * clamp(74px,18vw,116px))}
/* at the moment of impact they all converge on the middle */
/* Impact reads as the whole ring tightening, not as the hands stacking on one
   point -- three 230px-wide hands converging on a single spot is a pile, not a
   collision. */
.clash.collide .clash-ring{transform:scale(.93)}
.clash.collide .cl-side[data-i]{--sc:1.06}
.clash-ring{transition:transform .34s cubic-bezier(.3,.8,.3,1)}.cl-cards{display:flex;gap:clamp(2px,1vw,4px);transform-style:preserve-3d}
/* Cards scale with the viewport so four of them never run off a phone. */
.cl-card{--w:clamp(38px,11vw,58px)}.cl-nm{font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;
  font-size:clamp(17px,5.2vw,25px);letter-spacing:-.01em;color:var(--ivory);white-space:nowrap}.cl-tier{font-size:clamp(8px,2.4vw,9.5px);letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted-2);min-height:1em}.cl-side.beat .cl-nm{color:var(--muted-2)}.cl-side.wins .cl-nm{background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.cl-side.wins .cl-tier{color:var(--gold-1)}.cl-side.crowned .cl-cards{filter:drop-shadow(0 14px 30px rgba(201,169,106,.4))}

/* they arrive spinning in 3D, not sliding flat */
@keyframes inFromLeft{from{transform:translate3d(-135%,0,-320px) rotateY(58deg) rotate(-14deg);opacity:0}}@keyframes inFromRight{from{transform:translate3d(135%,0,-320px) rotateY(-58deg) rotate(14deg);opacity:0}}@keyframes inFromTop{from{transform:translate3d(0,-165%,-320px) rotateX(55deg);opacity:0}}.cl-side.from-l{animation:inFromLeft .68s cubic-bezier(.2,.9,.25,1) backwards}.cl-side.from-r{animation:inFromRight .68s cubic-bezier(.2,.9,.25,1) backwards}.cl-side.from-t{animation:inFromTop .68s cubic-bezier(.2,.9,.25,1) backwards}

/* the turn, after the hit: a real half-rotation with depth */
@keyframes turn3d{
  0%{transform:rotateY(-104deg) translateZ(34px) scale(1.14);opacity:.25}
  52%{opacity:1}
  100%{transform:rotateY(0) translateZ(0) scale(1);opacity:1}}.turn3{animation:turn3d .5s cubic-bezier(.22,1,.3,1) backwards;
  backface-visibility:hidden;transform-style:preserve-3d;
  animation-delay:calc(var(--k,0) * .045s)}

/* everything holds a half-beat after the hit */
.clash.slowmo .cl-side{transition-duration:1.1s}.clash-title{position:relative;z-index:4;text-align:center;pointer-events:none;flex:0 0 auto}.clash-title .eyebrow{color:var(--gold-3);letter-spacing:.24em;font-size:10.5px}.clash-title .big.win{font-style:italic}.clash-title .big{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(30px,9.4vw,58px);line-height:1.04;margin-top:5px;letter-spacing:-.01em;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:lockIn .65s var(--ease) backwards}

/* a beaten hand tumbles away from the camera, not just downward */
@keyframes shatter{
  0%{transform:translate3d(0,0,0) rotate(0) scale(1);opacity:1}
  22%{transform:translate3d(0,-12px,30px) rotate(-3deg) scale(1.06)}
  100%{transform:translate3d(var(--dx,0),170px,var(--dz,-150px)) rotate(var(--dr,30deg)) scale(.6);
       opacity:0;filter:brightness(.45) saturate(.15)}}.shattering{animation:shatter .82s cubic-bezier(.5,0,.75,0) forwards;will-change:transform,opacity}@media(max-width:430px){
  .clash{min-height:clamp(260px,56vh,330px);perspective:760px}.cl-side{gap:4px}.clash-title .big.win{font-style:italic}.clash-title .big{margin-top:2px}
}@media(prefers-reduced-motion:reduce){
  .clash{min-height:0;perspective:none}.cl-side{position:static!important;transform:none!important;transition:none}.cl-flash,.clash.slowmo .cl-side{animation:none;transition:none}
}

/* ------------------------------------------------- the single declaration */
.solo{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:clamp(300px,64vh,430px);gap:clamp(14px,4vw,22px);padding:clamp(20px,6vw,34px) 0 14px;
  overflow:visible;border-radius:var(--r-l);
  background:radial-gradient(74% 56% at 50% 46%,rgba(5,18,12,.7),rgba(3,10,7,.92))}.solo-hand{perspective:1000px}.solo-call{text-align:center;transition:transform .6s var(--ease),opacity .6s}.solo-call .eyebrow{color:var(--gold-3);letter-spacing:.3em;font-size:11px}.solo-word{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(42px,13vw,82px);line-height:1;letter-spacing:.04em;margin-top:6px;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:callIn .75s var(--ease) backwards}@keyframes callIn{from{opacity:0;letter-spacing:.3em;filter:blur(9px)}}.solo-call.settled{transform:scale(.56) translateY(-14px);opacity:.5}
/* A Pairs Chausla can be a dozen cards, so they scale with the viewport and
   are allowed to wrap rather than running off the side of a phone. */
.solo-hand{display:flex;gap:clamp(2px,1.2vw,6px);justify-content:center;flex-wrap:wrap;
  max-width:100%;transform-style:preserve-3d}.solo-hand .card{--w:clamp(36px,11vw,58px)}.solo-back{animation:backIn .5s var(--ease) backwards;animation-delay:calc(var(--i) * .07s)}@keyframes backIn{from{opacity:0;transform:translateY(26px) rotate(-5deg)}}.solo-who{text-align:center;min-height:86px}.solo-who .who{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-style:italic;font-size:clamp(38px,11vw,66px);line-height:1;letter-spacing:-.02em;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.solo-who .takes{display:block;font-size:14px;color:var(--muted);margin-top:8px}.solo-who .what{font-size:11.5px;color:var(--muted-2);letter-spacing:.06em;margin-top:12px}.solo-amt{font-family:"Cormorant Garamond",Georgia,serif;font-variant-numeric:lining-nums tabular-nums;
  font-size:clamp(30px,9vw,46px);line-height:1;margin-top:16px}.solo-amt.up{color:var(--win)}.solo-amt.dn{color:var(--lose)}

/* --------------------------------------- each hand reveals in its own key */
.sd-row.sd-row.sd-row.sd-row.sd-row.sd-row.finale{background:rgba(201,169,106,.035)}.sd-row.finale .sd-row-h .eyebrow{color:var(--gold-2)}@media(max-width:430px){
  .solo{min-height:clamp(270px,58vh,340px);perspective:760px}.solo-who{min-height:72px}.solo-amt{margin-top:10px}
}@media(prefers-reduced-motion:reduce){
  .solo{min-height:0;gap:16px;perspective:none}.solo-call.settled{transform:none;opacity:1}
}
/* tap-to-riffle: the card lifts, turns away and comes back with a new face */
.fan{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.fan-slot.riffling .fan-face{transform:rotateY(104deg) translateZ(26px) scale(.9);opacity:.2}.fan-slot.riffling{filter:drop-shadow(0 16px 26px rgba(0,0,0,.5))}.fan::after{content:"tap to shuffle";position:absolute;left:0;right:0;bottom:-6px;text-align:center;
  font-size:9.5px;letter-spacing:.17em;text-transform:uppercase;color:var(--muted-2);
  opacity:0;animation:hintIn .6s var(--ease) 2.4s forwards;pointer-events:none}@keyframes hintIn{to{opacity:.65}}@media(hover:hover){.fan::after{content:"tap or tilt"}}@media(prefers-reduced-motion:reduce){.fan-slot.riffling .fan-face{transform:none;opacity:1}}.clash[data-n="3"] .clash-ring{min-height:clamp(280px,60vh,400px)}@media(max-width:430px){
  .clash-ring{min-height:clamp(215px,48vh,280px)}.clash[data-n="3"] .clash-ring{min-height:clamp(260px,56vh,330px)}.clash[data-n="3"] .cl-card,.clash[data-n="2"] .cl-card{--w:clamp(32px,8.4vw,44px)}
}

/* ================================================================ THE FELT
   One table, every phase. Seats sit around an ellipse with YOU at the bottom;
   the deck lives in the middle. Everything is absolutely positioned against
   the felt, so the same markup works from the lobby through the showdown. */
.felt{position:relative;margin:22px 0 0;border-radius:clamp(90px,28vw,150px)/clamp(70px,20vw,110px);
  height:clamp(360px,84vw,460px);
  background:
    radial-gradient(70% 58% at 50% 42%,rgba(27,67,48,.95),rgba(9,30,20,.97)),
    radial-gradient(40% 30% at 50% 20%,rgba(201,169,106,.07),transparent 70%);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.055),inset 0 -22px 44px rgba(0,0,0,.45),
             0 26px 60px -30px rgba(0,0,0,.8);
  transition:height .45s var(--ease),margin .45s var(--ease)}.felt.compact{height:clamp(176px,42vw,214px);margin-top:14px;
  border-radius:clamp(70px,22vw,120px)/clamp(52px,15vw,80px)}.felt-centre{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  display:flex;flex-direction:column;align-items:center;gap:9px;pointer-events:none}.felt-meta{text-align:center}.felt-code{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(30px,9vw,44px);
  line-height:1.1;letter-spacing:.16em;padding-left:.16em;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.felt-sub{font-size:12px;color:var(--muted-2);letter-spacing:.06em;margin-top:2px}.felt.compact .felt-code{font-size:clamp(22px,6vw,30px)}

/* the deck, stacked and slightly askew */
.deck{position:relative;width:clamp(34px,9vw,44px);height:clamp(48px,12.6vw,62px);margin-bottom:4px}.deck-card{position:absolute;inset:0;border-radius:5px;
  background:linear-gradient(168deg,#143526,#0c2317);
  box-shadow:inset 0 0 0 1px rgba(201,169,106,.22),0 2px 5px rgba(0,0,0,.5);
  transform:translate(calc(var(--d) * .7px),calc(var(--d) * -1.4px)) rotate(calc(var(--d) * .5deg))}

/* a seat */
.seat-chip{position:absolute;transform:translate(-50%,-50%);width:clamp(62px,17vw,86px);
  text-align:center;transition:transform .3s var(--ease),opacity .3s}.sc-av{position:relative;width:clamp(38px,10vw,48px);height:clamp(38px,10vw,48px);margin:0 auto 6px;
  border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;letter-spacing:.04em;
  color:var(--ivory);background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 3px 10px rgba(0,0,0,.4)}.seat-chip.me .sc-av{background:linear-gradient(180deg,rgba(201,169,106,.3),rgba(201,169,106,.1));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 0 1px rgba(201,169,106,.4),0 3px 12px rgba(0,0,0,.45)}.seat-chip.ok .sc-av{box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 0 1px rgba(95,191,147,.5),0 3px 12px rgba(0,0,0,.4)}.seat-chip.off{opacity:.45}.sc-dealer{position:absolute;right:-4px;bottom:-3px;width:17px;height:17px;border-radius:50%;
  display:grid;place-items:center;font-style:normal;font-size:9px;font-weight:800;
  color:var(--ink);background:var(--foil);box-shadow:0 2px 6px rgba(0,0,0,.5)}.sc-nm{font-size:11.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-nm b{font-weight:500;color:var(--muted-2)}.sc-st{font-size:8.5px;letter-spacing:.11em;color:var(--muted-2);margin-top:2px;white-space:nowrap}.seat-chip.ok .sc-st{color:var(--jade-1)}.seat-chip.off .sc-st{color:var(--lose)}.sc-stack{display:flex;justify-content:center;gap:2px;margin-top:5px}.felt.compact .sc-nm{font-size:10.5px}.felt.compact .sc-st{font-size:8px}.felt.compact .sc-stack{margin-top:3px}.felt.compact .sc-av{width:clamp(32px,8.4vw,40px);height:clamp(32px,8.4vw,40px);font-size:11.5px}.sc-stack i{width:7px;height:10px;border-radius:2px;background:linear-gradient(168deg,#143526,#0b2016);
  box-shadow:inset 0 0 0 1px rgba(201,169,106,.2)}.sc-react{position:absolute;left:50%;top:-14px;transform:translateX(-50%);font-size:22px;
  pointer-events:none;opacity:0}.waiting-dots{display:flex;justify-content:center;gap:7px;padding:10px 0}.waiting-dots i{width:6px;height:6px;border-radius:50%;background:var(--muted-2);
  animation:waitPulse 1.3s ease-in-out infinite}.waiting-dots i:nth-child(2){animation-delay:.18s}.waiting-dots i:nth-child(3){animation-delay:.36s}@keyframes waitPulse{50%{opacity:.25;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.waiting-dots i{animation:none}}.seat-chip.fold{opacity:.5}.seat-chip.fold .sc-st{color:var(--lose)}.seat-chip.fold .sc-stack{opacity:.25}.sd-seat.folded{opacity:.38}.sd-fold{display:grid;place-items:center;min-height:52px;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted-2)}

/* ------------------------------------------------- the deal, as a movement */
.fly-card{position:absolute;width:clamp(22px,5.4vw,28px);height:clamp(31px,7.6vw,39px);
  border-radius:4px;margin:-16px 0 0 -12px;pointer-events:none;z-index:3;
  background:linear-gradient(168deg,#164029,#0b2217);
  box-shadow:inset 0 0 0 1px rgba(201,169,106,.3),0 4px 10px rgba(0,0,0,.55);
  animation:flyOut .6s cubic-bezier(.3,.8,.3,1) backwards}@keyframes flyOut{
  0%{transform:translate3d(0,0,0) rotate(0) scale(.7);opacity:0}
  14%{opacity:1}
  100%{transform:translate3d(var(--dx),var(--dy),0) rotate(var(--rot)) scale(1);opacity:0}}
/* the personal area waits for the cards to land */
.after-deal{opacity:0;transform:translateY(16px);pointer-events:none}.panel{transition:opacity .4s var(--ease),transform .4s var(--ease)}

/* ------------------------------------------------- the chat feed
   What a game chat actually looks like: a few recent lines at the side, plain
   text over the felt, no panel and nothing to dismiss. It never takes a tap
   -- replying is the chat button in the top bar -- so it cannot cover a card
   you are trying to reach. Fades out on its own after a few seconds. */
/* Anchored under the top bar, not over the cards: the lower half of every
   screen is trays, the hand strip and the action row, and the feed was
   landing on all three. */
.chat-feed{position:fixed;left:16px;right:16px;top:calc(var(--safe-t) + 54px);z-index:40;
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  pointer-events:none;transition:opacity .8s var(--ease)}.chat-feed.fading{opacity:0}.cf-line{max-width:min(74%,320px);font-size:12px;line-height:1.35;color:var(--ivory);
  text-shadow:0 1px 4px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.6);
  overflow-wrap:anywhere;
  /* older lines sit further back */
  opacity:calc(1 - var(--age) * .22)}.cf-line b{color:var(--gold-1);font-weight:700}.cf-line b::after{content:":";color:var(--muted-2);font-weight:400}.cf-line.sys{font-size:11.5px;color:var(--muted);font-style:italic}.cf-line.in{animation:cfIn .28s var(--ease)}@keyframes cfIn{from{opacity:0;transform:translateX(-10px)}}@media(max-width:430px){.chat-feed{left:13px;right:13px;top:calc(var(--safe-t) + 50px)}}@media(prefers-reduced-motion:reduce){.cf-line.in{animation:none}}.ch-line.pending{opacity:.55}

/* ------------------------------------------------- the count in
   Everyone has committed and the table counts itself in. Short, and the
   Skip reveal control still applies. */
.countin{position:fixed;inset:0;z-index:58;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:26px;pointer-events:none;
  background:radial-gradient(62% 48% at 50% 46%,rgba(5,18,12,.82),rgba(3,10,7,.96));
  animation:fadeIn .3s var(--ease)}.countin.out{animation:fadeOut .3s var(--ease) forwards}@keyframes fadeOut{to{opacity:0}}.ci-head{text-align:center}.ci-head .eyebrow{color:var(--gold-3);letter-spacing:.26em;font-size:10.5px}.ci-sub{display:block;font-size:12.5px;color:var(--muted-2);margin-top:7px;letter-spacing:.04em}.ci-num{height:clamp(84px,24vw,128px);display:grid;place-items:center}.ci-num span{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(76px,22vw,120px);line-height:1;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:ciPop .44s var(--ease)}.ci-num span.go{font-size:clamp(32px,9vw,52px);font-style:italic;letter-spacing:.02em}@keyframes ciPop{0%{opacity:0;transform:scale(1.5);filter:blur(10px)}60%{opacity:1;filter:blur(0)}100%{transform:scale(1)}}

/* what the hand was worth */
.sd-pot{font-style:normal;margin-left:7px;font-size:10.5px;letter-spacing:.04em;
  color:var(--jade-1);font-variant-numeric:tabular-nums}.sd-row.done .sd-pot{opacity:.85}

/* the chip changing hands */
.sc-dealer.landing{animation:chipLand .85s var(--ease)}@keyframes chipLand{
  0%{transform:translate3d(0,-26px,0) scale(2.1) rotate(-160deg);opacity:0}
  45%{opacity:1}
  70%{transform:translate3d(0,0,0) scale(1.22) rotate(0)}
  100%{transform:none;opacity:1}}.dealer-move{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);text-align:center;
  padding:8px 16px;border-radius:999px;white-space:nowrap;
  background:linear-gradient(180deg,rgba(201,169,106,.18),rgba(201,169,106,.07));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);animation:popIn .3s var(--ease)}.dealer-move .eyebrow{letter-spacing:.2em;color:var(--gold-3)}.dealer-move b{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;
  font-size:19px;margin-top:1px;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}.dealer-move.out{animation:popOut .3s var(--ease) forwards}@media(prefers-reduced-motion:reduce){.countin,.ci-num span,.sc-dealer.landing,.dealer-move{animation:none}}

/* ===================================================== MATERIALS AND MOTION
   Applying the Apple-design pass: translucent chrome rather than opaque
   slabs, feedback on pointer-down rather than on release, enter and exit
   along the same path, and size-specific tracking. */

/* --- a sheet that is a material, not a panel --- */
.sheetwrap{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
.sheetwrap .scrim{position:absolute;inset:0;background:rgba(3,10,7,.55);
  animation:scrimIn .28s ease-out}
@keyframes scrimIn{from{opacity:0}}
.sheetwrap .sheet{position:relative;width:min(100%,560px);max-height:min(86vh,680px);
  display:flex;flex-direction:column;border-radius:26px 26px 0 0;padding:0;
  background:rgba(16,42,30,.82);
  -webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);
  box-shadow:0 -1px 0 rgba(255,255,255,.1) inset,0 -24px 60px rgba(0,0,0,.6);
  /* enters and leaves along the same path */
  animation:sheetUp .42s cubic-bezier(.22,1,.3,1)}
@keyframes sheetUp{from{transform:translateY(100%)}}
.sheetwrap.out .sheet{animation:sheetDown .24s cubic-bezier(.4,0,.8,.2) forwards}
.sheetwrap.out .scrim{animation:scrimOut .24s ease-in forwards}
@keyframes sheetDown{to{transform:translateY(100%)}}
@keyframes scrimOut{to{opacity:0}}
.sheet-grab{width:38px;height:4px;border-radius:999px;background:rgba(255,255,255,.22);
  margin:10px auto 2px;flex:0 0 auto}
.ch-head{display:flex;align-items:center;gap:10px;padding:8px 18px 6px;flex:0 0 auto}
.ch-head .eyebrow{margin-right:auto}
.sheetwrap .ch-log{flex:1 1 auto;overflow-y:auto;padding:6px 18px 12px;
  display:flex;flex-direction:column;gap:7px;min-height:150px;overscroll-behavior:contain}
/* a soft edge where content meets the input, instead of a hard rule */
.sheetwrap .ch-bar{display:flex;gap:9px;align-items:center;flex:0 0 auto;border:0;
  padding:10px 16px calc(var(--safe-b) + 14px);
  background:linear-gradient(180deg,transparent,rgba(9,26,18,.6) 38%)}
.sheetwrap .ch-bar .field{flex:1 1 auto;padding:13px 16px;font-size:16px;border-radius:999px}
.ch-send{flex:0 0 auto;width:44px;height:44px;padding:0;border-radius:50%;font-size:17px;font-weight:800}

/* --- response: feedback on press, never on release --- */
.btn,.menu-item,.tag,.card:not(.flat),.seg button,.toggle,.tray{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.btn:active,.menu-item:active,.seg button:active{transform:scale(.972);transition:transform 90ms ease-out}
.card:not(.flat):active{transform:translateY(-4px) scale(.98);transition:transform 90ms ease-out}
.tray:active{transform:scale(.99);transition:transform 90ms ease-out}
.tag:active{opacity:.6;transition:opacity 70ms ease-out}

/* --- type: tracking is size-specific, never one value --- */
.hero h1,.solo-word,.clash-title .big,.trophy .who,.solo-who .who,.felt-code,.codebox .val{
  letter-spacing:-.022em}
body{letter-spacing:-.004em}
.fine,.sm{letter-spacing:0}
.eyebrow,.sc-st,.cl-tier{letter-spacing:.12em}

/* --- accessibility signals beyond reduced motion --- */
@media (prefers-reduced-transparency:reduce){
  .sheetwrap .sheet{background:var(--felt-1);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media (prefers-contrast:more){
  .sheetwrap .sheet{background:#06150F;box-shadow:0 0 0 1px rgba(255,255,255,.3)}
  .menu-item{border-color:rgba(255,255,255,.3)}
}
@media (prefers-reduced-motion:reduce){
  .sheetwrap .sheet,.sheetwrap.out .sheet{animation:none}
  .sheetwrap .scrim{animation:none}
  .btn:active,.menu-item:active,.card:not(.flat):active,.tray:active{transform:none}
}

/* ===================================================== MATERIALS AND MOTION
   Apple-design pass: translucent chrome rather than opaque slabs, feedback on
   pointer-down rather than on release, enter and exit along the same path,
   and tracking that changes with size instead of one value everywhere. */

/* a sheet that reads as a material arriving, not a panel appearing */
.sheetwrap{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
.sheetwrap .scrim{position:absolute;inset:0;background:rgba(3,10,7,.55);animation:scrimIn .28s ease-out}
@keyframes scrimIn{from{opacity:0}}
.sheetwrap .sheet{position:relative;width:min(100%,560px);max-height:min(86vh,680px);
  display:flex;flex-direction:column;border-radius:26px 26px 0 0;padding:0;
  background:rgba(16,42,30,.84);
  -webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 -24px 60px rgba(0,0,0,.6);
  animation:sheetUp .42s cubic-bezier(.22,1,.3,1)}
@keyframes sheetUp{from{transform:translateY(100%)}}
.sheetwrap.out .sheet{animation:sheetDown .24s cubic-bezier(.4,0,.8,.2) forwards}
.sheetwrap.out .scrim{animation:scrimOut .24s ease-in forwards}
@keyframes sheetDown{to{transform:translateY(100%)}}
@keyframes scrimOut{to{opacity:0}}
.sheet-grab{width:38px;height:4px;border-radius:999px;background:rgba(255,255,255,.22);
  margin:10px auto 2px;flex:0 0 auto}
.ch-head{display:flex;align-items:center;gap:10px;padding:8px 18px 6px;flex:0 0 auto}
.ch-head .eyebrow{margin-right:auto}
.sheetwrap .ch-log{flex:1 1 auto;overflow-y:auto;padding:6px 18px 12px;display:flex;
  flex-direction:column;gap:7px;min-height:150px;overscroll-behavior:contain}
/* a soft edge where the log meets the input, not a hard rule */
.sheetwrap .ch-bar{display:flex;gap:9px;align-items:center;flex:0 0 auto;border:0;
  padding:10px 16px calc(var(--safe-b) + 14px);
  background:linear-gradient(180deg,transparent,rgba(9,26,18,.55) 40%)}
.sheetwrap .ch-bar .field{flex:1 1 auto;padding:13px 16px;font-size:16px;border-radius:999px}
.ch-send{flex:0 0 auto;width:44px;height:44px;padding:0;border-radius:50%;font-size:18px;font-weight:800}

/* response: feedback on press, never on release */
.btn,.menu-item,.tag,.seg button,.toggle,.tray,.seat-chip{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.btn:active,.menu-item:active,.seg button:active{transform:scale(.972);transition:transform 90ms ease-out}
.card:not(.flat):active{transform:translateY(-4px) scale(.98);transition:transform 90ms ease-out}
.tray:active{transform:scale(.99);transition:transform 90ms ease-out}
.tag:active{opacity:.55;transition:opacity 70ms ease-out}

/* tracking is size-specific: tight as type grows, near zero for body */
.hero h1,.solo-word,.clash-title .big,.trophy .who,.solo-who .who,.felt-code{letter-spacing:-.022em}
body{letter-spacing:-.004em}
.fine,.sm{letter-spacing:0}

@media (prefers-reduced-transparency:reduce){
  .sheetwrap .sheet{background:var(--felt-1);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media (prefers-contrast:more){
  .sheetwrap .sheet{background:#06150F;box-shadow:0 0 0 1px rgba(255,255,255,.32)}
  .menu-item{border-color:rgba(255,255,255,.3)}
}
@media (prefers-reduced-motion:reduce){
  .sheetwrap .sheet,.sheetwrap.out .sheet,.sheetwrap .scrim{animation:none}
  .btn:active,.menu-item:active,.card:not(.flat):active,.tray:active{transform:none}
}
/* the sound row is a switch, so it looks like one */
.menu-item .mi-sw{position:absolute;right:14px;top:50%;transform:translateY(-50%);
  width:40px;height:24px;border-radius:999px;background:rgba(0,0,0,.45);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);transition:background .2s}
.menu-item .mi-sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;
  border-radius:50%;background:var(--muted);transition:transform .22s var(--ease),background .22s}
.menu-item.lit .mi-sw{background:rgba(201,169,106,.35)}
.menu-item.lit .mi-sw::after{transform:translateX(16px);background:var(--gold-1)}
.menu-item:has(.mi-sw){padding-right:66px}
.menu-item:has(.mi-sw)::after{display:none}
.sheetwrap .sheet.short{max-height:min(80vh,620px)}
.sheetwrap .sheet-b{overflow-y:auto;padding:4px 18px calc(var(--safe-b) + 20px);overscroll-behavior:contain}

/* Dealer hand-off reads as a line on the table, in its own reserved strip, so
   it can never sit on top of the cards the way the old popup did. */
.dealer-note{display:flex;align-items:center;justify-content:center;gap:9px;
  min-height:30px;margin:2px 0 10px;text-align:center;
  opacity:0;transform:translateY(-4px);transition:opacity .36s var(--ease),transform .36s var(--ease)}
.dealer-note.show{opacity:1;transform:none}
.dealer-note .eyebrow{letter-spacing:.2em;color:var(--gold-3);font-size:10px}
.dealer-note b{font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-size:19px;
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;
  padding:1px 0 3px;line-height:1.25}

/* Watching a table is a real choice, so it gets a real button. */
.btn.watch{flex-direction:column;gap:3px;padding:14px 18px;line-height:1.25;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02))}
.btn.watch .w-eye{font-size:15px;filter:saturate(.7)}
.btn.watch i{display:block;font-style:normal;font-size:11px;font-weight:500;
  letter-spacing:.01em;color:var(--muted);text-transform:none}
@media(prefers-reduced-motion:reduce){.dealer-note{transition:opacity .2s linear;transform:none}}

/* Table detail: what a seat is worth and what it has taken this round. */
.felt-fine{margin-top:3px;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);opacity:.8}
.sc-line{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:3px}
.sc-bal{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--muted)}
.sc-bal.up{color:var(--win)}.sc-bal.dn{color:var(--lose)}
.sc-wins{font-size:10px;font-weight:700;color:var(--gold-2);letter-spacing:.04em}

/* ---------------------------------------------------- lost connection
   A 6px dot was the only sign of this. The curtain names what is happening
   and takes itself away when the socket comes back. */
.offline{position:fixed;inset:0;z-index:90;display:grid;place-items:center;
  background:rgba(6,14,11,.72);backdrop-filter:blur(14px) saturate(120%);
  animation:fadeIn .26s var(--ease)}
.offline.out{animation:fadeIn .24s var(--ease) reverse forwards}
.off-card{width:min(320px,86vw);text-align:center;padding:26px 24px;border-radius:var(--r-l);
  border:1px solid var(--line-2);background:rgba(18,32,26,.9);box-shadow:var(--shadow-1)}
.off-card b{display:block;margin-top:12px;font-size:17px;letter-spacing:.01em}
.off-card .fine{margin:7px 0 0}
.off-dots{display:flex;gap:6px;justify-content:center}
.off-dots i{width:7px;height:7px;border-radius:50%;background:var(--gold-2);
  animation:offPulse 1.1s ease-in-out infinite}
.off-dots i:nth-child(2){animation-delay:.16s}.off-dots i:nth-child(3){animation-delay:.32s}
@keyframes offPulse{0%,70%,100%{opacity:.25;transform:scale(.8)}35%{opacity:1;transform:scale(1)}}
@keyframes fadeIn{from{opacity:0}}
@media(prefers-reduced-motion:reduce){.off-dots i{animation:none;opacity:.7}
  .offline{animation:none}}

/* ------------------------------------------------- host ledger corrections */
.lg-fix{margin-left:9px;padding:4px 9px;min-height:26px;font-size:10px;letter-spacing:.1em}
.lg-see{margin-top:9px;width:100%;font-size:10.5px;letter-spacing:.11em}
.lg-round.fix{border-style:dashed;background:rgba(201,169,106,.05)}
.fix-row{display:flex;gap:8px;align-items:stretch}
.fix-row .field{flex:1;min-width:0}
.fix-sign{flex:0 0 auto;align-self:stretch}
.fix-sign button{min-width:44px;font-size:15px;letter-spacing:0}

/* --------------------------------------------------------- round review */
.rv-list{display:flex;flex-direction:column;gap:12px}
.rv-round{border:1px solid var(--line);border-radius:12px;padding:10px 11px;background:rgba(0,0,0,.14)}
.rv-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.rv-hand{padding:8px;border-radius:10px;border:1px solid transparent;background:rgba(255,255,255,.02)}
.rv-hand.won{border-color:rgba(201,169,106,.4);background:rgba(201,169,106,.07)}
.rv-hand.out{opacity:.42}
.rv-h{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-bottom:7px}
.rv-h b{font-size:12px}
.rv-h .rk{font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.rv-cards{display:flex;gap:4px}
.rv-cards .card.xs{--w:34px}
.rv-cards .card.xs .idx{display:none}
.rv-cards .card.xs .pip{font-size:calc(var(--w) * .46)}
.rv-cards .card.xs.num .pip{font-size:calc(var(--w) * .42)}
.rv-cards .card.xs.ten .pip{font-size:calc(var(--w) * .34)}
@media(min-width:620px){.rv-seats{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* The native number spinner is three grey chevrons in a gold sheet. */
#fixamt{-moz-appearance:textfield;appearance:textfield;width:100%}
#fixamt::-webkit-outer-spin-button,#fixamt::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* --------------------------------------------- seat requests from watchers */
.banner.seatq{border-color:rgba(201,169,106,.3);background:rgba(201,169,106,.06)}
.seatq-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.seatq-row{display:flex;align-items:center;gap:8px}
.seatq-row b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.seatq-row .btn.tiny{flex:0 0 auto}

/* The beaten hands leaving the clash. A class with a known duration, so the
   caller can wait for it and then remove the nodes -- setting opacity on an
   element carrying a 1.1s transition used to leave a loser still fading
   behind the crowned winner. */
.cl-side.gone{animation:clGone .32s var(--ease) forwards;pointer-events:none}
@keyframes clGone{to{opacity:0;filter:blur(5px)}}
@media(prefers-reduced-motion:reduce){.cl-side.gone{animation:none;opacity:0}}
