/* ============ Písma (lokálne, OFL) ============ */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 600; font-display: swap; src: url(/fonts/bsd-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 600; font-display: swap; src: url(/fonts/bsd-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url(/fonts/bsd-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url(/fonts/bsd-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(/fonts/is-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(/fonts/is-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url(/fonts/is-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url(/fonts/is-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url(/fonts/is-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url(/fonts/is-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }

/* ============ Tokeny ============
   Miestnosť: tmavý orech. Stôl: bordové súkno pod lampou, mosadzná lišta.
   Karty: slonovinové. Žetóny: hlinené farby. */
:root {
  --walnut-0: #120c0a;
  --walnut-1: #1a120e;
  --walnut-2: #241913;
  --walnut-3: #33241b;
  --felt-hi: #8a2a36;
  --felt: #6b1e2a;
  --felt-lo: #3e0f17;
  --leather: #2a1a13;
  --brass: #d4af63;
  --brass-hi: #ecd29a;
  --brass-lo: #9b7a3a;
  --ivory: #f5eedf;
  --ivory-2: #e8dec8;
  --ink: #1d1714;
  --suit-red: #b3202e;
  --muted: #b9a998;
  --muted-2: #8a7a6a;
  --win: #f0cf7a;
  --danger: #e26a5a;
  --ok: #8fc79a;

  --f-display: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --dock-h: 132px;
  --top-h: 52px;
  --card-w: 46px;
  --seat-w: 124px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ivory);
  background: var(--walnut-1);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }

/* ============ Tlačidlá ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-m);
  font-weight: 600; letter-spacing: 0.01em;
  transition: transform .08s ease, filter .15s ease, background-color .15s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-big { min-height: 52px; font-size: 17px; width: 100%; }
.btn-brass { background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); color: #2a1a08; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 0 #6e5320; }
.btn-brass:hover { filter: brightness(1.06); }
.btn-ivory { background: var(--ivory); color: var(--ink); box-shadow: inset 0 -2px 0 var(--ivory-2); }
.btn-ivory:hover { background: #fff8ea; }
.btn-ghost { background: rgba(245,238,223,.07); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(245,238,223,.16); }
.btn-ghost:hover { background: rgba(245,238,223,.12); }
.btn-dark { background: var(--walnut-3); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(245,238,223,.1); }
.btn-dark:hover { background: #3d2b20; }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(226,106,90,.45); }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--r-m); color: var(--ivory);
}
.icon-btn:hover { background: rgba(245,238,223,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brass); color: #2a1a08; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }

/* ============ Logo ============ */
.logo {
  font-family: var(--f-display); font-weight: 800; letter-spacing: .01em;
  font-size: clamp(64px, 14vw, 132px); line-height: .82; margin: 0;
  color: var(--ivory);
  text-shadow: 0 2px 0 var(--felt-lo), 0 0 40px rgba(212,175,99,.18);
}
.logo-sm { font-size: 30px; text-decoration: none; text-shadow: none; line-height: 1; }

/* ============ Úvod ============ */
.home {
  position: relative; min-height: 100%; overflow-x: hidden;
  padding: max(32px, env(safe-area-inset-top)) 20px 40px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(138,42,54,.55), transparent 65%),
    radial-gradient(900px 500px at 50% 120%, rgba(62,15,23,.7), transparent 70%),
    var(--walnut-1);
}
.home-lamp { position: absolute; inset: -20% 0 auto; height: 70vh; background: radial-gradient(closest-side, rgba(240,207,122,.13), transparent); pointer-events: none; }
.home-head { position: relative; max-width: 980px; margin: 0 auto 36px; }
.tagline { font-size: 18px; color: var(--muted); max-width: 34ch; margin: 18px 0 0; }
.disclaimer { margin: 12px 0 0; padding: 8px 12px; max-width: 44ch; border: 1px solid rgb(255 255 255 / .16); border-radius: 10px; background: rgb(255 255 255 / .05); color: var(--ivory); font-size: 13.5px; line-height: 1.4; }
.lang-sw { display: inline-flex; gap: 4px; margin-top: 14px; padding: 3px; border-radius: 10px; background: rgb(255 255 255 / .06); }
.lang-sw button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 8px; cursor: pointer; }
.lang-sw button[aria-pressed="true"] { background: rgb(255 255 255 / .14); color: var(--ivory); }
.home-grid { position: relative; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.panel {
  background: linear-gradient(180deg, rgba(51,36,27,.92), rgba(36,25,19,.92));
  border-radius: var(--r-l);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(245,238,223,.08), 0 20px 40px -20px rgba(0,0,0,.6);
}
.panel h2 { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; margin: 0 0 18px; letter-spacing: .01em; }
.panel-join { background: linear-gradient(180deg, var(--felt), var(--felt-lo)); }
.how { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(245,238,223,.14); }
.how h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
.how ol { margin: 0; padding-left: 20px; color: var(--ivory-2); }
.how li { margin: 4px 0; }
.home-foot { position: relative; max-width: 980px; margin: 28px auto 0; color: var(--muted-2); font-size: 13px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select {
  height: 46px; padding: 0 12px; width: 100%;
  background: var(--walnut-0); border: 1px solid rgba(245,238,223,.14); border-radius: var(--r-m);
  color: var(--ivory); font-size: 16px;
}
.field input:focus, .field select:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(212,175,99,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; color: var(--ivory-2); font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brass); margin: 0; flex: none; }
.code-input { font-family: var(--f-display); font-weight: 800; font-size: 30px !important; letter-spacing: .18em; text-transform: uppercase; height: 58px !important; text-align: center; }

.avatar-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.avatar-pick button {
  aspect-ratio: 1; border: 0; border-radius: 50%; font-size: 22px; line-height: 1;
  background: var(--walnut-0); box-shadow: inset 0 0 0 1px rgba(245,238,223,.1);
  display: grid; place-items: center; padding: 0;
}
.avatar-pick button[aria-pressed="true"] { background: var(--felt); box-shadow: inset 0 0 0 2px var(--brass); }

@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; }
  .tagline { font-size: 16px; }
  .avatar-pick { grid-template-columns: repeat(6, 1fr); }
}

/* ============ Hra – kostra ============ */
.game {
  position: fixed; inset: 0; display: grid;
  grid-template-rows: calc(var(--top-h) + env(safe-area-inset-top)) 1fr auto;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #2b1d15 0%, var(--walnut-1) 60%, var(--walnut-0) 100%);
  overflow: hidden;
}
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(245,238,223,.06);
  min-width: 0; z-index: 5;
}
.code-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px; background: rgba(212,175,99,.12); color: var(--brass-hi);
  box-shadow: inset 0 0 0 1px rgba(212,175,99,.35);
}
.code-chip:hover { background: rgba(212,175,99,.2); }
.code-chip-label { font-size: 12px; color: var(--muted); }
.code-chip strong { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .12em; }
.code-chip svg { width: 16px; height: 16px; }
.blinds-info { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.blinds-info b { color: var(--ivory); font-weight: 600; font-variant-numeric: tabular-nums; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.conn { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 3px rgba(143,199,154,.15); }
.conn.bad { background: var(--danger); box-shadow: 0 0 0 3px rgba(226,106,90,.2); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.play-area { position: relative; display: grid; grid-template-columns: 1fr auto; min-height: 0; }
.stage { position: relative; min-width: 0; min-height: 0; }

/* ============ Stôl ============ */
.table {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: var(--rail, 16px);
  background:
    linear-gradient(180deg, #3a271d, var(--leather) 40%, #1c110c);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.85),
    0 0 0 1px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -2px 6px rgba(0,0,0,.6);
}
.felt {
  position: relative; width: 100%; height: 100%; border-radius: 999px; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(255,214,150,.20), transparent 70%),
    radial-gradient(ellipse at 50% 50%, var(--felt-hi) 0%, var(--felt) 45%, var(--felt-lo) 100%);
  box-shadow: 0 0 0 2px var(--brass-lo), 0 0 0 3px rgba(0,0,0,.5), inset 0 0 50px rgba(0,0,0,.55), inset 0 0 0 10px rgba(0,0,0,.08);
}
.felt::before {
  /* jemná textúra súkna */
  content: ''; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.felt::after {
  /* vnútorná čiara stola */
  content: ''; position: absolute; inset: 9%; border-radius: 999px; border: 1.5px solid rgba(236,210,154,.16); pointer-events: none;
}
.felt-mark {
  position: absolute; left: 50%; top: 73%; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 4vw, 44px); letter-spacing: .06em;
  color: rgba(0,0,0,.18); text-shadow: 0 1px 0 rgba(255,255,255,.05);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.center {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92%;
}
.pot {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; border-radius: 999px;
  background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(236,210,154,.2);
  font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.pot small { font-family: var(--f-ui); font-weight: 500; font-size: 12px; color: var(--ivory-2); letter-spacing: 0; }
.board { display: flex; gap: calc(var(--card-w) * .12); min-height: calc(var(--card-w) * 1.4); }
.board .slot { width: var(--card-w); height: calc(var(--card-w) * 1.4); border-radius: calc(var(--card-w) * .12); border: 1.5px dashed rgba(236,210,154,.14); }
.center-msg { min-height: 22px; text-align: center; font-size: 14px; color: var(--ivory-2); max-width: 46ch; text-wrap: balance; }
.center-msg b { color: var(--win); font-weight: 600; }
.center-msg .win-desc { color: var(--ivory); font-family: var(--f-display); font-weight: 800; font-size: 1.35em; letter-spacing: .02em; }
.center-msg .btn { margin-top: 4px; }

/* ============ Karty ============ */
.card {
  --w: var(--card-w);
  position: relative; width: var(--w); height: calc(var(--w) * 1.4); flex: none;
  border-radius: calc(var(--w) * .11);
  background: linear-gradient(160deg, #fffaf0, var(--ivory) 60%, var(--ivory-2));
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 3px 8px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.25);
  color: var(--ink);
  font-family: var(--f-display); font-weight: 800;
  user-select: none;
}
.card.red { color: var(--suit-red); }
.card .r { position: absolute; left: 10%; top: 3%; font-size: calc(var(--w) * .46); line-height: 1; letter-spacing: -.02em; }
.card .s { position: absolute; left: 11%; top: 36%; font-size: calc(var(--w) * .27); line-height: 1; font-family: var(--f-ui); }
.card .big { position: absolute; right: 7%; bottom: 3%; font-size: calc(var(--w) * .62); line-height: 1; font-family: var(--f-ui); }
.card.back {
  background:
    repeating-linear-gradient(45deg, rgba(236,210,154,.22) 0 1.5px, transparent 1.5px 7px),
    repeating-linear-gradient(-45deg, rgba(236,210,154,.22) 0 1.5px, transparent 1.5px 7px),
    linear-gradient(160deg, #8a2a36, #4a1119);
  box-shadow: inset 0 0 0 calc(var(--w) * .06) #f2e8d4, inset 0 0 0 calc(var(--w) * .08) var(--brass-lo), 0 3px 8px rgba(0,0,0,.45);
}
.card.dim { filter: brightness(.45) saturate(.6); }
.card.hl { box-shadow: 0 0 0 2px var(--win), 0 0 18px rgba(240,207,122,.6), 0 3px 8px rgba(0,0,0,.45); transform: translateY(-4px); }
.card.rabbit { opacity: .78; }
.card.rabbit::after { content: '🐇'; position: absolute; right: -6px; top: -8px; font-size: 14px; }
@keyframes flipIn { from { transform: perspective(400px) rotateY(85deg) translateY(-6px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes dealIn { from { transform: translate(var(--dx, 0), var(--dy, -40px)) scale(.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ Miesta ============ */
.seat {
  position: absolute; width: var(--seat-w); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; z-index: 2;
  transition: opacity .3s;
}
.seat .cards { display: flex; justify-content: center; height: calc(var(--card-w) * .82 * 1.4 * .62); margin-bottom: -6px; z-index: 0; }
.seat .cards .card { --w: calc(var(--card-w) * .82); }
.seat .cards .card + .card { margin-left: calc(var(--card-w) * -.32); transform: rotate(6deg) translateY(2px); }
.seat .cards .card:first-child { transform: rotate(-5deg); }
.seat .cards .card.hl { transform: translateY(-6px); }
.seat.folded .cards { opacity: 0; }
.seat.folded.has-shown .cards { opacity: 1; }
/* odkryté karty pri súperoch – väčšie a čitateľné */
.seat .cards { transition: height .35s cubic-bezier(.2,.8,.2,1); }
.seat.faceup { z-index: 4; }
.seat.faceup .cards { height: calc(var(--card-w) * 1.18 * 1.4 * .86); margin-bottom: -10px; }
.seat.faceup .cards .card { --w: calc(var(--card-w) * 1.18); box-shadow: 0 8px 18px -6px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.25); }
.seat.faceup .cards .card + .card { margin-left: calc(var(--card-w) * -.22); transform: rotate(4deg) translateY(1px); }
.seat.faceup .cards .card:first-child { transform: rotate(-3deg); }
.seat.faceup .cards .card.hl { transform: translateY(-6px); }

/* oko = ukázať kartu po hre */
.my-hand .card.eyeable { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .25s; }
.my-hand .card.eyeable:hover { transform: translateY(-3px); }
.my-hand .card.eyeable:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.my-hand .card.eyed { box-shadow: 0 0 0 2px var(--brass-hi), 0 0 16px rgba(236,210,154,.45), 0 3px 8px rgba(0,0,0,.45); }
.my-hand .card.folded.eyed { filter: brightness(.8) saturate(.85); }
.card .eye {
  position: absolute; right: -7px; top: -9px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #f6e2ae, #c79a45 70%, #8a6526);
  box-shadow: 0 2px 6px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.35);
  animation: eyePop .4s cubic-bezier(.3,1.6,.5,1);
}
@keyframes eyePop { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card .eye { animation: none; } }

.plate {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 8px;
  width: 100%; padding: 5px 10px 5px 5px;
  background: linear-gradient(180deg, #2c1f17, #1b120d);
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.8), inset 0 0 0 1px rgba(236,210,154,.14);
}
.avatar {
  --p: 0;
  position: relative; grid-row: span 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px; line-height: 1;
  background: var(--walnut-3);
}
.seat.turn .avatar::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--ring, var(--brass-hi)) calc(var(--p) * 1turn), rgba(255,255,255,.08) 0);
  -webkit-mask: radial-gradient(circle, transparent 21px, #000 22px);
          mask: radial-gradient(circle, transparent 21px, #000 22px);
}
.seat.turn.hurry .avatar { --ring: var(--danger); }
.seat .name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.seat .stack { font-family: var(--f-display); font-weight: 800; font-size: 16px; line-height: 1.05; color: var(--brass-hi); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.seat.turn .plate { box-shadow: 0 0 0 2px var(--brass), 0 0 24px rgba(212,175,99,.45), 0 6px 16px -6px rgba(0,0,0,.8); }
.seat.me .plate { background: linear-gradient(180deg, #3b2a1f, #24180f); }
.seat.away .plate { opacity: .55; }
.seat.out { opacity: .45; }
.seat.winner .plate { box-shadow: 0 0 0 2px var(--win), 0 0 32px rgba(240,207,122,.6); animation: winPulse 1.2s ease-in-out 2; }
@keyframes winPulse { 50% { box-shadow: 0 0 0 3px var(--win), 0 0 48px rgba(240,207,122,.85); } }

.tag {
  position: absolute; left: 50%; top: calc(100% - 5px); transform: translateX(-50%); z-index: 3;
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--ivory); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.tag.fold { background: #4a3a32; color: var(--muted); }
.tag.allin { background: var(--suit-red); color: #fff; }
.tag.raise, .tag.bet { background: var(--brass); color: #2a1a08; }
.tag.sitout { background: #3a2f2b; color: var(--muted); }
.tag.win { background: var(--win); color: #2a1a08; }
.tag.pop { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
.handdesc { margin-top: 16px; font-size: 11.5px; color: var(--ivory-2); background: rgba(0,0,0,.5); padding: 1px 8px; border-radius: 999px; white-space: nowrap; max-width: calc(var(--seat-w) * 1.3); overflow: hidden; text-overflow: ellipsis; }
.seat.winner .handdesc { color: var(--win); }
.host-crown { position: absolute; top: -4px; left: -2px; font-size: 13px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }

.seat-empty {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px dashed rgba(236,210,154,.3); background: rgba(0,0,0,.25); color: var(--brass-hi);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.1;
  transition: background .15s, transform .15s;
}
.seat-empty:hover { background: rgba(212,175,99,.15); transform: translate(-50%, -50%) scale(1.06); }
.seat-empty.ghost { width: 14px; height: 14px; border-style: solid; border-color: rgba(236,210,154,.08); background: rgba(0,0,0,.18); pointer-events: none; }

.bet {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px;
  background: rgba(0,0,0,.42); font-family: var(--f-display); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
  transition: left .35s ease, top .35s ease, opacity .35s;
}
@keyframes betPop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.chip {
  --c: #c9372c;
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle, var(--c) 0 38%, #fff 39% 44%, var(--c) 45% 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.0), 0 0 0 1.5px rgba(0,0,0,.35), 0 2px 0 rgba(0,0,0,.4);
  position: relative;
}
.chip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(#fff 0 12deg, transparent 12deg 45deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); opacity: .85; }
.chip.c-white { --c: #e9e2d2; } .chip.c-white::after { background: repeating-conic-gradient(#2b5ea8 0 12deg, transparent 12deg 45deg); }
.chip.c-red { --c: #c9372c; }
.chip.c-blue { --c: #2b5ea8; }
.chip.c-green { --c: #2f7d4a; }
.chip.c-black { --c: #222; }
.chip.c-purple { --c: #6b3fa0; }
.chip.c-gold { --c: #c69a3a; }

.dealer-btn {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ivory) 60%, var(--ivory-2));
  color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 14px; display: grid; place-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 2px rgba(0,0,0,.08);
  transition: left .5s cubic-bezier(.4,0,.2,1), top .5s cubic-bezier(.4,0,.2,1);
}

.fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.fx .float-emoji { position: absolute; font-size: 34px; transform: translate(-50%, -50%); animation: floatUp 2.4s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.fx .float-win { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--win); text-shadow: 0 2px 8px rgba(0,0,0,.8); animation: floatUp 2.6s ease-out forwards; }
.fx .chip-fly { position: absolute; transform: translate(-50%, -50%); transition: left .7s cubic-bezier(.5,0,.2,1), top .7s cubic-bezier(.5,0,.2,1), opacity .3s .6s; }
.fx .bubble { position: absolute; transform: translate(-50%, -100%); max-width: 180px; padding: 6px 10px; border-radius: 12px 12px 12px 3px; background: var(--ivory); color: var(--ink); font-size: 13px; line-height: 1.3; box-shadow: 0 4px 12px rgba(0,0,0,.5); animation: bubble 4.5s ease forwards; overflow-wrap: anywhere; }
@keyframes bubble { 0% { opacity: 0; transform: translate(-50%, -80%); } 8%, 85% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -110%); } }

/* ============ Spodný panel (moje karty + akcie) ============ */
.dock {
  position: relative; z-index: 4;
  padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(18,12,10,0), rgba(18,12,10,.92) 30%);
}
.dock-inner { display: flex; align-items: flex-end; gap: 16px; max-width: 1100px; margin: 0 auto; }
.my-hand { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.my-hand .cards { display: flex; gap: 6px; }
.my-hand .card { --w: 64px; }
.my-hand .card.folded { filter: brightness(.45) saturate(.5); }
.my-hand .label { font-size: 13px; color: var(--brass-hi); font-weight: 600; white-space: nowrap; min-height: 18px; }
.controls { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.controls .row { display: flex; gap: 8px; }
.controls .row > .btn { flex: 1; min-height: 52px; font-size: 16px; }
.controls .hint { color: var(--muted); font-size: 14px; text-align: center; padding: 6px 0; }
.act-fold { background: #3b2e28; color: var(--ivory-2); box-shadow: inset 0 0 0 1px rgba(245,238,223,.12); }
.act-fold:hover { background: #47372f; }
.btn .amt { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.btn kbd { font: 600 10px var(--f-ui); opacity: .45; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 2px; }
@media (hover: none) { .btn kbd { display: none; } }

/* ---- panel na výšku stávky: pláva nad tlačidlami, stôl sa nehýbe ---- */
.controls { position: relative; }
.sizer {
  --sz-bg: rgba(30,21,16,.97); --sz-btn: #3a2a20; --sz-btn-hi: #4a3628; --sz-acc: var(--brass); --sz-acc-ink: #2a1a08; --sz-line: rgba(236,210,154,.16);
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 8;
  width: min(460px, 100%);
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 16px;
  background: var(--sz-bg);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.85), inset 0 0 0 1px var(--sz-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sizer.enter { animation: sheetUp .26s cubic-bezier(.2,.9,.25,1); }
@keyframes sheetUp { from { transform: translateY(14px); opacity: 0; } }
.sizer-head { display: flex; align-items: center; gap: 10px; }
.sizer-amt { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.sizer-word { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sizer.allin .sizer-word { color: var(--danger); }
.sizer-amt input[type=number] {
  min-width: 0; width: 100%; border: 0; background: transparent; padding: 0;
  font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: .02em;
  color: #fff; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.sizer-amt input[type=number]::-webkit-inner-spin-button, .sizer-amt input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sizer-amt input[type=number]:focus { outline: none; }
.sizer-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sizer-step { display: flex; gap: 6px; }
.sizer-step button, .sizer-x {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--sz-btn); color: #fff;
  font-size: 24px; font-weight: 600; line-height: 1; display: grid; place-items: center;
}
.sizer-step button:hover { background: var(--sz-btn-hi); }
.sizer-step button:active { transform: scale(.94); }
.sizer-x { width: 36px; height: 36px; font-size: 15px; background: transparent; color: var(--muted); align-self: flex-start; margin: -4px -4px 0 0; }
.presets { display: flex; gap: 6px; }
.presets button {
  flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: var(--sz-btn); color: #fff;
  font-size: 13.5px; font-weight: 600; padding: 0 4px; white-space: nowrap;
}
.presets button:hover { background: var(--sz-btn-hi); }
.presets button.on { background: var(--sz-acc); color: var(--sz-acc-ink); }
.sizer-range {
  --fill: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; cursor: pointer;
}
.sizer-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--sz-acc) var(--fill), rgba(255,255,255,.12) var(--fill));
}
.sizer-range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
.sizer-range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--sz-acc); }
.sizer-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.12);
}
.sizer-range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pre-row { display: flex; gap: 8px; }
.pre-row label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px;
  border-radius: var(--r-m); background: rgba(245,238,223,.05); box-shadow: inset 0 0 0 1px rgba(245,238,223,.12);
  font-size: 14px; color: var(--ivory-2); cursor: pointer; user-select: none;
}
.pre-row input { width: 18px; height: 18px; accent-color: var(--brass); margin: 0; }
.pre-row label:has(input:checked) { background: rgba(212,175,99,.16); box-shadow: inset 0 0 0 1px var(--brass); color: var(--ivory); }

.react-wrap { position: relative; align-self: center; }
.react-btn { width: 46px; height: 46px; font-size: 24px; background: rgba(245,238,223,.06); border-radius: 50%; }
.react-tray {
  position: absolute; right: 0; bottom: 56px; display: grid; grid-template-columns: repeat(5, 44px); gap: 4px; padding: 8px;
  background: var(--walnut-2); border-radius: var(--r-l); box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(236,210,154,.14);
}
.react-tray button { width: 44px; height: 44px; font-size: 24px; border: 0; background: transparent; border-radius: 10px; }
.react-tray button:hover { background: rgba(245,238,223,.08); }

/* ============ Bočný panel ============ */
.drawer {
  width: 340px; display: flex; flex-direction: column; min-height: 0;
  background: rgba(26,18,14,.97); border-left: 1px solid rgba(245,238,223,.07);
  z-index: 7;
}
.drawer.collapsed { display: none; }
.drawer-tabs { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid rgba(245,238,223,.07); }
.drawer-tabs [role=tab] { border: 0; background: transparent; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.drawer-tabs [role=tab].active { color: var(--ivory); border-bottom-color: var(--brass); }
.drawer-close { margin-left: auto; display: none; }
.drawer-body { flex: 1; min-height: 0; position: relative; }
.tab-pane { position: absolute; inset: 0; display: none; flex-direction: column; overflow: auto; }
.tab-pane.active { display: flex; }
.chat-list { list-style: none; margin: 0; padding: 12px 14px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-list li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14px; overflow-wrap: anywhere; }
.chat-list li .who { font-weight: 600; color: var(--brass-hi); margin-right: 6px; }
.chat-list li.sys { display: block; color: var(--muted-2); font-size: 12.5px; font-style: italic; padding-left: 32px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(245,238,223,.07); }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: var(--r-m); border: 1px solid rgba(245,238,223,.14); background: var(--walnut-0); font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--brass); }

.history-list { list-style: none; margin: 0; padding: 8px 12px 16px; }
.history-list li { padding: 12px 4px; border-bottom: 1px solid rgba(245,238,223,.06); }
.history-list .hh { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.history-list .hh b { color: var(--win); font-weight: 600; }
.history-list .hno { color: var(--muted-2); font-size: 12px; }
.history-list .hdesc { color: var(--muted); font-size: 12.5px; }
.mini-cards { display: inline-flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.mini { display: inline-grid; place-items: center; min-width: 26px; height: 30px; padding: 0 3px; border-radius: 4px; background: var(--ivory); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.mini.red { color: var(--suit-red); }
.shown-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.plist { padding: 10px 12px; }
.prow { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid rgba(245,238,223,.06); }
.prow .pav { font-size: 22px; }
.prow .pname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .psub { font-size: 12px; color: var(--muted-2); }
.prow .pstack { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-align: right; line-height: 1.1; font-variant-numeric: tabular-nums; }
.prow .pnet { font-size: 12px; text-align: right; font-weight: 600; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
.plist h4 { margin: 18px 4px 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.host-tools { display: grid; gap: 8px; padding: 12px 4px; }

/* ============ Menu ============ */
.menu {
  position: absolute; right: 10px; top: calc(var(--top-h) + env(safe-area-inset-top) - 4px); z-index: 20;
  min-width: 240px; padding: 6px; border-radius: var(--r-l);
  background: var(--walnut-2); box-shadow: 0 16px 40px rgba(0,0,0,.7), inset 0 0 0 1px rgba(236,210,154,.14);
}
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 11px 12px; border-radius: 8px; font-size: 15px; }
.menu a.menu-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: 15px; color: inherit; text-decoration: none; }
.menu a.menu-link:hover { background: rgba(245,238,223,.07); }
.menu button:hover { background: rgba(245,238,223,.07); }
.menu hr { border: 0; border-top: 1px solid rgba(245,238,223,.08); margin: 4px 6px; }
.menu .danger { color: var(--danger); }

/* ============ Modál ============ */
.modal {
  border: 0; padding: 0; border-radius: var(--r-l); width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  background: linear-gradient(180deg, var(--walnut-3), var(--walnut-2)); color: var(--ivory);
  box-shadow: 0 30px 80px rgba(0,0,0,.8), inset 0 0 0 1px rgba(236,210,154,.14);
}
.modal::backdrop { background: rgba(10,6,5,.7); backdrop-filter: blur(3px); }
.modal form { padding: 22px; }
.modal h2 { font-family: var(--f-display); font-weight: 800; font-size: 30px; margin: 0 0 6px; line-height: 1; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.modal .actions { display: flex; gap: 10px; margin-top: 8px; }
.modal .actions .btn { flex: 1; }
.share-link { display: flex; gap: 8px; margin-bottom: 12px; }
.share-link input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border-radius: var(--r-m); border: 1px solid rgba(245,238,223,.14); background: var(--walnut-0); font-size: 14px; }
.big-code { font-family: var(--f-display); font-weight: 800; font-size: 64px; letter-spacing: .14em; text-align: center; color: var(--brass-hi); line-height: 1; margin: 6px 0 16px; }

/* ============ Toasty ============ */
.toasts { position: fixed; left: 50%; top: calc(var(--top-h) + env(safe-area-inset-top) + 10px); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toast 3s ease forwards; text-align: center; }
.toast.err { background: #f3d6cf; color: #6d1c12; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ============ Responzivita ============ */
@media (max-width: 1100px) {
  .drawer { position: absolute; right: 0; top: 0; bottom: 0; box-shadow: -20px 0 40px rgba(0,0,0,.5); }
  .drawer-close { display: inline-grid; }
}
@media (max-width: 700px) {
  :root { --top-h: 50px; --seat-w: 90px; }
  .handdesc { font-size: 10.5px; }
  .center-msg { font-size: 13px; }
  .topbar { gap: 10px; }
  .logo-sm { display: none; }
  .blinds-info { font-size: 12px; }
  .drawer { width: 100%; border-left: 0; }
  .plate { padding: 3px 8px 3px 3px; gap: 0 6px; }
  .avatar { width: 32px; height: 32px; font-size: 18px; }
  .seat.turn .avatar::before { -webkit-mask: radial-gradient(circle, transparent 18px, #000 19px); mask: radial-gradient(circle, transparent 18px, #000 19px); }
  .seat .name { font-size: 11.5px; }
  .seat .stack { font-size: 14px; }
  .bet { font-size: 13px; padding: 1px 7px 1px 2px; }
  .chip { width: 15px; height: 15px; }
  .pot { font-size: 17px; }
  .dock-inner { gap: 10px; flex-wrap: wrap; }
  .my-hand { flex-direction: row; align-items: center; gap: 10px; width: 100%; justify-content: flex-start; }
  .my-hand .card { --w: 50px; }
  .my-hand .label { white-space: normal; text-align: left; }
  .react-wrap { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 6px; }
  .react-btn { width: 42px; height: 42px; font-size: 21px; }
  .controls { width: 100%; flex-basis: 100%; }
  .controls .row > .btn { min-height: 50px; font-size: 15px; padding: 0 8px; }
  .presets button { font-size: 12px; }
}
@media (max-width: 380px) {
  :root { --seat-w: 80px; }
  .avatar-pick { grid-template-columns: repeat(6, 1fr); }
  .seat .name { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) { .hide-sm { display: none; } }

/* ============ Dosky, bomb pot, šance, overenie ============ */
.board.multi { flex-direction: column; gap: 6px; }
.board.multi .card, .board.multi .slot { --w: calc(var(--card-w) * .82); width: var(--w); height: calc(var(--w) * 1.4); }
.board-row { display: flex; align-items: center; gap: calc(var(--card-w) * .1); }
.board-no { width: 16px; font-family: var(--f-display); font-weight: 800; font-size: 14px; color: var(--brass-hi); opacity: .7; text-align: center; }
.bomb-tag { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--brass-hi); margin-right: 4px; letter-spacing: 0; }
.muted { color: var(--muted); }
.equity {
  margin-top: 16px; padding: 1px 10px; border-radius: 999px; font-family: var(--f-display); font-weight: 800; font-size: 17px;
  background: var(--ivory); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.5); font-variant-numeric: tabular-nums;
}
.verify-ok, .verify-bad { border: 0; background: transparent; font-size: 12px; padding: 2px 6px; border-radius: 999px; margin-top: 4px; }
.verify-ok { color: var(--ok); }
.verify-bad { color: var(--danger); }
.verify-ok:hover, .verify-bad:hover { background: rgba(0,0,0,.25); }
.fair-list { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 8px; color: var(--ivory-2); font-size: 14px; }
.fair-list code, .hash { font-size: 12px; }
.hash { display: block; word-break: break-all; padding: 8px 10px; border-radius: 8px; background: var(--walnut-0); color: var(--brass-hi); }
.modal-sub { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 10px; }
.modal form { max-height: calc(100dvh - 24px); overflow-y: auto; }
.fun { margin: 0 0 18px; border-radius: var(--r-m); background: rgba(0,0,0,.18); padding: 4px 14px; }
.fun summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--ivory-2); }
.fun[open] summary { margin-bottom: 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 4px 8px; }
.stat { background: rgba(245,238,223,.05); border-radius: var(--r-m); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.stat-l { font-size: 12px; color: var(--muted); }
.stat-v { font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--brass-hi); }
.stat-s { font-size: 12px; color: var(--ivory-2); }
.stat .mini { min-width: 20px; height: 22px; font-size: 12px; }

/* ============ Mobil na šírku (nízka výška) ============ */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top-h: 42px; --seat-w: 92px; }
  .logo-sm { font-size: 24px; }
  .code-chip { height: 30px; }
  .code-chip strong { font-size: 17px; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .plate { padding: 2px 8px 2px 2px; gap: 0 6px; }
  .avatar { width: 28px; height: 28px; font-size: 16px; }
  .seat.turn .avatar::before { -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); }
  .seat .name { font-size: 11px; }
  .seat .stack { font-size: 13px; }
  .tag { font-size: 10px; padding: 0 6px; }
  .handdesc, .equity { margin-top: 12px; font-size: 10px; }
  .equity { font-size: 13px; }
  .bet { font-size: 12px; }
  .chip { width: 14px; height: 14px; }
  .pot { font-size: 15px; padding: 2px 10px 2px 4px; }
  .center { gap: 4px; }
  .center-msg { font-size: 12px; min-height: 0; }
  .dock { padding-top: 4px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .dock-inner { gap: 10px; align-items: center; flex-wrap: nowrap; }
  .my-hand { flex-direction: row; gap: 8px; width: auto; }
  .my-hand .card { --w: 38px; }
  .my-hand .label { font-size: 12px; max-width: 110px; white-space: normal; }
  .controls { width: auto; flex-basis: auto; }
  .controls .row > .btn { min-height: 42px; font-size: 14px; }
  .controls .hint { padding: 2px 0; font-size: 13px; }
  .sizer { padding: 8px; gap: 6px; }
  .presets button { min-height: 32px; }
  .sizer-amt input[type=number] { font-size: 26px; }
  .pre-row label { min-height: 40px; }
  .react-wrap { position: static; }
  .react-btn { width: 40px; height: 40px; font-size: 20px; }
}

/* ============ Odlepenie riveru ============ */
.peel {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(62,15,23,.82), rgba(10,6,5,.92));
  backdrop-filter: blur(3px);
  animation: peelIn .3s ease both;
}
.peel.closing { animation: peelOut .35s ease both; }
@keyframes peelIn { from { opacity: 0; } }
@keyframes peelOut { to { opacity: 0; } }
.peel-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; }
.peel-title { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: .04em; color: var(--brass-hi); }
.peel-cards { display: flex; gap: 22px; }
.peel-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.peel-no { font-size: 13px; color: var(--muted); font-weight: 600; }
.peel-stack {
  --w: min(72vw, 48vh, 310px);
  position: relative; width: var(--w); height: calc(var(--w) * 1.4);
  touch-action: none; cursor: grab; user-select: none;
  animation: peelPop .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes peelPop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.peel-cards .peel-card:nth-child(2) .peel-stack { animation-delay: .12s; }
.peel-stack .card { --w: min(72vw, 48vh, 310px); position: absolute; inset: 0; width: 100%; height: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.peel-back { --peel: 0; position: absolute; inset: 0; pointer-events: none; }
.peel-back .card.back {
  /* odlepuje sa od spodného okraja nahor */
  clip-path: inset(0 0 calc(var(--peel) * 100%) 0 round calc(var(--w) * .11));
  transition: clip-path .25s ease;
}
.peel-back.dragging .card.back { transition: none; }
.peel-back::after {
  /* ohnutý okraj karty */
  content: ''; position: absolute; left: 0; right: 0;
  top: calc((1 - var(--peel)) * 100% - 1px); height: calc(min(var(--peel), .25) * 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(242,232,212,.95) 30%, #e8dcc4);
  border-radius: 0 0 14px 14px; box-shadow: 0 8px 18px rgba(0,0,0,.45);
  opacity: calc(var(--peel) * 6); transition: top .25s ease, height .25s ease;
}
.peel-back.dragging::after { transition: none; }
.peel-back.gone { opacity: 0; transition: opacity .3s ease .1s; }
.peel-card.revealed .peel-face { animation: revealGlow 1s ease; }
@keyframes revealGlow { 30% { box-shadow: 0 0 0 3px var(--win), 0 0 60px rgba(240,207,122,.8); transform: scale(1.04); } }
.peel-odds { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 16px; color: var(--ivory-2); }
.peel-odds b { color: var(--ivory); }
.peel-odds i { font-style: normal; color: var(--muted-2); font-size: 13px; }
.peel-hint { color: var(--muted); font-size: 14px; text-align: center; }
.card.peel-wait { animation: none; }

/* ============ Animácie rozdávania (riadené z JS) ============ */
.ghost { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; will-change: transform, opacity; }
.ghost.card { margin: 0; }
.anim-hide { visibility: hidden; }
.card.rabbit.new { animation: flipIn .45s cubic-bezier(.2,.8,.2,1) both; }

.seat.mucked .cards { opacity: .25; }
.presets button.cfg { flex: 0 0 40px; font-size: 15px; background: transparent; box-shadow: inset 0 0 0 1px rgba(245,238,223,.14); }
.bet-cfg { display: flex; gap: 6px; align-items: center; }
.bet-cfg input { min-width: 0; flex: 1; height: 44px; padding: 0 8px; text-align: center; border-radius: var(--r-m); border: 1px solid rgba(245,238,223,.14); background: var(--walnut-0); color: var(--ivory); font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.bet-cfg i { font-style: normal; color: var(--muted); font-size: 13px; width: 22px; }

/* ============ Režimy, vyúčtovanie, turnaj ============ */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes .mode:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mode { position: relative; display: grid; gap: 2px; padding: 12px 12px 12px 14px; border-radius: var(--r-m); background: var(--walnut-0); box-shadow: inset 0 0 0 1px rgba(245,238,223,.12); cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode b { font-weight: 600; font-size: 15px; }
.mode small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.mode:has(input:checked) { background: rgba(212,175,99,.14); box-shadow: inset 0 0 0 2px var(--brass); }
.mode:has(input:focus-visible) { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.opt { font-style: normal; color: var(--muted-2); font-weight: 400; }
.mode-pill { font-size: 12px; font-weight: 600; color: var(--brass-hi); background: rgba(212,175,99,.1); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 700px) { .mode-pill { display: none; } }
.buyin-opts { display: flex; gap: 6px; margin-bottom: 8px; }
.buyin-opts button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: var(--walnut-0); color: var(--ivory); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(245,238,223,.14); }
.buyin-opts button.on { background: rgba(212,175,99,.18); box-shadow: inset 0 0 0 2px var(--brass); }
.buyin-note { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 6px; }
.ledger th { text-align: right; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger td { text-align: right; padding: 6px 4px; border-top: 1px solid rgba(245,238,223,.06); font-variant-numeric: tabular-nums; }
.settle { display: grid; gap: 6px; padding: 4px; }
.settle div { background: rgba(245,238,223,.05); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.results { display: grid; gap: 6px; margin: 8px auto 4px; text-align: left; min-width: min(300px, 80%); }
.results div { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.3); border-radius: 10px; padding: 6px 12px; font-size: 14px; }
.results .pl { font-family: var(--f-display); font-weight: 800; font-size: 18px; width: 30px; color: var(--brass-hi); }
.results .nm { flex: 1; }
.results .pz { font-weight: 600; color: var(--win); }
.envelope { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(10,6,5,.75); backdrop-filter: blur(3px); animation: peelIn .3s ease both; }
.envelope.closing { animation: peelOut .4s ease both; }
.env-box { display: grid; justify-items: center; gap: 10px; text-align: center; }
.env-icon { font-size: 110px; line-height: 1; animation: envShake .9s ease-in-out 2; }
@keyframes envShake { 20% { transform: rotate(-8deg) scale(1.05); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg) scale(1.08); } 80% { transform: rotate(4deg); } }
.env-val { font-family: var(--f-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--win); text-shadow: 0 0 40px rgba(240,207,122,.6); }
.env-who { color: var(--ivory-2); font-size: 16px; }

/* ============ Bakaratový peel ============ */
.peel-stack { overflow: visible; }
.peel-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .2s ease-out; }
.sq-svg { position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; pointer-events: none; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.bigcard {
  position: absolute; inset: 0; border-radius: calc(var(--w) * .11); overflow: hidden;
  background: linear-gradient(160deg, #fffaf0, var(--ivory) 60%, var(--ivory-2));
  color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 20px 50px rgba(0,0,0,.7);
  font-family: var(--f-ui);
}
.bigcard.red { color: var(--suit-red); }
.bigcard .idx { position: absolute; left: 5%; top: 3%; display: none; justify-items: center; line-height: 1; }
.peel-card.revealed .bigcard .idx { display: grid; }
.bigcard .idx b { font-family: var(--f-display); font-weight: 800; font-size: calc(var(--w) * .2); letter-spacing: -.03em; }
.bigcard .idx i { font-style: normal; font-size: calc(var(--w) * .13); }
.bigcard .idx2 { left: auto; top: auto; right: 5%; bottom: 3%; transform: rotate(180deg); }
.bigcard .pip { position: absolute; transform: translate(-50%, -50%); font-size: calc(var(--w) * .27); line-height: 1; }
.bigcard .court { position: absolute; inset: 10% 13%; border: 2px solid currentColor; border-radius: 6px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(212,175,99,.12) 0 6px, transparent 6px 12px); }
.bigcard .court-l { font-family: var(--f-display); font-weight: 800; font-size: calc(var(--w) * .45); line-height: 1; }
.bigcard .court-s, .bigcard .court-s2 { position: absolute; font-size: calc(var(--w) * .2); left: 8%; top: 4%; }
.bigcard .court-s2 { left: auto; top: auto; right: 8%; bottom: 4%; transform: rotate(180deg); }
.peel-card.revealed .bigcard { animation: revealGlow 1s ease; }

/* ============ Plynulé prechody ============ */
.modal[open] { animation: modalIn .24s cubic-bezier(.2,.8,.2,1); }
.modal[open]::backdrop { animation: fadeIn .24s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.menu:not([hidden]) { animation: menuIn .16s cubic-bezier(.2,.8,.2,1); transform-origin: top right; }
@keyframes menuIn { from { opacity: 0; transform: scale(.95) translateY(-4px); } }
.react-tray:not([hidden]) { animation: menuIn .16s cubic-bezier(.2,.8,.2,1); transform-origin: bottom right; }
.drawer:not(.collapsed) { animation: drawerIn .26s cubic-bezier(.2,.8,.2,1); }
@keyframes drawerIn { from { opacity: 0; transform: translateX(24px); } }
.seat.joined { animation: seatIn .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes seatIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
.center-msg { transition: opacity .25s ease; }
.controls .row, .controls .pre-row, .controls .hint { animation: fadeUp .22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.tag { transition: background-color .2s, color .2s; }
.seat .plate { transition: box-shadow .3s ease, background .3s ease; }
.btn, .icon-btn, .presets button, .pre-row label { transition: transform .08s ease, filter .15s ease, background-color .15s ease, box-shadow .15s ease; }
.board .card { transition: transform .25s ease, filter .3s ease; }
html { scroll-behavior: smooth; }

.ko-badge { position: absolute; right: -10px; top: -17px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #2a1a08; color: var(--brass-hi); box-shadow: 0 0 0 1px var(--brass), 0 2px 6px rgba(0,0,0,.5); white-space: nowrap; }
.results.lobby { max-height: 38vh; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

.center-msg .results { max-height: 34vh; overflow-y: auto; }
/* ============ In the money ============ */
.itm { position: fixed; inset: 0; z-index: 48; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, rgba(90,60,20,.9), rgba(10,6,5,.95) 70%); animation: peelIn .3s ease both; cursor: pointer; }
.itm.closing { animation: peelOut .5s ease both; }
.itm-rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); opacity: 0;
  background: repeating-conic-gradient(rgba(240,207,122,.16) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 55%); mask: radial-gradient(circle, #000 0, transparent 55%);
  animation: itmRays 5.5s linear .9s forwards; }
@keyframes itmRays { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.6); } 12% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(60deg) scale(1); } }
.itm-bubble { position: absolute; left: 50%; top: 45%; width: min(46vmin, 300px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), rgba(255,255,255,.08) 22%, rgba(140,200,255,.10) 55%, rgba(255,160,220,.22) 80%, rgba(255,255,255,.35) 100%);
  box-shadow: inset 0 0 40px rgba(255,255,255,.25), 0 0 40px rgba(240,207,122,.25);
  display: grid; place-items: center; animation: itmBubble .95s ease-in both; }
.itm-bubble span { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 6vmin, 40px); letter-spacing: .08em; color: rgba(255,255,255,.85); }
@keyframes itmBubble { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 25% { opacity: 1; } 55% { transform: translate(-50%, -50%) scale(1) scaleX(1.06); } 70% { transform: translate(-50%, -50%) scale(1.02) scaleY(1.06); } 90% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
.itm-text { position: absolute; left: 0; right: 0; top: 45%; transform: translateY(-50%); text-align: center; pointer-events: none; }
.itm-big { position: relative; display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: clamp(52px, 13vw, 150px); line-height: .9; letter-spacing: .02em;
  background: linear-gradient(100deg, #9b7a3a 0%, #f0cf7a 30%, #fff7d6 45%, #f0cf7a 60%, #9b7a3a 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #4a3510) drop-shadow(0 0 40px rgba(240,207,122,.55));
  animation: itmPop .8s cubic-bezier(.2,1.6,.4,1) 1s both, itmShine 2.2s linear 1.6s infinite; }
@keyframes itmPop { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@keyframes itmShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.itm-sub { margin-top: 14px; font-size: clamp(16px, 2.4vw, 22px); color: var(--ivory); font-weight: 600; animation: fadeUp .5s ease 1.5s both; }
.itm-p { position: absolute; font-size: 30px; line-height: 1; pointer-events: none; will-change: transform; }
.itm-bill { position: absolute; top: -60px; font-size: 34px; animation: itmFall linear infinite both; }
@keyframes itmFall { from { transform: translateY(0) rotate(0); } to { transform: translateY(115vh) rotate(540deg); } }


/* =====================================================================
   VZHĽAD „ARÉNA“ – tmavá hala, zelené plátno, veľké okrúhle avatary
   (predvolený; „Klasika“ = bordové súkno vypne triedu .arena)
   ===================================================================== */
html.arena {
  --a-bg-0: #04070c;
  --a-bg-1: #0b1420;
  --a-bg-2: #13233a;
  --a-felt-hi: #23a283;
  --a-felt: #137a63;
  --a-felt-lo: #0a4639;
  --a-rail-hi: #2b3644;
  --a-rail: #121921;
  --a-plate: #0f161e;
  --a-plate-hi: #1d2733;
  --a-line: rgba(160,190,220,.14);
  --a-gold: #f4c95d;
  --a-teal: #6fe3cf;
  --av: 64px;
  --seat-w: 128px;
}
html.arena .game {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(80,130,190,.28), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 55%, var(--a-bg-2) 0%, var(--a-bg-1) 55%, var(--a-bg-0) 100%);
}
html.arena .stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 18% 9% at 22% 8%, rgba(255,214,150,.10), transparent 70%),
    radial-gradient(ellipse 18% 9% at 78% 8%, rgba(255,214,150,.10), transparent 70%),
    radial-gradient(ellipse 60% 20% at 50% 100%, rgba(0,0,0,.6), transparent 70%);
}
html.arena .topbar { background: linear-gradient(180deg, rgba(4,7,12,.85), rgba(4,7,12,.35)); border-bottom-color: var(--a-line); }
html.arena .code-chip { background: rgba(111,227,207,.08); color: var(--a-teal); box-shadow: inset 0 0 0 1px rgba(111,227,207,.3); }
html.arena .mode-pill { background: rgba(111,227,207,.1); color: var(--a-teal); }

html.arena .table {
  background: linear-gradient(180deg, var(--a-rail-hi), var(--a-rail) 45%, #070b10);
  box-shadow:
    0 40px 80px -24px rgba(0,0,0,.95),
    0 0 0 1px rgba(0,0,0,.8),
    0 0 0 3px rgba(120,150,180,.12),
    inset 0 2px 0 rgba(255,255,255,.12),
    inset 0 -3px 8px rgba(0,0,0,.7);
}
html.arena .felt {
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(170,255,225,.16), transparent 70%),
    radial-gradient(ellipse at 50% 50%, var(--a-felt-hi) 0%, var(--a-felt) 50%, var(--a-felt-lo) 100%);
  box-shadow: 0 0 0 2px #05090d, 0 0 0 4px rgba(150,180,210,.18), inset 0 0 60px rgba(0,0,0,.55), inset 0 0 0 10px rgba(0,0,0,.1);
}
html.arena .felt::before { opacity: .16; }
html.arena .felt::after { inset: 8%; border: 2px solid rgba(255,255,255,.07); }
html.arena .felt-mark { color: rgba(0,0,0,.16); top: 70%; }

html.arena .pot { background: rgba(3,10,14,.6); box-shadow: inset 0 0 0 1px rgba(111,227,207,.25); color: #fff; }
html.arena .pot small { color: var(--a-teal); font-weight: 600; }
html.arena .bet { background: rgba(3,10,14,.62); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
html.arena .bomb-tag { color: var(--a-gold); }
.bbu { font-size: .62em; margin-left: 1px; opacity: .85; letter-spacing: 0; }
html.arena .board .slot { border-color: rgba(255,255,255,.12); }
html.arena .center-msg { color: #dfeee9; }

/* miesta: avatar hore, karty cez jeho spodok, tabuľka s menom dole */
html.arena .seat { --cw: calc(var(--card-w) * .66); --ch: calc(var(--cw) * 1.4); }
html.arena .seat.faceup { --cw: calc(var(--card-w) * 1.02); }
html.arena .seat .cards {
  position: relative; z-index: 3; align-items: flex-end;
  height: var(--ch); margin-bottom: -6px;
}
html.arena .seat .cards .card { --w: var(--cw); }
html.arena .seat .cards .card + .card { margin-left: calc(var(--cw) * -.42); transform: rotate(7deg) translateY(1px); }
html.arena .seat .cards .card:first-child { transform: rotate(-6deg); }
html.arena .seat.faceup .cards .card + .card { margin-left: calc(var(--cw) * -.3); transform: rotate(4deg); }
html.arena .seat.faceup .cards .card:first-child { transform: rotate(-3deg); }
html.arena .seat.faceup .cards .card.hl { transform: translateY(-6px); }
html.arena .seat.faceup .cards { height: var(--ch); margin-bottom: -6px; }
html.arena .plate {
  display: block; text-align: center;
  padding: 10px 10px 6px; border-radius: 10px;
  background: linear-gradient(180deg, var(--a-plate-hi), var(--a-plate));
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.85), inset 0 0 0 1px rgba(170,200,230,.14), inset 0 1px 0 rgba(255,255,255,.06);
}
html.arena .avatar {
  position: absolute; left: 50%; bottom: calc(100% - 6px); transform: translateX(-50%);
  width: var(--av); height: var(--av); font-size: calc(var(--av) * .56);
  background: radial-gradient(circle at 50% 30%, #3a4b60, #172231 70%, #0b121b);
  box-shadow: 0 0 0 2px #0a0f15, 0 0 0 3.5px rgba(150,180,210,.35), 0 6px 14px rgba(0,0,0,.6);
  transition: box-shadow .3s, filter .3s;
}
/* keď má hráč karty, avatar sa zdvihne a karty mu prekryjú spodok */
html.arena .seat.has-cards .avatar { bottom: calc(100% + var(--ch) * .2); }
html.arena .seat.has-cards.faceup .avatar { bottom: calc(100% + var(--ch) * .45); }
html.arena .seat.turn .avatar::before { display: none; }
html.arena .seat.turn .avatar { box-shadow: 0 0 0 2px #0a0f15, 0 0 0 4px var(--a-teal), 0 0 22px rgba(111,227,207,.55); }
html.arena .seat.turn.hurry .avatar { box-shadow: 0 0 0 2px #0a0f15, 0 0 0 4px var(--danger), 0 0 22px rgba(226,106,90,.6); }
html.arena .seat .name { color: #e4ebf2; font-size: 13.5px; font-weight: 600; }
html.arena .seat .stack { color: var(--a-gold); font-size: 20px; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
html.arena .seat.me .plate { background: linear-gradient(180deg, #24364a, #111c28); }
html.arena .seat.turn .plate { box-shadow: 0 0 0 1.5px var(--a-teal), 0 0 22px rgba(111,227,207,.35), 0 8px 18px -6px rgba(0,0,0,.85); }
html.arena .seat.turn .plate::after {
  content: ''; position: absolute; left: 8%; bottom: -7px; height: 4px; border-radius: 4px;
  width: calc(84% * var(--p)); background: var(--a-teal); box-shadow: 0 0 10px rgba(111,227,207,.8);
}
html.arena .seat.turn.hurry .plate::after { background: var(--danger); box-shadow: 0 0 10px rgba(226,106,90,.8); }
html.arena .seat.folded .avatar { filter: grayscale(.8) brightness(.55); }
html.arena .seat.folded .plate { opacity: .75; }
html.arena .seat.winner .plate { box-shadow: 0 0 0 2px var(--a-gold), 0 0 32px rgba(244,201,93,.55); animation: winPulseA 1.2s ease-in-out 2; }
html.arena .seat.winner .avatar { box-shadow: 0 0 0 2px #0a0f15, 0 0 0 4px var(--a-gold), 0 0 26px rgba(244,201,93,.6); }
@keyframes winPulseA { 50% { box-shadow: 0 0 0 3px var(--a-gold), 0 0 48px rgba(244,201,93,.8); } }
html.arena .host-crown { top: -6px; left: 50%; transform: translateX(-50%); font-size: 15px; }
html.arena .ko-badge { right: -12px; top: -12px; }

/* akcia ako štítok v rohu tabuľky */
html.arena .tag {
  left: -8px; top: -11px; transform: none;
  padding: 1px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  font-family: var(--f-ui); background: #e9eef3; color: #0d141b;
}
html.arena .tag.fold { background: #3a4552; color: #b8c3cf; }
html.arena .tag.raise, html.arena .tag.bet { background: #e08a2c; color: #1c0f02; }
html.arena .tag.call, html.arena .tag.check { background: #3aa98d; color: #04150f; }
html.arena .tag.allin { background: #d3283b; color: #fff; }
html.arena .tag.sb, html.arena .tag.bb { background: #2f6fd0; color: #fff; }
html.arena .tag.win { left: 50%; top: auto; bottom: -12px; transform: translateX(-50%); background: var(--a-gold); color: #1c1203; }
html.arena .tag.sitout { background: #2a333d; color: #9aa7b4; }
html.arena .tag.pop { animation: popA .35s cubic-bezier(.3,1.6,.5,1); }
html.arena .tag.win.pop { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes popA { from { transform: scale(.4); opacity: 0; } }
html.arena .handdesc { margin-top: 12px; background: rgba(3,10,14,.75); color: #dfeee9; }
html.arena .equity { margin-top: 12px; }

html.arena .seat-empty { border-color: rgba(111,227,207,.35); background: rgba(3,10,14,.45); color: var(--a-teal); width: 58px; height: 58px; }
html.arena .seat-empty:hover { background: rgba(111,227,207,.14); }
html.arena .dealer-btn { background: radial-gradient(circle at 35% 30%, #fff, #e9eef3 70%); color: #c8263a; border-radius: 7px; width: 24px; height: 24px; box-shadow: 0 2px 5px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(200,38,58,.35); }

html.arena .dock { background: linear-gradient(180deg, rgba(4,7,12,0), rgba(4,7,12,.94) 30%); }
html.arena .drawer { background: rgba(9,14,21,.97); border-left-color: var(--a-line); }
html.arena .sizer { --sz-bg: rgba(12,19,28,.96); --sz-btn: #1e2b3a; --sz-btn-hi: #283a4e; --sz-acc: var(--a-teal); --sz-acc-ink: #04150f; --sz-line: rgba(160,190,220,.16); }
html.arena .act-fold { background: #222d39; box-shadow: inset 0 0 0 1px rgba(170,200,230,.14); }
html.arena .act-fold:hover { background: #2b3847; }
html.arena .btn-dark { background: #1d2a38; }
html.arena .btn-dark:hover { background: #26374a; }
html.arena .btn-ghost { background: rgba(170,200,230,.07); box-shadow: inset 0 0 0 1px rgba(170,200,230,.16); }

@media (max-width: 700px) {
  html.arena { --av: 44px; --seat-w: 92px; }
  html.arena .seat .stack { font-size: 15px; }
  html.arena .seat .name { font-size: 11.5px; }
  html.arena .plate { padding: 6px 6px 4px; border-radius: 8px; }
  html.arena .seat .cards, html.arena .seat.faceup .cards { margin-bottom: -2px; }
  html.arena .seat { --cw: calc(var(--card-w) * .66); }
  html.arena .seat.faceup { --cw: calc(var(--card-w) * 1.05); }
  html.arena .tag { font-size: 9.5px; padding: 0 6px; left: -6px; top: -9px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  html.arena { --av: 38px; --seat-w: 96px; }
  html.arena .seat .stack { font-size: 14px; }
  html.arena .plate { padding: 3px 6px; }
}
html.arena .menu { background: #0f1720; box-shadow: 0 18px 40px rgba(0,0,0,.7), inset 0 0 0 1px var(--a-line); }
html.arena .modal { background: #101a25; box-shadow: 0 30px 80px rgba(0,0,0,.8), inset 0 0 0 1px var(--a-line); }

/* ---- panel stávky: počítač = pevne v spodnom paneli, výška sa nemení ---- */
@media (min-width: 701px) and (min-height: 501px) {
  .controls { min-height: 168px; justify-content: flex-end; }
  .sizer {
    position: static; width: auto; animation: none;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 14px;
    padding: 10px 12px; border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--sz-line); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .sizer.enter { animation: fadeUp .22s ease; }
  .sizer-head { display: contents; }
  .sizer-amt { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 130px; }
  .sizer-amt .sizer-word { font-size: 12px; }
  .sizer-amt input[type=number] { font-size: 28px; }
  .sizer-sub { font-size: 11.5px; }
  .presets { grid-column: 2; grid-row: 1; }
  .sizer-step { grid-column: 3; grid-row: 1; }
  .sizer-step button { width: 40px; height: 40px; font-size: 22px; }
  .sizer-range { grid-column: 1 / -1; grid-row: 2; height: 24px; }
}
/* ---- mobil: panel vyskočí nad moje karty, stôl sa nehýbe ---- */
@media (max-width: 700px), (max-height: 500px) {
  .dock-inner { position: relative; }
  .controls { position: static; }
  .sizer { left: 0; right: 0; width: auto; bottom: calc(100% + 8px); }
}
.seat .stack, .pot, .bet { cursor: pointer; }

/* ---- stôl bez nápisu: jemné symboly farieb ---- */
.felt-mark {
  display: flex; gap: .55em; font-family: var(--f-ui); font-weight: 400;
  font-size: clamp(16px, 2.2vw, 26px); letter-spacing: 0; color: rgba(0,0,0,.2); text-shadow: 0 1px 0 rgba(255,255,255,.04);
}
html.arena .felt-mark { top: 71%; color: rgba(0,30,22,.32); }
html.arena .felt-mark .r { color: rgba(70,0,10,.22); }

/* ---- ⓘ prehľad stola ---- */
.info-btn {
  position: absolute; top: 10px; right: 12px; z-index: 6;
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 18px; line-height: 1;
  color: var(--brass-hi); background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 1.5px rgba(236,210,154,.45), 0 4px 12px rgba(0,0,0,.4);
  transition: background .15s, transform .15s;
}
.info-btn:hover, .info-btn.on { background: rgba(212,175,99,.22); }
.info-btn:active { transform: scale(.94); }
html.arena .info-btn { color: var(--a-teal); background: rgba(3,10,14,.55); box-shadow: inset 0 0 0 1.5px rgba(111,227,207,.5), 0 4px 12px rgba(0,0,0,.5); }
html.arena .info-btn:hover, html.arena .info-btn.on { background: rgba(111,227,207,.16); }
.info-pop {
  position: absolute; top: 52px; right: 12px; z-index: 9;
  width: min(320px, calc(100% - 24px)); max-height: calc(100% - 64px); overflow: auto;
  padding: 6px 14px 12px; border-radius: 14px;
  background: rgba(30,21,16,.97); color: var(--ivory);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.85), inset 0 0 0 1px rgba(236,210,154,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: infoIn .2s cubic-bezier(.2,.9,.25,1); transform-origin: top right;
}
@keyframes infoIn { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
html.arena .info-pop { background: rgba(12,19,28,.97); box-shadow: 0 24px 50px -12px rgba(0,0,0,.85), inset 0 0 0 1px rgba(160,190,220,.16); }
.info-sec { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
html.arena .info-sec { color: #8fa3b8; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.05); }
.info-row > span:first-child { color: var(--ivory-2); white-space: nowrap; }
html.arena .info-row > span:first-child { color: #c9d4df; }
.info-row > span:last-child { text-align: right; }
.info-row b { font-variant-numeric: tabular-nums; }
.info-row .muted { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .info-pop { animation: none; } }
.sizer-in { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.sizer-unit { font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--muted); }

.sizer-amt input[type=number] { width: 4ch; max-width: 100%; }

/* =====================================================================
   TIGRÍ STÔL – zapne sa, keď je turnaj v peniazoch (ITM)
   ===================================================================== */
.tiger-skin {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255,240,180,.38), transparent 70%),
    url(/tiger.svg) center / 300px 300px,
    radial-gradient(ellipse at 50% 50%, #ffb12e 0%, #f07a12 45%, #b8480a 78%, #5e2104 100%);
  box-shadow: inset 0 0 70px rgba(60,15,0,.75), inset 0 0 0 10px rgba(80,25,0,.2);
}
.tiger-skin::after {
  /* zlatá čiara na súkne */
  content: ''; position: absolute; inset: 8%; border-radius: 999px;
  border: 2px solid rgba(255,215,110,.55); box-shadow: 0 0 18px rgba(255,200,80,.35), inset 0 0 18px rgba(255,200,80,.25);
}
.tiger-shine {
  /* lesklý prebleskujúci pás */
  position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255,250,220,.0) 30%, rgba(255,250,220,.38) 50%, rgba(255,250,220,0) 70%, transparent);
  transform: skewX(-18deg);
}
.table.tiger .tiger-skin { opacity: 1; }
.table.tiger .tiger-shine { animation: tigerShine 5.5s ease-in-out 1s infinite; }
@keyframes tigerShine { 0% { left: -40%; } 45%, 100% { left: 130%; } }
.table.tiger .felt::after { opacity: 0; }
.table .felt-mark, .table .center { position: absolute; z-index: 1; }
.table.tiger .felt-mark { color: rgba(60,15,0,.45); }

/* zlatý okraj stola s pulzujúcou žiarou */
.table.tiger { animation: tigerGlow 2.6s ease-in-out infinite; }
@keyframes tigerGlow {
  0%, 100% { box-shadow: 0 40px 80px -24px rgba(0,0,0,.95), 0 0 0 2px #f2c14e, 0 0 40px rgba(255,170,40,.35); }
  50% { box-shadow: 0 40px 80px -24px rgba(0,0,0,.95), 0 0 0 2px #ffe08a, 0 0 70px rgba(255,170,40,.6); }
}
.table.tiger { background: linear-gradient(180deg, #ffe7a0 0%, #e2a93a 20%, #8a5512 55%, #d9a23e 80%, #5c3608 100%) !important; }
.table.tiger .felt { box-shadow: 0 0 0 2px #3a1a02, 0 0 0 4px rgba(255,215,110,.6), inset 0 0 60px rgba(0,0,0,.4) !important; }
.table.tiger .pot { background: rgba(40,12,0,.7); box-shadow: inset 0 0 0 1px rgba(255,210,100,.55); }
.table.tiger .pot small { color: #ffd479; }
.table.tiger .board .slot { border-color: rgba(60,15,0,.35); }
.table.tiger .center-msg { color: #2b0e00; text-shadow: 0 1px 0 rgba(255,220,150,.4); }
.table.tiger .center-msg b { color: #fff3c4; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) {
  .table.tiger, .table.tiger .tiger-shine { animation: none; }
}
@media (max-width: 700px) { .tiger-skin { background-size: auto, 220px 220px, auto; } }

/* ---- peel: kto už odkryl ---- */
.peel-who { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 30px; }
.pw-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pw { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06); color: var(--ivory-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .3s, color .3s; }
.pw i { font-style: normal; opacity: .7; }
.pw.ok { background: rgba(143,199,154,.16); color: #cfeed6; box-shadow: inset 0 0 0 1px rgba(143,199,154,.4); }
.pw.ok i { opacity: 1; color: var(--ok); }
.pw-note { font-size: 13px; color: var(--muted); text-align: center; }
/* moje percentá pri all-in */
.my-eq { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(240,207,122,.16); color: var(--win);
  font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(240,207,122,.4); }
html.arena .my-eq { background: rgba(111,227,207,.14); color: var(--a-teal); box-shadow: inset 0 0 0 1px rgba(111,227,207,.4); }
html.arena .peel { background: radial-gradient(ellipse at 50% 45%, rgba(19,90,72,.78), rgba(3,7,12,.94)); }
html.arena .peel-title { color: var(--a-gold); }

/* dve dosky (bomb pot / run it twice) – karty vedľa seba, menšie */
.peel-cards:has(.peel-card + .peel-card) .peel-stack { --w: min(42vw, 42vh, 250px); }
.peel-cards:has(.peel-card + .peel-card) .peel-stack .card { --w: min(42vw, 42vh, 250px); }

.equity .outs { font-weight: 500; opacity: .8; }
.my-eq small { font-family: var(--f-ui); font-weight: 600; font-size: 12px; opacity: .85; }
.bigcard .pip { font-size: calc(var(--w) * .3); }
/* run it twice: spoločné karty sa na druhej doske len jemne objavia */
.board .card.dup { animation: dupIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dupIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .board .card.dup { animation: none; } }

/* =====================================================================
   KLASICKÉ KARTY (predvolené) – biele líca, pätkové indexy, rub z fotky
   ===================================================================== */
.card.cx {
  background: linear-gradient(165deg, #ffffff, #f8f6f1 70%, #efebe2);
  font-family: Georgia, 'Times New Roman', 'Noto Serif', serif; font-weight: 700;
  box-shadow: 0 3px 8px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.22);
  color: #151515;
}
.card.cx.red { color: #c8102e; }
.card.cx .sv { display: block; width: 100%; height: auto; }
.card.cx .cx-r { position: absolute; left: 8%; top: 3%; font-size: calc(var(--w) * .42); line-height: 1; letter-spacing: -.05em; }
.card.cx[data-c^="T"] .cx-r { font-size: calc(var(--w) * .34); letter-spacing: -.1em; left: 5%; }
.card.cx .cx-s { position: absolute; left: 9%; top: 36%; width: calc(var(--w) * .25); }
.card.cx .cx-big { position: absolute; right: 7%; bottom: 5%; width: calc(var(--w) * .5); }
.card.back.cx {
  background: #fff url(/back.webp) center / 100% 100% no-repeat;
  box-shadow: 0 3px 8px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.25);
}

/* veľká karta pri peeli */
.bigcard.classic { background: linear-gradient(165deg, #ffffff, #f8f6f1 70%, #efebe2); color: #151515; font-family: Georgia, 'Times New Roman', 'Noto Serif', serif; }
.bigcard.classic.red { color: #c8102e; }
.bigcard.classic .sv { display: block; width: 100%; height: auto; }
.cx-idx { position: absolute; left: 3%; top: 2.5%; width: calc(var(--w) * .14); display: grid; justify-items: center; gap: 2px; z-index: 2; }
.cx-idx b { font-weight: 700; font-size: calc(var(--w) * .15); line-height: 1; letter-spacing: -.06em; }
.cx-idx .sv { width: calc(var(--w) * .085); }
.cx-idx.br { left: auto; top: auto; right: 3%; bottom: 2.5%; transform: rotate(180deg); }
.cx-pip { position: absolute; width: calc(var(--w) * .17 * var(--ps, 1)); transform: translate(-50%, -50%); }
.cx-pip.flip { transform: translate(-50%, -50%) rotate(180deg); }
.cx-court { position: absolute; inset: 9% 17.5%; }
.cx-court .court-art { display: block; width: 100%; height: 100%; }
.bigcard.img { background: #fff center / 100% 100% no-repeat; }

/* ---- all-in: šanca na výhru v tabuľke hráča ---- */
.seat .eqv {
  font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: .01em;
  color: #e9eef3; font-variant-numeric: tabular-nums; transition: color .3s;
}
.seat .eqv small { font-size: .6em; margin-left: 1px; opacity: .75; }
.seat.eq-lead .eqv { color: var(--win); }
html.arena .seat.eq-lead .eqv { color: var(--a-teal); }
.seat .eq-outs { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; margin-top: 1px; }
.seat .eq-bar {
  position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.seat .eq-bar::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--eq); border-radius: inherit;
  background: rgba(233,238,243,.55); transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.seat.eq-lead .eq-bar::after { background: var(--win); box-shadow: 0 0 8px rgba(240,207,122,.6); }
html.arena .seat.eq-lead .eq-bar::after { background: var(--a-teal); box-shadow: 0 0 8px rgba(111,227,207,.6); }
.seat.has-eq .plate { padding-bottom: 11px; }
@media (max-width: 700px) {
  .seat .eqv { font-size: 16px; }
  .seat .eq-outs { font-size: 10px; }
  .seat .eq-bar { left: 7px; right: 7px; bottom: 3px; }
  .seat.has-eq .plate { padding-bottom: 9px; }
}
/* pri odkrytých kartách ide štítok akcie dolu, aby ho karty nezakryli */
html.arena .seat.faceup .tag:not(.win) { top: auto; bottom: -10px; }

/* =====================================================================
   PEEL v3 – skutočný ohyb karty (preložená časť ukáže líce)
   ===================================================================== */
.peel-inner { gap: 12px; max-height: 100dvh; }
.peel-title { font-size: 30px; }
.peel-stack { --w: min(70vw, 44vh, 300px); cursor: grab; -webkit-touch-callout: none; }
.peel-stack.grabbing { cursor: grabbing; }
.peel-tilt > * { position: absolute; inset: 0; }
.pl-face { opacity: 0; transition: opacity .22s ease; }
.pl-cover { will-change: clip-path; }
.pl-cover .card { border-radius: calc(var(--w) * .075); box-shadow: none; }
.bigcard { border-radius: calc(var(--w) * .075); }
.pl-shadow { filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); pointer-events: none; }
.pl-flap { position: absolute; inset: 0; transform-origin: 0 0; visibility: hidden; will-change: transform, clip-path; }
.pl-flap .bigcard { box-shadow: none; }
.pl-shade { visibility: hidden; pointer-events: none; }
.pl-shade i {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.14) 5%, rgba(255,255,255,.22) 13%, rgba(255,255,255,0) 34%);
}
.peel-stack::before { /* tieň pod kartou na stole */
  content: ''; position: absolute; inset: 4% 3% -3%; border-radius: 18px; background: rgba(0,0,0,.4); filter: blur(18px); z-index: -1;
}
.peel-card.revealed .pl-face { opacity: 1; }
.peel-card.revealed .pl-cover, .peel-card.revealed .pl-shadow, .peel-card.revealed .pl-shade { opacity: 0; transition: opacity .22s ease; pointer-events: none; }
.peel-card.revealed .pl-face .bigcard { animation: revealGlow 1s ease; }
.peel-ctx, .peel-odds { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 0; }
.peel-ctx .card, .peel-odds .card { --w: 34px; box-shadow: 0 2px 6px rgba(0,0,0,.5); animation: none; }
.peel-ctx .peel-no { margin-right: 6px; }
.peel-mine-l { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 6px; }
.peel-btn { min-height: 38px; padding: 0 22px; font-size: 14px; margin-top: 4px; }
.peel-cards { align-items: flex-start; }
.peel-cards:has(.peel-card + .peel-card) .peel-stack { --w: min(42vw, 40vh, 240px); }
@media (max-height: 640px) { .peel-title { display: none; } .peel-stack { --w: min(60vw, 46vh, 260px); } }

/* =====================================================================
   STÔL v4 – moje karty pri mojom mieste, väčší board, nič sa neprekrýva
   ===================================================================== */
html.arena .seat { --cw: calc(var(--card-w) * .54); }
html.arena .seat.faceup { --cw: calc(var(--card-w) * .86); }
/* moje karty: veľké, nad mojou tabuľkou (namiesto avatara) */
.seat.mine { z-index: 5; }
.seat.mine .cards {
  position: absolute; left: 50%; bottom: calc(100% - 8px); transform: translateX(-50%);
  height: auto; margin: 0; gap: 4px; align-items: flex-end; z-index: 3;
}
html.arena .seat.mine { --cw: calc(var(--card-w) * 1.12); }
.seat.mine .cards .card, html.arena .seat.mine .cards .card { --w: var(--cw, calc(var(--card-w) * 1.12)); margin: 0; transform: none; box-shadow: 0 8px 18px -6px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.25); }
html.arena .seat.mine .cards .card + .card { margin-left: 0; transform: none; }
html.arena .seat.mine .cards .card:first-child { transform: none; }
.seat.mine .cards .card.hl { transform: translateY(-6px) !important; }
.seat.mine .cards .card.folded { filter: brightness(.5) saturate(.5); }
.seat.mine .cards .card.eyeable { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .25s; }
.seat.mine .cards .card.eyed { box-shadow: 0 0 0 2px var(--brass-hi), 0 0 16px rgba(236,210,154,.5), 0 3px 8px rgba(0,0,0,.45) !important; }
.seat.mine .cards .card.folded.eyed { filter: brightness(.8) saturate(.85); }
html.arena .seat.mine .avatar { display: none; }
html.arena .seat.mine .plate { padding-top: 12px; }
html.arena .seat.mine .tag:not(.win) { top: auto; bottom: -10px; }
/* dock: už len názov ruky */
.my-hand { min-width: 0; }
.my-hand .label { font-size: 14px; }
@media (max-width: 700px) {
  html.arena .seat { --cw: calc(var(--card-w) * .56); }
  html.arena .seat.faceup { --cw: calc(var(--card-w) * .84); }
  html.arena .seat.mine { --cw: calc(var(--card-w) * 1.08); }
  html.arena { --seat-w: 86px; }
  .my-hand { justify-content: center; }
  .my-hand .label { text-align: center; min-height: 0; }
  .center { gap: 6px; }
  .center-msg { font-size: 12.5px; max-width: 100%; }
  .center-msg .win-desc { font-size: 1.15em; display: inline-block; max-width: 100%; white-space: normal; }
  .pot { font-size: 17px; padding: 2px 10px 2px 5px; }
}
/* muck bez ukázania: žiadne duchovia kariet cez avatar */
html.arena .seat.mucked:not(.has-shown) .cards { visibility: hidden; }
html.arena .seat.mucked:not(.has-shown).mine .cards { visibility: visible; }

/* ---- krajší pot ---- */
.pot, html.arena .pot {
  gap: 9px; padding: 5px 16px 5px 12px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(6,14,20,.82), rgba(2,8,12,.7));
  box-shadow: inset 0 0 0 1px rgba(244,201,93,.32), inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px -6px rgba(0,0,0,.7);
  font-size: 24px; color: var(--a-gold, var(--win)); text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.pot small, html.arena .pot small { font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb3c4; }
.pot .chip { width: 20px; height: 20px; }
.pot .bbu { color: #cdb46e; }
@media (max-width: 700px) { .pot, html.arena .pot { font-size: 19px; padding: 3px 12px 3px 9px; border-radius: 10px; } .pot small { font-size: 10px; } }

/* ---- stávky pred hráčmi: kôpka žetónov a suma pod ňou ---- */
.bet, html.arena .bet {
  flex-direction: column; gap: 1px; padding: 0; background: none; box-shadow: none; border-radius: 0; z-index: 3;
  font-size: 15px; color: #fff; pointer-events: auto;
}
.bet-chips { display: flex; align-items: flex-end; justify-content: center; height: 20px; }
.bet-chips .chip { width: 17px; height: 17px; }
.bet-chips .chip + .chip { margin-left: -7px; }
.bet-chips .chip.c3 { transform: translateY(-3px); }
.bet-chips .chip.c2 { transform: translateY(-1px); }
.bet-amt { padding: 0 8px; border-radius: 999px; background: rgba(2,8,12,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); line-height: 1.35; white-space: nowrap; }
@media (max-width: 700px) { .bet, html.arena .bet { font-size: 13px; } .bet-chips { height: 17px; } .bet-chips .chip { width: 14px; height: 14px; } }

/* ---- výsledky turnaja a text na tigrom stole čitateľne ---- */
.res-box { display: inline-block; padding: 14px 18px; border-radius: 16px; background: rgba(8,12,18,.93); box-shadow: 0 20px 50px rgba(0,0,0,.7), inset 0 0 0 1px rgba(244,201,93,.3); color: #e9eef3; max-width: 100%; }
.stage.results-on .seat.mine .cards, .stage.results-on .handdesc, .stage.results-on #dealerBtn { display: none; }
.stage.results-on .center { z-index: 6; }
.table.tiger .center-msg:not(:empty) { background: rgba(20,6,0,.72); border-radius: 12px; padding: 6px 12px; color: #fff3d6; text-shadow: none; }
.table.tiger .center-msg:has(.res-box) { background: none; padding: 0; }
.table.tiger .center-msg b { color: var(--win); }
@media (max-width: 700px) { .my-hand { min-height: 46px; padding-right: 52px; box-sizing: border-box; } }
