/* ============================================================
   PARTYCLUB — Neon Casino
   ============================================================ */

:root {
  --bg: #07050d;
  --bg-2: #0d0918;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.11);
  --stroke-2: rgba(255, 255, 255, 0.2);
  --text: #f3eefb;
  --muted: #9c93b4;
  --pink: #ff2d78;
  --violet: #a855f7;
  --cyan: #22e6ff;
  --gold: #ffc83d;
  --green: #2be08a;
  --red: #ff4d5e;
  --felt: #0d5c46;
  --r: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(50% 40% at 15% 20%, rgba(255, 45, 120, 0.30), transparent 60%),
    radial-gradient(45% 45% at 85% 15%, rgba(34, 230, 255, 0.22), transparent 60%),
    radial-gradient(60% 50% at 60% 95%, rgba(168, 85, 247, 0.28), transparent 65%),
    var(--bg);
  filter: saturate(1.25);
  animation: drift 26s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Grundbausteine ---------- */

.app { height: 100%; display: flex; flex-direction: column; }

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn {
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--stroke-2);
  border-radius: 14px;
  padding: 13px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.2s, filter 0.2s, background 0.2s;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; filter: none; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  transform: translateX(-120%);
}
.btn:hover::after { animation: sheen 0.7s ease; }
@keyframes sheen { to { transform: translateX(120%); } }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(255, 45, 120, 0.4);
}
.btn-cyan { background: linear-gradient(135deg, var(--cyan), #3b82f6); border-color: transparent; color: #04121a; box-shadow: 0 8px 26px rgba(34, 230, 255, 0.32); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ff8a3d); border-color: transparent; color: #2a1500; box-shadow: 0 8px 26px rgba(255, 200, 61, 0.32); }
.btn-green { background: linear-gradient(135deg, var(--green), #12b981); border-color: transparent; color: #052018; box-shadow: 0 8px 26px rgba(43, 224, 138, 0.3); }
.btn-red { background: linear-gradient(135deg, var(--red), #d61f4a); border-color: transparent; box-shadow: 0 8px 26px rgba(255, 77, 94, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 17px 30px; font-size: 17px; border-radius: 16px; }

.input {
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #6b6480; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.16); }

.chip-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums; font-weight: 800;
  background: rgba(255, 200, 61, 0.12);
  border: 1px solid rgba(255, 200, 61, 0.35);
  color: var(--gold);
  padding: 5px 11px; border-radius: 99px; font-size: 13px;
}

.badge {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid var(--stroke);
}

.title-xl {
  font-size: clamp(38px, 9vw, 82px);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; margin: 0;
  background: linear-gradient(100deg, #fff 10%, var(--pink) 40%, var(--cyan) 75%, #fff 95%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 6px 30px rgba(255, 45, 120, 0.35));
}
@keyframes shimmer { to { background-position: 250% 0; } }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Screens ---------- */

.screen { position: absolute; inset: 0; display: none; overflow: hidden; }
.screen.active { display: flex; flex-direction: column; animation: screenIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes screenIn { from { opacity: 0; transform: scale(0.98) translateY(10px); } }

/* ---------- Home ---------- */

#screen-home { align-items: center; justify-content: center; padding: 22px; overflow-y: auto; }
.home-wrap { width: min(560px, 100%); display: flex; flex-direction: column; gap: 20px; margin: auto; }
.home-head { text-align: center; }
.home-sub { color: var(--muted); margin-top: 12px; font-size: 15px; line-height: 1.5; }
.home-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.avatar-opt {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 24px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; border-radius: 12px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.avatar-opt:hover { transform: scale(1.15) rotate(-6deg); background: rgba(255, 255, 255, 0.1); }
.avatar-opt.sel { border-color: var(--pink); background: rgba(255, 45, 120, 0.18); transform: scale(1.1); }
.code-input {
  text-align: center; font-family: var(--mono); font-size: 30px; font-weight: 800;
  letter-spacing: 0.4em; text-indent: 0.4em; text-transform: uppercase; padding: 16px;
}
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.game-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.game-strip span {
  font-size: 12px; padding: 7px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); color: var(--muted);
}

/* ---------- Anmeldung ---------- */

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(88, 101, 242, .38);
}
.account-row { display: flex; align-items: center; gap: 11px; }
.acc-img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.acc-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(88, 101, 242, .18); border: 1px solid rgba(88, 101, 242, .45); color: #b6bdff;
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--stroke);
  background: rgba(10, 6, 18, 0.6); backdrop-filter: blur(20px);
  flex-shrink: 0; z-index: 20;
}
.logo { font-weight: 900; letter-spacing: -0.04em; font-size: 19px; display: flex; align-items: center; gap: 7px; }
.logo b { background: linear-gradient(120deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.code-tag {
  font-family: var(--mono); font-weight: 800; font-size: 15px; letter-spacing: 0.22em;
  padding: 7px 12px 7px 14px; border-radius: 11px; cursor: pointer;
  background: rgba(34, 230, 255, 0.1); border: 1px solid rgba(34, 230, 255, 0.35); color: var(--cyan);
  display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.code-tag:hover { background: rgba(34, 230, 255, 0.2); transform: translateY(-1px); }
.spacer { flex: 1; }

/* ---------- Lobby ---------- */

.lobby-body { flex: 1; display: grid; grid-template-columns: 300px 1fr 300px; gap: 14px; padding: 14px; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel { padding: 14px; display: flex; flex-direction: column; min-height: 0; }
.panel-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted); margin-bottom: 11px; display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}

.player-list { display: flex; flex-direction: column; gap: 7px; overflow-y: auto; }
.player-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid transparent; transition: 0.25s;
  animation: popIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.player-row:hover { background: rgba(255, 255, 255, 0.07); }
.player-row.you { border-color: rgba(255, 45, 120, 0.5); background: rgba(255, 45, 120, 0.09); }
.player-row.off { opacity: 0.4; }
.pa { font-size: 22px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border-radius: 10px; flex-shrink: 0; }
.pn { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 700; }
.crown { font-size: 13px; }
.rank-1 .pa { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 200, 61, 0.45); }

@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(0.94); } }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; overflow-y: auto; padding: 4px; }
.game-card {
  position: relative; padding: 20px; border-radius: 20px; cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.3s, border-color 0.3s;
  min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end;
}
.game-card::before {
  content: ""; position: absolute; inset: -2px; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(70% 70% at 50% 0%, var(--glow, rgba(255, 45, 120, 0.4)), transparent 70%);
}
.game-card:hover { transform: translateY(-7px) scale(1.02); border-color: var(--stroke-2); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }
.game-card:hover::before { opacity: 1; }
.game-card.locked { opacity: 0.45; cursor: not-allowed; }
.game-card.locked:hover { transform: none; }
.gc-emoji { font-size: 46px; position: absolute; top: 16px; right: 18px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)); transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
.game-card:hover .gc-emoji { transform: scale(1.22) rotate(-9deg); }
.gc-name { font-size: 21px; font-weight: 900; letter-spacing: -0.03em; position: relative; }
.gc-tag { font-size: 12.5px; color: var(--muted); margin-top: 5px; position: relative; line-height: 1.4; }
.gc-meta { font-size: 11px; color: var(--muted); margin-top: 10px; position: relative; display: flex; gap: 8px; align-items: center; }

.chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.msg { font-size: 13.5px; line-height: 1.45; animation: popIn 0.3s; word-break: break-word; }
.msg .who { font-weight: 800; }
.msg.sys { color: var(--muted); font-size: 12px; font-style: italic; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; flex-shrink: 0; }

/* ---------- Spieltisch ---------- */

.table-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.felt {
  flex: 1; margin: 14px; border-radius: 26px; position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 8%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(170deg, #14795c, var(--felt) 45%, #063228);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12), inset 0 -40px 90px rgba(0, 0, 0, 0.5), var(--shadow);
  display: flex; flex-direction: column; min-height: 0;
}
.felt::before {
  content: ""; position: absolute; inset: 14px; border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.09); pointer-events: none;
}
.felt.dark { background: linear-gradient(170deg, #1a1030, #0b0718 55%, #05030c); }

.table-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09); position: relative; z-index: 2;
}
.phase-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.timer-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.timer-ring .bg { stroke: rgba(255, 255, 255, 0.13); }
.timer-ring .fg { stroke: var(--cyan); transition: stroke-dashoffset 0.25s linear, stroke 0.3s; }
.timer-ring.urgent .fg { stroke: var(--red); }
.timer-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }

.table-body { flex: 1; overflow-y: auto; padding: 16px 20px; position: relative; z-index: 2; }
.action-bar {
  flex-shrink: 0; padding: 14px 18px; display: flex; gap: 10px; align-items: center; justify-content: center;
  flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(8px); position: relative; z-index: 3;
}

/* ---------- Spielkarten ---------- */

.cards { display: flex; gap: 6px; align-items: center; }
.card {
  --w: 62px;
  width: var(--w); height: calc(var(--w) * 1.44);
  border-radius: calc(var(--w) * 0.11);
  position: relative; flex-shrink: 0;
  transform-style: preserve-3d;
  animation: dealIn 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.3) backwards;
}
@keyframes dealIn {
  from { opacity: 0; transform: translate(70px, -120px) rotate(28deg) scale(0.7); }
}
.card .face, .card .back {
  position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.card .face {
  background: linear-gradient(160deg, #fff, #eae6f2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--w) * 0.09); color: #16121f;
  font-weight: 900; line-height: 1;
}
.card .face .r { font-size: calc(var(--w) * 0.3); letter-spacing: -0.05em; }
.card .face .s { font-size: calc(var(--w) * 0.26); }
.card .face .big {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: calc(var(--w) * 0.56); opacity: 0.95;
}
.card .face .bot { align-self: flex-end; transform: rotate(180deg); display: flex; flex-direction: column; align-items: center; }
.card .face.red { color: #e11d48; }
.card .back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.11) 0 5px, transparent 5px 10px),
    linear-gradient(150deg, #8b1a4d, #4a1078 55%, #16123a);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.card.hidden { transform: rotateY(180deg); }
.card.flip { animation: dealIn 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.3) backwards, flipUp 0.55s cubic-bezier(0.3, 0.9, 0.3, 1.2); }
@keyframes flipUp { from { transform: rotateY(180deg); } to { transform: rotateY(0deg); } }
.card.sm { --w: 44px; }
.card.lg { --w: 88px; }
.card.pick { cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.card.pick:hover { transform: translateY(-12px) scale(1.06); filter: brightness(1.08); }
.card.sel { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--cyan); border-radius: 8px; }
.card.sel .face { box-shadow: 0 0 0 3px var(--cyan), 0 10px 24px rgba(0, 0, 0, 0.5); }
.card.dim { filter: brightness(0.55) saturate(0.6); }

/* ---------- Sitzplätze ---------- */

.seats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-start; }
.seat {
  min-width: 168px; padding: 12px; border-radius: 18px; position: relative;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.11);
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s;
  animation: popIn 0.35s;
}
.seat.turn {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 230, 255, 0.4), 0 0 40px rgba(34, 230, 255, 0.32);
  transform: translateY(-5px);
  animation: turnPulse 1.9s ease-in-out infinite;
}
@keyframes turnPulse {
  50% { box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.6), 0 0 60px rgba(34, 230, 255, 0.5); }
}
.seat.me { background: rgba(255, 45, 120, 0.11); border-color: rgba(255, 45, 120, 0.42); }
.seat.out { opacity: 0.4; filter: grayscale(0.8); }
.seat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.seat-name { font-weight: 800; font-size: 13.5px; }
.seat-cards { display: flex; gap: 5px; min-height: 62px; align-items: center; }
.hand-block { padding: 6px; border-radius: 12px; transition: 0.3s; }
.hand-block.active { background: rgba(34, 230, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(34, 230, 255, 0.4); }
.hand-val {
  font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tag-win { color: var(--green); }
.tag-lose { color: var(--red); }
.tag-push { color: var(--muted); }
.tag-bj { color: var(--gold); }

.lives { display: flex; gap: 3px; font-size: 14px; }
.lives .dead { filter: grayscale(1); opacity: 0.3; }

/* ---------- Chips / Einsätze ---------- */

.chip {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff;
  border: 3px dashed rgba(255, 255, 255, 0.65);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5), inset 0 -4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s cubic-bezier(0.2, 1.4, 0.4, 1), filter 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.chip:hover { transform: translateY(-6px) scale(1.1) rotate(8deg); filter: brightness(1.15); }
.chip:active { transform: scale(0.9); }
.chip.c10 { background: radial-gradient(circle at 35% 30%, #4ade80, #15803d); }
.chip.c25 { background: radial-gradient(circle at 35% 30%, #60a5fa, #1d4ed8); }
.chip.c50 { background: radial-gradient(circle at 35% 30%, #f472b6, #be185d); }
.chip.c100 { background: radial-gradient(circle at 35% 30%, #fbbf24, #b45309); }
.chip.c250 { background: radial-gradient(circle at 35% 30%, #c084fc, #6d28d9); }
.chip.dis { opacity: 0.3; pointer-events: none; }

.bet-badge {
  position: absolute; top: -9px; right: -7px; background: linear-gradient(135deg, var(--gold), #f97316);
  color: #2a1500; font-weight: 900; font-size: 11px; padding: 3px 9px; border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); animation: popIn 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.float-up {
  position: absolute; font-weight: 900; font-size: 17px; pointer-events: none; z-index: 60;
  animation: floatUp 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(6px) scale(0.7); }
  18% { opacity: 1; transform: translateY(-8px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-70px) scale(1); }
}

/* ---------- Crash ---------- */

.crash-stage { position: relative; height: 100%; min-height: 260px; display: flex; flex-direction: column; }
#crashCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crash-mult {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: clamp(48px, 11vw, 108px); font-weight: 900; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.7); transition: color 0.2s;
}
.crash-mult.boom { color: var(--red); animation: boom 0.55s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes boom { 0% { transform: scale(1.5); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }
.crash-mult small { display: block; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; text-align: center; margin-top: 8px; }
.crash-hist { display: flex; gap: 6px; flex-wrap: wrap; }
.crash-hist b {
  font-size: 12px; padding: 4px 9px; border-radius: 8px; font-variant-numeric: tabular-nums;
  background: rgba(255, 77, 94, 0.15); color: #ff8b96; border: 1px solid rgba(255, 77, 94, 0.3);
}
.crash-hist b.hi { background: rgba(43, 224, 138, 0.15); color: #7cf0bb; border-color: rgba(43, 224, 138, 0.3); }

.bet-list { display: flex; flex-direction: column; gap: 6px; max-height: 100%; overflow-y: auto; }
.bet-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 11px; font-size: 13px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid transparent; transition: 0.3s;
}
.bet-row.cashed { background: rgba(43, 224, 138, 0.14); border-color: rgba(43, 224, 138, 0.35); }
.bet-row.lost { background: rgba(255, 77, 94, 0.1); opacity: 0.7; }

/* ---------- Roulette ---------- */

.roulette-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .roulette-layout { grid-template-columns: 1fr; } }

.wheel-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 340px; margin: 0 auto; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 8px #2a1a10, 0 0 0 11px #c99a4a, 0 26px 60px rgba(0, 0, 0, 0.65), inset 0 0 60px rgba(0, 0, 0, 0.6);
  transition: transform 6.4s cubic-bezier(0.12, 0.66, 0.12, 1);
}
.wheel-hub {
  position: absolute; inset: 27%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, #e8c07a, #8a5f22 55%, #3b2609);
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.4), 0 8px 22px rgba(0, 0, 0, 0.55);
  display: grid; place-items: center; font-size: 30px;
}
.ball {
  position: absolute; width: 15px; height: 15px; border-radius: 50%; left: 50%; top: 5%;
  background: radial-gradient(circle at 32% 30%, #fff, #b9b4c8);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7); transform: translateX(-50%); z-index: 3;
  transform-origin: 50% 900%;
}
.ball.spin { animation: ballSpin 6.4s cubic-bezier(0.16, 0.62, 0.16, 1) forwards; }
@keyframes ballSpin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-1800deg); } }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 4;
  width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 20px solid var(--gold); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}
.result-pop {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none;
}
.result-num {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-size: 40px; font-weight: 900; animation: popIn 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9), 0 16px 50px rgba(0, 0, 0, 0.8);
}
.result-num.red { background: linear-gradient(140deg, #ef4444, #991b1b); }
.result-num.black { background: linear-gradient(140deg, #33333f, #0b0b12); }
.result-num.green { background: linear-gradient(140deg, #22c55e, #14532d); }

.board { display: grid; grid-template-columns: 44px repeat(12, 1fr); gap: 4px; }
.cell {
  border-radius: 7px; display: grid; place-items: center; cursor: pointer; position: relative;
  font-weight: 800; font-size: 13px; padding: 9px 0; border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}
.cell:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.3); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); z-index: 2; }
.cell.red { background: linear-gradient(150deg, #dc2626, #7f1d1d); }
.cell.black { background: linear-gradient(150deg, #2b2b36, #101018); }
.cell.green { background: linear-gradient(150deg, #16a34a, #14532d); grid-row: span 3; }
.cell.outside { background: rgba(255, 255, 255, 0.07); font-size: 12px; }
.cell.hit { animation: hitFlash 1.1s ease 3; }
@keyframes hitFlash { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 30px var(--gold); } }
.cell .stake {
  position: absolute; top: -7px; right: -5px; background: var(--gold); color: #2a1500;
  font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 99px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.cell .mine { position: absolute; inset: 0; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--cyan); }
.outside-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.outside-row.six { grid-template-columns: repeat(6, 1fr); }

/* ---------- Hi-Lo ---------- */

.hilo-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 0; }
.hilo-cards { display: flex; align-items: center; gap: 22px; }
.hilo-arrow { font-size: 30px; color: var(--muted); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(7px); } }
.guess-chip {
  padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 800;
  border: 1px solid var(--stroke);
}
.guess-chip.right { background: rgba(43, 224, 138, 0.2); border-color: var(--green); color: #9df3c9; }
.guess-chip.wrong { background: rgba(255, 77, 94, 0.2); border-color: var(--red); color: #ffb3ba; }

/* ---------- Mäxchen ---------- */

.mx-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.die { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.die.big { font-size: 76px; }
.mx-cup {
  min-width: 190px; min-height: 108px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 0, 0, .32); border: 2px dashed rgba(255, 255, 255, .18); border-radius: 20px; padding: 12px 22px;
}
.mx-cup.shake-cup { animation: cupShake 1.1s ease-in-out infinite; }
@keyframes cupShake {
  0%, 100% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(-7deg) translateY(-5px); }
  75% { transform: rotate(7deg) translateY(-5px); }
}
.mx-claim {
  font-size: clamp(30px, 7vw, 54px); font-weight: 900; letter-spacing: -.04em; line-height: 1.1;
  background: linear-gradient(110deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1);
}
.mx-claim.max {
  background: linear-gradient(110deg, var(--gold), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 26px rgba(255, 200, 61, .55));
}

/* ---------- Pferderennen ---------- */

.track-wrap { display: flex; flex-direction: column; gap: 12px; }
.lane { background: rgba(0, 0, 0, .26); border: 1px solid rgba(255, 255, 255, .1); border-radius: 15px; padding: 9px 13px; transition: .35s; }
.lane.win { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 200, 61, .35), 0 0 42px rgba(255, 200, 61, .3); }
.lane-label { font-size: 13px; font-weight: 700; margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.lane-track { position: relative; height: 42px; display: flex; align-items: center; }
.lane-track .tick { flex: 1; height: 100%; border-right: 2px dotted rgba(255, 255, 255, .12); }
.lane-track .tick.goal { border-right: none; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 6px, transparent 6px 12px); border-radius: 0 8px 8px 0; }
.horse {
  position: absolute; font-size: 30px; transition: left .55s cubic-bezier(.3, 1.3, .5, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); will-change: left;
}
.horse.cheer { animation: cheer .55s ease-in-out infinite; }
@keyframes cheer { 50% { transform: translateY(-11px) scale(1.18); } }
.side-strip { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Slots ---------- */

.slots-layout { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .slots-layout { grid-template-columns: 1fr; } }

.machine {
  border-radius: 22px; padding: 16px; text-align: center;
  background: linear-gradient(165deg, #3b1d5e, #1a0f2e 55%, #120a20);
  border: 3px solid rgba(255, 200, 61, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .14);
}
.machine-top { font-weight: 900; letter-spacing: .1em; font-size: 14px; color: var(--gold); margin-bottom: 12px; }
.reels { display: flex; gap: 10px; justify-content: center; }
.reel {
  width: 82px; height: 96px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #fff, #ddd8ea);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .3), inset 0 -6px 14px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .5);
}
.reel span { font-size: 44px; line-height: 1; }
.reels.spinning .reel span { animation: reelBlur .08s linear infinite; }
@keyframes reelBlur { 0% { transform: translateY(-8px); opacity: .5; } 50% { opacity: 1; } 100% { transform: translateY(8px); opacity: .5; } }
.reel.land { animation: reelLand .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes reelLand { 0% { transform: translateY(-22px) scale(1.1); } 60% { transform: translateY(4px) scale(.97); } }
.machine-result { margin-top: 13px; min-height: 26px; font-size: 14px; }
.paytable { display: flex; flex-direction: column; gap: 4px; }
.pay-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.pay-row b { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- Schnick Schnack Schnuck ---------- */

.sn-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.duel { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.duel-side {
  min-width: 140px; padding: 14px 18px; border-radius: 18px; text-align: center;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); transition: .35s;
}
.duel-side.won { border-color: var(--green); box-shadow: 0 0 0 2px rgba(43, 224, 138, .4), 0 0 40px rgba(43, 224, 138, .3); }
.duel-avatar { font-size: 32px; }
.duel-name { font-weight: 800; font-size: 14px; margin: 3px 0 8px; }
.duel-hand { font-size: 54px; line-height: 1; min-height: 60px; }
.duel-hand.reveal { animation: handSlam .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes handSlam { 0% { transform: translateY(-40px) scale(.6) rotate(-20deg); opacity: 0; } }
.duel-score { font-size: 13px; letter-spacing: .22em; color: var(--gold); margin-top: 6px; }
.duel-vs { font-weight: 900; font-size: 15px; letter-spacing: .1em; color: var(--muted); }
.sn-btn { min-width: 118px; }

.bracket { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.bracket-match {
  min-width: 168px; padding: 8px 10px; border-radius: 12px;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1);
}
.bracket-match.done { opacity: .78; }
.bm-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 2px 0; }
.bm-row.w { color: var(--green); font-weight: 800; }
.bm-row.l { opacity: .45; text-decoration: line-through; }

/* ---------- Reflex-Arena ---------- */

.rx-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rx-count { font-size: 84px; font-weight: 900; letter-spacing: -.05em; animation: popIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.rx-title { font-size: clamp(20px, 4.5vw, 30px); font-weight: 900; letter-spacing: -.03em; text-align: center; }
.rx-word {
  font-size: clamp(46px, 12vw, 92px); font-weight: 900; letter-spacing: .02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .6); animation: popIn .3s;
}
.rx-options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rx-options .btn { min-width: 108px; font-size: 19px; }
.rx-light {
  width: min(340px, 78vw); height: 190px; border-radius: 22px; display: grid; place-items: center;
  cursor: pointer; user-select: none; transition: background .08s, box-shadow .08s;
}
.rx-light.wait { background: linear-gradient(160deg, #7f1d1d, #450a0a); box-shadow: inset 0 0 60px rgba(0, 0, 0, .5); }
.rx-light.go {
  background: linear-gradient(160deg, #22c55e, #15803d);
  box-shadow: 0 0 0 4px rgba(43, 224, 138, .5), 0 0 70px rgba(43, 224, 138, .6);
  animation: goPulse .35s ease;
}
@keyframes goPulse { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } }
.rx-light-label { font-weight: 900; font-size: 21px; letter-spacing: .06em; text-shadow: 0 3px 10px rgba(0, 0, 0, .6); }
.rx-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); gap: 5px;
  max-width: 460px; width: 100%;
}
.rx-cell {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 22px; cursor: pointer; border-radius: 9px;
  background: rgba(255, 255, 255, .05); transition: transform .12s, background .2s;
}
.rx-cell:hover { transform: scale(1.18); background: rgba(255, 255, 255, .13); }
.rx-cell.found { background: rgba(43, 224, 138, .35); box-shadow: 0 0 0 2px var(--green); animation: hitFlash 1s ease 2; }
.rx-verdict { font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; }
.rx-verdict.good { color: var(--green); }
.rx-verdict.bad { color: var(--red); }
.rx-rank { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.rx-rank.first { font-weight: 800; }
.rx-scores { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rx-scores .badge.me { border-color: var(--pink); }

/* ---------- Verräter ---------- */

.vr-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vr-card {
  padding: 22px 28px; border-radius: 22px; text-align: center; max-width: 430px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 2px solid var(--stroke-2); animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1);
}
.vr-card.traitor { border-color: var(--red); box-shadow: 0 0 50px rgba(255, 77, 94, .3); }
.vr-card.detective { border-color: var(--cyan); box-shadow: 0 0 50px rgba(34, 230, 255, .28); }
.vr-card.innocent { border-color: var(--green); box-shadow: 0 0 50px rgba(43, 224, 138, .22); }
.vr-role-icon { font-size: 58px; animation: bounceIn .8s cubic-bezier(.2, 1.5, .35, 1); }
.vr-role-name { font-size: 27px; font-weight: 900; letter-spacing: -.03em; margin: 6px 0 8px; }
.vr-role-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.vr-fellows {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 700; color: var(--red);
}
.vr-night { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 14px 0; }
.vr-news { text-align: center; padding: 12px 18px; border-radius: 16px; background: rgba(0, 0, 0, .35); }
.vr-verdict { font-weight: 900; font-size: 16px; margin-top: 6px; }
.vr-verdict.good { color: var(--green); }
.vr-verdict.bad { color: var(--red); }
.vr-grid { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vr-player {
  width: 116px; padding: 11px 8px; border-radius: 15px; text-align: center;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .11); transition: .25s;
}
.vr-player.pick { cursor: pointer; }
.vr-player.pick:hover { transform: translateY(-5px) scale(1.05); border-color: var(--cyan); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.vr-player.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 200, 61, .5); }
.vr-player.me { background: rgba(255, 45, 120, .11); border-color: rgba(255, 45, 120, .4); }
.vr-player.dead { opacity: .4; filter: grayscale(.85); }
.vr-av { font-size: 30px; position: relative; display: inline-block; }
.vr-x { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--red); }
.vr-name { font-weight: 800; font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-role-tag { font-size: 10.5px; font-weight: 800; margin-top: 4px; padding: 2px 6px; border-radius: 7px; display: inline-block; }
.vr-role-tag.traitor { background: rgba(255, 77, 94, .22); color: #ffb3ba; }
.vr-role-tag.detective { background: rgba(34, 230, 255, .18); color: #9beaff; }
.vr-role-tag.innocent { background: rgba(43, 224, 138, .18); color: #9df3c9; }
.vr-votes { font-size: 11px; margin-top: 4px; }

/* ---------- Regeln ---------- */

.rules-body { text-align: left; max-height: min(60vh, 480px); overflow-y: auto; padding-right: 6px; }
.rules-body h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  margin: 16px 0 7px;
}
.rules-body h3:first-child { margin-top: 0; }
.rules-body p { margin: 0 0 10px; line-height: 1.55; font-size: 14px; }
.rules-body ul { margin: 0 0 10px; padding-left: 19px; line-height: 1.55; font-size: 14px; }
.rules-body li { margin-bottom: 5px; }
.rules-body b { color: var(--gold); }
.rules-body .pay { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13.5px; }
.rules-body .pay span:nth-child(even) { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.rules-tip {
  background: rgba(34, 230, 255, .1); border-left: 3px solid var(--cyan);
  padding: 9px 13px; border-radius: 0 11px 11px 0; font-size: 13.5px; line-height: 1.5; margin-top: 6px;
}
.gc-info {
  position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 900; cursor: pointer; z-index: 3;
  background: rgba(0, 0, 0, .38); border: 1px solid var(--stroke-2); color: var(--muted); transition: .2s;
}
.gc-info:hover { background: var(--cyan); color: #04121a; transform: scale(1.18); }

/* ---------- Münzen ---------- */

.coin-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gift-row { display: flex; gap: 7px; align-items: center; padding: 7px 9px; border-radius: 11px; background: rgba(255, 255, 255, .04); }
.bonus-btn.ready { animation: bonusPulse 2s ease-in-out infinite; }
@keyframes bonusPulse {
  50% { box-shadow: 0 0 0 4px rgba(43, 224, 138, .28), 0 8px 26px rgba(43, 224, 138, .4); }
}

/* ---------- Overlays ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(4, 2, 10, 0.78); backdrop-filter: blur(14px); animation: fadeIn 0.3s;
  padding: 20px;
}
@keyframes fadeIn { from { opacity: 0; } }
.overlay-card {
  padding: 34px; text-align: center; max-width: 460px; width: 100%;
  animation: popIn 0.55s cubic-bezier(0.2, 1.4, 0.35, 1);
}
.overlay-emoji { font-size: 64px; animation: bounceIn 0.9s cubic-bezier(0.2, 1.5, 0.35, 1); }
@keyframes bounceIn { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.25) rotate(8deg); } }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: rgba(20, 12, 32, 0.94); border: 1px solid var(--stroke-2); box-shadow: var(--shadow);
  animation: toastIn 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.toast.err { border-color: var(--red); color: #ffb3ba; background: rgba(60, 10, 20, 0.94); }
.toast.ok { border-color: var(--green); color: #9df3c9; background: rgba(6, 45, 30, 0.94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-24px) scale(0.9); } }
.toast.out { animation: toastOut 0.3s forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px) scale(0.92); } }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

.shake { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}

/* ---------- Mobile ---------- */

@media (max-width: 1080px) {
  .lobby-body { grid-template-columns: 1fr; overflow-y: auto; }
  .col.side { max-height: 260px; }
  .chat { max-height: 180px; }
}
@media (max-width: 640px) {
  .felt { margin: 8px; border-radius: 20px; }
  .table-body { padding: 12px; }
  .card { --w: 50px; }
  .card.lg { --w: 70px; }
  .seat { min-width: 138px; padding: 9px; }
  .topbar { padding: 9px 11px; gap: 8px; }
  .logo span { display: none; }
  .board { grid-template-columns: 34px repeat(12, 1fr); gap: 2px; font-size: 10px; }
  .cell { padding: 6px 0; font-size: 10.5px; }
  .action-bar { padding: 10px; gap: 7px; }
  .btn { padding: 11px 15px; font-size: 14px; }
  .chip { width: 40px; height: 40px; font-size: 11.5px; }
}
