:root {
  --bg: #0c0c0e;
  --panel: #16161a;
  --panel2: #1e1e24;
  --line: #2c2c34;
  --text: #ecebe6;
  --muted: #9a99a0;
  --gold: #d4af37;
  --gold2: #f0d478;
  --felt: #0f3d2e;
  --felt2: #0a2c21;
  --red: #e0464b;
  --green: #2fbf71;
  --blue: #3d8bfd;
  --card: #fbfaf6;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold2); }
.hidden { display: none !important; }

/* ---------- landing ---------- */
.landing { max-width: 980px; margin: 0 auto; padding: 32px 16px 60px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 30px; height: 46px; flex: none; }
.brand .logo svg, .topbar .logo svg, .topbar .logo img { display: block; width: 100%; height: 100%; }
.brand h1.brandmark { margin: 0; line-height: 0; }
.brand .lockup { display: block; height: 40px; width: auto; }
@media (max-width: 480px) { .brand .lockup { height: 30px; } }
.tagline { color: var(--muted); margin: 14px 0 4px; font-size: 16px; }
.nosignup { color: var(--gold2); font-size: 14px; margin-bottom: 26px; }
.cards2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.box h2 { margin: 0 0 14px; font-size: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { color: var(--muted); font-size: 13px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
input[type=text], input[type=number], select, textarea {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
  outline: none;
}
input:focus, select:focus { border-color: var(--gold); }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.btn {
  border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 10px 16px; font-weight: 600;
}
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.btn.primary:hover { background: var(--gold2); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.danger { border-color: #5a2326; color: #ffb3b5; }
.btn:disabled { opacity: .45; cursor: default; }
.wide { width: 100%; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.clubpromo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 20px;
  background: linear-gradient(135deg, #1e1a0e, var(--panel)); border: 1px solid #4a3d16; border-radius: var(--radius);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.clubpromo:hover { border-color: var(--gold); }
.clubpromo-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.clubpromo-text b { font-size: 17px; color: var(--gold2); }
.clubpromo-text span { color: var(--muted); font-size: 14px; }
.clubpromo .beta { display: inline-block; font-size: 10px; letter-spacing: 1px; color: #1b1505; background: var(--gold); border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
.clubpromo .btn { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .clubpromo { flex-direction: column; align-items: stretch; text-align: left; } .clubpromo .btn { text-align: center; } }

/* ---------- room layout ---------- */
.room { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 14, .92); z-index: 5;
}
.topbar .logo { width: 21px; height: 32px; flex: none; }
.topbar .info { display: flex; flex-direction: column; min-width: 0; }
.topbar .info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .info > span { font-size: 12px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.badge.gold { color: #1a1406; background: var(--gold); border-color: var(--gold); }
.badge.warn { color: #ffd59a; border-color: #6b4d1c; }

.main { flex: 1; display: flex; min-height: 0; }
.tablewrap { flex: 1; position: relative; min-width: 0; display: flex; flex-direction: column; }
.stage { flex: 1; position: relative; min-height: 0; }
.felt {
  position: absolute; left: 8%; right: 8%; top: 12%; bottom: 14%;
  border-radius: 999px; background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt2) 75%);
  border: 10px solid #2a2114; box-shadow: inset 0 0 0 2px rgba(212, 175, 55, .55), inset 0 0 60px rgba(0, 0, 0, .55), var(--shadow);
}
/* Brand lockup printed on the felt between the pot and the player's own seat, toned down so it never competes with cards, chips or the pot */
.felt .feltbrand {
  position: absolute; left: 50%; bottom: 23%; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none;
}
.felt .feltbrand .wordmark { display: block; width: clamp(110px, 16vw, 190px); height: auto; opacity: .34; }
.center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: 8px; z-index: 2; width: 70%;
}
.pot { font-weight: 700; color: var(--gold2); font-size: 14px; background: rgba(0, 0, 0, .35); padding: 3px 12px; border-radius: 999px; }
.board { display: flex; gap: 6px; min-height: 64px; }
.status { color: var(--muted); font-size: 13px; text-align: center; }
.winner-banner { color: var(--gold2); font-weight: 700; font-size: 14px; text-align: center; }
.center .info { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* cards */
.card {
  width: 44px; height: 62px; border-radius: 6px; background: var(--card); color: #111; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5); user-select: none;
}
.card.new { animation: deal .25s ease-out; }
.card .r { font-size: 20px; line-height: 1; }
.card .s { font-size: 18px; line-height: 1; }
.card.red { color: #d32f2f; }
.four .card.d { color: #1e63d6; }
.four .card.c { color: #188a3e; }
/* Card back: the small-size brand mark on the brand's dark background */
.card.back {
  background: url(/static/brand/mark-small-gold.svg) center / auto 50% no-repeat,
    radial-gradient(120% 90% at 50% 40%, #1b1a20 0%, #0c0c0e 100%);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 2px #0c0c0e, inset 0 0 0 3px rgba(212, 175, 55, .35), 0 2px 6px rgba(0, 0, 0, .5);
}
.card.sm { width: 30px; height: 42px; border-radius: 5px; }
.card.sm .r { font-size: 14px; }
.card.sm .s { font-size: 12px; }
.card.lg { width: 56px; height: 80px; }
.card.lg .r { font-size: 26px; }
.card.lg .s { font-size: 22px; }
.card.dim { opacity: .35; }
@keyframes deal { from { transform: translateY(-8px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* seats */
.seat {
  position: absolute; transform: translate(-50%, -50%); width: 128px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; z-index: 3;
}
.seat .holes { display: flex; gap: 2px; height: 44px; align-items: flex-end; }
.seat .plate {
  width: 100%; background: rgba(18, 18, 22, .94); border: 1px solid var(--line); border-radius: 12px; padding: 5px 8px;
  text-align: center; position: relative;
}
.seat .name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .stack { font-size: 13px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.seat .tags { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; min-height: 4px; }
.seat.actor .plate { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, .45); }
.seat.folded { opacity: .45; }
.seat.me .plate { border-color: #4b6b5c; }
.seat .timer { position: absolute; left: 6px; right: 6px; bottom: 2px; height: 3px; border-radius: 3px; background: #333; overflow: hidden; }
.seat .timer i { display: block; height: 100%; background: var(--gold); transition: width .2s linear; }
.seat .bet {
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(212, 175, 55, .5);
  padding: 1px 8px; border-radius: 999px; position: absolute; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.seat .label { font-size: 11px; color: var(--gold2); }
.seat.empty .plate { background: rgba(18, 18, 22, .55); border-style: dashed; }
.seat.empty button { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 6px; width: 100%; }
.seat.empty button:hover { color: var(--gold2); }
.dealer {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font: 800 11px/22px system-ui;
  text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); z-index: 4;
}
.win-glow .plate { border-color: var(--green) !important; box-shadow: 0 0 0 2px rgba(47, 191, 113, .5); }

/* action bar */
.bar {
  border-top: 1px solid var(--line); background: var(--panel); padding: 10px 12px; display: flex; gap: 12px;
  align-items: center; flex-wrap: wrap; min-height: 74px;
}
.mycards { display: flex; gap: 4px; }
.mylabel { font-size: 12px; color: var(--gold2); }
.actions { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.act { min-width: 92px; padding: 12px 14px; border-radius: 12px; font-weight: 800; border: 1px solid var(--line); background: var(--panel2); }
.act.fold { color: #ffb3b5; border-color: #5a2326; }
.act.call { color: #b9f3d1; border-color: #22553b; }
.act.raise { color: #1a1406; background: var(--gold); border-color: var(--gold); }
.raisebox { display: flex; flex-direction: column; gap: 6px; min-width: 260px; flex: 1; max-width: 420px; }
.raisebox .presets { display: flex; gap: 6px; flex-wrap: wrap; }
.raisebox .presets button { flex: 1; min-width: 52px; }
.raisebox .line { display: flex; gap: 8px; align-items: center; }
.raisebox input[type=range] { flex: 1; accent-color: var(--gold); }
.raisebox input[type=number] { width: 110px; }
.turnhint { color: var(--gold2); font-weight: 700; font-size: 13px; }
.mini { display: flex; gap: 6px; flex-wrap: wrap; }

/* side panel */
.side {
  width: 320px; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0;
}
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; padding: 10px 6px; color: var(--muted); font-weight: 600; position: relative; }
.tabs button.on { color: var(--gold2); box-shadow: inset 0 -2px 0 var(--gold); }
.tabs .dot { position: absolute; top: 6px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pane { flex: 1; overflow: auto; padding: 10px 12px; min-height: 0; }
.chatlist { display: flex; flex-direction: column; gap: 6px; }
.msg { font-size: 14px; word-wrap: break-word; }
.msg b { color: var(--gold2); margin-right: 6px; }
.chatform { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.logline { font-size: 13px; color: var(--muted); padding: 2px 0; }
.logline.hand { color: var(--text); font-weight: 700; margin-top: 8px; }
.logline.win { color: var(--gold2); }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 8px; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.prow .who { min-width: 0; }
.prow .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .who span { font-size: 12px; color: var(--muted); }
.section { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .box { width: min(440px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #2a1d1e; border: 1px solid #6a2b2f;
  color: #ffd6d7; padding: 10px 16px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw;
}
.toast.ok { background: #172a20; border-color: #2c6b48; color: #c9f5dc; }
.banner { background: #3a2c10; color: #ffe3a3; text-align: center; padding: 6px; font-size: 13px; }

/* menu */
.menu { position: absolute; right: 10px; top: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; width: 240px; z-index: 30; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }

/* mobile */
@media (max-width: 900px) {
  .side { position: fixed; right: 0; top: 0; bottom: 0; width: min(360px, 92vw); z-index: 40; box-shadow: var(--shadow); }
  .side.closed { display: none; }
  .felt { left: 4%; right: 4%; top: 10%; bottom: 10%; border-width: 7px; }
  .seat { width: 98px; }
  .seat .name, .seat .stack { font-size: 12px; }
  .card { width: 36px; height: 52px; }
  .card .r { font-size: 17px; }
  .card .s { font-size: 15px; }
  .card.sm { width: 24px; height: 34px; }
  .card.sm .r { font-size: 12px; }
  .card.sm .s { font-size: 10px; }
  .card.lg { width: 48px; height: 68px; }
  .act { min-width: 74px; padding: 11px 10px; }
  .raisebox { min-width: 100%; }
}
@media (min-width: 901px) { .only-mobile { display: none !important; } }
@media (max-width: 900px) and (orientation: portrait) {
  .felt { left: 16%; right: 16%; top: 7%; bottom: 7%; }
}

/* ---------- additions for app.js ---------- */
.boot { display: grid; place-items: center; height: 100vh; color: var(--gold); font: 800 20px/1 Georgia, serif; letter-spacing: .2em; }
.boot img { display: block; width: 180px; height: auto; }
.brand .spacer { flex: 1; }
.brand select { width: auto; padding: 6px 10px; }
/* the language picker with flags */
.lang-pick { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.lang-btn .lang-caret { color: var(--muted); font-size: 11px; }
.flag { width: 21px; height: 14px; border-radius: 2px; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.lang-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 60; min-width: 150px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.lang-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; background: none; border: 0; border-radius: 6px; text-align: left; cursor: pointer; white-space: nowrap; }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: var(--panel2); }
.field .lang-pick .lang-menu { right: auto; left: 0; }
.landing.narrow { max-width: 520px; }
.muted { color: var(--muted); }
.betchip {
  position: absolute; transform: translate(-50%, -50%); z-index: 3; font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(212, 175, 55, .6); padding: 2px 9px; border-radius: 999px;
  white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none;
}
.betchip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 5px; vertical-align: 0; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.betchip.win { color: #c9f5dc; border-color: var(--green); }
.dealer { transform: translate(-50%, -50%); }
.rel { position: relative; }
.pip { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tabs .closex { flex: 0 0 44px; }
.line2 { display: flex; gap: 8px; margin-top: 8px; }
.line2 input { flex: 1; min-width: 0; }
.seat .plate .badge { font-size: 10px; padding: 1px 6px; }
.seat .tags { margin-top: 2px; }
.center .btn.primary { margin-top: 4px; }
.mini .btn { white-space: nowrap; }
.prow .mini { flex-shrink: 0; }
.prow { flex-wrap: wrap; }
.side .pane .btn.wide { margin-bottom: 4px; }
.modal .box .mini { margin-top: 12px; }
.topbar .btn.small { padding: 6px 9px; }
#toasts .toast { animation: deal .2s ease-out; }
@media (max-width: 900px) {
  .seat.many { width: 84px; }
  .seat.many .plate { padding: 4px 5px; }
  .topbar .info > span { display: none; }
  .bar { padding: 8px; gap: 8px; }
  .mycards .card.lg { width: 40px; height: 58px; }
  .mycards .card.lg .r { font-size: 19px; }
  .mycards .card.lg .s { font-size: 16px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .board .card { width: 30px; height: 44px; }
  .board .card .r { font-size: 15px; }
  .board .card .s { font-size: 13px; }
  .board { gap: 4px; min-height: 44px; }
  .felt .feltbrand { bottom: 33%; }
  .felt .feltbrand .wordmark { width: clamp(90px, 26vw, 130px); }
}
.chatform input { flex: 1; min-width: 0; }
.chatform .btn { white-space: nowrap; flex-shrink: 0; }

/* action bar: my cards + hint on the left, buttons on the right; stacked on phones */
.mine { display: flex; align-items: center; gap: 10px; min-width: 0; }
.actions.turn .raisebox { order: 1; }
.actions.turn .act.raise { order: 2; }
@media (min-width: 901px) { .hide-d { display: none !important; } }
@media (max-width: 900px) {
  .hide-m { display: none !important; }
  .bar { flex-direction: column; align-items: stretch; }
  .bar .mine { justify-content: flex-start; }
  .bar .mine:empty { display: none; }
  .actions { justify-content: flex-start; }
  .actions .mini { width: 100%; }
  .actions .mini .btn { flex: 1 1 auto; }
  .actions.turn .act { flex: 1 1 0; min-width: 0; padding: 12px 6px; }
  .actions.turn .act.raise { order: 1; }
  .actions.turn .raisebox { order: 2; flex: 1 1 100%; max-width: none; min-width: 0; }
  .raisebox .presets button { min-width: 0; padding: 7px 4px; font-size: 12px; }
  .raisebox input[type=number] { width: 92px; }
}
@media (max-width: 900px) {
  .actions.turn .act { font-size: 14px; }
}
.menu .note { margin: 2px 2px 0; font-size: 12px; }
.brand { margin-bottom: 12px; }
.reqpill {
  position: absolute; left: 12px; top: 10px; z-index: 6; background: var(--gold); color: #1a1406; border: 0;
  border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13px; box-shadow: var(--shadow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); } 50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); } }
/* very short screens (phones held sideways): keep the felt clear for cards, chips and the pot */
@media (max-height: 520px) { .felt .feltbrand { display: none; } }

/* play options (the mushroom pool, the squid game) in the create and settings forms */
.opts { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 14px; }
.opts summary { cursor: pointer; color: var(--gold2); font-weight: 700; font-size: 14px; padding: 2px 0; }
.opts[open] summary { margin-bottom: 10px; }
.opts .note { margin: 0 0 10px; }
.opts .check { margin: 0 0 10px; }
[data-when][hidden] { display: none !important; }
.field .note { margin-top: 2px; }
/* over the pot: the mushroom pool and the squid round; after a hand, what they gave */
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pill { font-size: 13px; font-weight: 700; color: var(--gold2); background: rgba(0, 0, 0, .35); padding: 2px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.extra-banner { color: #e8d9a8; font-weight: 600; font-size: 13px; text-align: center; }
.badge.sq { color: var(--gold2); border-color: rgba(212, 175, 55, .5); }
.msg.sys { color: var(--muted); font-size: 13px; }
/* five hole cards (PLO5) overlap a little to fit the seat */
.seat .holes.c5 .card + .card { margin-left: -12px; }
@media (max-width: 900px) {
  .seat .holes.c5 .card + .card { margin-left: -11px; }
  .pill { font-size: 12px; padding: 2px 8px; }
  .extra-banner { font-size: 12px; }
}
@media (max-height: 520px) {
  .pill { font-size: 11px; padding: 1px 7px; }
  .extra-banner { font-size: 11px; }
}

/* ==== the 3D look (round 19, as on the club): the page a dark room lit from above, keys that press down, raised
   boxes, fields sunk in; the table with a padded wooden rail round its felt and its shadow on the floor ==== */
body {
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(255, 236, 190, .085) 0%, rgba(255, 236, 190, 0) 62%),
    radial-gradient(1400px 900px at 50% 30%, #17171d 0%, #0d0d11 58%, #060608 100%);
  background-color: #08080a;
}
.btn {
  --d: 3px; --base: #0b0b0f; --hi: .13; --glow: rgba(0, 0, 0, .42);
  background: linear-gradient(180deg, #383843 0%, #25252d 100%); border-color: #101015;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--hi)), 0 var(--d) 0 var(--base), 0 calc(var(--d) * 2) calc(var(--d) * 4) var(--glow);
  transition: transform .08s, box-shadow .08s;
}
.btn.small { --d: 2px; }
.btn:active:not(:disabled) { transform: translateY(2px); --d: 1px; }
.btn:disabled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.btn.primary { --base: #6a500f; --hi: .5; --glow: rgba(212, 175, 55, .22); border-color: #8b6b18;
  background: linear-gradient(180deg, #f5da7b 0%, #d8b343 52%, #b38d27 100%); }
.btn.primary:hover { background: linear-gradient(180deg, #f8e294 0%, #dfbd52 52%, #bb952c 100%); }
.btn.danger { --base: #3a1113; }
.box { border-color: rgba(255, 255, 255, .055); background: linear-gradient(180deg, #1f1f27 0%, #15151b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .075), 0 2px 4px rgba(0, 0, 0, .45), 0 14px 28px rgba(0, 0, 0, .5); }
.clubpromo { background: linear-gradient(135deg, #2a2412, #17151c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .45), 0 14px 28px rgba(0, 0, 0, .5); }
input[type=text], input[type=number], select, textarea { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .05); }
.topbar { box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.bar { box-shadow: 0 -10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05); }
/* the table */
.felt { border: 0; background: radial-gradient(ellipse at 50% 38%, #1b7a57 0%, #11503b 48%, #0a2e22 100%);
  box-shadow: inset 0 0 0 3px rgba(212, 175, 55, .5), inset 0 0 70px rgba(0, 0, 0, .55); }
.felt::before {                            /* the rail: padded, lit from above, the table's shadow under it */
  content: ''; position: absolute; inset: -15px; border-radius: 999px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #5b3d1f 0%, #3a2612 42%, #1d1209 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .2), inset 0 -3px 6px rgba(0, 0, 0, .6), 0 0 0 2px #120b05, 0 26px 46px rgba(0, 0, 0, .72);
}
.seat .plate { background: linear-gradient(180deg, #2a2a33, #17171d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .55); }
.card { box-shadow: 0 1px 0 #d9d4c2, 0 2px 0 #b6af9a, 0 6px 10px rgba(0, 0, 0, .5); }
.card.back { box-shadow: inset 0 0 0 2px #0c0c0e, inset 0 0 0 3px rgba(212, 175, 55, .35), 0 2px 0 #6b5216, 0 6px 10px rgba(0, 0, 0, .5); }
.dealer { box-shadow: 0 2px 0 #9a9a9a, 0 3px 0 #6d6d6d, 0 5px 8px rgba(0, 0, 0, .6); }
.pot { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 10px rgba(0, 0, 0, .4); }

/* ---- the 3D table (static/t3host.js with the club's table3d.js): a canvas in the table's box draws the table, the
   cards, the chips and the button; the seats (their name plates) sit on its rail, the pot's amount by its chips, the
   pools over it and what is said under the board; the flat felt, cards, bets and button go ---- */
.t3-canvas, .t3-labels { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.stage.t3 .t3-canvas, .stage.t3 .t3-labels { display: block; }
.t3-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; display: none; }
.stage.t3 .t3-fx { display: block; }
.stage.t3 .felt, .stage.t3 .seat .holes, .stage.t3 .betchip, .stage.t3 .dealer { display: none; }
.stage.t3 .seat { width: 120px; }
.stage.t3 .seat .plate { padding: 4px 8px 6px; }
.stage.t3 .center { left: 0; top: 0; right: 0; bottom: 0; transform: none; width: auto; display: block; pointer-events: none; }
.stage.t3 .center .board { display: none; }
.stage.t3 .center .pot { position: absolute; transform: translate(0, -50%); white-space: nowrap; pointer-events: auto; }
.stage.t3 .center .pills { position: absolute; left: 50%; top: var(--t3-over, 30%); transform: translate(-50%, -100%); pointer-events: auto; }
.stage.t3 .center .info { position: absolute; left: 50%; top: var(--t3-under, 62%); transform: translateX(-50%); width: min(70%, 420px); pointer-events: auto; }
.stage.t3 .center .info .winner-banner, .stage.t3 .center .info .extra-banner, .stage.t3 .center .info .status {
  padding: 3px 12px; border-radius: 10px; background: rgba(12, 12, 16, .86); border: 1px solid rgba(212, 175, 55, .28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.t3-lbl { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 1px 8px; border-radius: 10px;
  background: rgba(8, 8, 12, .72); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
.t3-lbl.side { transform: translate(0, -50%); }
/* a winner's "+amount": rises over the seat and fades */
.t3-win { position: absolute; transform: translate(-50%, 0); white-space: nowrap; font-weight: 900; font-size: 22px; color: #ffe08a;
  text-shadow: 0 2px 0 #6b4d0e, 0 0 14px rgba(255, 196, 64, .75), 0 4px 10px rgba(0, 0, 0, .7); animation: t3-rise 2.1s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes t3-rise { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.6); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1.18); }
  24% { transform: translate(-50%, -4px) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }
@media (max-width: 900px) {
  .stage.t3 .seat, .stage.t3 .seat.many { width: 86px; }
  .stage.t3 .seat .plate { padding: 3px 4px 5px; }
  .t3-lbl { font-size: 11px; padding: 0 6px; }
  .t3-win { font-size: 18px; }
}
