:root {
  --ink: #0a0a0a;
  --paper: #efeee9;
  --white: #ffffff;
  --red: #e5002b;
  --blood: #4d0008;
  --blood-2: #63000c;
  --mute: #8a8a86;
  --line: rgba(239, 238, 233, .16);
  --grotesk: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pixel: "Silkscreen", "VT323", monospace;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 2.4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.micro {
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 500;
}

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px var(--gutter);
  mix-blend-mode: difference;
  color: var(--white);
}
.bar nav { display: flex; gap: 18px; }
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bar .center { text-align: center; }
.bar .right { display: flex; justify-content: flex-end; gap: 14px; align-items: center; }
.bar-solid { mix-blend-mode: normal; background: var(--ink); border-bottom: 1px solid var(--line); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out), transform .16s var(--ease-out);
}
.pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: var(--paper); color: var(--ink); }
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pill[data-connected="true"] .dot { background: currentColor; }

/* ---------- LED ---------- */

.led {
  position: relative;
  font-family: var(--pixel);
  color: var(--red);
  text-transform: uppercase;
  background: #050000;
  border: 1px solid #1d0004;
  text-shadow: 0 0 6px rgba(229, 0, 43, .65);
}
.led::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 1px, transparent 1px 3px);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-size: clamp(18px, 2.4vw, 30px);
  border-left: 0;
  border-right: 0;
}
.marquee-track {
  display: inline-flex;
  gap: 3em;
  padding-left: 3em;
  animation: marquee 38s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- HOME ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-type {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
  mix-blend-mode: difference;
  min-height: 7.5em;
  pointer-events: none;
}
.hero-type span { display: block; }
.hero-type .caret::after { content: "▍"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.corner { position: absolute; z-index: 3; }
.corner.tl { top: 64px; left: var(--gutter); }
.corner.tr { top: 64px; right: var(--gutter); text-align: right; }
.corner.bl { bottom: var(--gutter); left: var(--gutter); }
.corner.br { bottom: calc(var(--gutter) + 56px); right: var(--gutter); text-align: right; }

.hero-cta {
  position: absolute;
  z-index: 4;
  bottom: clamp(56px, 10vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  transition: transform .16s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
}
.btn[disabled] { opacity: .3; pointer-events: none; }

.posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}
.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  padding: clamp(14px, 1.8vw, 24px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-decoration: none;
}
.poster.white { background: var(--paper); color: var(--ink); }
.poster.black { background: #000; color: var(--paper); border: 1px solid var(--line); }
.poster.red { background: var(--blood); color: var(--paper); }
.poster .meta { display: flex; justify-content: space-between; gap: 12px; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.05; }
.poster .big {
  align-self: end;
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 500;
  margin: 0;
}
.poster .big.right { text-align: right; }
.poster .foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 18px; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.08; }
.poster > div:last-child { grid-row: 3; }
.poster .poster-cards { position: absolute; inset: 20% 10% 34%; display: grid; place-items: center; }
.poster .poster-cards .card { position: absolute; }

.section {
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(44px, 7.4vw, 120px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 500;
  margin: 0 0 .5em;
  max-width: 11ch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step { padding: 22px 22px 22px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 22px; }
.step:last-child { border-right: 0; }
.step .n { font-size: clamp(40px, 5vw, 76px); letter-spacing: -.05em; line-height: 1; }
.step h3 { font-size: 22px; letter-spacing: -.03em; font-weight: 600; margin: 18px 0 8px; }
.step p { color: var(--mute); margin: 0; max-width: 34ch; }
.step code { font-family: var(--mono); font-size: 12.5px; color: var(--paper); background: #161616; padding: 2px 6px; border-radius: 4px; word-break: break-all; }

.deck-show {
  background: var(--blood);
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.deck-show h2 { font-size: clamp(44px, 6.4vw, 104px); line-height: .88; letter-spacing: -.055em; font-weight: 500; margin: 0 0 .4em; }
.deck-show p { max-width: 38ch; margin: 0; color: rgba(239, 238, 233, .75); }
.fan { position: relative; height: clamp(260px, 34vw, 440px); }
.fan .card { position: absolute; left: 50%; top: 50%; --w: clamp(120px, 15vw, 200px); }

.end {
  padding: clamp(40px, 6vw, 80px) var(--gutter) var(--gutter);
  border-top: 1px solid var(--line);
}
.end .huge {
  font-size: clamp(160px, 42vw, 640px);
  line-height: .74;
  letter-spacing: -.08em;
  font-weight: 500;
  margin: 0 0 24px -.04em;
}
.end .legal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; color: var(--mute); }
.end .legal a { color: var(--paper); }

/* ---------- CARD ---------- */

.card {
  --w: 104px;
  width: var(--w);
  aspect-ratio: 5 / 7;
  border-radius: calc(var(--w) * .07);
  background: #f7f6f2;
  color: #111;
  position: relative;
  overflow: hidden;
  flex: none;
  user-select: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.card.red { --suit: var(--red); }
.card.black { --suit: #111; }
.card .idx {
  position: absolute;
  width: calc(var(--w) * .17);
  display: grid;
  justify-items: center;
  color: var(--suit);
}
.card .idx b {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: calc(var(--w) * .165);
  line-height: .95;
  letter-spacing: -.06em;
}
.card.r9 .idx b { font-size: calc(var(--w) * .145); letter-spacing: -.09em; }
.card .idx small { font-size: calc(var(--w) * .13); line-height: 1; }
.card .idx.top { top: 5%; left: 4%; }
.card .idx.bot { bottom: 5%; right: 4%; transform: rotate(180deg); }
.card .art {
  position: absolute;
  inset: 9% 21%;
  display: grid;
  place-items: center;
}
.card.r0 .art { inset: 24% 15%; }
.card .art > svg, .card .art > img { width: 100%; height: 100%; }
.card .art > img { object-fit: contain; mix-blend-mode: multiply; }

.court {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: calc(var(--w) * .03);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.court-blob { position: absolute; left: -10%; top: 18%; width: 120%; height: 64%; }
.court-letter {
  position: relative;
  font-family: var(--serif);
  font-weight: 900;
  font-size: calc(var(--w) * .46);
  line-height: 1;
  color: var(--ink);
  margin-top: -14%;
}
.court-suit { position: absolute; width: 24%; height: auto; top: 6%; left: 50%; transform: translateX(-50%); }
.court-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  text-align: center;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: calc(var(--w) * .072);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.card.back {
  background: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.card.back::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: calc(var(--w) * .045);
  border: 1px solid var(--red);
  background: radial-gradient(circle at 50% 50%, rgba(229, 0, 43, .9) 0 1.2px, transparent 1.6px) 0 0 / 8px 8px;
  opacity: .55;
}
.card.back::after {
  content: "21";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: calc(var(--w) * .34);
  color: var(--paper);
  text-shadow: 0 0 10px rgba(229, 0, 43, .8);
}

/* ---------- TABLE ---------- */

.table-page { background: var(--blood); overflow: hidden; }
.table {
  --cw: clamp(86px, 8.8vw, 132px);
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.felt {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 60px var(--gutter) 22px;
}
.felt-print {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(900px, 94%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}
.felt-print text {
  fill: rgba(239, 238, 233, .14);
  font-family: var(--grotesk);
  font-weight: 500;
  text-transform: uppercase;
}
.felt-print path.rule { fill: none; stroke: rgba(239, 238, 233, .14); stroke-width: 1; }

.shoe {
  position: absolute;
  top: 66px;
  right: var(--gutter);
  width: calc(var(--cw) * .72);
  aspect-ratio: 5 / 7;
}
.shoe .card { position: absolute; inset: 0; --w: calc(var(--cw) * .72); }
.shoe .card:nth-child(1) { transform: translate(7px, 7px) rotate(4deg); }
.shoe .card:nth-child(2) { transform: translate(3px, 3px) rotate(2deg); }
.shoe-count { position: absolute; top: calc(100% + 14px); left: 0; right: 0; text-align: center; color: rgba(239, 238, 233, .6); }

.seat { display: grid; justify-items: center; gap: 14px; position: relative; z-index: 1; }
.seat.dealer { align-content: start; }
.seat.player { align-content: end; }
.hands { display: flex; gap: clamp(28px, 6vw, 96px); justify-content: center; align-items: end; }
.hand {
  display: grid;
  justify-items: center;
  gap: 12px;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.hand.waiting { opacity: .5; transform: scale(.94); }
.hand.lost .spread { opacity: .55; }

.spread {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: calc(var(--cw) * 1.48);
  padding: 0 4px;
}
.slot {
  --w: var(--cw);
  margin-left: calc(var(--cw) * -.56);
  transform-origin: 50% 140%;
  transition: transform .4s var(--ease-out);
}
.slot:first-child { margin-left: 0; }
.slot .card { --w: var(--cw); box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), -3px 0 0 rgba(0, 0, 0, .1); }

.tally {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: var(--paper);
  white-space: nowrap;
}
.tally .who { font-size: 11px; text-transform: uppercase; font-weight: 600; opacity: .7; }
.tally .num {
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #050000;
  color: var(--red);
  font-family: var(--pixel);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  text-shadow: 0 0 6px rgba(229, 0, 43, .6);
}
.tally.empty { visibility: hidden; }
.tally.bust .num { background: var(--red); color: var(--white); text-shadow: none; }
.tally.top .num { background: var(--paper); color: var(--ink); text-shadow: none; }

.stamp {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 26px;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.stamp.lose { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(239, 238, 233, .4); }
.stamp.push { background: rgba(0, 0, 0, .4); color: var(--paper); }
.stamp.bj { background: var(--red); color: var(--white); }

.spot {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px dashed rgba(239, 238, 233, .35);
  display: grid;
  place-items: center;
  margin-top: 4px;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.spot.live { border-style: solid; border-color: rgba(239, 238, 233, .6); }
.spot .stack { position: relative; width: 56px; height: 56px; }
.spot .stack .chip { position: absolute; left: 0; bottom: 0; --size: 56px; pointer-events: none; }
.spot .amt {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: rgba(239, 238, 233, .8);
}
.spot .hint { color: rgba(239, 238, 233, .45); text-align: center; }

.verdict {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  margin: 0;
}
.verdict b {
  display: block;
  font-size: clamp(56px, 9vw, 150px);
  line-height: .86;
  letter-spacing: -.06em;
  font-weight: 500;
  color: var(--paper);
}
.verdict small { display: block; margin-top: 12px; font-size: 13px; text-transform: uppercase; font-weight: 600; color: var(--paper); opacity: .8; }

.chip {
  --size: 58px;
  --face: var(--paper);
  --edge: var(--red);
  --text: var(--ink);
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  flex: none;
  background: repeating-conic-gradient(from 11.25deg, var(--face) 0 22.5deg, var(--edge) 22.5deg 45deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  color: var(--text);
  font-weight: 700;
  font-size: calc(var(--size) * .24);
  letter-spacing: -.03em;
  display: grid;
  place-items: center;
  transition: transform .16s var(--ease-out);
}
.chip::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: var(--face);
  box-shadow: 0 0 0 1px var(--edge) inset, 0 0 0 calc(var(--size) * .05) var(--face) inset, 0 0 0 calc(var(--size) * .05 + 1px) var(--edge) inset;
}
.chip span { position: relative; }
.chip.c5 { --face: var(--paper); --edge: var(--red); --text: var(--ink); }
.chip.c25 { --face: #111; --edge: var(--paper); --text: var(--paper); }
.chip.c100 { --face: var(--red); --edge: var(--paper); --text: var(--white); }
.chip.c500 { --face: var(--paper); --edge: #111; --text: var(--ink); }
button.chip:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  button.chip:hover { transform: translateY(-4px); }
}
button.chip[disabled] { opacity: .25; pointer-events: none; }

/* ---------- DOCK ---------- */

.dock {
  position: relative;
  z-index: 3;
  background: var(--ink);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 3fr) minmax(200px, 1.2fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.fair-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  color: rgba(239, 238, 233, .6);
}
.fair-strip code { font-family: var(--mono); font-size: 11px; color: var(--paper); }
.fair-strip button, .fair-strip a { text-decoration: underline; text-underline-offset: 3px; color: var(--paper); }

.stat { padding: 14px var(--gutter); display: grid; align-content: center; gap: 2px; border-right: 1px solid var(--line); }
.stat .k { color: rgba(239, 238, 233, .55); }
.stat .v {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  padding: 14px;
  border-right: 1px solid var(--line);
}
.rack .tools { display: grid; gap: 4px; margin-left: clamp(4px, 1vw, 14px); }
.rack .tools button { text-align: left; color: rgba(239, 238, 233, .75); text-decoration: underline; text-underline-offset: 3px; }
.rack .tools button:hover { color: var(--paper); }

.go {
  display: grid;
  align-content: space-between;
  text-align: left;
  padding: 14px 18px;
  background: var(--paper);
  color: var(--ink);
  min-height: 104px;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.go .k { opacity: .6; display: flex; justify-content: space-between; }
.go b { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.go:active b { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .go:hover { background: var(--red); color: var(--white); }
}
.go[disabled] { background: #1a1a1a; color: rgba(239, 238, 233, .35); pointer-events: none; }

.moves { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
.move {
  position: relative;
  display: grid;
  align-content: space-between;
  text-align: left;
  padding: 14px 18px;
  min-height: 104px;
  border-right: 1px solid var(--line);
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), opacity .2s var(--ease-out);
}
.move:last-child { border-right: 0; }
.move .k { color: rgba(239, 238, 233, .55); transition: color .15s var(--ease-out); }
.move b { font-size: clamp(24px, 2.5vw, 38px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.move kbd {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid currentColor;
  opacity: .5;
}
.move.primary { background: var(--paper); color: var(--ink); }
.move.primary .k { color: rgba(10, 10, 10, .55); }
@media (hover: hover) and (pointer: fine) {
  .move:hover { background: var(--paper); color: var(--ink); }
  .move:hover .k { color: rgba(10, 10, 10, .55); }
  .move.primary:hover { background: var(--red); color: var(--white); }
  .move.primary:hover .k { color: rgba(255, 255, 255, .7); }
}
.move:active { background: var(--red); color: var(--white); }
.move[disabled] { opacity: .22; pointer-events: none; }

.dock[data-mode="play"] .rack,
.dock[data-mode="play"] .go { display: none; }
.dock[data-mode="bet"] .moves { display: none; }

.flying-chip { position: fixed; z-index: 70; pointer-events: none; margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  top: 70px;
  transform: translate(-50%, -8px);
  opacity: 0;
  z-index: 60;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .table { --cw: clamp(64px, 17vw, 92px); min-height: 560px; }
  .felt { padding-top: 56px; }
  .felt-print { top: 44%; }
  .shoe { top: 60px; }
  .shoe-count { display: none; }
  .spot { width: 72px; height: 72px; }
  .spot .stack { width: 44px; height: 44px; }
  .spot .stack .chip { --size: 44px; }
  .dock { grid-template-columns: 1fr 1fr; }
  .fair-strip { gap: 4px 12px; font-size: 10px; }
  .stat { order: 1; padding: 10px var(--gutter); }
  .dock[data-mode="play"] .stat { grid-column: 1 / -1; border-right: 0; }
  .go { order: 2; min-height: 0; padding: 10px 14px; }
  .go b { font-size: 26px; }
  .rack { grid-column: 1 / -1; order: 3; border-right: 0; border-top: 1px solid var(--line); padding: 12px var(--gutter); justify-content: space-between; gap: 6px; }
  .rack .chip { --size: 48px; }
  .moves { grid-column: 1 / -1; order: 3; border-top: 1px solid var(--line); }
  .move { min-height: 86px; padding: 12px 10px; }
  .move .k { font-size: 10px; }
  .move b { font-size: 19px; letter-spacing: -.04em; }
  .move kbd { display: none; }
}

/* ---------- SEATS ---------- */

.link { text-decoration: underline; text-underline-offset: 3px; color: inherit; }

.felt { grid-template-rows: auto minmax(0, 1fr) auto; }

.status {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border-radius: 14px;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), opacity .3s var(--ease-out);
}
.status .txt { font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -.03em; font-weight: 500; min-height: 1.2em; }
.status .meter { width: 160px; height: 2px; background: rgba(239, 238, 233, .2); overflow: hidden; border-radius: 2px; }
.status .meter i { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(var(--p, 0)); }
.status.mine { background: var(--paper); color: var(--ink); }
.status.mine .meter { background: rgba(10, 10, 10, .15); }
.status.mine .meter i { background: var(--red); }

.seats {
  --cw: clamp(56px, 5.4vw, 88px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.seat-slot {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 10px;
  min-width: 0;
}
.seat-slot:nth-child(1), .seat-slot:nth-child(5) { margin-bottom: clamp(30px, 9vh, 90px); }
.seat-slot:nth-child(2), .seat-slot:nth-child(4) { margin-bottom: clamp(10px, 3vh, 30px); }
.seat-slot.me { --cw: clamp(68px, 6.6vw, 108px); }

.seat-slot .hands {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: end;
  min-height: calc(var(--cw) * 1.48 + 42px);
}
.seat-slot .hand { gap: 8px; }
.seat-slot .spread { height: calc(var(--cw) * 1.48); }
.seat-slot .tally { height: 26px; }
.seat-slot .tally .num { font-size: 12px; min-width: 30px; height: 20px; line-height: 20px; }
.seat-slot .stamp { height: 22px; line-height: 22px; font-size: 11px; padding: 0 10px; }

.nameplate {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  max-width: 100%;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  overflow: hidden;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.nameplate .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}
.nameplate .nm { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nameplate .bt { font-family: var(--pixel); font-size: 12px; color: var(--red); text-shadow: 0 0 6px rgba(229, 0, 43, .5); flex: none; }
.nameplate .bt:empty { display: none; }
.nameplate .clock {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.seat-slot.me .nameplate { box-shadow: inset 0 0 0 1px rgba(239, 238, 233, .7); }
.seat-slot.turn .nameplate { background: var(--paper); color: var(--ink); }
.seat-slot.turn .nameplate .av { background: var(--ink); color: var(--paper); }
.seat-slot.ready .nameplate::after {
  content: "Ready";
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  border-radius: 999px;
  padding: 2px 6px;
}
.seat-slot.leaving { opacity: .5; }
.seat-slot.creator .nameplate .av { background: var(--red); color: var(--white); }
.seat-slot.creator .nameplate .nm::after { content: " · sponsored"; font-weight: 500; opacity: .7; }

.seat-slot .sit { display: none; }
.seat-slot.empty .nameplate, .seat-slot.empty .hands { display: none; }
.seat-slot.empty .sit {
  display: grid;
  place-items: center;
  width: min(100%, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(239, 238, 233, .3);
  color: rgba(239, 238, 233, .45);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  pointer-events: none;
}
.seat-slot.empty .sit span::before { content: "Open"; }
.seat-slot.empty .sit span { font-size: 0; }
.seat-slot.empty .sit span::before { font-size: 11px; }
.seat-slot.can-sit .sit {
  pointer-events: auto;
  border-color: rgba(239, 238, 233, .55);
  color: var(--paper);
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.seat-slot.can-sit .sit span { font-size: 11px; }
.seat-slot.can-sit .sit span::before { content: none; }
.seat-slot.can-sit .sit:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .seat-slot.can-sit .sit:hover { background: rgba(0, 0, 0, .25); border-style: solid; border-color: var(--paper); }
}

.note {
  grid-column: 2 / -1;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px clamp(16px, 2.4vw, 32px);
  min-height: 104px;
}
.note b { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.note span { color: rgba(239, 238, 233, .6); }
.note a { color: var(--paper); }
.dock[data-mode="bet"] .note,
.dock[data-mode="play"] .note { display: none; }
.dock[data-mode="watch"] .rack, .dock[data-mode="watch"] .go, .dock[data-mode="watch"] .moves,
.dock[data-mode="wait"] .rack, .dock[data-mode="wait"] .go, .dock[data-mode="wait"] .moves { display: none; }
.stat-links { display: flex; gap: 12px; margin-top: 6px; }
.stat-links button { color: rgba(239, 238, 233, .65); }
.stat-links button:hover { color: var(--paper); }
.share-sheet { width: min(420px, 100%); }
.share-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  max-height: 58svh;
  margin: 14px auto 16px;
  border-radius: 14px;
  background: #0a0a0a;
  color: rgba(239, 238, 233, .6);
  overflow: hidden;
}
.share-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- LOBBY ---------- */

.lobby { padding: 84px 10px 10px; }
.lobby-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 0 calc(var(--gutter) - 10px) clamp(28px, 4vw, 56px);
}
.lobby-head h1 { font-size: clamp(64px, 11vw, 180px); line-height: .84; letter-spacing: -.065em; font-weight: 500; margin: 0; }
.profile { display: grid; gap: 18px; }
.profile .field label { color: rgba(239, 238, 233, .6); }
.profile-row { display: flex; gap: 8px; }
.profile .profile-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--paper);
  padding: 0 18px;
  font-size: 16px;
  font-family: var(--grotesk);
}
.profile-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; align-items: end; }
.profile-stats div { display: grid; gap: 4px; }
.profile-stats .micro { color: rgba(239, 238, 233, .6); }
.profile-stats b { font-size: 34px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }

.tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.table-poster { aspect-ratio: 4 / 3; transition: transform .25s var(--ease-out); }
.table-poster .big { font-size: clamp(64px, 9vw, 150px); }
.table-poster.full { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .table-poster:not(.full):hover { transform: translateY(-4px); }
}
.table-poster:active { transform: scale(.99); }
.seats-dots { display: flex; gap: 8px; align-self: center; }
.seats-dots i {
  width: clamp(30px, 3vw, 42px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  opacity: .45;
}
.seats-dots i.on { opacity: 1; background: currentColor; }
.poster.white .seats-dots i.on { color: var(--ink); }
.poster.white .seats-dots i.on { -webkit-text-fill-color: var(--paper); }
.poster.black .seats-dots i.on, .poster.red .seats-dots i.on { -webkit-text-fill-color: var(--ink); }
.poster.red .seats-dots i.on { -webkit-text-fill-color: var(--blood); }

@media (max-width: 860px) {
  .seats { --cw: 34px; gap: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
  .seat-slot:nth-child(n) { margin-bottom: 0; }
  .seat-slot.me { --cw: clamp(62px, 17vw, 84px); grid-column: 1 / -1; order: 9; margin-top: 8px; }
  .seats:not(:has(.me)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .seat-slot:not(.me) .hands { min-height: calc(var(--cw) * 1.48 + 30px); gap: 2px; }
  .seat-slot:not(.me) .tally .who { display: none; }
  .seat-slot:not(.me) .stamp { font-size: 9px; padding: 0 6px; height: 18px; line-height: 18px; }
  .seat-slot:not(.me) .nameplate { height: 26px; padding: 0 8px 0 4px; gap: 4px; }
  .seat-slot:not(.me) .nameplate .av { width: 18px; height: 18px; font-size: 10px; }
  .seat-slot:not(.me) .nameplate .nm { font-size: 10px; }
  .seat-slot:not(.me) .nameplate .bt { display: none; }
  .seat-slot.ready:not(.me) .nameplate::after { content: "✓"; padding: 0 4px; }
  .seat-slot.empty .sit { width: min(100%, 64px); font-size: 10px; }
  .status { padding: 6px 12px; }
  .note { grid-column: 1 / -1; order: 3; min-height: 76px; border-top: 1px solid var(--line); }
  .lobby-head { grid-template-columns: 1fr; }
  .tables { grid-template-columns: 1fr; }
  .table-poster { aspect-ratio: 4 / 4.2; }
  .profile-stats b { font-size: 26px; }
}

/* ---------- NAV ---------- */

.bar .brand { font-weight: 800; letter-spacing: -.01em; }
.bar nav { min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.bar nav::-webkit-scrollbar { display: none; }
.bar [aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.nav-account { text-decoration: none; }
.btn.violet { background: var(--violet); border-color: var(--violet); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn.violet:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
}
.v { color: var(--violet-2); }

/* ---------- HUB ---------- */

:root { --violet: #7c2cff; --violet-2: #a46bff; }
.hub-page { background: #000; }
.hub { overflow-x: clip; }
.hub-hero {
  position: relative;
  min-height: 100svh;
  padding: 92px var(--gutter) 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.hub-glow {
  position: absolute;
  inset: 20% -10% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(124, 44, 255, .35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hub-title {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-size: clamp(88px, 22vw, 360px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 900;
  color: var(--white);
}
.hub-title span:last-child { margin-right: -.04em; }
.hub-coins {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.hub-coins img { position: absolute; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.hub-coins .c1 { width: 62%; left: 19%; top: 8%; animation: float 7s var(--ease-io) infinite alternate; }
.hub-coins .c2 { width: 30%; left: -2%; top: 46%; animation: float 8s var(--ease-io) -2s infinite alternate; }
.hub-coins .c3 { width: 30%; right: -2%; top: 52%; animation: float 9s var(--ease-io) -4s infinite alternate; }
@keyframes float {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-22px) rotate(6deg); }
}
.hub-kicker {
  position: absolute;
  z-index: 3;
  top: calc(92px + clamp(88px, 22vw, 360px) * .82);
  margin: 6px 0 0;
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.04em;
}
.hub-kicker.left { left: var(--gutter); }
.hub-kicker.right { right: var(--gutter); text-align: right; }
.hub-side {
  position: absolute;
  z-index: 3;
  bottom: 120px;
  max-width: 24ch;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
}
.hub-side.left { left: var(--gutter); }
.hub-side.right { right: var(--gutter); text-align: right; }
.hub-cta { position: relative; z-index: 3; grid-row: 3; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.hub-tickers { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.hub-live { display: flex; align-items: center; gap: 8px; color: var(--violet-2); margin-bottom: 14px; }
.hub-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-2); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(164, 107, 255, .7); } 100% { box-shadow: 0 0 0 10px rgba(164, 107, 255, 0); } }
.ticker-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ticker {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #151517;
  text-decoration: none;
  transition: background-color .18s var(--ease-out), transform .18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ticker:hover { background: #1d1d21; } }
.ticker:active { transform: scale(.98); }
.ticker-top, .ticker-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ticker-top b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ticker-arrow { color: var(--violet-2); font-size: 20px; }
.ticker .micro { color: rgba(239, 238, 233, .55); }
.ticker-bottom b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }

.hub-games { padding: clamp(48px, 7vw, 96px) var(--gutter); border-top: 1px solid var(--line); }
.hub-games h2, .hub-wallet h2 {
  font-size: clamp(48px, 8vw, 128px);
  line-height: .86;
  letter-spacing: -.06em;
  font-weight: 800;
  margin: 0 0 .4em;
}
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.game {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  padding: 20px;
  background: #0e0e10;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.game b { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.045em; font-weight: 800; line-height: .95; }
.game-meta { color: rgba(239, 238, 233, .6); font-size: 14px; max-width: 22ch; }
.game-tag { justify-self: start; padding: 4px 8px; border-radius: 999px; background: rgba(239, 238, 233, .1); }
.game.live .game-tag { background: var(--violet); color: var(--white); }
.game.soon { opacity: .6; }
.game img { position: absolute; width: 70%; right: -8%; bottom: -10%; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.game:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .6); }
  a.game:hover img { transform: rotate(-8deg) scale(1.06); }
}

.hub-numbers { padding: clamp(48px, 7vw, 96px) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: clamp(32px, 5vw, 72px); }
.num-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.num-copy { justify-self: end; max-width: 30ch; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.2; font-weight: 500; margin: 0; }
.num-big { margin: 0; font-size: clamp(44px, 6.4vw, 104px); line-height: .88; letter-spacing: -.06em; font-weight: 800; }

.hub-wallet {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hub-wallet .lead { max-width: 42ch; color: rgba(239, 238, 233, .75); margin: 0 0 22px; font-size: 18px; }
.phone {
  justify-self: center;
  width: min(340px, 100%);
  border-radius: 36px;
  padding: 22px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px rgba(124, 44, 255, .25);
  display: grid;
  gap: 6px;
}
.phone-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.phone-top .micro { margin-left: auto; color: rgba(239, 238, 233, .5); }
.phone > .micro { color: rgba(239, 238, 233, .5); }
.phone-bal { font-size: 52px; letter-spacing: -.05em; font-weight: 800; line-height: 1; }
.phone-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.phone-actions span { display: grid; place-items: center; gap: 4px; padding: 12px 0; border-radius: 14px; background: #19191d; color: var(--violet-2); font-size: 18px; }
.phone-actions i { font-style: normal; font-size: 11px; color: var(--paper); }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #141417; font-size: 14px; }
.phone li img { width: 36px; height: 36px; object-fit: contain; }
.phone li span { font-size: 12px; color: rgba(239, 238, 233, .5); }

.tapes { position: relative; height: clamp(220px, 26vw, 360px); overflow: hidden; }
.tape {
  position: absolute;
  left: -10%;
  width: 120%;
  padding: 14px 0;
  white-space: nowrap;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.tape span { display: inline-block; animation: marquee 30s linear infinite; }
.tape.t1 { top: 30%; background: var(--paper); color: var(--ink); transform: rotate(-8deg); }
.tape.t2 { top: 45%; background: var(--violet); color: var(--white); transform: rotate(6deg); }
.tape.t2 span { animation-direction: reverse; }
.hub-end .huge { font-size: clamp(90px, 21vw, 340px); font-weight: 900; letter-spacing: -.075em; }

/* ---------- ACCOUNT ---------- */

.account-page { background: #000; }
.acct { width: min(520px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 88px 0 64px; }
.acct-card { border-radius: 28px; padding: 22px; background: #0d0d10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px rgba(124, 44, 255, .18); }
.acct-id { display: flex; align-items: center; gap: 12px; }
.acct-id b { display: block; font-size: 17px; }
.acct-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, var(--violet), #36c3ff);
  color: var(--white);
  font-weight: 800;
}
.acct-av.sm { width: 30px; height: 30px; font-size: 12px; }
.acct-addr { color: rgba(239, 238, 233, .55); text-transform: none; font-family: var(--mono); }
.acct-badge { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--red); color: var(--white); }
.acct-balance { display: grid; gap: 4px; margin: 26px 0 18px; }
.acct-balance .micro { color: rgba(239, 238, 233, .55); }
.acct-balance b { font-size: clamp(48px, 12vw, 64px); letter-spacing: -.055em; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.acct-sub { text-transform: none; }
.acct-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acct-actions a, .acct-actions button {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 0;
  border-radius: 16px;
  background: #19191d;
  text-decoration: none;
  transition: background-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.acct-actions i { font-style: normal; font-size: 20px; color: var(--violet-2); }
.acct-actions span { font-size: 12px; font-weight: 600; }
.acct-actions :active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .acct-actions a:hover, .acct-actions button:hover { background: #222228; } }
.acct-actions button[disabled] { opacity: .35; pointer-events: none; }
.acct-signin { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(124, 44, 255, .12); box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .35); }
.acct-signin p { margin: 0 0 12px; font-size: 14px; color: rgba(239, 238, 233, .8); }
.acct-signin .btn { width: 100%; background: var(--violet); border-color: var(--violet); color: var(--white); }
.acct-tabs { display: flex; gap: 4px; margin: 22px 0 12px; padding: 4px; border-radius: 999px; background: #0d0d10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.acct-tabs button { flex: 1; height: 36px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(239, 238, 233, .6); transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
.acct-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acct-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #0d0d10; }
.acct-list li img { width: 40px; height: 40px; object-fit: contain; }
.acct-list li b { font-size: 14px; display: block; }
.acct-list li .micro { color: rgba(239, 238, 233, .5); text-transform: none; }
.acct-list .up { color: #7dffb0; }
.acct-list .down { color: #ff6b81; }
.acct-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(239, 238, 233, .3); }
.acct-dot.up { background: #7dffb0; }
.acct-dot.down { background: #ff6b81; }
.acct-empty { color: rgba(239, 238, 233, .6); font-size: 14px; padding: 18px 4px; }
.acct-empty a, .acct-list a { color: var(--violet-2); }
.acct-note { color: rgba(239, 238, 233, .5); text-transform: none; }
.invite-box { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #0d0d10; margin-bottom: 10px; }
.invite-box .micro { color: rgba(239, 238, 233, .55); text-transform: none; }
.invite-code { font-size: 40px; font-weight: 800; letter-spacing: .02em; font-family: var(--mono); }
.invite-link { display: flex; gap: 8px; align-items: center; }
.invite-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; padding: 12px; border-radius: 10px; background: #19191d; }
.invite-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.invite-stats div { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: #0d0d10; }
.invite-stats .micro { color: rgba(239, 238, 233, .55); }
.invite-stats b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }

/* ---------- CREATORS ---------- */

.creators-page { background: #000; }
.creators { padding: 92px var(--gutter) 64px; }
.cr-head h1, .cr-apply h2 { font-size: clamp(56px, 9vw, 150px); line-height: .84; letter-spacing: -.065em; font-weight: 800; margin: 0 0 18px; }
.cr-head .lead { max-width: 44ch; color: rgba(239, 238, 233, .75); font-size: 18px; margin: 0 0 36px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: clamp(56px, 8vw, 120px); }
.cr-card { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 18px; background: #0d0d10; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cr-card:hover { transform: translateY(-3px); } }
.cr-card b { font-size: 22px; letter-spacing: -.03em; }
.cr-card .micro { color: rgba(239, 238, 233, .55); text-transform: none; }
.cr-av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; background: linear-gradient(135deg, var(--violet), #ff39ba); color: var(--white); margin-bottom: 6px; }
.cr-av.xl { width: 120px; height: 120px; font-size: 48px; }
.cr-sponsored { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(229, 0, 43, .16); color: #ff8b9c !important; box-shadow: inset 0 0 0 1px rgba(229, 0, 43, .45); }
.cr-profile { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding-bottom: clamp(48px, 7vw, 96px); margin-bottom: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.cr-profile h1 { font-size: clamp(48px, 8vw, 120px); line-height: .9; letter-spacing: -.06em; font-weight: 800; margin: 12px 0 8px; }
.cr-profile .lead { color: rgba(239, 238, 233, .7); margin: 0 0 22px; }
.cr-profile .lead a { color: var(--violet-2); }
.cr-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin-bottom: 22px; }
.cr-stats div { display: grid; gap: 4px; }
.cr-stats .micro { color: rgba(239, 238, 233, .55); }
.cr-stats b { font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.cr-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cr-cta .btn:first-child { background: var(--violet); border-color: var(--violet); color: var(--white); }
.cr-apply { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.cr-perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; font-size: 18px; }
.cr-perks b { color: var(--violet-2); }
.cr-rule { max-width: 46ch; color: rgba(239, 238, 233, .55); text-transform: none; }
.cr-form { display: grid; gap: 4px; padding: 22px; border-radius: 22px; background: #0d0d10; box-shadow: inset 0 0 0 1px var(--line); }
.cr-form .field input, .cr-form .field select {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #151517;
  color: var(--paper);
  padding: 0 12px;
  font-size: 15px;
  font-family: var(--grotesk);
}
.cr-form .field label { color: rgba(239, 238, 233, .55); }
.cr-form .btn { margin-top: 10px; background: var(--violet); border-color: var(--violet); color: var(--white); }
.cr-status { min-height: 1.3em; color: var(--violet-2); text-transform: none; }

/* ---------- ADMIN ---------- */

.admin { padding: 48px var(--gutter); max-width: 920px; margin: 0 auto; }
.admin h1 { font-size: clamp(48px, 7vw, 96px); line-height: .9; letter-spacing: -.055em; font-weight: 600; margin: 0 0 24px; }
.admin-key { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-key input { flex: 1; height: 46px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .2); padding: 0 12px; font-family: var(--mono); }
.admin-app { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); margin-bottom: 8px; }
.admin-app.approved { border-color: #2a9d5c; }
.admin-app.rejected { opacity: .55; }
.admin-app a { color: var(--ink); word-break: break-all; }
.admin-actions { display: flex; gap: 6px; align-items: center; }
.admin-actions input { width: 110px; height: 40px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .2); padding: 0 8px; }

@media (max-width: 860px) {
  .hub-hero { padding-top: 80px; }
  .hub-title { flex-direction: column; font-size: clamp(88px, 30vw, 200px); }
  .hub-title span:last-child { align-self: flex-end; }
  .hub-coins { width: 92vw; top: 46%; }
  .hub-kicker { display: none; }
  .hub-side { position: static; max-width: none; text-align: left !important; margin-top: 14px; grid-row: 4; }
  .hub-side.left { display: none; }
  .hub-hero { grid-template-rows: auto 1fr auto auto auto; }
  .ticker-row { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game { min-height: 240px; }
  .num-row { grid-template-columns: 1fr; }
  .num-copy { justify-self: start; }
  .hub-wallet { grid-template-columns: 1fr; }
  .cr-apply, .cr-profile { grid-template-columns: 1fr; }
  .cr-stats { gap: 18px; }
  .admin-app { grid-template-columns: 1fr; }
  .bar .center { display: none; }
  .nav-account { display: none; }
}

/* ---------- POKER ---------- */

.poster.violet { background: #2a0f55; color: var(--paper); }
.poster.violet .seats-dots i.on { -webkit-text-fill-color: #2a0f55; }
.pk-lobby-copy { display: grid; gap: 18px; }
.pk-lobby-copy .lead { max-width: 44ch; color: rgba(239, 238, 233, .75); margin: 0; font-size: 18px; }

.pk-page { background: #0b0614; overflow: hidden; }
.pk { height: 100svh; min-height: 620px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pk-room { position: relative; margin: 64px var(--gutter) 12px; min-height: 0; }
.pk-felt {
  position: absolute;
  inset: 9% 8% 12%;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 40%, #2b1257 0%, #1a0b36 55%, #12082a 100%);
  box-shadow: 0 0 0 14px #08040f, 0 0 0 15px rgba(164, 107, 255, .35), 0 40px 120px rgba(124, 44, 255, .25), inset 0 0 80px rgba(0, 0, 0, .6);
  display: grid;
  place-items: center;
}
.pk-felt-mark {
  position: absolute;
  bottom: 18%;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.05em;
  color: rgba(239, 238, 233, .07);
}
.pk-center { position: absolute; left: 50%; top: 46%; translate: -50% -50%; display: grid; justify-items: center; gap: 10px; z-index: 2; }
.pk-board { display: flex; gap: 8px; perspective: 600px; }
.pk-slot { width: 72px; aspect-ratio: 5 / 7; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(239, 238, 233, .12); }
.pk-slot .card { --w: 72px; }
.card.dim { filter: brightness(.45) saturate(.6); }
.pk-pot { display: flex; align-items: baseline; gap: 8px; min-height: 30px; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.pk-pot:empty { visibility: hidden; }
.pk-pot .micro { color: rgba(239, 238, 233, .6); }
.pk-pot b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pk-status { margin: 0; text-align: center; color: rgba(239, 238, 233, .75); text-transform: none; font-size: 13px; max-width: 60ch; }

.pk-seats { position: absolute; inset: 0; z-index: 3; }
.pk-seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  transition: opacity .3s var(--ease-out);
}
.pk-seat.folded .pk-cards, .pk-seat.out { opacity: .4; }
.pk-cards { display: flex; gap: 4px; min-height: 64px; }
.pk-seat.me .pk-cards { min-height: 90px; }
.pk-plate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(8, 4, 15, .9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  min-width: 132px;
  transition: box-shadow .2s var(--ease-out);
}
.pk-plate b.nm { display: block; font-size: 12px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-plate .stk { font-size: 14px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--violet-2); }
.pk-av {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, var(--violet), #36c3ff);
  color: var(--white);
  flex: none;
}
.pk-seat.creator .pk-av { background: linear-gradient(135deg, var(--red), #ff39ba); }
.pk-seat.creator .nm::after { content: " · sponsored"; font-weight: 500; opacity: .6; }
.pk-timer {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#ffdb34 calc(var(--p, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  opacity: 0;
}
.pk-seat.turn .pk-timer { opacity: 1; }
.pk-seat.turn .pk-plate { box-shadow: inset 0 0 0 1px #ffdb34, 0 0 30px rgba(255, 219, 52, .25); }
.pk-seat.me .pk-plate { box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .8); }
.pk-seat.winner .pk-plate { box-shadow: inset 0 0 0 2px #7dffb0, 0 0 40px rgba(125, 255, 176, .3); }
.pk-tag { padding: 3px 8px; border-radius: 999px; background: var(--paper); color: var(--ink); white-space: nowrap; }
.pk-seat.winner .pk-tag { background: #7dffb0; }
.pk-won { font-weight: 800; color: #7dffb0; font-size: 16px; }
.pk-dealer {
  position: absolute;
  right: -14px;
  bottom: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .4);
}
.pk-sit, .pk-open {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(239, 238, 233, .35);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.pk-sit { color: var(--paper); transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .16s var(--ease-out); }
.pk-sit:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .pk-sit:hover { background: rgba(124, 44, 255, .25); border-style: solid; border-color: var(--violet-2); } }
.pk-open { color: rgba(239, 238, 233, .35); }
.pk-bet {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
.pk-bet .chip { --size: 22px; }
.pk-bet .chip::before { inset: 22%; }

.pk-dock { grid-template-columns: minmax(170px, 1fr) minmax(0, 3fr); }
.pk-dock .note { grid-column: 2; }
.pk-moves { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr 1.6fr; }
.pk-dock[data-mode="play"] .note, .pk-dock:not([data-mode="play"]) .pk-moves { display: none; }
.pk-raise { display: grid; gap: 8px; padding: 12px 16px; align-content: center; }
.pk-raise[hidden] { display: none !important; }
.pk-raise-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pk-raise-top .k { color: rgba(239, 238, 233, .55); }
.pk-raise-top input {
  width: 110px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #151517;
  color: var(--paper);
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}
.pk-raise input[type="range"], #buyin-slider { accent-color: var(--violet); width: 100%; }
.pk-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pk-quick button { height: 28px; border-radius: 8px; background: #19191d; font-size: 12px; font-weight: 600; transition: background-color .15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pk-quick button:hover { background: #26262d; } }
.pk-raise .btn { height: 40px; }

@media (max-width: 860px) {
  .pk-room { margin: 56px 8px 6px; }
  .pk-felt { inset: 10% 4% 10%; }
  .pk-slot, .pk-slot .card { width: 46px; --w: 46px; }
  .pk-board { gap: 4px; }
  .pk-plate { min-width: 0; padding: 4px 10px 4px 4px; }
  .pk-plate b.nm { max-width: 8ch; font-size: 11px; }
  .pk-av { width: 28px; height: 28px; }
  .pk-cards { min-height: 46px; }
  .pk-cards .card { --w: 34px !important; }
  .pk-seat.me .pk-cards .card { --w: 52px !important; }
  .pk-dock { grid-template-columns: 1fr; }
  .pk-dock .note, .pk-moves { grid-column: 1; }
  .pk-moves { grid-template-columns: 1fr 1fr; }
  .pk-raise { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .pk-status { font-size: 11px; max-width: 30ch; }
}

/* ---------- VAULT ---------- */

.vault-page { background: #000; }
.vault { padding: 84px var(--gutter) 64px; }
.vault-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.vault-head h1 { font-size: clamp(64px, 11vw, 180px); line-height: .84; letter-spacing: -.065em; font-weight: 500; margin: 0; }
.vault-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; }
.vault-stats div { display: grid; gap: 4px; }
.vault-stats .micro { color: rgba(239, 238, 233, .55); }
.vault-stats b { font-size: 36px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.vault-note { grid-column: 1 / -1; max-width: 46ch; color: rgba(239, 238, 233, .55); margin: 8px 0 0; text-transform: none; font-size: 12px; }

.blisters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px);
}
.blister {
  --glass: rgba(255, 255, 255, .14);
  position: relative;
  display: grid;
  justify-items: center;
  perspective: 900px;
}
.blister::after {
  content: "";
  position: absolute;
  inset: 20% 10% 18%;
  background: radial-gradient(closest-side, rgba(247, 201, 72, .14), transparent);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.blister.tier-3::after { background: radial-gradient(closest-side, rgba(229, 0, 43, .16), transparent); }
.blister.tier-4::after { background: radial-gradient(closest-side, rgba(123, 92, 255, .2), transparent); }

.b-card, .b-box {
  position: relative;
  z-index: 1;
  width: 88%;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px var(--glass), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.b-card::before, .b-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(123, 92, 255, .8), rgba(56, 209, 255, .7), rgba(255, 122, 217, .6), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}
.b-card { padding: 22px 22px 70px; margin-bottom: -56px; background: #0b0b0c; }
.b-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.b-brand { font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.b-ed {
  font-family: var(--grotesk);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.b-sub { margin: 22px 0 0; font-size: 15px; font-weight: 600; line-height: 1.15; }
.b-sub span { font-weight: 500; color: rgba(239, 238, 233, .6); }
.b-box {
  width: 96%;
  aspect-ratio: 1.12;
  display: grid;
  place-items: center;
  overflow: hidden;
  backdrop-filter: blur(2px);
  transform: rotateX(4deg);
}
.b-coin { width: 82%; animation: coin-sway 7s var(--ease-io) infinite alternate; transform-style: preserve-3d; }
.b-coin svg, .b-coin img { width: 100%; height: auto; display: block; }
.blister:nth-child(2n) .b-coin { animation-delay: -2.5s; }
.blister:nth-child(3n) .b-coin { animation-delay: -4.2s; }
@keyframes coin-sway {
  0% { transform: translateY(4px) rotateY(-22deg) rotateZ(-3deg); }
  100% { transform: translateY(-6px) rotateY(22deg) rotateZ(3deg); }
}
.blister:not(.owned) .b-coin { filter: grayscale(1) brightness(.35) contrast(1.2); }
.b-lock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(239, 238, 233, .6);
  border: 1px solid rgba(239, 238, 233, .25);
  border-radius: 999px;
  padding: 4px 10px;
}
.b-foot { position: relative; z-index: 1; width: 88%; display: grid; gap: 10px; margin-top: 18px; }
.b-goal { display: flex; justify-content: space-between; gap: 12px; color: rgba(239, 238, 233, .7); text-transform: none; font-size: 12px; }
.b-bar { height: 2px; background: rgba(239, 238, 233, .15); border-radius: 2px; overflow: hidden; }
.b-bar i { display: block; height: 100%; background: var(--paper); }
.b-buy {
  justify-self: start;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 238, 233, .4);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out), transform .16s var(--ease-out);
}
.b-buy:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .b-buy:not(.off):hover { background: var(--paper); color: var(--ink); }
}
.b-buy.off { color: rgba(239, 238, 233, .4); border-style: dashed; }

@media (max-width: 860px) {
  .vault-head { grid-template-columns: 1fr; }
  .vault-stats b { font-size: 28px; }
}

/* ---------- SHEET / MODAL ---------- */

.entry-price { display: grid; gap: 4px; margin: 4px 0 14px; }
.entry-price b { font-size: 56px; font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.entry-price .micro { color: #6d6d68; }
.entry-status { min-height: 1.2em; color: var(--red); margin: 0 0 14px; }

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease-out);
}
.sheet-wrap.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: min(460px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 22px;
  transform: translateY(12px) scale(.98);
  transition: transform .24s var(--ease-out);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet h3 { margin: 0; font-size: 34px; letter-spacing: -.05em; line-height: .95; font-weight: 500; }
.sheet .sub { color: #5f5f5b; margin: 8px 0 18px; font-size: 14px; }
.sheet .group { margin-top: 16px; }
.sheet .group > .micro { color: #6d6d68; margin-bottom: 8px; }
.wallet-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  margin-bottom: 6px;
  text-align: left;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.wallet-btn:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .wallet-btn:hover { background: #e3e2dc; } }
.wallet-btn img, .wallet-btn .ph { width: 28px; height: 28px; border-radius: 7px; background: #111; flex: none; }
.wallet-btn .chain { margin-left: auto; font-size: 11px; text-transform: uppercase; color: #6d6d68; font-weight: 500; }
.sheet .close { position: absolute; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); font-size: 16px; line-height: 1; flex: none; }

/* ---------- RADIO ---------- */

.radio {
  position: fixed;
  z-index: 50;
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 12, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
.radio:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .radio:hover { box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .7), 0 10px 30px rgba(0, 0, 0, .45); }
}
.radio-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c2cff, #36c3ff, #ff39ba, #ffdb34, #7c2cff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.radio.on .radio-ring { opacity: 1; animation: radio-spin 4s linear infinite; }
@keyframes radio-spin { to { transform: rotate(1turn); } }
.radio-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--paper);
}
.radio.on .radio-icon {
  width: 12px;
  height: 14px;
  margin-left: 0;
  border: 0;
  border-left: 4px solid var(--paper);
  border-right: 4px solid var(--paper);
}
.table-page .radio, .pk-page .radio { top: 58px; bottom: auto; right: auto; left: var(--gutter); }

/* ---------- VERIFY ---------- */

.verify-page { background: var(--paper); color: var(--ink); }
.verify-page .bar-solid { background: var(--paper); color: var(--ink); border-color: rgba(0,0,0,.12); }
.verify {
  padding: 96px var(--gutter) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
}
.verify h1 {
  font-size: clamp(56px, 9vw, 150px);
  line-height: .84;
  letter-spacing: -.06em;
  font-weight: 500;
  margin: 0 0 24px;
}
.verify .lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; max-width: 34ch; margin: 0 0 28px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: #5f5f5b; }
.field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(0,0,0,.12); margin-bottom: 8px; font-size: 14px; }
.check b { font-family: var(--pixel); font-weight: 400; font-size: 13px; }
.check.ok b { color: var(--ink); }
.check.bad b { color: var(--red); }
.shoe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 4px;
  margin-top: 18px;
}
.shoe-grid span {
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  padding: 6px 0;
  border-radius: 5px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}
.shoe-grid span.r { color: var(--red); }
.shoe-grid span.used { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shoe-grid span.used.r { color: #ff5470; }
.shoe-grid span.yours { box-shadow: 0 0 0 2px var(--red); }
.code {
  margin: 24px 0 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 18px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  max-height: 560px;
}
.verify ol { padding-left: 1.2em; margin: 0 0 24px; max-width: 46ch; }
.verify ol li { margin-bottom: 10px; }
.rules { width: 100%; border-collapse: collapse; font-size: 14px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, .12); }
.rules th { width: 38%; padding-right: 16px; font-weight: 500; color: #5f5f5b; }
.verify h2 { font-size: 30px; letter-spacing: -.04em; font-weight: 500; margin: 36px 0 10px; }

@media (max-width: 860px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; }
  .bar .center { display: none; }
  .posters { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .deck-show { grid-template-columns: 1fr; }
  .end .legal { grid-template-columns: 1fr 1fr; }
  .verify { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none !important; }
  .hero-type { position: absolute; top: 20%; left: 0; right: 0; }
  .hero-cta { width: calc(100% - 2 * var(--gutter)); justify-content: center; }
  .hero-cta .btn { padding: 0 16px; font-size: 14px; }
  .pill [data-label] { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- FELTMINT SKIN ---------- */

.table-page { background: #0b0614; }
.table-page .felt::before {
  content: "";
  position: absolute;
  inset: 54px 2.5% 10px;
  border-radius: 999px / 48%;
  background: radial-gradient(ellipse at 50% 35%, #2b1257 0%, #1a0b36 55%, #12082a 100%);
  box-shadow: 0 0 0 14px #08040f, 0 0 0 15px rgba(164, 107, 255, .35), 0 40px 120px rgba(124, 44, 255, .25), inset 0 0 80px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.table-page .felt-print, .table-page .shoe { z-index: 1; }
.table-page .felt-print text { fill: rgba(239, 238, 233, .1); }
.table-page .felt-print path.rule { stroke: rgba(164, 107, 255, .25); }
.tally { background: rgba(8, 4, 15, .7); }
.tally .num {
  background: rgba(164, 107, 255, .2);
  color: var(--paper);
  font-family: var(--grotesk);
  font-weight: 800;
  font-size: 13px;
  text-shadow: none;
}
.tally.top .num { background: var(--violet); color: var(--white); }
.tally.bust .num { background: #ff3b5c; color: var(--white); }
.nameplate { background: rgba(8, 4, 15, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.nameplate .av { background: linear-gradient(135deg, var(--violet), #36c3ff); color: var(--white); }
.nameplate .bt { font-family: var(--grotesk); font-weight: 800; color: var(--violet-2); text-shadow: none; }
.nameplate .clock { background: #ffdb34; }
.seat-slot.me .nameplate { box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .8); }
.seat-slot.turn .nameplate { background: rgba(8, 4, 15, .95); color: var(--paper); box-shadow: inset 0 0 0 1px #ffdb34, 0 0 30px rgba(255, 219, 52, .25); }
.seat-slot.turn .nameplate .av { background: #ffdb34; color: var(--ink); }
.seat-slot.ready .nameplate::after { background: var(--violet); }
.seat-slot.empty .sit { border-color: rgba(164, 107, 255, .35); }
@media (hover: hover) and (pointer: fine) {
  .seat-slot.can-sit .sit:hover { background: rgba(124, 44, 255, .25); border-color: var(--violet-2); }
}
.status { background: rgba(8, 4, 15, .55); }
.status.mine { background: var(--violet); color: var(--white); }
.status.mine .meter { background: rgba(255, 255, 255, .25); }
.status.mine .meter i { background: #ffdb34; }
.stamp { background: var(--paper); color: var(--ink); }
.stamp.bj { background: linear-gradient(120deg, var(--violet), #36c3ff); color: var(--white); }
.stamp.win { background: #7dffb0; color: var(--ink); }
.verdict b { text-shadow: 0 10px 60px rgba(124, 44, 255, .55); }

.chip.c5 { --face: var(--paper); --edge: var(--violet); --text: var(--ink); }
.chip.c25 { --face: #111; --edge: var(--paper); --text: var(--paper); }
.chip.c100 { --face: var(--violet); --edge: var(--paper); --text: var(--white); }
.chip.c500 { --face: #f5d36b; --edge: #111; --text: var(--ink); }

.card.back { background: #0b0614; box-shadow: 0 0 0 1px rgba(164, 107, 255, .35); }
.card.back::before {
  border-color: rgba(164, 107, 255, .7);
  background: radial-gradient(circle at 50% 50%, rgba(164, 107, 255, .8) 0 1.2px, transparent 1.6px) 0 0 / 8px 8px;
}
.card.back::after {
  content: "F";
  font-family: var(--grotesk);
  font-weight: 900;
  letter-spacing: -.06em;
  text-shadow: 0 0 14px rgba(124, 44, 255, .9);
}

@media (hover: hover) and (pointer: fine) {
  .go:hover { background: var(--violet); color: var(--white); }
  .move.primary:hover { background: var(--violet); color: var(--white); }
}
.move:active { background: var(--violet); }
.dock { background: #08040f; }

.verify-page { background: #000; color: var(--paper); }
.verify-page .bar-solid { background: #000; color: var(--paper); border-color: var(--line); }
.verify-page .field label { color: rgba(239, 238, 233, .55); }
.verify-page .field input { background: #151517; border-color: var(--line); color: var(--paper); }
.verify-page .check { background: #0d0d10; border-color: var(--line); color: var(--paper); }
.verify-page .check.ok b { color: #7dffb0; }
.verify-page .check.bad b { color: #ff6b81; }
.verify-page .shoe-grid span { background: #0d0d10; border-color: var(--line); color: var(--paper); }
.verify-page .shoe-grid span.r { color: #ff6b81; }
.verify-page .shoe-grid span.used { background: var(--violet); border-color: var(--violet); color: var(--white); }
.verify-page .shoe-grid span.yours { box-shadow: 0 0 0 2px #ffdb34; }
.verify-page .code { background: #0d0d10; box-shadow: inset 0 0 0 1px var(--line); }
.verify-page .rules th { color: rgba(239, 238, 233, .55); }
.verify-page .rules th, .verify-page .rules td { border-color: var(--line); }
.verify-page .lead, .verify-page ol { color: rgba(239, 238, 233, .85); }
.verify-page code { color: var(--violet-2); }
.verify-page form .btn, .admin .btn { background: var(--violet) !important; border-color: var(--violet) !important; color: var(--white) !important; }
.admin .btn.ghost { background: transparent !important; border-color: rgba(239, 238, 233, .35) !important; color: var(--paper) !important; }
.admin-app { background: #0d0d10; border-color: var(--line); }
.admin-app a { color: var(--violet-2); }
.admin-key input, .admin-actions input { background: #151517; border-color: var(--line); color: var(--paper); }

.sheet { background: #0d0d10; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px rgba(124, 44, 255, .25); }
.sheet .sub, .sheet .entry-price .micro, .sheet .group > .micro { color: rgba(239, 238, 233, .6); }
.sheet .x { border-color: rgba(255, 255, 255, .2); color: var(--paper); }
.sheet .btn { background: var(--violet) !important; border-color: var(--violet) !important; color: var(--white) !important; }
.sheet .btn.ghost { background: transparent !important; border-color: rgba(239, 238, 233, .35) !important; color: var(--paper) !important; }
.sheet .field input { background: #151517; border-color: var(--line); color: var(--paper); }
.sheet .field label { color: rgba(239, 238, 233, .55); }
.wallet-btn { border-color: rgba(255, 255, 255, .1); }
.wallet-btn .chain { color: rgba(239, 238, 233, .5); }
@media (hover: hover) and (pointer: fine) { .wallet-btn:hover { background: #19191d; } }
.entry-status { color: #ffdb34; }

/* ---------- GAMES ---------- */

.games { padding: 92px var(--gutter) 64px; }
.games-head h1 { font-size: clamp(88px, 18vw, 300px); line-height: .82; letter-spacing: -.075em; font-weight: 900; margin: 0 0 16px; }
.games-head .lead { max-width: 46ch; color: rgba(239, 238, 233, .75); font-size: 18px; margin: 0 0 clamp(36px, 6vw, 80px); }
.game-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.game-feature::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(124, 44, 255, .25), transparent);
  pointer-events: none;
}
.game-feature.soon { opacity: .6; }
.game-feature h2 { font-size: clamp(56px, 8vw, 128px); line-height: .86; letter-spacing: -.06em; font-weight: 900; margin: 14px 0 12px; }
.game-feature .lead { max-width: 40ch; color: rgba(239, 238, 233, .75); margin: 0 0 22px; }
.live-tag { background: var(--violet) !important; color: var(--white); }
.gf-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin-bottom: 22px; }
.gf-facts div { display: grid; gap: 4px; }
.gf-facts .micro { color: rgba(239, 238, 233, .55); }
.gf-facts b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.gf-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.gf-side { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; }
.gf-coin { width: min(260px, 70%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); animation: float 8s var(--ease-io) infinite alternate; }
.ticker-row.stack { grid-template-columns: 1fr 1fr; width: 100%; }

@media (max-width: 860px) {
  .game-feature { grid-template-columns: 1fr; }
  .gf-facts { gap: 18px; }
  .gf-facts b { font-size: 20px; }
}

.lobby-head h1, .vault-head h1, .verify h1, .acct h1 { font-weight: 900; letter-spacing: -.075em; }
.poster .big { font-weight: 900; letter-spacing: -.07em; }

.pk-seat.bot .pk-av { background: #19191d; color: var(--violet-2); box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .5); }
.pk-seat.bot .nm::after { content: " · bot"; font-weight: 500; opacity: .6; }

.sfx-block { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: #0d0d10; margin-bottom: 10px; }
.sfx-head { display: flex; justify-content: space-between; align-items: center; }
.sfx-head b { font-size: 15px; }
.sfx-head .link { color: var(--violet-2); }
.sfx-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sfx-opt { height: 34px; padding: 0 14px; border-radius: 999px; background: #19191d; font-size: 13px; font-weight: 600; transition: background-color .15s var(--ease-out), color .15s var(--ease-out), transform .15s var(--ease-out); }
.sfx-opt:active { transform: scale(.96); }
.sfx-opt[aria-pressed="true"] { background: var(--violet); color: var(--white); }
.sfx-opt[disabled] { opacity: .35; }
.sfx-upload { color: rgba(239, 238, 233, .55); text-transform: none; cursor: pointer; }
.sfx-upload span { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }
#sfx-volume { accent-color: var(--violet); width: 100%; }
.acct-tabs { overflow-x: auto; scrollbar-width: none; }
.acct-tabs button { flex: 1 0 auto; padding: 0 12px; }

/* ---------- TABLE V2 ---------- */

:root, :root[data-felt="noir"] {
  --felt-hi: #222226;
  --felt-mid: #141416;
  --felt-lo: #09090a;
  --felt-ink: rgba(239, 238, 233, .34);
  --felt-line: rgba(239, 238, 233, .13);
  --felt-grain: .13;
  --rail: #0b0b0c;
  --rail-edge: #1d1d21;
  --room: #000;
}
:root[data-felt="emerald"] {
  --rail: #141113;
  --rail-edge: #2b2620;
  --felt-hi: #1b6b4f;
  --felt-mid: #0f4433;
  --felt-lo: #072219;
  --felt-ink: rgba(236, 214, 150, .42);
  --felt-line: rgba(236, 214, 150, .22);
  --room: #050a08;
}
:root[data-felt="midnight"] {
  --rail: #0c0816;
  --rail-edge: #2a1d47;
  --felt-hi: #3a1d74;
  --felt-mid: #22104a;
  --felt-lo: #0e0624;
  --felt-ink: rgba(214, 196, 255, .42);
  --felt-line: rgba(214, 196, 255, .2);
  --room: #07040d;
}
:root[data-felt="onyx"] {
  --felt-hi: #2c2c31;
  --felt-mid: #18181b;
  --felt-lo: #08080a;
  --felt-ink: rgba(239, 238, 233, .36);
  --felt-line: rgba(239, 238, 233, .16);
  --room: #030303;
}

.pk-page, .table-page {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 244, 214, .08), transparent 55%),
    var(--room);
}

.pk-felt, .table-page .felt::before {
  background:
    radial-gradient(ellipse 60% 55% at 50% 32%, rgba(255, 250, 230, .13), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>"),
    radial-gradient(ellipse at 50% 42%, var(--felt-hi) 0%, var(--felt-mid) 55%, var(--felt-lo) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .55),
    inset 0 24px 70px rgba(0, 0, 0, .55),
    inset 0 -30px 80px rgba(0, 0, 0, .45),
    0 0 0 3px var(--rail-edge),
    0 0 0 22px var(--rail),
    0 0 0 23px rgba(255, 255, 255, .07),
    0 40px 90px rgba(0, 0, 0, .75);
}
.pk-felt::before {
  content: "";
  position: absolute;
  inset: 13% 9%;
  border-radius: 999px;
  border: 1.5px solid var(--felt-line);
  pointer-events: none;
}
.pk-felt::after, .table-page .felt::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(236, 214, 150, .18);
  pointer-events: none;
}
.pk-felt::after { inset: -14px; }
.table-page .felt::after { inset: 42px max(0px, calc(2.5% - 12px)) -2px; border-radius: 999px / 48%; }
.pk-felt-mark {
  color: var(--felt-ink);
  opacity: .5;
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
.pk-slot { box-shadow: inset 0 0 0 1.5px var(--felt-line); border-radius: 8px; }
.pk-pot { background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

.table-page .felt-print text { fill: var(--felt-ink); }
.table-page .felt-print path.rule { stroke: var(--felt-line); stroke-width: 1.5; }

.slot .card, .pk-cards .card, .pk-slot .card, .shoe .card {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), 0 8px 18px rgba(0, 0, 0, .38), 0 2px 4px rgba(0, 0, 0, .3);
}
.shoe .card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .5); }

.seat-slot .hands::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: calc(var(--cw) * 1.25);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  border: 1.5px solid var(--felt-line);
  pointer-events: none;
}
.seat-slot .hands { position: relative; }
.seat-slot.empty .sit { border: 1.5px solid var(--felt-line); color: var(--felt-ink); background: rgba(0, 0, 0, .12); }
.pk-sit, .pk-open { border: 1.5px solid var(--felt-line); color: var(--felt-ink); background: rgba(0, 0, 0, .15); }

.nameplate, .pk-plate {
  background: linear-gradient(180deg, rgba(28, 28, 32, .96), rgba(10, 10, 12, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 0, 0, .45);
}
.tally { background: rgba(0, 0, 0, .45); }
.status { background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pk-bet { background: rgba(0, 0, 0, .5); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }

.sfx-felts { display: flex; gap: 8px; }
.sfx-felt {
  flex: 1;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: end start;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.sfx-felt:active { transform: scale(.97); }
.sfx-felt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--violet-2); }
.sfx-felt[data-felt="emerald"] { background: radial-gradient(ellipse at 50% 30%, #1b6b4f, #072219); }
.sfx-felt[data-felt="midnight"] { background: radial-gradient(ellipse at 50% 30%, #3a1d74, #0e0624); }
.sfx-felt[data-felt="noir"] { background: radial-gradient(ellipse at 50% 30%, #2a2a2f, #08080a); }
.sfx-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.sfx-toggle input { width: 20px; height: 20px; accent-color: var(--violet); }

@media (max-width: 420px) {
  .bar nav { gap: 8px; }
  .bar nav a[href="vault.html"]:not([aria-current]) { display: none; }
  .bar nav a[href="creators.html"]:not([aria-current]) { display: none; }
  .bar .right { gap: 8px; }
}

/* ---------- SIDE BETS ---------- */

.seat-slot .sides { display: none; gap: 8px; justify-content: center; margin-top: -4px; }
.seat-slot.has-sides .sides { display: flex; }
.side-spot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--felt-line);
  color: var(--felt-ink);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  line-height: 1;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), opacity .25s var(--ease-out);
}
.side-spot i { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.side-spot b { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.side-spot b:empty { display: none; }
.side-spot.on { background: #111; border-color: var(--paper); color: var(--paper); }
.side-spot.target { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(164, 107, 255, .35); }
.side-spot.won { background: #f5d36b; border-color: #f5d36b; color: var(--ink); }
.side-spot.lost { opacity: .35; }
.seat-slot:not(.me) .side-spot { pointer-events: none; }
.seat-slot.me .side-spot { cursor: pointer; }
.seat-slot.me .side-spot:active { transform: scale(.95); }

.rack .targets { display: grid; gap: 4px; margin-right: clamp(4px, 1vw, 14px); }
.rack .targets button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 92px;
  padding: 5px 10px;
  border-radius: 8px;
  color: rgba(239, 238, 233, .7);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
.rack .targets button b { font-variant-numeric: tabular-nums; }
.rack .targets button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.rack .targets button:disabled { opacity: .4; }

.moves { grid-template-columns: repeat(5, 1fr); }
.move.cashout:not([disabled]) b { color: #f5d36b; }
@media (hover: hover) and (pointer: fine) {
  .move.cashout:hover b { color: inherit; }
}
.stamp.cash { background: #f5d36b; color: var(--ink); }

@media (max-width: 860px) {
  .seat-slot:not(.me) .sides { gap: 2px; }
  .seat-slot:not(.me) .side-spot { width: 24px; height: 24px; border-width: 1px; }
  .seat-slot:not(.me) .side-spot i { display: none; }
  .seat-slot:not(.me) .side-spot b { font-size: 8px; }
  .seat-slot:not(.me) .side-spot:not(.on):not(.won) { visibility: hidden; }
  .rack { flex-wrap: wrap; }
  .rack .targets { grid-template-columns: repeat(3, 1fr); width: 100%; margin: 0 0 4px; }
  .rack .targets button { min-width: 0; padding: 8px 10px; }
  .moves { grid-template-columns: repeat(4, 1fr); }
  .move.cashout { grid-column: 1 / -1; order: -1; min-height: 52px; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .move.cashout[disabled] { display: none; }
  .move:nth-child(4) { border-right: 0; }
}

.stale-round #dealer-cards, .stale-round .seat-slot .hands, .stale-round #dealer-tally { opacity: .38; transition: opacity .35s var(--ease-out); }
.stale-round .stamp { opacity: .6; }

/* ---------- CHIP DRAG ---------- */

.seat-slot .hands::before { content: none; }
.seat-slot .hands-wrap { position: relative; display: grid; justify-items: center; }
.seat-slot .hands-wrap > .hands { position: relative; z-index: 1; pointer-events: none; }
.bet-spot {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: calc(var(--cw) * 1.25);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  border: 1.5px solid var(--felt-line);
  display: grid;
  place-items: center;
  transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out), transform .18s var(--ease-out);
  touch-action: none;
}
.seat-slot.empty .bet-spot { display: none; }
.seat-slot.me .bet-spot { cursor: grab; }
.bet-spot.target { border-color: rgba(239, 238, 233, .7); }
.bet-spot .pile { position: relative; width: clamp(34px, 3.4vw, 46px); height: clamp(34px, 3.4vw, 46px); pointer-events: none; }
.bet-spot .pile .chip { --size: clamp(34px, 3.4vw, 46px); position: absolute; left: 0; bottom: 0; translate: 0 calc(var(--k) * -4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .55); }
.bet-spot .pile .chip span { opacity: 0; }
.bet-spot .pile .chip:last-child span { opacity: 1; }
.rack [data-chip], .seat-slot.me .side-spot { touch-action: none; }
.rack [data-chip] { cursor: grab; }
.chip-dragging, .chip-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.drag-ghost { z-index: 90; will-change: transform; box-shadow: 0 10px 0 rgba(0, 0, 0, .35); }
.chip-dragging .seat-slot.me .bet-spot, .chip-dragging .seat-slot.me .side-spot { border-style: dashed; border-color: rgba(239, 238, 233, .55); }
.seat-slot.me .bet-spot.drop-hover, .seat-slot.me .side-spot.drop-hover { border-style: solid; border-color: var(--paper); background: rgba(239, 238, 233, .12); transform: scale(1.06); }
.seat-slot.me .side-spot.drop-hover { translate: none; }
.seat-slot.me .drop-hover.drop-no { border-color: #ff6b81; background: rgba(255, 59, 92, .14); }
.chip-dragging .seat-slot.me .sides { display: flex; }

.table-page .felt-print text.mark { font-weight: 800; fill: var(--felt-ink); opacity: .7; }
.table-page .felt-print text { font-family: var(--grotesk); font-weight: 600; text-transform: uppercase; }
.table-page .felt-print .crest circle { stroke: var(--felt-line); }
.table-page .felt-print .crest text.mark { opacity: .55; }
.table-page .felt-print .crest text.word { font-weight: 700; }
@media (max-width: 860px) {
  .table-page .felt-print { top: 24%; width: 100%; }
  .table-page .felt-print { display: none; }
  .table-page .felt-print path.rule { display: none; }
}

/* ---------- FELT SEAL ---------- */

.felt-seal {
  position: absolute;
  left: 50%;
  top: 31%;
  width: clamp(220px, 40vh, 380px);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  overflow: visible;
}
.felt-seal .ring { fill: none; stroke: var(--felt-line); stroke-width: 2; }
.felt-seal .ring.thin { stroke-width: 1; }
.felt-seal .ring.dots { stroke-width: 2.5; stroke-dasharray: 0 9; stroke-linecap: round; }
.felt-seal .seal-ring { font-family: var(--grotesk); font-weight: 700; font-size: 20px; fill: var(--felt-ink); text-transform: uppercase; }
.felt-seal .seal-mono { font-family: var(--serif); font-weight: 900; font-size: 190px; fill: var(--felt-ink); opacity: .75; }
.felt-seal .seal-spade { fill: var(--felt-ink); opacity: .8; }
.felt-seal .seal-sub { font-family: var(--grotesk); font-weight: 700; font-size: 13px; letter-spacing: .5em; fill: var(--felt-ink); opacity: .8; }
.table-page .felt-print { top: 58%; }
.table-page .felt-print text.serif { font-family: var(--serif); font-weight: 900; text-transform: none; letter-spacing: .02em; }
@media (max-width: 860px) {
  .felt-seal { top: 25%; width: min(62vw, 250px); }
  .move .k { font-size: 9px; line-height: 1.15; }
  .move b { font-size: clamp(17px, 5vw, 24px); }
}
@media (max-width: 520px) {
  .move:not(.cashout) .k { display: none; }
  .move kbd { display: none; }
  .move { padding: 10px 8px; }
}

/* ---------- CARDS V2 ---------- */

.card:not(.back) {
  background-color: #f8f5ec;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 6L6 0' stroke='%23000' stroke-opacity='.035' stroke-width='.8'/></svg>");
}
.card:not(.back)::before {
  content: "";
  position: absolute;
  inset: calc(var(--w) * .035);
  border-radius: calc(var(--w) * .045);
  box-shadow: inset 0 0 0 1px rgba(60, 48, 30, .12);
  pointer-events: none;
}
.card .idx b { font-family: var(--serif); font-weight: 900; letter-spacing: -.04em; }
.card .idx small { font-size: calc(var(--w) * .12); }
.court {
  border: 0;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 55%, transparent), inset 0 0 0 4px #f8f5ec, inset 0 0 0 5px color-mix(in srgb, var(--ink) 30%, transparent);
}
.court-blob { display: none; }
.court-letter { font-size: calc(var(--w) * .46); margin-top: -12%; }
.court-suit { display: none; }
.court-corner { position: absolute; width: 18%; height: auto; opacity: .9; }
.court-corner.tl { top: 8%; left: 9%; }
.court-corner.br { bottom: 8%; right: 9%; transform: rotate(180deg); }
.court-word { bottom: 15%; font-size: calc(var(--w) * .062); letter-spacing: .28em; color: var(--ink); opacity: .7; }

.card.back {
  background-color: #0c0c0f;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><path d='M6 0L12 6L6 12L0 6Z' fill='none' stroke='%23a46bff' stroke-opacity='.28' stroke-width='.8'/><circle cx='6' cy='6' r='.9' fill='%23a46bff' fill-opacity='.35'/></svg>");
  background-size: calc(var(--w) * .11) calc(var(--w) * .11);
  box-shadow: inset 0 0 0 calc(var(--w) * .045) #0c0c0f, inset 0 0 0 calc(var(--w) * .045 + 1px) rgba(164, 107, 255, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.card.back::before {
  inset: 50% auto auto 50%;
  width: calc(var(--w) * .5);
  height: calc(var(--w) * .5);
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(164, 107, 255, .6);
  background: #0c0c0f;
  opacity: 1;
}
.card.back::after {
  content: "F";
  font-family: var(--serif);
  font-weight: 900;
  font-size: calc(var(--w) * .3);
  letter-spacing: 0;
  color: rgba(239, 238, 233, .92);
  text-shadow: none;
}

/* ---------- TABLE PRO ---------- */

.move.best { box-shadow: inset 0 0 0 2px var(--violet-2); }
.move.best::after {
  content: "Best";
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.move.best kbd { visibility: hidden; }
.stat .session { display: block; min-height: 1.2em; margin-top: 2px; color: rgba(239, 238, 233, .6); text-transform: none; letter-spacing: 0; }
.stat .session b { color: var(--paper); font-weight: 700; }
.stat .session b.up { color: #7dffb0; }
.stat .session b.down { color: #ff6b81; }
.stat-links { flex-wrap: wrap; row-gap: 4px; }
#hints-toggle[aria-pressed="true"], #auto-toggle[aria-pressed="true"] { color: var(--violet-2); }
@media (max-width: 520px) {
  .move.best::after { top: 6px; right: 6px; font-size: 8px; padding: 1px 5px; }
}

.pk-seal { top: 50%; width: min(58%, 46vh); opacity: .9; }
.pk-felt .pk-felt-mark { display: none; }
.pk-mine {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  translate: -50% 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .pk-seal { width: min(78%, 34vh); }
  .pk-mine { font-size: 10px; padding: 2px 7px; }
}
.nav-install { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 860px) { .nav-install { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 60; height: 44px; padding: 0 20px; mix-blend-mode: normal; } }

/* ---------- TABLE V4 ---------- */

.rack .targets { display: none; }
.bet-input { display: grid; gap: 4px; margin-right: clamp(4px, 1vw, 14px); }
.bet-input .micro { color: rgba(239, 238, 233, .5); }
.bet-input input {
  width: 128px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(239, 238, 233, .18);
  background: #0d0d10;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: 0;
}
.bet-input input:focus { border-color: var(--violet-2); }
.bet-input input:disabled { opacity: .45; }
.chip.c1000 { --face: #111; --edge: #f5d36b; --text: #f5d36b; }
.rack .tools { display: flex; gap: 8px; margin-left: clamp(4px, 1vw, 14px); }
.rack .tool {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 238, 233, .2);
  color: var(--paper);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.rack .tool svg { width: 18px; height: 18px; }
.rack .tool:active { transform: scale(.92); }
.rack .tool:disabled { opacity: .3; }
@media (hover: hover) and (pointer: fine) { .rack .tool:hover { background: rgba(239, 238, 233, .1); } }

.seat-slot.me .sides { gap: 14px; margin-top: 2px; }
.seat-slot.me .side-spot { width: 66px; height: 66px; border-width: 2px; gap: 2px; }
.seat-slot.me .side-spot i { font-size: 12px; }
.seat-slot.me .side-spot b { font-size: 14px; }
.side-spot small { font-size: 8px; letter-spacing: .02em; opacity: .7; font-weight: 600; }
.seat-slot:not(.me) .side-spot small { display: none; }
.side-spot.on small { display: none; }

.felt-deal {
  position: absolute;
  left: 50%;
  top: 47%;
  translate: -50% -50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 190px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  transition: transform .16s var(--ease-out);
}
.felt-deal b { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; }
.felt-deal .micro { color: rgba(10, 10, 10, .5); }
.felt-deal .micro:empty { display: none; }
.felt-deal:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .felt-deal:hover { background: var(--white); transform: scale(1.03); } }
.can-deal .status { visibility: hidden; }

.verdict b { font-weight: 800; font-variant-numeric: tabular-nums; }
.verdict.up b { color: #7dffb0; }
.verdict.down b { color: #ff6b81; }
.verdict small { font-size: 14px; letter-spacing: .14em; }

@media (max-width: 860px) {
  .seats.seated .seat-slot.empty { display: none; }
  .bet-input { width: 100%; margin: 0 0 6px; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .bet-input input { width: 100%; height: 44px; }
  .rack { flex-wrap: wrap; }
  .rack .chip { --size: 46px; }
  .rack .tools { width: 100%; justify-content: center; margin: 6px 0 0; }
  .seat-slot.me .side-spot { width: 58px; height: 58px; }
  .felt-deal { top: 44%; min-width: 170px; padding: 12px 24px; }
}

.felt-seal .seal-mono { font-family: var(--grotesk); font-weight: 800; font-size: 200px; letter-spacing: -.06em; }
.felt-seal .seal-dot { fill: var(--violet-2); opacity: .55; }
.felt-seal .seal-spade { display: none; }
.card.back::before { border-radius: 28%; }
.card.back::after {
  content: "f";
  font-family: var(--grotesk);
  font-weight: 800;
  font-size: calc(var(--w) * .34);
  letter-spacing: -.06em;
  line-height: 1;
  padding-bottom: calc(var(--w) * .03);
}
.card.back {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><path d='M0 12L12 0' stroke='%23a46bff' stroke-opacity='.3' stroke-width='.9'/></svg>");
}
.table-page .felt-print text.serif { font-family: var(--grotesk); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 28px; }
@media (min-width: 861px) {
  .rack { gap: 10px; padding: 12px 16px; }
  .rack .chip { --size: 50px; }
  .rack .tool { width: 40px; height: 40px; }
  .bet-input input { width: 112px; }
}
@media (max-width: 860px) {
  .can-deal .dock .go { display: none; }
  .can-deal .dock .stat { grid-column: 1 / -1; border-right: 0; }
  .rack { padding: 10px var(--gutter); row-gap: 8px; }
  .bet-input { order: 1; flex: 1 1 0; width: auto; margin: 0; }
  .bet-input .micro { display: none; }
  .rack .tools { order: 2; width: auto; margin: 0; gap: 6px; }
  .rack .chip { order: 3; }
  .fair-strip { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; justify-content: flex-start; }
  .fair-strip > * { flex: none; }
  .dock .stat { padding: 8px var(--gutter); }
  .dock .stat .v { font-size: 26px; }
}
@media (max-width: 860px) {
  .rack { justify-content: space-between; }
  .rack::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .rack .chip { order: 4; }
}

.welcome-sheet .sheet { max-width: 460px; }
.welcome-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.welcome-perks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 15px; }
.welcome-perks li span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(124, 44, 255, .16); color: var(--violet-2); font-weight: 800; }
.welcome-go { width: 100%; height: 54px; font-size: 17px; background: var(--violet); border-color: var(--violet); color: var(--white); }
.welcome-skip { display: block; margin: 14px auto 0; color: rgba(239, 238, 233, .6); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- TABLE V5 · STABLE MOBILE ---------- */

@media (max-width: 860px) {
  html:has(body.table-page), body.table-page { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .table { height: 100svh; min-height: 0; --cw: min(15vw, 9.5svh, 84px); }
  .dock {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 112px 58px;
  }
  .dock > * { grid-column: 1; order: 0 !important; }
  .dock .fair-strip { grid-row: 1; }
  .dock .stat { grid-row: 2; border-right: 0; padding: 8px var(--gutter); grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
  .dock .stat .k { grid-column: 1 / -1; }
  .dock .stat .v { font-size: 24px; }
  .dock .stat .session { align-self: center; }
  .dock .stat-links { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; margin-top: 4px; }
  .dock .stat-links::-webkit-scrollbar { display: none; }
  .dock .rack { grid-row: 3; border-top: 1px solid var(--line); align-content: center; }
  .dock .go { grid-row: 4; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
  .dock .go .k { display: none; }
  .dock .go b { font-size: 22px; letter-spacing: -.03em; }
  .dock .moves { grid-row: 3 / 5; grid-template-rows: auto minmax(0, 1fr); border-top: 1px solid var(--line); }
  .dock .move { min-height: 0; }
  .dock .note { grid-row: 3 / 5; display: grid; align-content: center; padding: 0 var(--gutter); }
  .dock[data-mode="bet"] .note, .dock[data-mode="play"] .note { display: none; }
  .seat-slot .hands { min-height: calc(var(--cw) * 1.48 + 34px); }
  .seat-slot.me .side-spot { width: 52px; height: 52px; }
  .seat-slot.me .side-spot small { display: none; }
  .bet-spot .pile { width: 36px; height: 36px; }
  .bet-spot .pile .chip { --size: 36px; }
  .status { min-height: 44px; }
}
