:root {
  --ink: #071a16;
  --felt: #0d5945;
  --felt-dark: #083c31;
  --acid: #e7ff70;
  --turn-other: #f0a13a;
  --paper: #f2efe6;
  --muted: #66736d;
  --line: rgba(7, 26, 22, .13);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(8, 89, 69, .28); outline-offset: 2px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.045em;
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
}
.eyebrow {
  margin: 0 0 12px;
  color: #607068;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.welcome-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 clamp(22px, 5vw, 76px);
  background:
    radial-gradient(circle at 13% 84%, rgba(14, 89, 69, .09), transparent 31%),
    linear-gradient(100deg, transparent 49.9%, rgba(7, 26, 22, .055) 50%, transparent 50.1%),
    var(--paper);
}
.welcome-shell::before {
  content: "♠";
  position: absolute;
  right: -4vw;
  bottom: -26vh;
  color: rgba(13, 89, 69, .04);
  font-family: Georgia, serif;
  font-size: min(68vw, 860px);
  line-height: 1;
  pointer-events: none;
  transform: rotate(8deg);
}
.welcome-nav {
  position: relative;
  z-index: 1;
  display: flex;
  height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.nav-note {
  color: #68746e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.welcome-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  min-height: calc(100vh - 166px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(54px, 9vw, 130px);
  padding: 52px 0 72px;
}
.hero-copy h1 {
  max-width: 670px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 7.2vw, 112px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .84;
}
.hero-copy h1 em { color: var(--felt); font-weight: 400; }
.hero-lede {
  max-width: 545px;
  margin: 36px 0 30px;
  color: #5f6d66;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 13px 24px; }
.trust-row span { color: #46554e; font-size: 13px; font-weight: 720; }
.entry-card {
  min-height: 520px;
  padding: clamp(28px, 3.5vw, 46px);
  border: 1px solid rgba(7, 26, 22, .11);
  border-radius: 28px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 35px 90px rgba(7, 26, 22, .1), inset 0 1px white;
  backdrop-filter: blur(18px);
}
.card-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.card-heading h2, .section-title h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.step-number {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font: 800 12px ui-monospace, monospace;
}
.form-stack { display: grid; gap: 18px; }
.form-stack label { display: grid; gap: 8px; color: #58655f; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-stack input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(7, 26, 22, .15);
  border-radius: 14px;
  background: rgba(248, 247, 242, .8);
  padding: 0 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.form-stack input:focus { border-color: var(--felt); box-shadow: 0 0 0 4px rgba(13, 89, 69, .08); outline: 0; }
.form-stack input::placeholder { color: #9ba39e; font-weight: 500; }
.form-stack .code-input { font: 800 26px ui-monospace, monospace; letter-spacing: .38em; }
.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 26, 22, .16);
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #123f34; }
.primary-button:disabled { cursor: not-allowed; opacity: .42; }
.divider { display: flex; align-items: center; gap: 12px; margin: 27px 0 20px; color: #8a958f; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.text-button, .back-button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 750; cursor: pointer; }
.text-button { margin: 0 auto; }
.back-button { margin-bottom: 28px; color: #68746e; }
.form-error { margin: -4px 0 0; border-radius: 10px; background: #ffe5df; padding: 10px 12px; color: #982d22; font-size: 12px; line-height: 1.4; }
.stack-presets { display: flex; align-items: center; gap: 7px; margin-top: -7px; color: #7b8781; font-size: 11px; }
.stack-presets button { border: 1px solid var(--line); border-radius: 99px; background: transparent; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.welcome-footer { position: relative; z-index: 1; display: flex; min-height: 70px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #7b8781; font: 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

.table-app { min-height: 100vh; padding: 0 clamp(18px, 4vw, 62px) 80px; background: var(--paper); }
.app-header { display: grid; height: 82px; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand-small { cursor: pointer; }
.brand-small .brand-mark { width: 32px; height: 32px; }
.header-status { display: inline-flex; align-items: center; gap: 7px; color: #597068; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--felt); box-shadow: 0 0 0 4px rgba(13,89,69,.12); }
.code-pill { justify-self: end; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .58); padding: 9px 13px 9px 16px; cursor: pointer; }
.code-pill span { color: #6e7c75; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.code-pill b { font: 800 18px ui-monospace, monospace; letter-spacing: .15em; }
.code-pill i { font-style: normal; }
.mobile-game-heading { display: none; }
.game-heading { display: flex; width: min(1180px, 100%); margin: 0 auto; align-items: end; justify-content: space-between; padding: 44px 0 30px; }
.game-heading .eyebrow { margin-bottom: 7px; }
.game-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(35px, 4vw, 56px); font-weight: 400; letter-spacing: -.05em; }
.phase-track { display: flex; gap: 4px; padding-bottom: 6px; }
.phase-track span { border-radius: 99px; background: rgba(7, 26, 22, .06); padding: 7px 12px; color: #89948f; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.phase-track .phase-on { background: var(--ink); color: var(--acid); }
.toast { position: fixed; z-index: 20; top: 95px; left: 50%; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); border-radius: 12px; padding: 12px 16px; box-shadow: 0 15px 45px rgba(0, 0, 0, .18); font-size: 13px; font-weight: 700; }
.error-toast { background: #ffe3dc; color: #8e2e24; }

.lobby-layout { display: grid; width: min(1120px, 100%); margin: 0 auto; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.join-code-card, .seating-card, .activity-card, .action-dock { border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px rgba(255, 255, 255, .8); }
.join-code-card { display: flex; min-height: 500px; flex-direction: column; align-items: center; justify-content: center; background: var(--felt-dark); color: white; padding: 38px; text-align: center; }
.join-code-card p, .join-code-card > span { margin: 0; color: rgba(255, 255, 255, .59); font-size: 11px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.join-code-card > strong { margin: 9px 0 42px; font-size: 17px; }
.giant-code { display: flex; gap: 9px; margin: 12px 0 36px; }
.giant-code b { display: grid; width: clamp(52px, 6vw, 68px); height: clamp(68px, 8vw, 88px); place-items: center; border: 1px solid rgba(255, 255, 255, .19); border-radius: 13px; background: rgba(255, 255, 255, .08); color: var(--acid); font: 800 clamp(32px, 4vw, 44px) ui-monospace, monospace; }
.lobby-meta { display: flex; gap: 12px; }
.lobby-meta span { border-radius: 99px; background: rgba(255, 255, 255, .09); padding: 9px 12px; color: rgba(255, 255, 255, .74); font-size: 11px; font-weight: 650; }
.seating-card { padding: 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.section-title .eyebrow { margin-bottom: 5px; }
.section-title > span { color: #7c8882; font-size: 11px; font-weight: 700; }
.seat-list { display: grid; gap: 8px; margin: 28px 0; }
.seat-row { display: grid; min-height: 64px; grid-template-columns: 30px 42px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid rgba(7, 26, 22, .08); }
.seat-row p { margin: 0; }
.seat-index { color: #94a099; font: 10px ui-monospace, monospace; }
.avatar, .winner-picker button > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e2e6d7; color: var(--felt-dark); font-size: 11px; font-weight: 850; }
.seat-row strong, .seat-row small { display: block; }
.seat-row strong { font-size: 14px; }
.seat-row small { margin-top: 2px; color: #7b8781; font-size: 10px; }
.seat-arrows { display: flex; gap: 4px; }
.seat-arrows button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.seat-arrows button:disabled { opacity: .25; }
.ready-check { color: var(--felt); }
.start-button { width: 100%; }
.waiting-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 36px 0 8px; color: #65716b; font-size: 12px; font-weight: 700; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--felt); box-shadow: 0 0 0 6px rgba(13, 89, 69, .09); animation: pulse 1.5s infinite; }

.table-stage { position: relative; width: min(1060px, calc(100% - 130px)); min-height: 510px; margin: 8px auto 50px; }
.felt-table { position: absolute; inset: 10% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 9px solid #b0a688; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #17715a, #0c4a3b 68%, #08352c); box-shadow: 0 28px 55px rgba(7, 26, 22, .22), inset 0 0 0 2px rgba(255,255,255,.18), inset 0 0 70px rgba(0,0,0,.25); color: white; }
.felt-table::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: repeating-radial-gradient(circle at 20% 30%, transparent 0 2px, rgba(255,255,255,.2) 3px 4px); background-size: 9px 9px; }
.felt-line { position: absolute; inset: 18px; border: 1px solid rgba(231, 255, 112, .26); border-radius: 50%; }
.pot-display { position: relative; z-index: 1; text-align: center; }
.pot-display span { display: block; margin-bottom: 3px; color: rgba(255,255,255,.64); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.pot-display strong { font-family: Georgia, serif; font-size: 45px; font-weight: 400; letter-spacing: -.04em; }
.pot-display strong::before { content: "◎"; margin-right: 5px; color: var(--acid); font-size: 23px; vertical-align: 8px; }
.board-cards { position: relative; z-index: 1; display: flex; gap: 7px; margin-top: 17px; }
.board-cards span { display: grid; width: 38px; height: 52px; place-items: center; border: 1px dashed rgba(255,255,255,.22); border-radius: 7px; color: rgba(255,255,255,.27); font: 9px ui-monospace, monospace; }
.board-cards .card-revealed { border-style: solid; border-color: white; background: #fffdf5; color: var(--felt-dark); box-shadow: 0 5px 12px rgba(0,0,0,.16); }
.felt-caption { position: relative; z-index: 1; margin: 17px 0 0; color: rgba(255,255,255,.46); font-size: 9px; letter-spacing: .07em; }
.players-ring { position: absolute; inset: 0; }
.player-seat { position: absolute; z-index: 2; left: var(--seat-left); top: var(--seat-top); display: flex; min-width: 132px; align-items: center; gap: 9px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.96); padding: 7px 12px 7px 7px; box-shadow: 0 8px 22px rgba(7,26,22,.11); transition: opacity .2s, box-shadow .2s, transform .2s; }
.player-avatar { position: relative; display: grid; flex: 0 0 37px; height: 37px; place-items: center; border-radius: 50%; background: #dfe4d6; color: var(--felt-dark); font-size: 10px; font-weight: 850; }
.player-avatar i { position: absolute; right: -5px; bottom: -3px; display: grid; width: 17px; height: 17px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--ink); color: var(--acid); font: 8px ui-monospace, monospace; font-style: normal; }
.player-info { min-width: 0; }
.player-info span, .player-info strong { display: block; }
.player-info span { max-width: 82px; overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.player-info strong { margin-top: 2px; color: var(--felt); font-size: 13px; }
.player-info em { margin-left: 5px; color: #76817b; font-size: 7px; font-style: normal; letter-spacing: .08em; }
.player-active { transform: translate(-50%, -50%) scale(1.04); }
.player-active-self { border-color: #b9d62f; background: #f8ffda; box-shadow: 0 0 0 4px var(--acid), 0 10px 28px rgba(7,26,22,.2); }
.player-active-other { border-color: #d98212; background: #fff1da; box-shadow: 0 0 0 4px var(--turn-other), 0 10px 28px rgba(7,26,22,.2); }
.player-active-self .player-avatar { background: var(--acid); }
.player-active-other .player-avatar { background: #ffc76f; }
.turn-badge { position: absolute; top: -13px; left: 50%; z-index: 3; transform: translateX(-50%); border: 2px solid var(--paper); border-radius: 99px; padding: 3px 8px; background: var(--turn-other); color: #281400; font-size: 7px; font-weight: 950; letter-spacing: .08em; white-space: nowrap; }
.player-active-self .turn-badge { background: var(--acid); color: var(--ink); }
.player-folded { opacity: .42; filter: grayscale(.8); }
.table-bet { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); border-radius: 99px; background: var(--ink); color: var(--acid); padding: 3px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }

.action-dock { display: flex; width: min(960px, 100%); min-height: 118px; margin: 0 auto 22px; align-items: center; gap: 32px; padding: 22px 26px; }
.dock-active { border-color: rgba(13, 89, 69, .3); box-shadow: 0 18px 45px rgba(7,26,22,.09), inset 4px 0 var(--acid); }
.dock-your-turn { border-color: #bdd836; background: linear-gradient(100deg, rgba(231,255,112,.2), rgba(255,255,255,.86) 34%); box-shadow: 0 18px 45px rgba(7,26,22,.12), inset 5px 0 var(--acid); }
.dock-your-turn .turn-copy > span { color: #496800; }
.waiting-dock { border-color: rgba(217,130,18,.42); box-shadow: inset 5px 0 var(--turn-other); }
.waiting-dock .turn-copy > span { color: #9a5600; }
.turn-copy { min-width: 175px; }
.turn-copy span, .turn-copy strong, .turn-copy small { display: block; }
.turn-copy > span { color: var(--felt); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.turn-copy strong { margin: 6px 0 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.turn-copy small { color: #75817b; font-size: 10px; }
.action-controls { display: grid; flex: 1; grid-template-columns: auto auto minmax(190px, 1fr) auto; align-items: center; gap: 10px; }
.fold-button, .check-button { height: 48px; border: 1px solid var(--line); border-radius: 12px; background: transparent; padding: 0 17px; font-size: 12px; font-weight: 800; cursor: pointer; }
.fold-button { color: #a04438; }
.check-button span { display: block; color: #8b9691; font-size: 8px; font-weight: 700; }
.fold-button:disabled, .check-button:disabled { cursor: not-allowed; opacity: .35; }
.bet-control { display: grid; gap: 5px; }
.amount-row { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); }
.amount-row > button { height: 46px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.amount-row label { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 7px; }
.amount-row label span { color: #7a8680; font-size: 10px; font-weight: 900; }
.amount-row input { width: 78px; border: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 850; text-align: center; outline: 0; }
.quick-bets { display: flex; justify-content: center; gap: 6px; }
.quick-bets button { border: 0; background: transparent; color: var(--felt); padding: 0; font-size: 8px; font-weight: 850; text-transform: uppercase; cursor: pointer; }
.quick-bets button + button::before { content: "·"; margin-right: 6px; color: #a1aaa6; }
.action-submit { min-width: 116px; }
.waiting-wave { display: flex; flex: 1; justify-content: flex-end; gap: 5px; padding-right: 24px; }
.waiting-wave i { width: 7px; height: 7px; border-radius: 50%; background: var(--turn-other); animation: bounce 1.2s infinite; }
.waiting-wave i:nth-child(2) { animation-delay: .15s; }
.waiting-wave i:nth-child(3) { animation-delay: .3s; }
.showdown-dock { border-color: rgba(13,89,69,.25); }
.winner-picker { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.winner-picker > button:not(.primary-button) { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; background: transparent; padding: 5px 10px 5px 5px; font-size: 11px; font-weight: 750; cursor: pointer; }
.winner-picker button > span { width: 31px; height: 31px; font-size: 9px; }
.winner-picker .winner-on { border-color: var(--felt) !important; background: rgba(13,89,69,.07) !important; }
.winner-picker .primary-button { min-height: 44px; margin-left: 5px; }
.finished-dock { justify-content: center; background: var(--ink); color: white; }
.champion-mark { color: var(--acid); font-size: 28px; }
.finished-dock span, .finished-dock strong { display: block; }
.finished-dock div span { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.finished-dock strong { margin-top: 3px; font-family: Georgia, serif; font-size: 24px; }
.finished-dock small { display: block; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 10px; }
.timeout-dock { border-color: rgba(240,161,58,.55); box-shadow: inset 5px 0 var(--turn-other); }
.timeout-dock .champion-mark { color: var(--turn-other); }
.activity-card { width: min(960px, 100%); margin: 0 auto; padding: 25px 28px; }
.activity-card .section-title h2 { font-size: 22px; }
.ticker-list { display: grid; margin-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 1px 20px; }
.ticker-list > div { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; border-top: 1px solid rgba(7,26,22,.08); padding: 12px 0; }
.ticker-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e4e7dc; color: var(--felt); font-size: 10px; font-weight: 900; }
.ticker-list p { min-width: 0; margin: 0; }
.ticker-list strong, .ticker-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-list strong { font-size: 11px; }
.ticker-list small { margin-top: 2px; color: #7f8a85; font-size: 9px; text-transform: capitalize; }
.ticker-list > div > span:last-child { color: #929c97; font-size: 8px; font-weight: 800; text-transform: uppercase; }

@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(13, 89, 69, 0); } }
@keyframes bounce { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-6px); opacity: 1; } }

@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 45px; padding-top: 62px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .trust-row { justify-content: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .entry-card { width: min(480px, 100%); margin: 0 auto; }
  .welcome-footer { margin-top: 20px; }
  .lobby-layout { grid-template-columns: 1fr; }
  .join-code-card { min-height: 390px; }
  .table-stage { width: calc(100% - 50px); min-height: 460px; }
  .action-dock { align-items: stretch; flex-direction: column; gap: 18px; }
  .action-controls { grid-template-columns: 1fr 1fr; }
  .bet-control { grid-column: 1 / -1; grid-row: 1; }
  .action-submit { grid-column: 1 / -1; }
  .waiting-wave { justify-content: center; padding: 5px 0; }
  .winner-picker { justify-content: flex-start; }
  .ticker-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .welcome-shell { padding: 0 18px; }
  .welcome-nav { height: 78px; }
  .nav-note { display: none; }
  .welcome-grid { min-height: auto; padding: 48px 0 55px; }
  .hero-copy h1 { font-size: clamp(58px, 19vw, 82px); }
  .hero-lede { margin-top: 25px; font-size: 15px; }
  .trust-row { align-items: center; flex-direction: column; }
  .entry-card { min-height: 0; padding: 26px 21px; border-radius: 21px; }
  .welcome-footer { align-items: flex-start; flex-direction: column; gap: 7px; justify-content: center; }
  .table-app { padding: 0 10px 190px; }
  .app-header { height: 82px; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: 43px 28px; align-items: center; gap: 0 7px; padding: 3px 0 5px; }
  .header-status { display: none; }
  .brand-small { grid-column: 1; grid-row: 1; }
  .brand-small .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .brand-small > span:last-child { display: none; }
  .code-pill { grid-column: 3; grid-row: 1; padding: 5px 8px 5px 10px; }
  .code-pill span { display: none; }
  .code-pill b { font-size: 15px; }
  .mobile-game-heading { display: contents; }
  .mobile-hand-title { grid-column: 2; grid-row: 1; min-width: 0; align-self: center; }
  .mobile-hand-title span, .mobile-hand-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-hand-title span { color: #64726b; font-size: 6px; font-weight: 900; letter-spacing: .14em; }
  .mobile-hand-title strong { margin-top: 1px; font-family: Georgia, serif; font-size: 22px; font-weight: 400; letter-spacing: -.04em; line-height: .95; }
  .mobile-game-heading > .phase-track { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; gap: 3px; overflow: visible; margin: 0; padding: 0; }
  .mobile-game-heading > .phase-track span { min-width: 0; flex: 1 1 0; overflow: hidden; padding: 5px 3px; font-size: 7px; text-align: center; text-overflow: clip; }
  .game-heading { display: none; }
  .join-code-card { min-height: 340px; padding: 25px 15px; }
  .join-code-card > strong { margin-bottom: 28px; font-size: 14px; }
  .giant-code { gap: 6px; }
  .giant-code b { width: 51px; height: 68px; font-size: 31px; }
  .seating-card { padding: 25px 18px; }
  .seat-row { grid-template-columns: 25px 39px 1fr auto; }
  .section-title > span { display: none; }
  .table-stage { position: relative; display: block; width: 100%; height: min(88vw, 350px); min-height: 315px; margin: 0 auto 8px; }
  .felt-table { position: absolute; inset: 11% 8% 10%; min-height: 0; border-width: 6px; border-radius: 46% / 50%; }
  .felt-line { inset: 10px; }
  .pot-display span { font-size: 7px; }
  .pot-display strong { font-size: 30px; }
  .pot-display strong::before { font-size: 15px; vertical-align: 5px; }
  .board-cards { gap: 4px; margin-top: 10px; }
  .board-cards span { width: 25px; height: 34px; font-size: 7px; }
  .felt-caption { max-width: 220px; margin-top: 10px; font-size: 7px; text-align: center; }
  .players-ring { position: absolute; inset: 0; display: block; margin: 0; }
  .player-seat { position: absolute; left: var(--seat-left-mobile); top: var(--seat-top-mobile); min-width: 92px; max-width: 108px; gap: 5px; transform: translate(-50%, -50%); padding: 4px 7px 4px 4px; }
  .player-avatar { flex-basis: 27px; height: 27px; font-size: 8px; }
  .player-avatar i { right: -4px; bottom: -4px; width: 14px; height: 14px; border-width: 1px; font-size: 6px; }
  .player-active { transform: translate(-50%, -50%) scale(1.03); }
  .player-active-self { box-shadow: 0 0 0 3px var(--acid), 0 7px 18px rgba(7,26,22,.2); }
  .player-active-other { box-shadow: 0 0 0 3px var(--turn-other), 0 7px 18px rgba(7,26,22,.2); }
  .turn-badge { top: -10px; border-width: 1px; padding: 2px 5px; font-size: 5px; }
  .player-info span { max-width: 66px; font-size: 8px; }
  .player-info strong { margin-top: 1px; font-size: 10px; }
  .player-info em { margin-left: 2px; font-size: 5px; }
  .table-bet { top: calc(100% + 2px); padding: 2px 6px; font-size: 7px; }
  .action-dock { min-height: 82px; border-radius: 18px; padding: 12px 14px; }
  .dock-active, .showdown-dock { position: fixed; z-index: 50; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); left: 10px; width: auto; max-height: 48vh; margin: 0; overflow-y: auto; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 55px rgba(7, 26, 22, .28), inset 3px 0 var(--acid); backdrop-filter: blur(18px); }
  .dock-your-turn { background: linear-gradient(100deg, rgba(231,255,112,.28), rgba(255,255,255,.97) 36%); box-shadow: 0 18px 55px rgba(7,26,22,.28), inset 4px 0 var(--acid); }
  .dock-active { gap: 8px; padding: 11px 12px; }
  .dock-active .turn-copy { min-width: 0; }
  .dock-active .turn-copy strong { margin: 2px 0; font-size: 17px; }
  .dock-active .turn-copy small { font-size: 8px; }
  .action-controls { grid-template-columns: .72fr .82fr 1.2fr; gap: 6px; }
  .bet-control { grid-column: 1 / -1; grid-row: 1; }
  .action-submit { grid-column: 3; grid-row: 2; min-width: 0; min-height: 42px; padding: 0 8px; }
  .fold-button { grid-column: 1; grid-row: 2; }
  .check-button { grid-column: 2; grid-row: 2; }
  .fold-button, .check-button { height: 42px; padding: 0 8px; }
  .amount-row > button { height: 38px; }
  .amount-row input { font-size: 15px; }
  .winner-picker { gap: 5px; }
  .winner-picker > button:not(.primary-button) { padding: 3px 8px 3px 3px; }
  .winner-picker .primary-button { width: 100%; margin: 7px 0 0; }
  .activity-card { padding: 22px 17px; }
  .ticker-list { grid-template-columns: 1fr; }
}

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