:root {
  --slot: 60px;
  --bg: #0d1f17;
  --felt: #1d6b45;
  --felt-dark: #145236;
  --rim: #4a2f1c;
  --gold: #e8c264;
  --text: #f1f5f2;
  --muted: #9fb8aa;
  --red: #d33b3b;
  --panel: #13291f;
  --line: rgba(255,255,255,.1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: radial-gradient(ellipse at top, #16352a, var(--bg) 70%); }
body { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }

.screen { position: fixed; inset: 0; display: flex; overflow-y: auto; padding: 16px 0; }
.screen > .panel { margin: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: min(440px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.logo { margin: 0 0 6px; font-size: 34px; letter-spacing: .5px; text-align: center; }
.logo .suit { color: var(--gold); }
.logo.small { font-size: 17px; font-weight: 700; text-align: left; margin: 0; }
.tagline { color: var(--muted); text-align: center; margin: 0 0 24px; }
.field { display: block; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.field input { display: block; width: 100%; margin-top: 6px; }
input, select { background: #0b1a13; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; }
input:focus, select:focus { border-color: var(--gold); }
.home-actions { display: flex; flex-direction: column; gap: 12px; }
.or { text-align: center; color: var(--muted); font-size: 13px; }
.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1; text-transform: uppercase; letter-spacing: 6px; text-align: center; font-weight: 700; }
.error { color: #ff8f8f; text-align: center; margin: 16px 0 0; font-size: 14px; }

.btn { background: #24453a; border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: #2c5547; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--gold); color: #1c1606; border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: #f1d07e; }
.btn.big { padding: 13px 18px; font-size: 16px; }
.btn.link { background: none; border: none; color: var(--muted); display: block; margin: 14px auto 0; }
.btn.icon { padding: 6px 10px; }
.btn.danger { background: #6b2323; }
.btn.danger:hover { background: #823030; }

.lobby-panel h2 { margin: 0 0 14px; text-align: center; }
.lobby-panel h3 { margin: 22px 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.code { color: var(--gold); letter-spacing: 4px; }
.code-box { text-align: center; background: #0b1a13; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 8px; }
.code-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.big-code { font-size: 52px; font-weight: 800; letter-spacing: 12px; margin: 4px 0 10px; padding-left: 12px; user-select: all; }
.share { display: flex; gap: 8px; margin-top: 14px; }
.share input { flex: 1; font-size: 13px; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
#lobby-players { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#lobby-players li { background: #0b1a13; border-radius: 8px; padding: 8px 12px; font-size: 14px; display: flex; justify-content: space-between; }
#lobby-players .tag { color: var(--gold); font-size: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; font-size: 15px; }
.row.check { justify-content: flex-start; gap: 10px; cursor: pointer; }
.row.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.muted { color: var(--muted); }
.center { text-align: center; }
#btn-start { width: 100%; margin-top: 16px; }

/* ---------- game ---------- */
#game { flex-direction: column; justify-content: flex-start; padding: 0; overflow: hidden; }
.topbar { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; }
.topbar .info { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.top-actions { display: flex; gap: 8px; }
.topbar { position: relative; z-index: 5; }
/* Room above/below the oval is reserved for the top & bottom seats so nothing spills into the header or the buttons. */
.table-wrap { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 78px 120px 84px; }
.table { position: relative; width: min(100%, calc((100vh - 330px) * 2)); min-width: 520px; aspect-ratio: 2 / 1; max-width: 1000px; }
.felt { position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(ellipse at center, var(--felt) 40%, var(--felt-dark) 100%);
  border: 14px solid var(--rim); box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 12px 40px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.felt .center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pot { font-weight: 700; color: var(--gold); min-height: 22px; font-size: 17px; }
.board { display: flex; gap: 8px; min-height: 76px; }
.banner { min-height: 22px; font-size: 15px; text-align: center; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

.card { width: 52px; height: 74px; border-radius: 6px; background: #fdfdfb; color: #1b1b1b; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.4); font-weight: 700; line-height: 1; user-select: none; }
.card.new { animation: pop .25s ease-out; }
.card .r { font-size: 22px; }
.card .s { font-size: 22px; margin-top: 2px; }
.card.red { color: var(--red); }
.card.back { background: repeating-linear-gradient(45deg, #8c2a2a 0 6px, #a33636 6px 12px); border: 3px solid #fff; }
.card.slot { background: rgba(0,0,0,.15); box-shadow: none; border: 1px dashed rgba(255,255,255,.12); animation: none; }
.card.ghost { opacity: .3; animation: none; }
.card.peek { outline: 1px dashed rgba(232,194,100,.5); }
.card.dim { filter: brightness(.55); }
.card.win { box-shadow: 0 0 0 3px var(--gold), 0 2px 6px rgba(0,0,0,.4); }
/* dealer-style board animation */
.card.deal { position: relative; animation-fill-mode: both; }
.card.flop { --fd: calc(var(--e) + .6s + var(--i) * .22s); z-index: calc(3 - var(--i));
  animation: flop-spread .5s cubic-bezier(.2,.75,.25,1) both, flip .34s ease-in-out both;
  animation-delay: calc(var(--e) + .12s), var(--fd); }
.card.single { --fd: calc(var(--e) + .38s);
  animation: drop .32s ease-out both, flip .34s ease-in-out both;
  animation-delay: var(--e), var(--fd); }
.card.deal::after { content: ''; position: absolute; inset: 0; border-radius: 6px;
  background: repeating-linear-gradient(45deg, #8c2a2a 0 6px, #a33636 6px 12px); border: 3px solid #fff;
  animation: show-back .34s step-end both; animation-delay: var(--fd); }
@keyframes flop-spread { 0% { translate: calc(var(--i) * -1 * var(--slot)) -18px; opacity: 0; }
                         15% { translate: calc(var(--i) * -1 * var(--slot)) 0; opacity: 1; }
                         100% { translate: 0 0; opacity: 1; } }
@keyframes drop { from { translate: 0 -26px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes flip { 0% { scale: 1 1; } 50% { scale: 0 1; } 100% { scale: 1 1; } }
@keyframes show-back { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
/* new hand: hole cards fly from the middle of the table, round-robin; yours flip face-up after landing */
.card.dealt { animation: deal-in .38s cubic-bezier(.2,.75,.3,1) both; animation-delay: var(--dd); }
.card.dealt.mine { position: relative; animation: deal-in .38s cubic-bezier(.2,.75,.3,1) both, flip .3s ease-in-out both;
  animation-delay: var(--dd), var(--fd); }
.card.dealt.mine::after { content: ''; position: absolute; inset: 0; border-radius: 6px;
  background: repeating-linear-gradient(45deg, #8c2a2a 0 6px, #a33636 6px 12px); border: 3px solid #fff;
  animation: show-back .3s step-end both; animation-delay: var(--fd); }
@keyframes deal-in { 0% { translate: var(--dx) var(--dy); rotate: -30deg; opacity: 0; }
                     15% { opacity: 1; }
                     100% { translate: 0 0; rotate: 0deg; opacity: 1; } }
/* end of hand: sweep everything into the middle */
.table.wipe .seat .card { animation: sweep-seat .38s ease-in forwards !important; }
.table.wipe .board .card:not(.slot) { animation: sweep-board .38s ease-in forwards !important; }
.table.wipe .bet, .table.wipe .pot, .table.wipe .banner { opacity: 0; transition: opacity .25s; }
@keyframes sweep-seat { to { translate: var(--dx) var(--dy); rotate: 20deg; opacity: 0; scale: .7; } }
@keyframes sweep-board { to { translate: calc((2 - var(--i)) * var(--slot)) 0; opacity: 0; scale: .8; } }
.newhand { display: inline-block; color: var(--gold); font-size: 18px; letter-spacing: 1px; animation: newhand 1.6s ease-out both; }
@keyframes newhand { 0% { opacity: 0; scale: .8; } 15% { opacity: 1; scale: 1.05; } 25% { scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 130px; }
.seat .cards { display: flex; gap: 3px; height: 60px; margin-bottom: -10px; z-index: 1; }
.seat .cards .card { width: 42px; height: 60px; }
.seat .cards .card .r, .seat .cards .card .s { font-size: 17px; }
.seat.me .cards { height: 74px; }
.seat.me .cards .card { width: 52px; height: 74px; }
.seat.me .cards .card .r, .seat.me .cards .card .s { font-size: 22px; }
.plate { position: relative; z-index: 2; background: #0e1d16; border: 2px solid #2b4a3d; border-radius: 12px; padding: 6px 10px; min-width: 116px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.plate .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate .chips { font-size: 13px; color: var(--gold); }
.seat.turn .plate { border-color: var(--gold); box-shadow: 0 0 18px rgba(232,194,100,.45); }
.seat.folded { opacity: .55; }
.seat.out { opacity: .3; }
.seat.winner .plate { border-color: var(--gold); background: #2d2610; }
.tag-action { margin-top: 4px; font-size: 12px; color: var(--muted); min-height: 15px; white-space: nowrap; }
.tag-action.hand { color: var(--gold); }
.timer { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--gold); }
.dealer { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.bet { position: absolute; transform: translate(-50%, -50%); background: rgba(0,0,0,.35); border-radius: 999px; padding: 3px 10px 3px 6px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px dashed #fff8; }

.actions { width: 100%; min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px 20px; flex-wrap: wrap; }
.actions .btn { min-width: 110px; padding: 12px 16px; font-size: 15px; font-weight: 600; }
.actions .waiting { color: var(--muted); }
.raise-box { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); padding: 6px 10px; border-radius: 12px; }
.raise-box input[type=range] { width: 160px; accent-color: var(--gold); padding: 0; }
.raise-box input[type=number] { width: 90px; padding: 8px; }
.raise-box .btn { min-width: 0; padding: 7px 10px; font-size: 13px; font-weight: 500; }

.overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 20; }
.overlay .panel { text-align: center; }
.overlay h2 { font-size: 30px; margin: 0 0 10px; }

/* secret */
.palm { position: fixed; left: 0; bottom: 0; width: 14px; height: 14px; z-index: 40; cursor: default; background: transparent; }
.vip { position: fixed; left: 14px; bottom: 14px; z-index: 50; background: rgba(8,12,10,.94); border: 1px solid #333; border-radius: 12px; padding: 12px; width: 220px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.vip .title { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.vip .btn { width: 100%; margin: 3px 0; padding: 7px 10px; font-size: 13px; text-align: left; }
.vip .btn.on { background: #4b3d12; border-color: var(--gold); }
.vip .msg { color: var(--gold); min-height: 16px; margin-top: 6px; }
.vip .row2 { display: flex; gap: 6px; }
.vip .row2 .btn { text-align: center; }

/* shorter screens (laptops): shrink cards a bit */
@media (max-height: 780px) {
  .card { width: 44px; height: 62px; }
  .card .r, .card .s { font-size: 18px; }
  .board { min-height: 62px; gap: 6px; }
  :root { --slot: 50px; }
  .seat .cards { height: 52px; }
  .seat .cards .card { width: 36px; height: 52px; }
  .seat .cards .card .r, .seat .cards .card .s { font-size: 15px; }
  .seat.me .cards { height: 62px; }
  .seat.me .cards .card { width: 44px; height: 62px; }
  .seat.me .cards .card .r, .seat.me .cards .card .s { font-size: 18px; }
  .plate { padding: 4px 10px; }
  .table-wrap { padding: 66px 110px 74px; }
  .table { width: min(100%, calc((100vh - 300px) * 2)); }
  .actions { min-height: 76px; padding: 8px 18px 14px; }
}

.reconnect { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; background: #5a3d0c; border: 1px solid var(--gold);
  color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.spin { width: 14px; height: 14px; border: 2px solid #fff4; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.bot-setup { background: #0b1a13; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; }
.bot-setup .btn.primary { width: 100%; margin-top: 8px; }
.seg { display: flex; background: #13291f; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: none; padding: 7px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--gold); color: #1c1606; font-weight: 700; }
.plate .botmark { font-size: 11px; margin-right: 3px; opacity: .8; }

/* live stats */
.online { position: fixed; top: 14px; right: 18px; z-index: 30; background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.online b { color: var(--text); }
.online i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
body:has(#game:not([hidden])) .online { display: none; }
.home-wrap { margin: auto; display: flex; gap: 20px; align-items: flex-start; justify-content: center; flex-wrap: wrap; padding: 0 12px; }
.board-panel { width: min(320px, 92vw); padding: 24px; }
.board-panel h3 { margin: 0 0 12px; font-size: 17px; }
#leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#leaders li { display: flex; align-items: center; gap: 10px; background: #0b1a13; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
#leaders .rank { width: 24px; text-align: center; color: var(--muted); }
#leaders .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#leaders .wins { color: var(--gold); font-size: 13px; }
#leaders li.empty { color: var(--muted); justify-content: center; }

/* ================= Poker Party theme (pokerparty.win): simple and muted ================= */
body.party {
  --bg: #121016;
  --felt: #3f3450;
  --felt-dark: #2e2640;
  --rim: #1b1722;
  --gold: #d9768d;          /* the one accent: soft rose */
  --text: #ece8f0;
  --muted: #9a93a6;
  --panel: #1b1820;
  --line: rgba(255,255,255,.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html:has(body.party), body.party { background: var(--bg); }
body.party:not(.branded) .screen { visibility: hidden; } /* avoid a flash of the other site's wording */

/* logo: one color, only the suit uses the accent */
body.party .logo { letter-spacing: 0; font-weight: 700; }
body.party .logo .suit { color: var(--gold); }
body.party .logo #logo-word { color: inherit; }

/* flat panels, inputs, buttons */
body.party .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
body.party input, body.party select, body.party #lobby-players li, body.party #leaders li,
body.party .code-box, body.party .bot-setup { background: #151219; border-radius: 6px; }
body.party .btn { background: #26222d; border-radius: 6px; }
body.party .btn:hover { background: #2f2a37; }
body.party .btn.primary, body.party .seg button.on { background: var(--gold); color: #1a1216; }
body.party .btn.primary:hover { background: #e2899d; }
body.party .btn.danger { background: #4a2a33; }
body.party .btn.link { background: none; }
body.party .seg { background: #151219; border-radius: 6px; }
body.party .code { color: var(--text); }
body.party #lobby-players .tag, body.party #leaders .wins { color: var(--muted); }

/* table */
body.party .felt { border-color: var(--rim); background: radial-gradient(ellipse at center, var(--felt) 45%, var(--felt-dark) 100%);
  box-shadow: inset 0 0 30px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.45); }
body.party .pot { color: var(--text); }
body.party .plate { background: #17141c; border: 1px solid #332c3d; border-radius: 8px; box-shadow: none; }
body.party .plate .chips { color: var(--muted); }
body.party .seat.turn .plate { border-color: var(--gold); box-shadow: none; }
body.party .seat.winner .plate { background: #2a1f26; border-color: var(--gold); }
body.party .chip { background: var(--gold); }
body.party .timer i { background: var(--gold); }
body.party .card { border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
body.party .card.back, body.party .card.deal::after, body.party .card.dealt.mine::after {
  background: repeating-linear-gradient(45deg, #4b3d5e 0 5px, #57486b 5px 10px); border-color: #e9e4ee; }
body.party .card.win { box-shadow: 0 0 0 2px var(--gold); }
body.party .newhand { color: var(--muted); }
body.party .vip .btn.on { background: #3a2a32; }
body.party .online { background: transparent; border-color: var(--line); }
body.party .online i { background: #6fbf8a; box-shadow: none; animation: none; }

/* a very faint table behind the home & lobby screens */
body.party #home::before, body.party #lobby::before {
  content: ''; position: fixed; left: 50%; top: 56%; z-index: 0; pointer-events: none;
  width: min(1400px, 130vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%) perspective(1200px) rotateX(40deg);
  border-radius: 999px; border: 26px solid #1c1823; background: #2a2335; opacity: .5;
}
body.party .home-wrap, body.party .lobby-panel { position: relative; z-index: 1; }

/* home: regular vertical form, plain leaderboard on the side */
body.party .home-actions .or { color: var(--muted); }
body.party #btn-bots { background: transparent; border: 1px solid var(--line); color: var(--text); }
body.party #btn-bots:hover { background: #1f1b25; }
body.party .board-panel h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
body.party .board-panel .sub { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
body.party #leaders .rank { color: var(--muted); font-variant-numeric: tabular-nums; }
body.party .join-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
body.party .plate .botmark { font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; margin-right: 4px; vertical-align: 1px; }

/* Poker Party, duller pass: greyed colors + a line-drawn table etched faintly into the background */
body.party {
  --bg: #141316;
  --felt: #3a3540;
  --felt-dark: #2b2730;
  --rim: #1c1a1f;
  --gold: #a5838c;          /* dusty mauve, low saturation */
  --text: #e6e3e8;
  --muted: #8f8a94;
  --panel: #1b1a1e;
}
body.party .btn.primary, body.party .seg button.on { background: #a5838c; color: #17141a; }
body.party .btn.primary:hover { background: #b3949c; }
body.party .card.back, body.party .card.deal::after, body.party .card.dealt.mine::after {
  background: repeating-linear-gradient(45deg, #4a4550 0 5px, #55505c 5px 10px); }
body.party #home::before, body.party #lobby::before {
  content: ''; position: fixed; inset: 0; transform: none; border: 0; border-radius: 0; opacity: .07;
  width: auto; aspect-ratio: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 640'%3E%3Cellipse cx='600' cy='320' rx='540' ry='250' stroke='%23ffffff' fill='none' stroke-width='3'/%3E%3Cellipse cx='600' cy='320' rx='505' ry='218' stroke='%23ffffff' fill='none' stroke-width='1.5'/%3E%3Cellipse cx='600' cy='320' rx='470' ry='188' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='600' cy='320' rx='330' ry='118' stroke='%23ffffff' fill='none' stroke-width='1' stroke-dasharray='6 8'/%3E%3Crect x='450' y='280' width='52' height='74' rx='5' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Crect x='512' y='280' width='52' height='74' rx='5' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Crect x='574' y='280' width='52' height='74' rx='5' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Crect x='636' y='280' width='52' height='74' rx='5' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Crect x='698' y='280' width='52' height='74' rx='5' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Ccircle cx='750' cy='412' r='14' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Ctext x='750' y='417' font-family='Georgia%2Cserif' font-size='13' text-anchor='middle' fill='%23ffffff'%3ED%3C/text%3E%3Ccircle cx='600' cy='612' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='600' cy='485' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='600' cy='480' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='600' cy='475' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Ccircle cx='186' cy='526' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Ccircle cx='15' cy='320' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='200' cy='320' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='200' cy='315' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='200' cy='310' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Ccircle cx='186' cy='114' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Ccircle cx='600' cy='28' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='600' cy='155' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='600' cy='150' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='600' cy='145' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Ccircle cx='1014' cy='114' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Ccircle cx='1185' cy='320' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='1000' cy='320' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='1000' cy='315' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Cellipse cx='1000' cy='310' rx='11' ry='5' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3Ccircle cx='1014' cy='526' r='30' stroke='%23ffffff' fill='none' stroke-width='1.2'/%3E%3C/svg%3E") center / min(1300px, 120vw) auto no-repeat;
}

/* Poker Party lobby: invite link on top, code in a slim bottom bar */
body.party .lobby-panel { padding: 28px 30px 22px; margin-bottom: 80px; }
body.party .invite h2 { margin: 0 0 4px; font-size: 20px; text-align: left; }
body.party .invite p { margin: 0 0 12px; font-size: 14px; }
body.party .invite .share { margin-top: 0; }
body.party .invite .share input { color: var(--text); }
body.party #code-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; padding: 14px 18px; background: #18171b; border-top: 1px solid var(--line); font-size: 14px; }
body.party #code-bar b { color: var(--text); font-weight: 600; }
body.party #code-bar #lobby-code { font: 600 18px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 3px; color: var(--text);
  background: none; padding: 0; margin: 0; }
body.party #code-bar .btn { padding: 5px 12px; font-size: 13px; }

/* Poker Party in-game: lighter room, classic green felt, livelier highlights (the lobby/home stay muted) */
body.party #game { background: radial-gradient(ellipse at 50% 40%, #34313a 0%, #24222a 55%, #1c1a20 100%); }
body.party #game .felt {
  --felt: #2f8a55; --felt-dark: #1d6239;
  border-color: #2a2420;
  background: radial-gradient(ellipse at center, #34935c 30%, #23703f 70%, #1b5a33 100%);
  box-shadow: inset 0 0 50px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45);
}
body.party #game .pot { color: #f4efe6; }
body.party #game .plate { background: #26232b; border-color: #403a47; }
body.party #game .plate .chips { color: #d9cdb8; }
body.party #game .seat.turn .plate { border-color: #e8c264; box-shadow: 0 0 16px rgba(232,194,100,.45); }
body.party #game .seat.winner .plate { background: #3b3220; border-color: #e8c264; }
body.party #game .card.win { box-shadow: 0 0 0 3px #e8c264, 0 2px 6px rgba(0,0,0,.4); }
body.party #game .chip { background: #e8c264; }
body.party #game .timer i { background: #e8c264; }
body.party #game .newhand { color: #f4efe6; }
body.party #game .banner { color: #fff; }
body.party #game .btn { background: #3a3641; }
body.party #game .btn:hover { background: #45404d; }
body.party #game .btn.danger { background: #7a3a45; }
body.party #game .btn.primary { background: #c9a35a; color: #1c1606; }
body.party #game .btn.primary:hover { background: #d6b26a; }
body.party #game .raise-box { background: rgba(0,0,0,.2); }

/* cards ~10% bigger (both sites). --slot = card width + gap, used by the flop spread animation */
:root { --slot: 65px; }
.card { width: 57px; height: 81px; }
.card .r, .card .s { font-size: 24px; }
.board { min-height: 81px; }
.seat .cards { height: 66px; }
.seat .cards .card { width: 46px; height: 66px; }
.seat .cards .card .r, .seat .cards .card .s { font-size: 19px; }
.seat.me .cards { height: 81px; }
.seat.me .cards .card { width: 57px; height: 81px; }
.seat.me .cards .card .r, .seat.me .cards .card .s { font-size: 24px; }
@media (max-height: 780px) {
  :root { --slot: 54px; }
  .card { width: 48px; height: 68px; }
  .card .r, .card .s { font-size: 20px; }
  .board { min-height: 68px; }
  .seat .cards { height: 57px; }
  .seat .cards .card { width: 40px; height: 57px; }
  .seat .cards .card .r, .seat .cards .card .s { font-size: 16px; }
  .seat.me .cards { height: 68px; }
  .seat.me .cards .card { width: 48px; height: 68px; }
  .seat.me .cards .card .r, .seat.me .cards .card .s { font-size: 20px; }
}

/* ---------- info pages (how to play, hand rankings, privacy) ---------- */
body.doc { overflow: auto; height: auto; min-height: 100%; }
.doc-head { max-width: 760px; margin: 0 auto; padding: 22px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.doc-head a { color: var(--text); text-decoration: none; }
.doc-head .back { color: var(--muted); font-size: 14px; }
.doc-head .back:hover { color: var(--text); }
.doc-main { max-width: 760px; margin: 0 auto; padding: 10px 20px 30px; line-height: 1.65; font-size: 16px; }
.doc-main h1 { font-size: 30px; margin: 22px 0 10px; }
.doc-main h2 { font-size: 20px; margin: 28px 0 8px; }
.doc-main a, .doc-foot a, .home-links a { color: var(--gold); }
.doc-main li { margin: 4px 0; }
.doc-foot { max-width: 760px; margin: 0 auto; padding: 18px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.ranks { list-style: none; padding: 0; counter-reset: r; }
.ranks li { counter-increment: r; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 14px; margin: 8px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ranks li div { display: flex; flex-direction: column; flex: 1 1 260px; }
.ranks li div b::before { content: counter(r) ". "; color: var(--muted); }
.ranks li div span { color: var(--muted); font-size: 14px; }
.minis { display: inline-flex; gap: 4px; }
.mini { width: 34px; height: 46px; border-radius: 4px; background: #fdfdfb; color: #1b1b1b; display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; line-height: 1.05; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mini i { font-style: normal; font-size: 14px; }
.mini.red { color: #d33b3b; }
/* quiet links under the sign-in box */
.home-links { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.home-links a { color: var(--muted); text-decoration: none; }
.home-links a:hover { color: var(--text); text-decoration: underline; }
.home-legal { text-align: center; margin: 6px 0 0; font-size: 12px; color: var(--muted); opacity: .75; }
.doc-foot .legal { margin-top: 6px; font-size: 13px; opacity: .8; }
/* 404 */
.nf { max-width: 520px; margin: 12vh auto 0; padding: 0 20px; text-align: center; }
.nf .logo { font-size: 22px; margin-bottom: 28px; }
.nf-cards { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.nf-cards .mini { width: 46px; height: 64px; font-size: 20px; }
.nf h1 { margin: 0 0 6px; font-size: 30px; }
.nf .btn { display: inline-block; margin-top: 18px; text-decoration: none; }
