:root {
  --bg: #07131e;
  --bg2: #0d1f33;
  --panel: #132742;
  --panel2: #1a3558;
  --border: #2a4a75;
  --text: #f2f7ff;
  --muted: #94aecf;
  --gold: #ffcc33;
  --gold-dark: #c98a00;
  --red: #ff5252;
  --green: #2ed573;
  --blue: #3b82f6;
  --felt-light: #167a50;
  --felt-mid: #0f5c3c;
  --felt-dark: #073824;
  --font-ui: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Fredoka', 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }
body {
  font-family: var(--font-ui);
  background: radial-gradient(1300px 800px at 50% -10%, #153b54 0%, var(--bg) 65%);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.txt-green { color: #57f287; }
.txt-red { color: #ff7b7b; }
.txt-gold { color: var(--gold); }

/* ================= BOTÕES TÁTEIS 3D (MESMO ESTILO DO WAR ONLINE) ================= */
.btn {
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, #274472 0%, #1a3054 100%);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 3px 0 #0d1a30, 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .12s cubic-bezier(.34, 1.56, .64, 1), filter .15s, box-shadow .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.14); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0d1a30, 0 2px 6px rgba(0, 0, 0, .3); }
.btn:disabled { opacity: .42; cursor: not-allowed; filter: saturate(.5); }
.btn.primary {
  background: linear-gradient(180deg, #4da3ff 0%, #2563eb 100%);
  border-color: #7cc0ff;
  box-shadow: 0 3px 0 #153e99, 0 6px 16px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.success {
  background: linear-gradient(180deg, #3ae374 0%, #1ea84f 100%);
  border-color: #7bed9f;
  color: #062812;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 3px 0 #106930, 0 6px 16px rgba(46, 213, 115, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.gold {
  background: linear-gradient(180deg, #ffdd59 0%, #f59e0b 100%);
  border-color: #fff2a6;
  color: #2b1800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
  box-shadow: 0 3px 0 #b45309, 0 6px 18px rgba(245, 158, 11, .42), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn.danger {
  background: linear-gradient(180deg, #ff6b6b 0%, #dc2626 100%);
  border-color: #ffa8a8;
  box-shadow: 0 3px 0 #991b1b, 0 6px 16px rgba(220, 38, 38, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn.danger-ghost {
  background: rgba(220, 38, 38, .22);
  border-color: rgba(255, 107, 107, .55);
  color: #ffc9c9;
  box-shadow: none;
}
.btn.ghost {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}
.btn.glass {
  background: rgba(10, 24, 42, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(120, 175, 235, .32);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.big { padding: 14px 34px; font-size: 17px; border-radius: 16px; }
.btn.big-cta { padding: 12px 20px; font-size: 15.5px; border-radius: 14px; margin-top: 4px; }

input, select {
  width: 100%;
  font-family: var(--font-ui);
  background: rgba(8, 18, 34, .88);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.error { color: #ff7b7b; min-height: 20px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; }
.badge {
  font-family: var(--font-display);
  background: rgba(10, 24, 42, .85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 175, 235, .35);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.user-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, .26), rgba(15, 31, 56, .88));
  border-color: rgba(52, 211, 153, .45);
  color: #d1fae5;
}

/* ================= LOGIN & ORBS ================= */
.screen { height: 100vh; height: var(--app-h, 100dvh); display: flex; flex-direction: column; position: relative; }
#screen-loading, #screen-login { align-items: center; justify-content: center; overflow: hidden; }
.bg-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(75px); opacity: .45; animation: floatOrb 12s infinite alternate ease-in-out; }
.orb-1 { width: 420px; height: 420px; background: #10b981; top: -120px; left: -100px; }
.orb-2 { width: 360px; height: 360px; background: #f59e0b; bottom: -110px; right: -80px; animation-delay: -4s; }
.orb-3 { width: 280px; height: 280px; background: #2563eb; top: 40%; left: 65%; animation-delay: -8s; opacity: .3; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, -25px) scale(1.1); } }

.login-box {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(22, 42, 72, .94) 0%, rgba(12, 26, 48, .96) 100%);
  backdrop-filter: blur(18px);
  border: 2px solid rgba(110, 175, 225, .35);
  border-radius: 26px;
  padding: 34px 36px 28px;
  width: min(410px, calc(100vw - 28px));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .2);
  text-align: center;
}
.brand-emblem {
  width: 64px; height: 64px; margin: 0 auto 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffdd59, #f59e0b);
  color: #161000;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .45), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.logo {
  font-family: var(--font-display);
  font-size: 40px; letter-spacing: 2.5px;
  background: linear-gradient(180deg, #fff5c0 0%, #ffca3a 55%, #e08e00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .45));
}
.logo span {
  font-size: .5em; letter-spacing: 2px; display: inline-block; vertical-align: middle;
  background: linear-gradient(180deg, #6ee7b7, #10b981);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.small { font-size: 22px; letter-spacing: 1.5px; }
.tagline { color: var(--muted); margin: 6px 0 20px; font-size: 13.5px; line-height: 1.45; }
.tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: rgba(8, 16, 30, .65); padding: 5px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.tab {
  flex: 1; padding: 9px 6px; background: transparent; border: none;
  color: var(--muted); border-radius: 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  transition: background .15s, color .15s;
}
.tab.active { background: linear-gradient(180deg, #2b4c7e, #1d3559); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.tabpane { display: flex; flex-direction: column; gap: 11px; }

/* ================= LOBBY ================= */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 22px;
  border-bottom: 1px solid rgba(100, 165, 225, .22);
  background: rgba(8, 18, 34, .9);
  backdrop-filter: blur(12px);
}
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mini-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #ffdd59, #f59e0b); color: #161000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 3px 10px rgba(245, 158, 11, .35);
}
.lobby-live-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lls-pill {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(14, 25, 48, .85); border: 1px solid rgba(110, 160, 235, .28); color: #cbd5e1;
}
.lls-pill.online { border-color: rgba(46, 213, 115, .45); color: #7bed9f; }
.lls-pill.open { border-color: rgba(96, 165, 250, .45); color: #93c5fd; }
.lls-pill.playing { border-color: rgba(245, 158, 11, .45); color: #fde047; }

.lobby-main, .room-main {
  flex: 1; display: grid; gap: 16px; padding: 16px 22px; overflow: auto;
  max-width: 1360px; width: 100%; margin: 0 auto;
}
.lobby-main { grid-template-columns: 1fr 370px; align-items: start; }
.lobby-left-col, .lobby-side-col { display: flex; flex-direction: column; gap: 14px; }
.lobby-left-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; align-items: stretch; }

.panel {
  background: linear-gradient(180deg, rgba(20, 40, 68, .92) 0%, rgba(13, 27, 48, .95) 100%);
  border: 1.5px solid rgba(95, 155, 215, .32);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.panel h2 { font-family: var(--font-display); margin-bottom: 12px; font-size: 17.5px; color: #fff; display: flex; align-items: center; gap: 8px; }

.quick-solo-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, .22), rgba(14, 30, 56, .95));
  border: 2px solid rgba(52, 211, 153, .5);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px;
}
.qs-info { flex: 1 1 280px; }
.qs-kicker { font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .8px; color: #fde047; margin-bottom: 4px; }
.quick-solo-card h2 { font-size: 18.5px; margin-bottom: 4px; }
.quick-solo-card p { font-size: 13px; color: #cbd5e1; line-height: 1.35; }
.qs-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qs-size-group {
  display: inline-flex; background: rgba(9, 18, 36, .85);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 3px; gap: 3px;
}
.qs-size-btn {
  background: transparent; border: none; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 11px; border-radius: 9px; cursor: pointer;
}
.qs-size-btn.active { background: linear-gradient(180deg, #10b981, #059669); color: #fff; box-shadow: 0 2px 8px rgba(16, 185, 129, .45); }

.lobby-rooms-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 10px; margin-bottom: 12px;
}
.lobby-rooms-head h2 { margin: 0; }
.room-filters { display: flex; align-items: center; gap: 5px; }
.rf-btn {
  background: rgba(9, 18, 36, .7); border: 1px solid rgba(120, 165, 235, .28);
  border-radius: 999px; color: #cbd5e1; font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; cursor: pointer;
}
.rf-btn.active { background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-color: #60a5fa; color: #fff; }
.rf-refresh { padding: 4px 8px !important; font-size: 13px !important; }

.room-list, .lobby-leaderboard {
  display: flex; flex-direction: column; gap: 9px; max-height: 390px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(240, 196, 25, .45) rgba(10, 20, 38, .6);
}
.room-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(10, 21, 40, .86); border: 1.5px solid rgba(85, 140, 200, .3);
  border-radius: 16px; padding: 12px 14px; transition: transform .15s, border-color .15s;
}
.room-item:hover { transform: translateY(-2px); border-color: rgba(120, 195, 255, .55); }
.room-item-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.rname-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rname { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: #fff; }
.rstatus-pill { font-family: var(--font-display); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rstatus-pill.open { background: rgba(46, 213, 115, .2); border: 1px solid rgba(46, 213, 115, .55); color: #7bed9f; }
.rstatus-pill.playing { background: rgba(239, 68, 68, .2); border: 1px solid rgba(239, 68, 68, .55); color: #fca5a5; }
.rmode-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 204, 51, .16); border: 1px solid rgba(255, 204, 51, .45); color: #fde047; }
.rplayers { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.room-slots-strip { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.room-slot-pill {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(8, 16, 30, .88);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; padding: 2px 7px; font-size: 11px; color: #e2e8f0;
}
.room-slot-pill.taken { border-color: rgba(52, 211, 153, .45); }
.room-slot-pill.free { border-style: dashed; color: var(--muted); cursor: pointer; }
.room-slot-pill.free:hover { border-color: var(--gold); color: #fff; }
.room-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.empty { color: var(--muted); padding: 32px 16px; text-align: center; background: rgba(9, 18, 34, .45); border-radius: 16px; border: 1px dashed rgba(120, 165, 235, .25); }
.empty-icon { font-size: 34px; margin-bottom: 8px; }

/* Carreira & Hall da Fama */
.career-card {
  background: linear-gradient(135deg, rgba(255, 204, 51, .12), rgba(15, 30, 56, .94));
  border: 1.5px solid rgba(255, 204, 51, .45); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px;
}
.career-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.career-rank-emblem { font-size: 30px; line-height: 1; }
.career-rank-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 800; color: var(--gold); }
.career-name { font-size: 12.5px; color: #cbd5e1; }
.career-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: rgba(8, 16, 32, .65); border-radius: 11px; padding: 7px 5px; text-align: center; }
.career-stat .cs-val { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 800; color: #fff; }
.career-stat .cs-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.lb-item {
  display: flex; align-items: center; gap: 9px; background: rgba(11, 22, 42, .75);
  border: 1px solid rgba(120, 165, 235, .22); border-radius: 12px; padding: 7px 11px; font-size: 12.5px;
}
.lb-item.me { background: linear-gradient(135deg, rgba(16, 185, 129, .22), rgba(15, 28, 52, .85)); border-color: rgba(52, 211, 153, .55); }
.lb-pos { font-family: var(--font-display); font-size: 13px; font-weight: 800; min-width: 24px; text-align: center; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rank { font-size: 10.5px; color: var(--muted); }
.lb-stats { display: flex; flex-direction: column; align-items: flex-end; }
.lb-wins { font-family: var(--font-display); font-size: 12.5px; color: var(--gold); }
.lb-rate { font-size: 10.5px; color: #7bed9f; }
.lb-empty { text-align: center; padding: 18px 10px; font-size: 12.5px; color: var(--muted); background: rgba(9, 18, 34, .4); border: 1px dashed rgba(120, 165, 235, .2); border-radius: 12px; }
.pme-tag { background: var(--gold); color: #1f1200; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 999px; margin-left: 4px; }

/* Form Criar Mesa */
.create-room-form { display: flex; flex-direction: column; gap: 10px; }
.cfg-block { display: flex; flex-direction: column; gap: 6px; }
.cp-label { font-size: 12px; font-weight: 700; color: #c5d8f6; display: block; margin-bottom: 2px; }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.preset-btn {
  background: rgba(9, 18, 36, .85); border: 1.5px solid rgba(110, 160, 235, .3);
  color: #dbeafe; border-radius: 9px; padding: 6px 4px; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .14s;
}
.preset-btn:hover { border-color: var(--gold); }
.preset-btn.active { background: linear-gradient(180deg, #ffdd59, #f59e0b); color: #2b1800; border-color: #fff2a6; }
.input-prefix-wrap { position: relative; display: flex; align-items: center; }
.input-prefix { position: absolute; left: 12px; font-weight: 800; color: var(--gold); font-size: 13.5px; pointer-events: none; }
.input-prefix-wrap input { padding-left: 38px; font-weight: 700; font-size: 15px; }
.cfg-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.cfg-field { display: flex; flex-direction: column; gap: 3px; }
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(8, 16, 30, .7); padding: 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); }
.mode-btn { background: transparent; border: none; color: var(--muted); padding: 8px 6px; border-radius: 9px; font-family: var(--font-display); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mode-btn.active { background: linear-gradient(180deg, #10b981, #059669); color: #fff; box-shadow: 0 2px 8px rgba(16, 185, 129, .4); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #dbeafe; cursor: pointer; }

/* ================= SALA DE ESPERA ================= */
.room-main { justify-items: center; align-content: center; }
.room-stage {
  background: linear-gradient(180deg, rgba(20, 40, 68, .94), rgba(12, 26, 48, .96));
  border: 2px solid rgba(105, 165, 225, .35); border-radius: 26px; padding: 26px 30px;
  width: min(860px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); text-align: center;
}
.stage-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; color: var(--gold); }
.room-cfg-summary { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cfg-chip { background: rgba(8, 18, 34, .82); border: 1px solid rgba(255, 204, 51, .35); color: #fef08a; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.stage-sub { color: #b8cff2; font-size: 13.5px; margin-bottom: 16px; }
.room-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot {
  position: relative; border: 2px solid rgba(90, 145, 205, .32); border-radius: 16px; padding: 13px;
  display: flex; align-items: center; gap: 12px; background: rgba(10, 20, 38, .85); text-align: left;
  transition: transform .16s, border-color .16s;
}
.slot.occupied { border-color: rgba(52, 211, 153, .6); }
.slot.my-slot { border-color: var(--gold); background: linear-gradient(135deg, rgba(35, 62, 108, .92), rgba(14, 28, 52, .94)); }
.slot.empty-slot { opacity: .75; border-style: dashed; cursor: pointer; }
.slot.empty-slot:hover { opacity: 1; border-color: var(--gold); transform: translateY(-2px); }
.slot-avatar {
  position: relative; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, #10b981, #047857); border: 2px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.slot.empty-slot .slot-avatar { background: rgba(255, 255, 255, .08); }
.slot.bot-slot .slot-avatar { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.slot-crown { position: absolute; top: -10px; right: -8px; font-size: 15px; }
.slot-meta { min-width: 0; flex: 1; }
.slot .sname { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .scolor { color: var(--muted); font-size: 12px; margin-top: 2px; }
.slot-you-tag { background: var(--gold); color: #1f1200; font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 999px; margin-left: 5px; }
.slot-bot-btn { flex-shrink: 0; }
.room-actions { margin-top: 22px; display: grid; gap: 12px; justify-items: center; }
.room-action-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ================= MESA DE POKER (JOGO) ================= */
.game-screen { position: relative; }
.table-stage {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #112e3d 0%, #06111c 72%);
  display: flex; flex-direction: column;
}
.hud-top {
  position: relative; z-index: 25;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.hud-left-meta, .hud-right-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fair-badge { cursor: pointer; border-color: rgba(52, 211, 153, .5); color: #6ee7b7; transition: transform .12s; }
.fair-badge:hover { transform: scale(1.05); }
.guide-badge { cursor: pointer; border-color: rgba(255, 204, 51, .5); color: #fde68a; transition: transform .12s; }
.guide-badge:hover { transform: scale(1.05); }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5252; display: inline-block; box-shadow: 0 0 8px #ff5252; }

/* Arena & Feltro Oval */
.poker-arena {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px 12px;
}
.poker-table {
  position: relative;
  width: min(860px, 84vw);
  height: min(410px, 56vh);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75);
}
.table-rail {
  position: absolute; inset: -16px; border-radius: 999px;
  background: linear-gradient(145deg, #4b2e19 0%, #2b180b 45%, #5c3921 100%);
  border: 3px solid rgba(255, 204, 51, .45);
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, .18), inset 0 -8px 18px rgba(0, 0, 0, .75), 0 18px 45px rgba(0, 0, 0, .7);
}
.table-felt {
  position: relative; width: 100%; height: 100%; border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 42%, var(--felt-light) 0%, var(--felt-mid) 52%, var(--felt-dark) 100%);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, .65), inset 0 0 0 3px rgba(255, 204, 51, .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.table-felt::before {
  content: ''; position: absolute; inset: 18px; border-radius: 999px;
  border: 1.5px solid rgba(255, 235, 160, .18); pointer-events: none;
}
.street-stepper {
  position: absolute; top: 10%; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(4, 16, 12, .55); border: 1px solid rgba(255, 235, 160, .2);
  padding: 3px 12px; border-radius: 999px; font-family: var(--font-display); font-size: 11px;
  color: rgba(255, 255, 255, .45); user-select: none;
}
.st-step { padding: 1px 6px; border-radius: 999px; transition: all .2s; }
.st-step.done { color: rgba(167, 243, 208, .85); }
.st-step.active {
  background: linear-gradient(180deg, #ffdd59, #f59e0b); color: #241400; font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, .55);
}
.st-arrow { opacity: .35; font-size: 12px; }

.table-pot-area { display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 2; margin-top: 12px; }
.pot-main-pill {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(5, 18, 13, .88); border: 2px solid rgba(255, 204, 51, .65);
  border-radius: 18px; padding: 6px 16px; font-family: var(--font-display);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .18s;
}
.pot-main-pill.pot-bump { animation: potBump .38s cubic-bezier(.16, 1, .3, 1); }
@keyframes potBump { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
.pot-text-col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.pot-lbl { font-size: 9.5px; color: #a7f3d0; letter-spacing: .8px; font-weight: 700; }
.pot-main-pill b { color: var(--gold); font-size: 18px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.pot-sides { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pot-side-chip { font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 204, 51, .35); padding: 2px 9px; border-radius: 999px; color: #fde68a; }

/* ================= FICHAS DE CASSINO SVG 3D EMPILHADAS ================= */
.chip-stacks { display: inline-flex; align-items: flex-end; gap: 3px; height: 34px; }
.chip-col { display: flex; flex-direction: column-reverse; align-items: center; }
.chip-svg {
  width: 28px; height: 22px; margin-top: -15px; display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
.chip-svg:first-child { margin-top: 0; }
.chip-stacks.small { height: 26px; gap: 2px; }
.chip-stacks.small .chip-svg { width: 22px; height: 17px; margin-top: -11.5px; }

.cfg-note {
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(52, 211, 153, .38);
  border-radius: 10px; padding: 7px 10px; font-size: 11.5px; color: #a7f3d0; line-height: 1.35;
}

/* Fichas apostadas na frente de cada jogador (no feltro) */
.table-bet-spot {
  position: absolute; transform: translate(-50%, -50%); z-index: 12;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(5, 18, 26, .88); border: 1.5px solid rgba(255, 204, 51, .65);
  border-radius: 999px; padding: 3px 10px 3px 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
  pointer-events: none;
  animation: chipSlideIn .28s cubic-bezier(.16, 1, .3, 1);
}
.table-bet-spot .bet-val { font-family: var(--font-display); font-size: 12.5px; font-weight: 800; color: #fde047; white-space: nowrap; }
@keyframes chipSlideIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Feed de Ações ao Vivo */
.live-feed {
  position: absolute; left: 14px; top: 8px; z-index: 18;
  display: flex; flex-direction: column; gap: 5px;
  width: min(340px, 42vw); pointer-events: none;
}
.feed-item {
  background: rgba(8, 20, 36, .86); backdrop-filter: blur(8px);
  border-left: 3.5px solid #60a5fa; border-radius: 0 10px 10px 0;
  padding: 6px 10px; font-size: 12px; font-weight: 600; color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  animation: feedIn .25s ease-out;
  white-space: normal; line-height: 1.32; word-break: break-word;
}
.inline-card {
  display: inline-block; background: #f8fafc; color: #0f172a;
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  padding: 0 4px; border-radius: 4px; margin: 0 1px; line-height: 1.35;
}
.inline-card.red { color: #dc2626; }
.feed-item.t-check { border-left-color: #38bdf8; color: #bae6fd; }
.feed-item.t-call  { border-left-color: #2ed573; color: #bbf7d0; }
.feed-item.t-raise { border-left-color: #f59e0b; color: #fef08a; }
.feed-item.t-allin { border-left-color: #ef4444; background: rgba(127, 29, 29, .86); color: #fecaca; font-weight: 800; }
.feed-item.t-fold  { border-left-color: #64748b; color: #94a3b8; }
.feed-item.t-win   { border-left-color: #10b981; background: rgba(6, 78, 59, .88); color: #a7f3d0; font-weight: 800; }
.feed-item.t-street { border-left-color: #a78bfa; color: #ddd6fe; }
@keyframes feedIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* Banner rápido "SUA VEZ!" */
.my-turn-toast {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 26;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .96), rgba(217, 119, 6, .96));
  color: #1f1100; border: 2px solid #fff3b0; border-radius: 999px;
  padding: 6px 18px; font-family: var(--font-display);
  box-shadow: 0 10px 30px rgba(245, 158, 11, .5);
  pointer-events: none; animation: turnPulse 1.4s infinite ease-in-out;
}
.mtt-title { font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.mtt-sub { font-size: 12.5px; font-weight: 700; background: rgba(0, 0, 0, .18); padding: 2px 9px; border-radius: 999px; color: #fff; }
@keyframes turnPulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.04); } }

/* Guia de Mãos com Cartas Visuais */
.guide-card { width: min(640px, 100%); }
.guide-list { display: flex; flex-direction: column; gap: 7px; }
.guide-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(8, 18, 34, .82); border: 1px solid rgba(110, 170, 230, .25);
  border-radius: 12px; padding: 8px 12px; font-size: 13px; flex-wrap: wrap;
}
.guide-info { display: flex; flex-direction: column; gap: 2px; min-width: 170px; flex: 1; }
.guide-info b { color: var(--gold); font-family: var(--font-display); font-size: 14px; }
.guide-info span { color: #cbd5e1; font-size: 11.5px; }
.guide-cards { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.gcard {
  width: 34px; height: 48px; border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1.5px solid #cbd5e1; color: #0f172a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45); user-select: none;
}
.gcard.red { color: #dc2626; }
.gcard .gr { font-size: 13px; }
.gcard .gs { font-size: 13px; margin-top: 1px; }
.gcard.dim { opacity: .48; filter: saturate(.4); }
.gcard.hi { border-color: var(--gold); box-shadow: 0 0 0 1.5px rgba(255, 204, 51, .65), 0 3px 10px rgba(0, 0, 0, .5); }

/* Cartas */
.board-cards { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 92px; z-index: 2; }
.card {
  width: 62px; height: 88px; border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1.5px solid #cbd5e1; color: #0f172a;
  display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px;
  font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .48), inset 0 1px 0 #fff;
  position: relative; user-select: none;
  animation: cardDeal .26s cubic-bezier(.16, 1, .3, 1);
}
.card.red { color: #dc2626; }
.card.black { color: #0f172a; }
.card.highlight { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(255, 204, 51, .75); transform: translateY(-4px); }
.card.dimmed { opacity: .45; filter: saturate(.4); }
.card-corner { display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 15px; width: fit-content; }
.card-corner .cs { font-size: 13px; }
.card-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; pointer-events: none; opacity: .92; }
.card.back {
  background:
    repeating-linear-gradient(45deg, #1d4ed8 0, #1d4ed8 5px, #1e3a8a 5px, #1e3a8a 10px);
  border: 2px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .25);
}
.card.mini { width: 42px; height: 60px; border-radius: 7px; padding: 3px 4px; }
.card.mini .card-corner { font-size: 12px; }
.card.mini .card-corner .cs { font-size: 10px; }
.card.mini .card-center { font-size: 20px; }
.card.mine { width: 66px; height: 94px; }
.card.mine .card-corner { font-size: 16px; }
.card.mine .card-center { font-size: 32px; }
.card-slot-empty { width: 62px; height: 88px; border-radius: 9px; border: 1.5px dashed rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .12); }
@keyframes cardDeal { from { opacity: 0; transform: translateY(-14px) scale(.85); } to { opacity: 1; transform: none; } }

.table-status-banner {
  z-index: 3; background: rgba(7, 18, 32, .88); border: 1.5px solid rgba(255, 204, 51, .6);
  color: #fef08a; padding: 6px 16px; border-radius: 999px; font-family: var(--font-display);
  font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  max-width: 90%; text-align: center;
}

/* Assentos ao redor da mesa */
.seats-layer { position: absolute; inset: 0; pointer-events: none; }
.seat-node {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  z-index: 10; transition: left .3s ease, top .3s ease;
}
.seat-node.is-me { z-index: 15; }
.seat-cards { display: flex; gap: 4px; margin-bottom: -10px; z-index: 1; }
.seat-node.is-me .seat-cards { gap: 6px; margin-bottom: -8px; }
.seat-box {
  position: relative; min-width: 128px; max-width: 155px;
  background: linear-gradient(180deg, rgba(18, 36, 62, .95), rgba(10, 22, 40, .97));
  border: 2px solid rgba(110, 165, 225, .42); border-radius: 15px; padding: 7px 11px 6px;
  text-align: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .55); z-index: 2;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.seat-node.active-turn .seat-box {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 51, .35), 0 0 28px rgba(255, 204, 51, .45);
}
.seat-node.winner .seat-box {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .45), 0 0 30px rgba(52, 211, 153, .65);
}
.seat-node.folded { opacity: .48; filter: saturate(.4); }
.seat-node.busted .seat-box { opacity: .55; border-color: rgba(239, 68, 68, .5); }

.seat-name { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-stack { font-family: var(--font-display); font-size: 13.5px; font-weight: 800; color: #6ee7b7; }
.seat-timer-row { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.seat-timer-track { flex: 1; height: 5px; background: rgba(255, 255, 255, .16); border-radius: 999px; overflow: hidden; }
.seat-timer-fill { height: 100%; background: linear-gradient(90deg, #2ed573, #ffcc33); width: 100%; transition: width .25s linear; }
.seat-timer-fill.low { background: linear-gradient(90deg, #ff5252, #f59e0b); }
.seat-timer-sec { font-family: var(--font-display); font-size: 10.5px; font-weight: 800; color: #fde047; min-width: 24px; text-align: right; }
.seat-timer-sec.low { color: #ff7b7b; }

.seat-action-tag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, .4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
  animation: actionPop .24s cubic-bezier(.16, 1, .3, 1);
}
@keyframes actionPop {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.8); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.seat-action-tag.fold { background: #334155; color: #cbd5e1; border-color: #64748b; }
.seat-action-tag.check { background: linear-gradient(180deg, #38bdf8, #0284c7); color: #fff; border-color: #bae6fd; }
.seat-action-tag.call { background: linear-gradient(180deg, #34d399, #15803d); color: #fff; border-color: #a7f3d0; }
.seat-action-tag.bet, .seat-action-tag.raise { background: linear-gradient(180deg, #fde047, #d97706); color: #1f1200; border-color: #fef9c3; }
.seat-action-tag.allin { background: linear-gradient(90deg, #ef4444, #f59e0b); color: #fff; border-color: #fef08a; box-shadow: 0 0 16px rgba(239, 68, 68, .75); }
.seat-action-tag.sb, .seat-action-tag.bb { background: #1e293b; color: #fde68a; border-color: rgba(255, 204, 51, .45); }

.dealer-btn {
  position: absolute; right: -10px; top: -10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #fff9db, #f59e0b); color: #1f1200;
  border: 2px solid #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6);
}
.seat-bet-chip {
  background: rgba(6, 18, 28, .88); border: 1.5px solid rgba(255, 204, 51, .65);
  color: #fde047; font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.seat-emote-bubble {
  position: absolute; top: -38px; right: -14px; font-size: 28px; z-index: 30;
  animation: emotePop 2.4s ease-out forwards; pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .65));
}
@keyframes emotePop {
  0% { opacity: 0; transform: translateY(12px) scale(.4); }
  15% { opacity: 1; transform: translateY(-4px) scale(1.15); }
  75% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(.85); }
}

.my-hand-pill {
  position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 20;
  background: linear-gradient(135deg, rgba(16, 185, 129, .92), rgba(5, 122, 85, .95));
  border: 1.5px solid #a7f3d0; color: #fff; font-family: var(--font-display);
  font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); pointer-events: none;
}

.emote-bar {
  position: absolute; left: 14px; bottom: 88px; z-index: 20;
  display: flex; gap: 4px; background: rgba(10, 22, 40, .78); backdrop-filter: blur(8px);
  border: 1px solid rgba(120, 175, 235, .28); border-radius: 999px; padding: 4px 7px;
}
.emote-btn { background: transparent; border: none; font-size: 17px; cursor: pointer; padding: 2px 4px; border-radius: 8px; transition: transform .12s; }
.emote-btn:hover { transform: scale(1.28); background: rgba(255, 255, 255, .1); }

/* Barra de Ações Inferior (Centralizada) */
.poker-actionbar {
  position: relative; z-index: 25;
  margin: 0 auto 10px; padding: 10px 20px; border-radius: 18px;
  width: fit-content; max-width: calc(100vw - 24px);
  background: rgba(10, 22, 40, .92); backdrop-filter: blur(14px);
  border: 2px solid rgba(110, 170, 230, .32);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  min-height: 66px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  transition: border-color .2s, box-shadow .2s;
}
.poker-actionbar.my-turn-bar {
  border-color: rgba(255, 204, 51, .85);
  box-shadow: 0 0 0 2px rgba(255, 204, 51, .28), 0 10px 34px rgba(245, 158, 11, .35);
}
.action-meta-pill {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  padding: 3px 10px; border-radius: 999px; font-size: 12px; color: #e2e8f0; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.action-status { font-family: var(--font-display); font-size: 14px; color: #cbd5e1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.action-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mini-chip-ico { width: 16px; height: 13px; vertical-align: -2px; display: inline-block; flex-shrink: 0; }
.raise-panel {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: rgba(6, 14, 28, .75); border: 1px solid rgba(255, 204, 51, .35);
  border-radius: 13px; padding: 5px 9px;
}
.raise-presets { display: flex; gap: 4px; }
.rp-btn {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  color: #fef08a; border-radius: 8px; padding: 4px 8px; font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.rp-btn:hover { background: rgba(255, 204, 51, .24); }
.raise-slider { width: 120px; accent-color: var(--gold); cursor: pointer; }
.raise-input { width: 88px; padding: 5px 8px; font-size: 13px; font-weight: 700; text-align: right; }

/* Gaveta Lateral (Chat / Caixa / Log) */
.side-drawer {
  position: absolute; top: 56px; right: 12px; bottom: 86px; width: min(330px, calc(100vw - 24px));
  z-index: 35; background: rgba(11, 23, 42, .95); backdrop-filter: blur(16px);
  border: 1.5px solid rgba(110, 170, 230, .4); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 55px rgba(0, 0, 0, .7);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer-tabs { display: flex; gap: 5px; }
.dtab { background: transparent; border: 1px solid transparent; color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 9px; cursor: pointer; }
.dtab.active { background: rgba(59, 130, 246, .28); border-color: rgba(96, 165, 250, .5); color: #fff; }
.drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px; }
.dtab-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.chat-messages, .action-log, .cash-summary { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.chat-msg { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; line-height: 1.35; }
.chat-msg b { color: var(--gold); margin-right: 5px; }
.chat-input-row { display: flex; gap: 6px; }
.log-line { font-size: 12px; color: #cbd5e1; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); border-left: 2px solid rgba(96, 165, 250, .45); }
.cash-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255, 255, 255, .05); border-radius: 11px; padding: 8px 10px; font-size: 12.5px; }
.cash-row-name { font-weight: 700; color: #fff; }
.cash-row-sub { font-size: 11px; color: var(--muted); }
.cash-row-net { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; }

/* Modais & Overlay de Fim de Mesa */
.modal-backdrop, .win-overlay {
  position: fixed; inset: 0; z-index: 65; background: rgba(4, 10, 20, .82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card, .win-box {
  width: min(640px, 100%); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(22, 42, 74, .97), rgba(12, 24, 46, .98));
  border: 2px solid rgba(255, 204, 51, .5); border-radius: 24px; padding: 24px 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .75);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h3 { font-family: var(--font-display); font-size: 18px; color: var(--gold); }
.fair-box { background: rgba(6, 14, 28, .8); border: 1px solid rgba(110, 170, 230, .28); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 12px; word-break: break-all; }
.fair-box b { color: #6ee7b7; display: block; margin-bottom: 4px; }
.win-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.win-trophy { font-size: 48px; }
.win-title-block h1 { font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.win-summary { color: #cbd5e1; font-size: 13.5px; margin-top: 2px; }
.win-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.win-table th, .win-table td { padding: 8px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.win-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.settle-box { background: rgba(16, 185, 129, .12); border: 1.5px solid rgba(52, 211, 153, .45); border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.settle-box h3 { font-family: var(--font-display); font-size: 15px; color: #6ee7b7; margin-bottom: 8px; }
.settle-line { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.settle-line:last-child { border-bottom: none; }
.win-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.toast {
  position: fixed; top: 68px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); background: rgba(16, 32, 60, .96);
  border: 1.5px solid rgba(120, 175, 255, .55); padding: 10px 20px; border-radius: 999px;
  z-index: 90; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); font-size: 13.5px; color: #fff;
}
.toast.err { background: rgba(75, 16, 24, .96); border-color: #ff6b6b; color: #ffd6d6; }

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 1060px) {
  .lobby-left-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .lobby-main { grid-template-columns: 1fr; padding: 12px; }
  .room-slots { grid-template-columns: repeat(2, 1fr); }
  .hb-text { display: none; }
  .poker-table { width: 92vw; height: 48vh; }
  .card { width: 46px; height: 66px; }
  .card.mine { width: 52px; height: 74px; }
  .card-center { font-size: 22px; }
  .card-slot-empty { width: 46px; height: 66px; }
  .seat-box { min-width: 98px; padding: 5px 7px; }
  .seat-name { font-size: 11px; }
  .seat-stack { font-size: 11.5px; }
  .emote-bar { display: none; }
  .live-feed { display: none; }
  .street-stepper { top: 6%; font-size: 9.5px; padding: 2px 8px; }
}
@media (max-width: 520px) {
  .room-slots { grid-template-columns: 1fr; }
  .poker-actionbar { margin: 0 6px 6px; padding: 8px 10px; }
}

/* ================= TEMAS DO FELTRO DA MESA ================= */
body.felt-blue {
  --felt-light: #1e5ea8;
  --felt-mid: #14407a;
  --felt-dark: #0a2347;
}
body.felt-red {
  --felt-light: #9e2135;
  --felt-mid: #731424;
  --felt-dark: #420912;
}
body.felt-vip {
  --felt-light: #2b3444;
  --felt-mid: #1a212c;
  --felt-dark: #0d1118;
}

/* ================= SELETOR DE AVATAR ================= */
.avatar-picker {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1);
  justify-content: space-between;
}
.av-opt {
  background: rgba(8, 16, 30, .7); border: 1.5px solid transparent;
  border-radius: 9px; width: 32px; height: 32px; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .12s, border-color .12s;
}
.av-opt:hover { transform: scale(1.14); border-color: rgba(255, 255, 255, .35); }
.av-opt.active { border-color: var(--gold); background: rgba(255, 204, 51, .2); transform: scale(1.1); }

/* ================= % DE VITÓRIA NO ALL-IN & RABBIT HUNT ================= */
.odds-pill {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 22, 40, .95); border: 1.5px solid #94a3b8; color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .6); z-index: 6;
}
.odds-pill.fav { border-color: #34d399; color: #6ee7b7; background: rgba(6, 78, 59, .95); }
.odds-pill.dog { border-color: #f87171; color: #fecaca; background: rgba(127, 29, 29, .95); }

.card.rabbit {
  opacity: .84; border: 2px dashed #c084fc;
  box-shadow: 0 0 16px rgba(192, 132, 252, .45);
}
.card.rabbit::after {
  content: '🐰'; position: absolute; bottom: 2px; right: 3px; font-size: 12px;
}

/* ================= PRÉ-AÇÕES ================= */
.preact-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.preact-btn {
  background: rgba(15, 32, 56, .85); border: 1.5px solid rgba(110, 170, 230, .35);
  color: #cbd5e1; border-radius: 11px; padding: 7px 12px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all .14s; display: inline-flex; align-items: center; gap: 5px;
}
.preact-btn:hover { border-color: #60a5fa; color: #fff; }
.preact-btn.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, .35), rgba(180, 83, 9, .45));
  border-color: var(--gold); color: #fef08a; box-shadow: 0 0 12px rgba(245, 158, 11, .35);
}

/* ================= EFEITOS: FICHAS VOANDO, ARREMESSO & CONFETE ================= */
.fx-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.fly-chip {
  position: absolute; width: 28px; height: 22px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .65));
  transition: left .52s cubic-bezier(.22, 1, .36, 1), top .52s cubic-bezier(.22, 1, .36, 1), opacity .52s ease;
}
.fly-throw {
  position: absolute; font-size: 32px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6));
  transition: left .55s cubic-bezier(.2, .85, .35, 1), top .55s cubic-bezier(.2, .85, .35, 1), transform .55s ease;
}
.throw-splat {
  position: absolute; font-size: 42px; transform: translate(-50%, -50%);
  animation: splatPop .85s ease-out forwards;
}
@keyframes splatPop {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.7) rotate(0deg); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.35) rotate(14deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6) translateY(-18px) rotate(-10deg); }
}
.confetti-bit {
  position: absolute; width: 9px; height: 14px; border-radius: 2px;
  animation: confettiFall 1.8s ease-out forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* Menu de Arremesso ao clicar em um oponente */
.seat-node.throwable .seat-box { cursor: pointer; }
.seat-node.throwable .seat-box:hover { border-color: rgba(255, 204, 51, .7); }
.throw-menu {
  position: absolute; z-index: 45; transform: translate(-50%, -115%);
  background: rgba(10, 22, 42, .96); backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 204, 51, .65); border-radius: 999px;
  padding: 5px 8px; display: flex; align-items: center; gap: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .7);
}
.throw-pick {
  background: transparent; border: none; font-size: 20px; cursor: pointer;
  padding: 3px 5px; border-radius: 8px; transition: transform .12s;
}
.throw-pick:hover { transform: scale(1.3); background: rgba(255, 255, 255, .12); }

/* Estatísticas na gaveta */
.stat-card-hi {
  background: linear-gradient(135deg, rgba(255, 204, 51, .16), rgba(12, 26, 48, .85));
  border: 1.5px solid rgba(255, 204, 51, .45); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px;
}
.stat-card-hi .sc-k { font-size: 10.5px; color: #fde68a; text-transform: uppercase; font-weight: 800; letter-spacing: .5px; }
.stat-card-hi .sc-v { font-family: var(--font-display); font-size: 16px; color: #fff; font-weight: 800; margin-top: 2px; }
.stat-card-hi .sc-s { font-size: 11.5px; color: #cbd5e1; }

/* Selos fixos SB / BB nos assentos e badge de saldo no topo */
.blind-pill {
  position: absolute; left: -10px; top: -10px;
  min-width: 24px; height: 22px; padding: 0 5px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .55);
}
.blind-pill.sb { background: linear-gradient(180deg, #38bdf8, #0284c7); color: #fff; }
.blind-pill.bb { background: linear-gradient(180deg, #a78bfa, #6d28d9); color: #fff; }
.net-pos { border-color: rgba(46, 213, 115, .55); color: #6ee7b7; }
.net-neg { border-color: rgba(255, 107, 107, .55); color: #fca5a5; }

/* ================= MURAL DE RECORDES DO CLUBE & MEDALHAS ================= */
.club-records-panel { padding: 13px 16px; }
.club-records-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.club-records-head h2 { margin: 0; font-size: 16px; }
.club-records-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
@media (max-width: 1180px) { .club-records-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .club-records-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rec-card {
  background: rgba(8, 18, 34, .82); border: 1px solid rgba(255, 204, 51, .28);
  border-radius: 13px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px;
}
.rec-k { font-size: 10px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .4px; }
.rec-v { font-family: var(--font-display); font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badges-strip {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px;
  padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.badge-ico {
  background: rgba(255, 204, 51, .14); border: 1px solid rgba(255, 204, 51, .4);
  border-radius: 8px; padding: 2px 6px; font-size: 12px; cursor: default;
}
.badge-ico.locked { opacity: .28; filter: grayscale(1); border-color: rgba(255, 255, 255, .14); }
.league-pill {
  display: inline-block; background: rgba(59, 130, 246, .22); border: 1px solid rgba(96, 165, 250, .5);
  color: #93c5fd; font-family: var(--font-display); font-size: 11px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; margin-left: 5px;
}

/* ================= LÍDER DA MESA (COROA) & ON FIRE ================= */
.seat-node.on-fire .seat-box {
  border-color: #ff6b35;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, .55), 0 0 26px rgba(239, 68, 68, .65);
  animation: fireGlow 1.3s infinite alternate ease-in-out;
}
@keyframes fireGlow {
  0%   { box-shadow: 0 0 0 2px rgba(255, 107, 53, .45), 0 0 18px rgba(239, 68, 68, .55); }
  100% { box-shadow: 0 0 0 3px rgba(255, 204, 51, .75), 0 0 30px rgba(249, 115, 22, .85); }
}
.on-fire-pill {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #dc2626, #f97316, #facc15);
  color: #1f0a00; font-family: var(--font-display); font-size: 10px; font-weight: 800;
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid #fff7ed; box-shadow: 0 3px 10px rgba(239, 68, 68, .65); z-index: 7;
}
.chip-leader-tag { margin-right: 3px; filter: drop-shadow(0 0 4px rgba(255, 204, 51, .8)); }
.ranked-badge-on { border-color: rgba(255, 204, 51, .55); color: #fde047; }
.ranked-badge-off { border-color: rgba(148, 163, 184, .4); color: #94a3b8; }
