: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; }

/* ===== Poker Paradise identity (not applied on the party site) ===== */
body:not(.party) .pp-mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
body:not(.party) .pp-mark > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
  font-family: Georgia, "Iowan Old Style", Palatino, "Times New Roman", serif; font-weight: 700; font-size: 34px; letter-spacing: .3px; }
body:not(.party) .pp-mark small { font-family: system-ui, sans-serif; font-size: 11px; letter-spacing: 5px; color: var(--gold); font-weight: 700; margin: 0 0 4px 2px; }
body:not(.party) h1.logo { display: flex; justify-content: center; }
body:not(.party) .pp-mark.sm > span { font-size: 17px; flex-direction: row; }
body:not(.party) .pp-mark.sm { gap: 8px; }

/* Paradise info pages: classic serif rulebook look, centered masthead + menu bar */
body.pdoc { font-family: Georgia, "Iowan Old Style", Palatino, "Times New Roman", serif; }
.pdoc-head { max-width: 860px; margin: 0 auto; padding: 26px 20px 14px; display: flex; justify-content: center; position: relative; }
.pdoc-head .pp-mark > span { font-size: 28px; }
.pdoc-play { position: absolute; right: 20px; top: 34px; font-family: system-ui, sans-serif; font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--gold); color: #1c1606; padding: 8px 16px; border-radius: 999px; }
.pdoc-nav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 8px; font-family: system-ui, sans-serif; font-size: 14px; }
.pdoc-nav a { color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 6px; }
.pdoc-nav a:hover { color: var(--text); }
.pdoc-nav a.on { color: var(--gold); background: rgba(232,194,100,.08); }
.pdoc-main { max-width: 720px; margin: 0 auto; padding: 18px 20px 40px; font-size: 17px; line-height: 1.7; }
.pdoc-main h1 { font-size: 36px; margin: 22px 0 6px; font-weight: 700; text-align: center; }
.pdoc-main .lede { text-align: center; color: var(--muted); font-style: italic; margin: 0 auto 26px; max-width: 600px; }
.pdoc-main h2 { font-size: 22px; margin: 30px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.pdoc-main h3 { font-size: 18px; margin: 24px 0 2px; color: var(--gold); }
.pdoc-main a { color: var(--gold); }
.pdoc-table { width: 100%; border-collapse: collapse; font-size: 15px; font-family: system-ui, sans-serif; margin: 8px 0; }
.pdoc-table th, .pdoc-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.pdoc-table th { color: var(--gold); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.pdoc-dl dt { font-weight: 700; margin-top: 10px; }
.pdoc-dl dd { margin: 0 0 0 18px; color: var(--muted); }
.pdoc-hands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pdoc-hand { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; position: relative; }
.pdoc-hand .n { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.pdoc-hand .n span { display: inline-block; width: 24px; color: var(--muted); font-size: 14px; }
.pdoc-hand p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pdoc-hand .odds { position: absolute; top: 14px; right: 14px; font-family: system-ui, sans-serif; font-size: 12px; color: var(--gold); }
.pdoc-clauses { padding-left: 22px; }
.pdoc-clauses li { margin: 12px 0; padding-left: 4px; }
.pdoc-foot { max-width: 860px; margin: 0 auto; padding: 20px 20px 44px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pdoc-foot p { margin: 4px 0; }
.pdoc-foot a { color: var(--muted); }
.pdoc-foot .legal { font-size: 13px; opacity: .8; }
/* loading screen */
.loading { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: var(--bg); }
html:not(:has(body.party)) .loading { background: radial-gradient(ellipse at top, #16352a, var(--bg) 70%); }
.ld { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ld-logo { font-size: 34px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ld .spin { width: 26px; height: 26px; border-width: 3px; }
.ld p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Poker Party home: sidebar + tiles ===== */
body.party #home.ph { display: block; padding: 0; overflow-y: auto; }
body.party #home.ph::before { left: 240px; }
.ph-side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 2; background: #18161c; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px; }
.ph-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; padding: 0 8px 22px; }
.ph-side nav { display: flex; flex-direction: column; gap: 2px; }
.ph-side nav button, .ph-side nav a { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--text); }
.ph-side nav a { color: var(--muted); font-size: 14px; }
.ph-side nav button:hover, .ph-side nav a:hover { background: #222027; color: var(--text); }
.ph-side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 4px; }
.ph-side-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 12px; }
.ph-main { position: relative; z-index: 1; margin-left: 240px; padding: 34px 40px 30px; max-width: 1080px; }
.ph-namebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ph-namebar label.field { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; }
.ph-namebar label.field input { margin: 0; width: 240px; }
.ph-namebar .error { margin: 0; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ph-tile { border-radius: 10px; padding: 26px 22px 22px; display: flex; flex-direction: column; min-height: 250px; border: 1px solid rgba(255,255,255,.06); }
.ph-tile.t-host { background: #6e4a55; cursor: pointer; }
.ph-tile.t-join { background: #2f5a43; }
.ph-tile.t-bots { background: #3b3850; cursor: pointer; }
.ph-tile:hover { filter: brightness(1.06); }
.ph-ic { width: 72px; height: 58px; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.ph-tile h2 { margin: 0 0 6px; font-size: 22px; }
.ph-tile p { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.45; }
.ph-slot { margin-top: auto; }
.ph-slot .btn { width: 100%; }
body.party .ph-tile #btn-host { background: #f0e6e9; color: #2a1d22; min-height: 0; font-size: 15px; }
body.party .ph-tile #btn-bots { background: rgba(255,255,255,.12); border: 0; color: #fff; }
body.party .ph-tile .join-row { background: rgba(0,0,0,.25); border: 0; }
body.party .ph-tile .join-row input { color: #fff; }
#ph-botsetup:not(:has(#bot-setup:not([hidden]))) { display: none; }
#ph-botsetup { max-width: 420px; margin: 18px 0 0 auto; }
.ph-about { margin-top: 44px; max-width: 760px; line-height: 1.65; }
.ph-about h1 { font-size: 26px; margin: 0 0 8px; }
.ph-about h2 { font-size: 18px; margin: 26px 0 6px; }
.ph-about p, .ph-about dd, .ph-about li { color: #c9c4cf; }
.ph-about a { color: var(--gold); }
.ph-steps { padding-left: 20px; }
.ph-faq dt { font-weight: 600; margin-top: 12px; }
.ph-faq dd { margin: 2px 0 0; }
.ph-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.9; }
.ph-foot a { color: var(--muted); }
@media (max-width: 860px) {
  .ph-side { display: none; }
  .ph-main { margin-left: 0; padding: 24px 18px; }
  body.party #home.ph::before { left: 0; }
  .ph-tiles { grid-template-columns: 1fr; }
}
body.party .ph-tile .join-row .btn { white-space: nowrap; }

/* ===== Poker Paradise landing (top menu, hero over a blurred table, play card, features) ===== */
body:not(.party) #home:has(.pl) { display: block; padding: 0; overflow-y: auto; }
body:not(.party) #home:has(.pl) .home-wrap { display: none; }
body:not(.party) #home:has(.pl) .home-links, body:not(.party) #home:has(.pl) .home-legal { display: none; }
.pl { position: relative; background:
    radial-gradient(ellipse 60% 70% at 78% 55%, rgba(46,140,96,.35), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 10%, rgba(232,194,100,.07), transparent 70%),
    linear-gradient(135deg, #0c1411 0%, #101b16 40%, #0a120f 100%); overflow: hidden; }
.pl::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none; background:
    linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.025) 28% 46%, transparent 46%),
    linear-gradient(60deg, transparent 0 55%, rgba(255,255,255,.02) 55% 70%, transparent 70%),
    linear-gradient(160deg, transparent 0 12%, rgba(0,0,0,.25) 12% 30%, transparent 30%),
    linear-gradient(20deg, transparent 0 70%, rgba(0,0,0,.2) 70% 88%, transparent 88%); }
.pl-nav { position: relative; z-index: 4; height: 78px; display: flex; align-items: center; gap: 36px; padding: 0 36px; }
.pl-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.pl-brand span { display: flex; flex-direction: column; line-height: 1; font-family: Georgia, "Iowan Old Style", serif; font-size: 24px; font-weight: 700; }
.pl-brand small { font-family: system-ui, sans-serif; font-size: 10px; letter-spacing: 4px; color: var(--gold); margin-bottom: 3px; }
.pl-links { flex: 1; display: flex; justify-content: center; gap: 34px; }
.pl-links a, .pl-links button { all: unset; cursor: pointer; color: #dfe7e2; font-size: 16px; }
.pl-links a:hover, .pl-links button:hover { color: var(--gold); }
.pl-outline { all: unset; cursor: pointer; border: 1.5px solid #dfe7e2; border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.pl-outline:hover { border-color: var(--gold); color: var(--gold); }
.pl-hero { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(380px, 560px) 1fr; gap: 40px; align-items: center; padding: 30px 36px 40px; min-height: calc(100vh - 78px); box-sizing: border-box; }
.pl-col { display: flex; flex-direction: column; align-items: center; }
.pl-box { width: 100%; box-sizing: border-box; border: 1.5px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(10,16,13,.55); padding: 30px 34px; text-align: center; }
.pl-box h1, .pl-box h2 { margin: 0 0 20px; font-weight: 400; font-size: 27px; line-height: 1.25; }
.pl-box b { font-weight: 800; }
.pl-box .field { text-align: left; margin-bottom: 14px; }
.pl-box .btn.big { width: 100%; }
.pl-box #btn-host { font-size: 20px; padding: 14px; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; }
.pl-box .join-row input { font-size: 20px; }
.pl-box #btn-join { background: #2e7d5b; border-color: transparent; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 0 26px; }
.pl-box #btn-join:hover { background: #379268; }
.pl-box #btn-bots { all: unset; cursor: pointer; display: inline-block; margin-top: 16px; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.pl-box #btn-bots:hover { color: var(--gold); }
.pl-box .bot-setup { text-align: left; margin-top: 14px; }
.pl-box .error { margin: 10px 0 0; }
.pl-or { width: 54px; height: 54px; margin: -14px 0; position: relative; z-index: 2; border-radius: 50%; background: #1b2621; border: 1.5px solid rgba(255,255,255,.14); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.pl-scroll { margin: 26px 0 0; color: var(--muted); font-size: 16px; text-align: center; }
.pl-scroll i { display: block; width: 14px; height: 14px; margin: 6px auto 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); animation: plbob 1.8s ease-in-out infinite; }
@keyframes plbob { 50% { transform: translateY(5px) rotate(45deg); } }
/* device mockup */
.pl-devices { position: relative; height: 560px; }
.dv-laptop { position: absolute; left: 0; right: 90px; top: 30px; }
.dv-screen { position: relative; aspect-ratio: 16 / 10; background: #15201b; border: 14px solid #1c1d20; border-radius: 18px 18px 4px 4px; box-shadow: 0 0 0 2px #3a3b40, 0 30px 60px rgba(0,0,0,.55); overflow: hidden; }
.dv-base { height: 18px; margin: 0 -7%; background: linear-gradient(#cfd2d6, #8d9096); border-radius: 2px 2px 14px 14px; box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.dv-base::before { content: ''; display: block; width: 18%; height: 7px; margin: 0 auto; background: #a9acb1; border-radius: 0 0 8px 8px; }
.dv-felt { position: absolute; left: 13%; right: 13%; top: 20%; bottom: 18%; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, #2f8a5c, #1d6342 70%, #174f35); border: 8px solid #4a2f1d; box-shadow: inset 0 0 30px rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.dv-pot { background: rgba(0,0,0,.35); border-radius: 999px; padding: 3px 14px; color: var(--gold); font-weight: 700; font-size: 15px; }
.dv-board { display: flex; gap: 6px; }
.pl-devices i { font-style: normal; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: #fdfdfb; color: #1a1a1a; border-radius: 6px; font-weight: 800; box-shadow: 0 3px 6px rgba(0,0,0,.35); line-height: 1; }
.pl-devices i.r { color: #c8202f; }
.pl-devices i.dim { opacity: .55; }
.dv-board i { width: 44px; height: 62px; font-size: 21px; }
.dv-board i b, .dv-hole i b { font-size: 19px; }
.dv-mark { opacity: .35; }
.dv-seat { position: absolute; display: flex; align-items: center; gap: 6px; }
.dv-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #2b3a33; color: #e9efe9; border: 2px solid #46574f; font-size: 14px; }
.dv-hole { display: flex; }
.dv-hole u { width: 22px; height: 32px; border-radius: 4px; margin-left: -8px; background: repeating-linear-gradient(45deg, #9b2232 0 3px, #b52b3d 3px 6px); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.dv-hole i { width: 26px; height: 36px; font-size: 13px; margin-left: -6px; }
.dv-hole i b { font-size: 12px !important; }
.dv-plate { display: flex; flex-direction: column; background: #0e1d16; border: 1.5px solid #2b4a3d; border-radius: 7px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.dv-plate em { font-style: normal; color: var(--gold); }
.dv-plate.win { border-color: var(--gold); box-shadow: 0 0 12px rgba(232,194,100,.5); }
.dv-tag { position: absolute; top: 100%; left: 40px; margin-top: 4px; background: #e8c264; color: #1c1606; border-radius: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; white-space: nowrap; }
.s1 { left: 18%; top: 5%; } .s2 { right: 12%; top: 5%; } .s3 { left: 3%; top: 52%; } .s4 { left: 42%; bottom: 3%; } .s5 { right: 2%; top: 52%; }
.dv-phone { position: absolute; right: 0; bottom: 0; width: 190px; height: 380px; background: #1c1d20; border-radius: 34px; padding: 10px; box-shadow: 0 0 0 2px #4a4b50, 0 30px 60px rgba(0,0,0,.6); }
.dv-pscreen { position: relative; height: 100%; border-radius: 26px; background: #15201b; overflow: hidden; }
.dv-pscreen::before { content: ''; position: absolute; top: 8px; left: 50%; width: 60px; height: 16px; margin-left: -30px; background: #000; border-radius: 10px; z-index: 2; }
.dv-pfelt { position: absolute; left: 16%; right: 16%; top: 14%; bottom: 14%; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, #2f8a5c, #1d6342 70%); border: 5px solid #4a2f1d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dv-pboard { display: flex; gap: 3px; }
.dv-pboard i { width: 24px; height: 34px; font-size: 12px; border-radius: 4px; }
.dv-ppot { color: var(--gold); font-size: 11px; font-weight: 700; }
.dv-pp { position: absolute; background: #0e1d16; border: 1px solid #2b4a3d; border-radius: 5px; font-size: 9px; padding: 2px 5px; font-weight: 600; }
.dv-pp.me { border-color: var(--gold); }
.p1 { left: 6%; top: 24%; } .p2 { right: 6%; top: 24%; } .p3 { left: 3%; top: 58%; } .p4 { right: 3%; top: 58%; } .p5 { left: 50%; bottom: 7%; transform: translateX(-50%); }
@media (max-width: 1100px) { .pl-links { display: none; } .pl-nav { justify-content: space-between; } .pl-hero { grid-template-columns: 1fr; } .pl-devices { display: none; } .pl-col { max-width: 560px; margin: 0 auto; width: 100%; } }
.pl-features { max-width: 980px; margin: 56px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pl-features div { background: rgba(19,41,31,.85); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.pl-features h3 { margin: 0 0 6px; color: var(--gold); font-family: Georgia, serif; font-size: 20px; }
.pl-features p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.pl-foot { text-align: center; padding: 44px 20px 50px; color: var(--muted); font-size: 14px; }
.pl-foot img { opacity: .9; }
.pl-foot p { margin: 8px 0 0; }
.pl-foot a { color: var(--muted); }
.pl-foot .legal { font-size: 13px; opacity: .8; }
@media (max-width: 900px) { .pl-left a:not(.on), .pl-right a { display: none; } .pl-nav { padding: 0 16px; } .pl-features { grid-template-columns: 1fr; } }

/* cookie banner */
.ck { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(560px, calc(100vw - 40px)); background: #10221a; color: var(--text);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.5); font-family: system-ui, -apple-system, sans-serif;
  animation: ck-in .3s ease-out; transition: opacity .25s, transform .25s; }
.ck-out { opacity: 0; transform: translateY(12px); }
@keyframes ck-in { from { opacity: 0; transform: translateY(14px); } }
.ck h4 { margin: 0 0 8px; font-size: 16px; }
.ck p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #cfd9d3; }
.ck a { color: var(--gold); }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ck-btns { display: flex; gap: 8px; }
.ck-b { all: unset; cursor: pointer; background: var(--gold); color: #1c1606; font-weight: 700; font-size: 13px; letter-spacing: .4px; padding: 10px 18px; border-radius: 999px; text-transform: uppercase; }
.ck-b.ck-alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ck-b:hover { filter: brightness(1.08); }
.ck-link { all: unset; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; color: var(--text); }
.ck-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #cfd9d3; }
.ck-opt b { display: block; color: var(--text); font-size: 14px; }
.ck-opt input { margin-top: 3px; accent-color: var(--gold); }
body.party .ck { background: #1b1a1e; border-color: rgba(255,255,255,.1); border-radius: 10px; }
body.party .ck p, body.party .ck-opt { color: #b9b4bf; }
body.party .ck-b { background: #a5838c; color: #17141a; border-radius: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; }
body.party .ck-b.ck-alt { background: transparent; color: var(--text); }
body:not(.party) #home:has(.pl) .tagline { display: none; }

/* cookie banner: full-width bar across the bottom, page dimmed and blocked until a choice is made */
.ck-shade { position: fixed; inset: 0; z-index: 89; background: rgba(0,0,0,.55); animation: ck-fade .3s ease-out; transition: opacity .25s; }
.ck-shade.ck-out { opacity: 0; }
@keyframes ck-fade { from { opacity: 0; } }
.ck { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border-width: 1px 0 0; padding: 28px 24px 30px; box-shadow: 0 -12px 40px rgba(0,0,0,.5); }
.ck .ck-in { max-width: 1100px; margin: 0 auto; }
.ck h4 { font-size: 21px; margin-bottom: 10px; }
.ck p { font-size: 16px; margin-bottom: 20px; max-width: 900px; }
.ck .ck-b { font-size: 15px; padding: 14px 28px; }
.ck-btns { gap: 12px; }
.ck-opt { font-size: 15px; margin-bottom: 16px; }
.ck-opt b { font-size: 16px; }
.ck-opt input { width: 18px; height: 18px; }
body.party .ck { border-radius: 0; }
@media (max-width: 640px) { .ck-row, .ck-btns { flex-direction: column; align-items: stretch; } .ck .ck-b { text-align: center; } }
.about-card { display: flex; gap: 22px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-top: 10px; }
.about-card svg { flex: none; }
.about-card p { margin: 0 0 12px; }
.about-sign { color: var(--muted); font-style: italic; }

/* Learn to play */
.lt-progress { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
#lt-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
#lt-bar i { display: block; height: 100%; width: 20%; background: var(--gold); transition: width .3s; }
.lt-step h2 { margin-top: 0; }
.lt-example, .lt-quiz { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 16px 0; }
.lt-example > div, .lt-qrow { display: flex; align-items: center; gap: 16px; margin: 6px 0; flex-wrap: wrap; }
.lt-label { width: 110px; color: var(--muted); font-size: 14px; }
.lt-note { color: var(--muted); }
.mini.hi { box-shadow: 0 0 0 2px var(--gold); transform: translateY(-3px); }
.lt-ranks { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.lt-ranks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.lt-ranks .lt-hn b { color: var(--muted); font-weight: 500; }
.lt-ranks .mini { width: 26px; height: 36px; font-size: 12px; }
.lt-ranks .mini i { font-size: 11px; }
.lt-picks { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.lt-picks .btn { min-width: 110px; }
.lt-picks .btn.right { background: #2f6b47; border-color: #4f9a6c; color: #fff; }
.lt-picks .btn.wrong { background: #6b2f36; border-color: #9a4f59; color: #fff; }
.lt-picks .btn:disabled { opacity: 1; }
.lt-picks.big .btn { text-decoration: none; display: inline-block; }
.lt-feedback { min-height: 22px; margin: 10px 0 0; font-size: 15px; }
.lt-feedback.good { color: #7cc796; }
.lt-feedback.bad { color: #e08b95; }
.lt-qfoot { display: flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.lt-qfoot .btn { margin-left: auto; }
.lt-q { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.lt-q > p:first-child { margin: 0; font-weight: 600; }
.lt-nav { display: flex; justify-content: space-between; margin: 26px 0 10px; }
.lt-nav .btn { min-width: 120px; }
.ph-side nav a.ph-learn { color: var(--text); font-size: 15px; }
