:root {
  --bg: #1d130d;
  --bg2: #2a1c13;
  --wood: #3b281b;
  --felt: #24402f;
  --felt2: #1a3022;
  --ink: #fbefdc;
  --muted: #c7b199;
  --accent: #f2a03d;
  --accent2: #ff6a3d;
  --good: #59c27a;
  --bad: #ef4f4f;
  --line: rgba(255, 230, 200, 0.14);
  --radius: 14px;
  font-family: 'Baloo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 50% -10%, #4a2f1c 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--line);
  background: var(--wood);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  transition: transform 0.08s, background 0.2s, box-shadow 0.2s;
}
.btn:hover:not(:disabled) { background: #4c3424; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--accent), #d97e1d); color: #2a1404; border: none; box-shadow: 0 4px 0 #8f4f0d; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffb455, #e48a24); }
.btn.danger { background: linear-gradient(180deg, #ff5d4a, #c9302a); border: none; color: #fff; box-shadow: 0 4px 0 #7a1714; }
.btn.good { background: linear-gradient(180deg, #6fd18e, #3b9c5b); border: none; color: #08240f; box-shadow: 0 4px 0 #1d5a31; }
.btn.big { padding: 12px 22px; font-size: 1.1rem; width: 100%; }
.btn.small { padding: 4px 12px; font-size: 0.85rem; }
.btn.ghost { background: transparent; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; font-size: 1.1rem; }

/* ---------- home & lobby ---------- */
#home, #lobby { align-items: center; justify-content: center; padding: 24px 16px; }
.home-card, .lobby-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--bg2), #20150e);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.logo { text-align: center; }
.logo-glass { width: 72px; height: 88px; margin: 0 auto; position: relative; animation: bob 2.4s ease-in-out infinite; }
.logo-glass svg { width: 100%; height: 100%; }
.logo-glass .steam { top: -26px; }
.logo h1 { margin: 0; font-size: 2.6rem; font-weight: 800; letter-spacing: 0.5px; color: var(--accent); line-height: 1; }
.logo-np { font-size: 1.4rem; color: var(--muted); }
.tagline { color: var(--muted); margin: 6px 0 0; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }

.field { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.9rem; }
.field input, .join-row input {
  background: #140d08; border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font-size: 1.05rem; outline: none;
}
.field input:focus, .join-row input:focus { border-color: var(--accent); }
.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1; text-transform: uppercase; letter-spacing: 6px; text-align: center; font-weight: 800; min-width: 0; }
.or { text-align: center; color: var(--muted); font-size: 0.85rem; position: relative; }
.or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { background: #251810; padding: 0 10px; position: relative; }

.room-code-label { text-align: center; color: var(--muted); }
.room-code { text-align: center; font-size: 3rem; font-weight: 800; letter-spacing: 10px; color: var(--accent); line-height: 1; }
#copyLinkBtn { align-self: center; }
.lobby-card h2 { margin: 6px 0 0; font-size: 1.2rem; }
.lobby-players { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lobby-players li { display: flex; align-items: center; gap: 10px; background: #140d08; border-radius: 12px; padding: 8px 12px; border: 1px solid transparent; }
.lobby-players li.speaking { border-color: var(--good); box-shadow: 0 0 0 2px rgba(89, 194, 122, 0.35); }
.lobby-players .tag { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1d130d; flex: none; }
.settings-box { background: #140d08; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); }
.settings-box h3 { margin: 0 0 6px; font-size: 1rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.settings-list { display: flex; flex-direction: column; gap: 6px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.setting-row select {
  background: var(--wood); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 8px; font: inherit; min-width: 84px;
}
.setting-row select:disabled { opacity: 0.8; cursor: default; }
.voice-box { background: rgba(89, 194, 122, 0.08); border: 1px dashed rgba(89, 194, 122, 0.4); border-radius: 14px; padding: 10px 12px; }
.voice-box p { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.voice-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 0; }
.lobby-foot { display: flex; justify-content: space-between; }

/* ---------- game layout ---------- */
#game { flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand { font-weight: 800; color: var(--accent); white-space: nowrap; }
.code-chip { background: var(--wood); color: var(--ink); border-radius: 8px; padding: 0 8px; letter-spacing: 3px; font-size: 0.85rem; margin-left: 6px; }
.topbar .voice-buttons { flex: 1; justify-content: center; }
.top-right { display: flex; gap: 6px; }

.table-wrap { flex: 1; display: grid; grid-template-columns: 1fr 300px; gap: 16px; padding: 16px; max-width: 1400px; width: 100%; margin: 0 auto; }
/* weathered wooden bench: planks, grain, and old tea-glass water rings */
.table {
  background:
    radial-gradient(circle at 12% 30%, transparent 22px, rgba(52, 26, 8, 0.32) 23px, rgba(52, 26, 8, 0.32) 25px, transparent 27px),
    radial-gradient(circle at 15% 33%, transparent 20px, rgba(52, 26, 8, 0.18) 21px, rgba(52, 26, 8, 0.18) 22px, transparent 24px),
    radial-gradient(circle at 86% 62%, transparent 26px, rgba(52, 26, 8, 0.28) 27px, rgba(52, 26, 8, 0.28) 29px, transparent 31px),
    radial-gradient(circle at 78% 14%, transparent 18px, rgba(52, 26, 8, 0.25) 19px, rgba(52, 26, 8, 0.25) 21px, transparent 23px),
    radial-gradient(circle at 30% 82%, transparent 24px, rgba(52, 26, 8, 0.22) 25px, rgba(52, 26, 8, 0.22) 27px, transparent 29px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 2px, transparent 2px 120px),
    repeating-linear-gradient(0deg, rgba(255, 220, 170, 0.04) 0 3px, transparent 3px 11px, rgba(0, 0, 0, 0.05) 11px 13px, transparent 13px 29px),
    linear-gradient(170deg, #94603a 0%, #7a4b2a 50%, #6a3f22 100%);
  border: 10px solid #4a2c17;
  border-radius: 20px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.45), 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  min-width: 0;
}

/* opponents */
.opponents { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.seat {
  position: relative;
  background: rgba(30, 16, 6, 0.62);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 8px 10px;
  min-width: 140px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.seat.turn { border-color: var(--accent); box-shadow: 0 0 18px rgba(242, 160, 61, 0.5); }
.seat.speaking .avatar { box-shadow: 0 0 0 3px var(--good), 0 0 14px var(--good); }
.seat.out { opacity: 0.45; filter: grayscale(0.8); }
.seat.offline .seat-name::after { content: ' (offline)'; color: var(--bad); font-size: 0.75rem; }
.seat.targetable { cursor: pointer; border-color: var(--accent2); animation: pulse 1s infinite; }
.seat.targetable:hover { transform: translateY(-3px); }
.seat.targeted { border-color: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 18px rgba(255, 106, 61, 0.7); } }
.seat-head { display: flex; align-items: center; gap: 8px; }
.seat-name { font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coins { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #ffd9a0; }
.coins .glass-icon { width: 18px; height: 22px; }
.stash { display: flex; gap: 1px; min-height: 22px; flex-wrap: wrap; justify-content: center; max-width: 150px; }
.stash .glass-icon { width: 14px; height: 18px; }

/* steam rising from whoever's turn it is */
.steam { position: absolute; left: 50%; top: -30px; width: 40px; height: 34px; transform: translateX(-50%); pointer-events: none; }
.steam span {
  position: absolute; bottom: 0; width: 6px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45); filter: blur(3px);
  animation: steam 2.4s ease-out infinite; opacity: 0;
}
.steam span:nth-child(1) { left: 6px; }
.steam span:nth-child(2) { left: 17px; animation-delay: 0.8s; }
.steam span:nth-child(3) { left: 28px; animation-delay: 1.6s; }
@keyframes steam {
  0% { transform: translateY(8px) scaleX(1); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translateY(-22px) scaleX(2.2) rotate(8deg); opacity: 0; }
}
.seat > .steam, .me-head > .steam { display: none; top: -28px; }
.seat.turn > .steam, .me-head.turn > .steam { display: block; }
.mini-cards { display: flex; gap: 4px; }
.badge { position: absolute; top: -10px; right: -6px; background: var(--accent2); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 0.75rem; font-weight: 700; }
.badge.pass { background: #556; }
.badge.wait { background: #d9a520; color: #2a1404; animation: pulse 1.2s infinite; }
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.waiting-on { font-size: 0.9rem; color: var(--muted); }
.waiting-on b { color: #ffd15a; }
.emote-float { position: absolute; top: -18px; left: 50%; font-size: 2rem; animation: floatUp 1.8s ease-out forwards; pointer-events: none; }
@keyframes floatUp { from { transform: translate(-50%, 0) scale(0.6); opacity: 1; } to { transform: translate(-50%, -50px) scale(1.3); opacity: 0; } }

/* cards */
.card {
  width: 46px; height: 64px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  position: relative;
  background: repeating-linear-gradient(45deg, #2e5a3c 0 6px, #24492f 6px 12px);
  border: 2px solid #e9d7b4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.card.back::after { content: '☕'; font-size: 1.2rem; filter: drop-shadow(0 1px 0 #0006); }
.card.face { background: var(--c, #555); border-color: rgba(255, 255, 255, 0.7); }
.card.lost { filter: saturate(0.4) brightness(0.8); }

/* dead cards get a brown tea stain splashed across them */
.card.lost::before, .big-card.lost::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 55% 48%, rgba(92, 46, 14, 0.85) 0 26%, transparent 27%),
    radial-gradient(circle at 34% 30%, rgba(92, 46, 14, 0.75) 0 9%, transparent 10%),
    radial-gradient(circle at 76% 70%, rgba(92, 46, 14, 0.7) 0 8%, transparent 9%),
    radial-gradient(circle at 28% 72%, rgba(92, 46, 14, 0.65) 0 5%, transparent 6%),
    radial-gradient(circle at 80% 26%, rgba(92, 46, 14, 0.6) 0 4%, transparent 5%),
    radial-gradient(circle at 55% 48%, transparent 0 31%, rgba(70, 34, 10, 0.45) 32% 34%, transparent 35%);
  mix-blend-mode: multiply;
}

.big-card {
  width: 128px; min-height: 180px; border-radius: 14px; padding: 8px;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 60%, #000));
  border: 3px solid rgba(255, 255, 255, 0.75);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: transform 0.15s;
}
.big-card .emoji { font-size: 2.6rem; line-height: 1.2; }
.big-card .cname { font-weight: 800; font-size: 1rem; line-height: 1.1; }
.big-card .cnp { font-size: 0.85rem; opacity: 0.85; }
.big-card .cpower { font-size: 0.72rem; line-height: 1.2; opacity: 0.95; margin-top: 2px; }
.big-card.lost { filter: saturate(0.35) brightness(0.85); }
.big-card.pickable { cursor: pointer; animation: pulse 1s infinite; }
.big-card.pickable:hover { transform: translateY(-6px); }
.big-card.drawn { outline: 3px dashed #fff; outline-offset: 3px; }

/* center: kettle on yesterday's newspaper */
.center { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 26px 0 4px; }
.newspaper {
  position: absolute; top: 18px; left: 50%; width: 300px; height: 170px;
  transform: translateX(-50%) rotate(-5deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(0, 0, 0, 0) 8px),
    #e8e0cc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  color: #3b3226; padding: 8px 12px; border-radius: 2px; overflow: hidden;
}
.np-head { font-weight: 800; font-size: 1.5rem; line-height: 1; text-align: center; border-bottom: 2px solid #3b3226; padding-bottom: 2px; }
.np-sub { font-size: 0.72rem; text-align: center; border-bottom: 1px solid #3b322688; padding: 2px 0; }
.np-cols {
  height: 100%; margin-top: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(59, 50, 38, 0.35) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, transparent 0 82px, #e8e0cc 82px 92px);
}
.kettle { position: relative; width: 190px; height: 150px; z-index: 1; }
.kettle #kettleSvg svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.kettle .steam { left: 86%; top: -18px; }
.kettle-count {
  position: absolute; left: 44%; top: 60%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  color: #3a3f45; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.kettle-count b { font-size: 2rem; font-weight: 800; }
.kettle-count small { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.center-row { display: flex; align-items: center; gap: 22px; z-index: 1; }

/* the face-down deck next to the kettle */
.deck { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.deck-stack { position: relative; width: 58px; height: 80px; }
.deck-stack .card { position: absolute; inset: 0; width: 100%; height: 100%; }
.deck-stack .card:nth-child(1) { transform: translate(4px, 4px); }
.deck-stack .card:nth-child(2) { transform: translate(2px, 2px); }
.deck-stack.empty .card { opacity: 0.25; }
.deck-label { font-size: 0.78rem; color: #fff3df; background: rgba(30, 16, 6, 0.7); border-radius: 999px; padding: 0 10px; white-space: nowrap; }
.deck-label b { font-weight: 800; }
/* riffle shuffle: the top half slides out and back in on alternating sides */
.deck-stack.shuffling .card:nth-child(3) { animation: riffleL 0.28s ease-in-out 3; }
.deck-stack.shuffling .card:nth-child(2) { animation: riffleR 0.28s ease-in-out 3; }
@keyframes riffleL { 50% { transform: translate(-34px, -6px) rotate(-14deg); } }
@keyframes riffleR { 50% { transform: translate(36px, -4px) rotate(14deg); } }

/* a card travelling between a seat and the deck */
.fly-card {
  position: fixed; z-index: 40; width: 46px; height: 64px; pointer-events: none;
  transition: transform 0.55s cubic-bezier(.3, .7, .3, 1), opacity 0.2s;
}
.kettle.bump { animation: bump 0.3s; }
@keyframes bump { 30% { transform: rotate(-4deg) scale(1.04); } 70% { transform: rotate(3deg); } }

.banner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.4);
  opacity: 0; pointer-events: none;
  font-weight: 800; font-size: 2.6rem; text-align: center; white-space: nowrap;
  padding: 6px 22px; border-radius: 14px; border: 4px solid currentColor;
  background: rgba(20, 10, 5, 0.92); z-index: 5;
}
.banner.show { animation: stamp 1.8s ease-out forwards; }
.banner .sub { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2) rotate(-8deg); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9) rotate(-4deg); }
}

/* prompt */
.prompt {
  width: 100%; max-width: 720px;
  background: rgba(30, 16, 6, 0.78); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px 12px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
}
.prompt.urgent { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(255, 106, 61, 0.3); }
.prompt-text { font-size: 1.05rem; }
.prompt-text b { color: var(--accent); }
.prompt-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.timer { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.timer-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--good), var(--accent), var(--bad)); background-size: 300% 100%; }

/* my hand */
.me { display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(30, 16, 6, 0.45); border-radius: var(--radius); padding: 8px 14px 12px; }
.me-head { display: flex; align-items: center; gap: 10px; font-weight: 700; position: relative; padding-right: 8px; }
.me-head .badge { position: static; margin-left: 4px; }
.me-head.turn .avatar { box-shadow: 0 0 0 3px var(--accent); }
.me-head.speaking .avatar { box-shadow: 0 0 0 3px var(--good), 0 0 14px var(--good); }
.hand { display: flex; gap: 12px; }

/* actions */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; width: 100%; max-width: 820px; }
.action-btn {
  border: 2px solid var(--c, var(--line)); border-radius: 12px;
  background: rgba(30, 16, 6, 0.72); padding: 6px 10px; text-align: left;
  display: flex; gap: 8px; align-items: center;
}
.action-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--c, #555) 30%, transparent); }
.action-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.action-btn.selected { background: color-mix(in srgb, var(--c, #555) 45%, transparent); }
.action-btn .a-emoji { font-size: 1.6rem; }
.action-btn .a-label { font-weight: 700; line-height: 1.1; display: block; }
.action-btn .a-desc { font-size: 0.75rem; color: var(--muted); display: block; line-height: 1.1; }

.emotes { display: flex; gap: 4px; }
.emotes button { background: rgba(0, 0, 0, 0.3); border: none; border-radius: 10px; font-size: 1.2rem; padding: 2px 6px; }
.emotes button:hover { background: rgba(0, 0, 0, 0.55); }

/* side log */
.side { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 100px); position: sticky; top: 16px; }
.side h3 { margin: 0 0 6px; color: var(--accent); }
.log { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.log li { padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.log li.turn { color: var(--accent); background: transparent; font-weight: 700; margin-top: 4px; }
.log li.challenge { background: rgba(239, 79, 79, 0.22); }
.log li.truth { background: rgba(89, 194, 122, 0.2); }
.log li.bluff { background: rgba(239, 79, 79, 0.3); }
.log li.block { background: rgba(61, 123, 232, 0.25); }
.log li.loss { color: #ffb3a8; }
.log li.big { background: rgba(242, 160, 61, 0.25); font-weight: 700; }
.log li.private { background: rgba(122, 108, 240, 0.3); font-style: italic; }
.voice-help { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.voice-help:empty { display: none; }
.heard { color: var(--good); }

/* modals */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-width: 760px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-card h2 { margin-top: 0; color: var(--accent); }
.modal-card h3 { margin-bottom: 4px; }
.close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; font-size: 1.2rem; }
.rules-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.center-text { text-align: center; max-width: 520px; }
.trophy { font-size: 3.5rem; }
.final-hands { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 16px; }
.final-hands div { display: flex; align-items: center; gap: 8px; justify-content: center; }

.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; align-items: center; pointer-events: none; }
.toast { background: #120a05; border: 1px solid var(--accent); border-radius: 12px; padding: 8px 16px; animation: toastIn 0.25s; max-width: 90vw; text-align: center; }
.toast.error { border-color: var(--bad); }
.toast.secret { border-color: #7a6cf0; background: #1d1640; font-size: 1.1rem; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }

.glass-icon { display: inline-block; }

@media (max-width: 960px) {
  .table-wrap { grid-template-columns: 1fr; padding: 10px; }
  .side { position: static; max-height: 260px; }
  .table { border-width: 6px; border-radius: 24px; padding: 12px; }
}
@media (max-width: 520px) {
  .seat { min-width: 120px; padding: 6px; }
  .big-card { width: 108px; min-height: 160px; }
  .newspaper { width: 250px; height: 150px; }
  .kettle { width: 160px; height: 126px; }
  .center-row { gap: 12px; }
  .banner { font-size: 1.7rem; }
  .topbar .voice-buttons { order: 3; flex-basis: 100%; }
  .actions { grid-template-columns: 1fr 1fr; }
}
