* { box-sizing: border-box; }

/* ============================================================
   Ícones SVG (identidade visual coesa). Tamanho controlado por
   font-size do contêiner (1em) ou width/height explícito.
   ============================================================ */
.ic {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  flex-shrink: 0;
  overflow: visible;
}
/* Ícone dentro de botões com texto (ex.: JOGAR AGORA) */
.btn-ic {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.17em;
  margin-right: 0.18em;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.btn .ic,
.chip .ic,
.icon-btn .ic,
.table-fab .ic,
.footer-btn .ic,
.ea-ic .ic {
  pointer-events: none;
}
/* Moedinha inline em chips/labels */
.chip-coin {
  width: 1.02em;
  height: 1.02em;
  vertical-align: -0.16em;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   Tema "Cassino Social" — Azul Royal + Dourado Vibrante
   ============================================================ */
:root {
  --bg-deep: #0a1a4a;
  --bg-mid: #142a6e;
  --bg-soft: #1e3a8a;
  --accent-gold: #ffd54f;
  --accent-gold-bright: #ffe066;
  --accent-gold-deep: #b8860b;
  --accent-orange: #ff9800;
  --accent-cyan: #4fc3f7;
  --accent-green: #00e88a;
  --accent-red: #ff5252;
  --accent-purple: #ab47bc;
  --surface-1: rgba(10, 20, 60, 0.55);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 213, 79, 0.22);
  --border-strong: rgba(255, 213, 79, 0.55);
  --glow-gold: 0 0 16px rgba(255, 213, 79, 0.55);
  --glow-blue: 0 0 16px rgba(79, 195, 247, 0.55);

  /* ---- Skin Golden: tokens unificados ---- */
  --skin-radius-xs: 10px;
  --skin-radius-sm: 12px;
  --skin-radius-md: 16px;
  --skin-radius-lg: 20px;
  --skin-radius-pill: 22px;
  --skin-bg-surface: linear-gradient(160deg, rgba(30, 58, 138, 0.72), rgba(10, 20, 60, 0.82));
  --skin-bg-elevated: linear-gradient(135deg, rgba(255, 213, 79, 0.14), rgba(30, 58, 138, 0.52));
  --skin-bg-glass: linear-gradient(180deg, rgba(20, 42, 110, 0.42), rgba(10, 20, 60, 0.62));
  --skin-bg-purple: linear-gradient(160deg, rgba(106, 27, 154, 0.55), rgba(74, 20, 140, 0.68));
  --skin-bg-gold: linear-gradient(135deg, #ffe066 0%, #f4c43d 45%, #b8860b 100%);
  --skin-bg-gold-soft: linear-gradient(160deg, rgba(184, 134, 11, 0.82), rgba(255, 152, 0, 0.72));
  --skin-border: 1px solid rgba(255, 213, 79, 0.28);
  --skin-border-strong: 1px solid rgba(255, 213, 79, 0.55);
  --skin-border-purple: 1px solid rgba(171, 71, 188, 0.45);
  --skin-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
  --skin-shadow-elevated: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 213, 79, 0.16);
  --skin-shadow-gold: 0 4px 14px rgba(255, 213, 79, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --skin-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --skin-inset-strong: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --skin-glow-hover: 0 0 14px rgba(255, 213, 79, 0.35);
  --skin-transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.15s ease;
}
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(255, 213, 79, 0.18) 0%, transparent 65%),
    radial-gradient(1100px 700px at 80% 90%, rgba(79, 195, 247, 0.12) 0%, transparent 60%),
    radial-gradient(900px 600px at 15% 80%, rgba(171, 71, 188, 0.10) 0%, transparent 60%),
    linear-gradient(165deg, #050a26 0%, #0a1a4a 35%, #142a6e 75%, #0a1a4a 100%);
  color: #fff;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
/* Padroniza barras de scroll no tema. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 213, 79, 0.30); border-radius: 4px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.20); }

#app {
  width: 100%;
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 14px 24px;
  overflow-x: hidden;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold-deep));
  color: #1a1a1a;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 213, 79, 0.35);
}
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 213, 79, 0.40);
  border: 2px solid var(--border-strong);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-deep));
}
.top h1 { margin: 0; font-size: 1.45rem; letter-spacing: 0.4px; }
.brand-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,179,0,0.22);
  color: #ffd54f;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid rgba(255,179,0,0.45);
}
.brand-sub { margin: 0; font-size: 0.78rem; opacity: 0.85; }
.brand-sub strong { color: #ffd54f; }
.status { margin: 8px 0 0; opacity: 0.75; font-size: 0.78rem; }

.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.18rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: var(--skin-transition);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.icon-btn:hover {
  background: linear-gradient(160deg, rgba(40, 72, 158, 0.82), rgba(14, 28, 84, 0.88));
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--skin-shadow-elevated), var(--skin-glow-hover);
}
.icon-btn.muted { opacity: 0.45; }
.icon-btn.active {
  background: var(--skin-bg-gold);
  color: #1a1a1a;
  border-color: transparent;
  box-shadow: var(--skin-shadow-gold);
}
.icon-btn .ic { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.icon-btn.active .ic { filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35)); }

.panel {
  background:
    var(--skin-bg-glass),
    radial-gradient(circle at 0% 0%, rgba(255, 213, 79, 0.08), transparent 60%);
  border: var(--skin-border);
  border-radius: var(--skin-radius-lg);
  padding: 16px;
  margin-top: 12px;
  box-shadow: var(--skin-shadow-elevated), var(--skin-inset);
}
.hidden { display: none !important; }
.hint { font-size: 0.85rem; opacity: 0.85; }
.hint.mini { font-size: 0.7rem; opacity: 0.5; margin-top: 14px; }
.social-disclaimer {
  max-width: 620px;
  line-height: 1.35;
}
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin: 16px 0 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-title-main .ic {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.link-btn {
  background: none; border: none; color: #ffb300;
  cursor: pointer; font-size: 0.75rem; padding: 2px 6px;
  text-transform: none; letter-spacing: 0;
}
.link-btn:hover { text-decoration: underline; }
button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.icon-btn:focus-visible,
.table-fab:focus-visible,
.footer-btn:focus-visible,
.lobby-mode-card:focus-visible {
  outline: 2px solid var(--accent-gold-bright);
  outline-offset: 2px;
  box-shadow: var(--skin-shadow-elevated), 0 0 0 4px rgba(255, 213, 79, 0.18);
}

/* ===== Identidade ===== */
.lobby-prime {
  position: relative;
  margin: -2px -2px 14px;
  padding: 10px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 224, 102, 0.22), transparent 32%),
    radial-gradient(circle at 88% 28%, rgba(79, 195, 247, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(15, 30, 75, 0.62), rgba(5, 10, 35, 0.42));
  border: 1px solid rgba(255, 213, 79, 0.24);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.lobby-prime::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 213, 79, 0.10);
  pointer-events: none;
}
.me-card {
  display: flex; align-items: center; gap: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 224, 102, 0.18), transparent 42%),
    var(--skin-bg-elevated),
    radial-gradient(circle at 100% 0%, rgba(255, 213, 79, 0.18), transparent 60%);
  border: var(--skin-border-strong);
  padding: 12px;
  border-radius: var(--skin-radius-md);
  box-shadow: var(--skin-shadow-elevated), var(--skin-inset-strong);
  position: relative;
  overflow: hidden;
}
.me-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 213, 79, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shineSweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shineSweep {
  0%, 70% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.me-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(20, 42, 110, 0.6));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  border: 3px solid var(--accent-gold-bright);
  box-shadow: 0 0 14px rgba(255, 213, 79, 0.55), inset 0 0 8px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}
.me-info { flex: 1; min-width: 0; }
.me-nick {
  font-weight: 800; font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.me-balance { font-size: 0.82rem; opacity: 0.9; display: flex; align-items: center; gap: 4px; }
.me-balance strong { color: #ffd54f; font-variant-numeric: tabular-nums; }
.coin { font-size: 0.9rem; }
.daily {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px !important;
  font-size: 0.82rem;
}
.daily:disabled { background: rgba(255,255,255,0.1) !important; }
.daily .daily-ico { font-size: 1.1rem; }

/* ===== Copinho banner ===== */
.copinho-banner {
  display: flex; align-items: center; gap: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 224, 102, 0.16), transparent 48%),
    var(--skin-bg-purple);
  border: var(--skin-border-purple);
  padding: 10px 12px;
  border-radius: var(--skin-radius-sm);
  margin-top: 12px;
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.cop-card {
  width: 46px; height: 64px;
  background: linear-gradient(145deg, #fff8e1, #ffecb3);
  border: 2px solid #6a1b9a;
  color: #4a148c;
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.cop-card .cop-cup {
  width: 60%; height: 48%;
  background: url("img/copo.png") center / contain no-repeat;
}
.cop-card .cop-label { line-height: 1; }
.cop-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; }
.cop-text strong { font-size: 0.95rem; }
.cop-text span { opacity: 0.85; }

/* ===== Stakes / Botões ===== */
.stakes { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: var(--skin-border);
  background: var(--skin-bg-surface);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--skin-radius-pill);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--skin-transition);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.chip:hover:not(.active) {
  background: linear-gradient(160deg, rgba(40, 72, 158, 0.78), rgba(14, 28, 84, 0.85));
  border-color: var(--border-strong);
  box-shadow: var(--skin-shadow-elevated);
}
.chip.active {
  background: var(--skin-bg-gold);
  color: #1a1a1a;
  border-color: transparent;
  font-weight: 800;
  box-shadow: var(--skin-shadow-gold);
}

/* ===== Tickets de nível de mesa (estilo Golden) ===== */
.level-tickets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.level-ticket {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: #11240f;
  border-radius: 16px;
  overflow: hidden;
  min-height: 96px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: var(--skin-transition);
  --lt-a: #58c06a;
  --lt-b: #2f9d4d;
  --lt-enter: linear-gradient(180deg, #3fae57, #1f7d39);
}
.level-ticket.lt-medio  { --lt-a: #6db4f0; --lt-b: #2f7fd0; --lt-enter: linear-gradient(180deg, #4a98e6, #1f5fb0); }
.level-ticket.lt-senior { --lt-a: #ffcf6b; --lt-b: #f0a829; --lt-enter: linear-gradient(180deg, #f7b733, #c77f10); }
.level-ticket:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.level-ticket:active { transform: translateY(0); }
.level-ticket .lt-stub {
  width: 16px;
  flex: 0 0 16px;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.28) 2.4px, transparent 2.8px) 0 4px / 100% 14px repeat-y,
    linear-gradient(180deg, var(--lt-a), var(--lt-b));
}
.level-ticket .lt-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lt-a) 92%, #fff 8%), var(--lt-b));
}
.lt-name {
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
  letter-spacing: 0.01em;
}
.lt-points { display: inline-flex; gap: 6px; margin: 2px 0 1px; }
.lt-points b {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
}
.lt-points .ic { width: 0.8em; height: 0.8em; }
.lt-win  { background: rgba(20, 110, 40, 0.85); }
.lt-lose { background: rgba(150, 40, 30, 0.85); }
.lt-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0e2410;
}
.lt-row strong { font-weight: 950; }
.lt-row .chip-coin { width: 0.95em; height: 0.95em; }
.lt-reco { opacity: 0.82; font-size: 0.66rem; }
.lt-enter {
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: var(--lt-enter);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.25);
  letter-spacing: 0.18em;
}
.quick-start-btn {
  margin-top: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px;
  border: 1.5px solid rgba(120, 180, 255, 0.5);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #3a7bd5, #1f4fa0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: var(--skin-transition);
}
.quick-start-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.qs-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 900; letter-spacing: 0.04em; }
.qs-title .ic { width: 1.1em; height: 1.1em; }
.qs-sub { font-size: 0.72rem; opacity: 0.85; }

/* ===== Modal Pacote Iniciante ===== */
.starter-card {
  position: relative;
  text-align: center;
  max-width: 360px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(150, 70, 200, 0.45), transparent 60%),
    linear-gradient(180deg, #2a1450, #160a2e);
  border: 1.5px solid rgba(190, 130, 255, 0.55);
  overflow: hidden;
}
.starter-x {
  position: absolute;
  top: 10px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 120, 120, 0.6);
  background: rgba(80, 18, 18, 0.7);
  color: #ffd0d0;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 2;
}
.starter-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 0.95rem;
  color: #2a1700;
  background: linear-gradient(180deg, #fff1c2, #f7b733);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: rotate(-8deg);
}
.starter-card .starter-title {
  margin: 42px 0 14px;
  font-size: 1.7rem;
  font-weight: 950;
  background: linear-gradient(180deg, #ffe9a8, #f7b733);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(247, 183, 51, 0.3);
}
.starter-chest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
}
.starter-chest > .ic {
  width: 92px; height: 92px;
  color: #ffd54f;
  filter: drop-shadow(0 8px 18px rgba(255, 200, 60, 0.4));
}
.starter-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 950;
  color: #2a1700;
  background: linear-gradient(180deg, #fff1c2, #f7b733 60%, #b8860b);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.starter-amount .chip-coin { width: 1.1em; height: 1.1em; }
.starter-vip { font-size: 0.92rem; opacity: 0.92; margin: 0 0 12px; }
.starter-vip strong { color: #ffd54f; }
.starter-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.starter-price-old { font-size: 1rem; opacity: 0.6; text-decoration: line-through; }
.starter-price-now { font-size: 1.9rem; font-weight: 950; color: #6dffa0; }
.starter-buy { width: 100%; }
.starter-foot { margin-top: 10px; opacity: 0.6; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1; padding: 10px; border-radius: var(--skin-radius-sm); border: var(--skin-border);
  background: rgba(10, 20, 60, 0.55);
  color: #fff;
  text-transform: uppercase;
  font-family: inherit; font-size: 14px; letter-spacing: 0.18em;
  box-shadow: var(--skin-inset);
}
.join-row input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--skin-inset), var(--skin-glow-hover);
}

.btn {
  border: none;
  padding: 10px 16px;
  border-radius: var(--skin-radius-sm);
  cursor: pointer;
  font-weight: 700;
  background: var(--skin-bg-surface);
  color: #fff;
  font-family: inherit;
  transition: var(--skin-transition);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.btn.big { padding: 13px 18px; flex: 1; min-width: 130px; font-size: 0.95rem; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--skin-shadow-elevated); }
.btn.primary {
  background: var(--skin-bg-gold);
  color: #1a1a1a;
  box-shadow: var(--skin-shadow-gold);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fff09c 0%, #ffd54f 45%, #c9941b 100%);
  box-shadow: 0 6px 22px rgba(255, 213, 79, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn.warn {
  background: linear-gradient(135deg, #ff8a00, #ff4d4d);
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.35);
}
.btn.ghost {
  background: rgba(10, 20, 60, 0.45);
  border: var(--skin-border);
  color: #fff;
}
.btn.ghost:hover:not(:disabled) {
  background: linear-gradient(160deg, rgba(255, 213, 79, 0.14), rgba(30, 58, 138, 0.55));
  border-color: var(--border-strong);
  box-shadow: var(--skin-shadow-elevated);
}
.btn.small { font-size: 0.8rem; padding: 7px 12px; }
.extra-actions .ea-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  color: var(--accent-gold-bright);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* Shine sweep nos botões primários ao hover */
.btn.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn.primary:hover:not(:disabled)::after { left: 140%; }

/* ===== Botões de ação (Truco/Aceitar/Correr) — estilo glossy 3D ===== *
 * O brilho superior é a 1ª camada do background (fica ATRÁS do texto). */
.bid-row .btn {
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 7px rgba(0, 0, 0, 0.3),
    0 5px 13px rgba(0, 0, 0, 0.42);
}
.bid-row .btn:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.bid-row .btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
#btnTruco {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #ffb14a 0%, #ff7a00 52%, #e25600 100%);
  color: #4a1c00;
}
#btnRaise {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #ffd86b 0%, #f4b223 52%, #c98700 100%);
  color: #3a2600;
}
#btnAccept {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #7ee787 0%, #2fc257 52%, #189a3c 100%);
  color: #06330f;
}
#btnRefuse,
#btnForfeitHand {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #ff8d8d 0%, #f0413f 52%, #c11616 100%);
  color: #3b0606;
  border-color: rgba(0, 0, 0, 0.28);
}
#btnRaiseStake {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #7fd0ff 0%, #2a9be0 52%, #156fae 100%);
  color: #04263b;
}

/* ===== Lista de salas ===== */
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--skin-bg-glass);
  border: var(--skin-border);
  border-radius: var(--skin-radius-md);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.rooms-empty {
  font-size: 0.82rem; opacity: 0.72; text-align: center; padding: 10px;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  box-shadow: var(--skin-inset);
}
.room-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  box-shadow: var(--skin-shadow), var(--skin-inset);
  transition: var(--skin-transition);
}
.room-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--skin-shadow-elevated);
}
.room-row .room-meta { display: flex; flex-direction: column; }
.room-row .room-code { font-weight: 800; letter-spacing: 0.1em; }
.room-row .room-sub { font-size: 0.72rem; opacity: 0.7; }
.room-row .room-stake { color: #ffd54f; font-weight: 700; }

/* ===== Game ===== */
.game-panel {
  padding: 12px;
  position: relative;
  background: url("img/bg-lounge.jpg") center / cover no-repeat, #0a1430;
  border-radius: 18px;
}

/* Compatibilidade: o JS antigo usa .scoreboard/.team-card/.match-info/.match-row/.tricks. */
.scoreboard { display: none; }

/* ===== Placar premium estilo social casino ===== */
.score-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin: 2px auto 8px;
  padding: 5px 12px;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(8, 18, 44, 0.95), rgba(4, 9, 28, 0.95));
  border-radius: 999px;
  border: 1.5px solid rgba(255, 215, 100, 0.32);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.55),
    inset 0 0 14px rgba(255, 215, 100, 0.08);
}
.score-bar-side {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.score-bar-left { justify-content: flex-end; }
.score-bar-right { justify-content: flex-start; }
.score-bar-side.team-a { border-color: rgba(95, 175, 255, 0.55); }
.score-bar-side.team-b { border-color: rgba(255, 130, 130, 0.55); }
.score-bar-side.my-team {
  box-shadow: 0 0 0 2px rgba(255, 195, 56, 0.85) inset,
              0 0 14px rgba(255, 195, 56, 0.45);
}
.score-bar-side.score-pulse {
  animation: scorePulseWin 0.82s cubic-bezier(0.18, 0.86, 0.24, 1.1);
}
.score-fly {
  position: absolute;
  right: -4px;
  top: -16px;
  z-index: 8;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5bf, #f7b733);
  color: #2a1700;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 14px rgba(255, 213, 79, 0.62), 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: scoreFlyUp 0.9s ease-out forwards;
}
@keyframes scorePulseWin {
  0% { transform: scale(1); filter: brightness(1); }
  38% { transform: scale(1.14); filter: brightness(1.32) saturate(1.18); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes scoreFlyUp {
  0% { transform: translate3d(0, 8px, 0) scale(0.65); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translate3d(0, -22px, 0) scale(1.08); opacity: 0; }
}
.sb-team-label {
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  opacity: 0.75;
  font-weight: 700;
}
.sb-team-score {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}
.score-bar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 1px 8px;
  min-width: 116px;
}
.sb-points-label {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  opacity: 0.7;
}
.sb-tricks {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 1px 0;
}
.trick-pill {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.trick-pill.win-a {
  background: radial-gradient(circle at 35% 30%, #82c4ff, #1976d2);
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.65);
}
.trick-pill.win-b {
  background: radial-gradient(circle at 35% 30%, #ff8a8a, #d32f2f);
  box-shadow: 0 0 8px rgba(255, 90, 90, 0.55);
}
.trick-pill.tie {
  background: radial-gradient(circle at 35% 30%, #cccccc, #757575);
}
.trick-pill.trick-just-won {
  animation: trickWonPop 0.78s cubic-bezier(0.18, 0.86, 0.24, 1.12);
}
@keyframes trickWonPop {
  0% { transform: scale(1); filter: brightness(1); }
  42% { transform: scale(1.75); filter: brightness(1.55); }
  100% { transform: scale(1); filter: brightness(1); }
}
.sb-hand-row {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.sb-hand-mute { opacity: 0.75; }
.sb-hand-row strong { font-variant-numeric: tabular-nums; color: #ffd96b; font-weight: 700; }
.alert-text { color: #ffb300; }
.score-bar-prize {
  position: absolute;
  top: -14px;
  right: 16px;
  padding: 4px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1c2 0%, #f7b733 55%, #b8860b 100%);
  color: #2a1a04;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.score-bar-prize strong { font-variant-numeric: tabular-nums; color: #2a1a04; }
@media (max-width: 540px) {
  .score-bar { padding: 4px 8px; gap: 4px; border-radius: 18px; max-width: 380px; }
  .score-bar-side { padding: 2px 7px; gap: 5px; }
  .sb-team-label { font-size: 0.5rem; }
  .sb-team-score { font-size: 1.2rem; }
  .score-bar-center { min-width: 100px; padding: 0 5px; }
  .sb-hand-row { font-size: 0.6rem; }
  .score-bar-prize { right: 10px; top: -12px; font-size: 0.62rem; padding: 3px 9px; }
}

.timer-row { display: flex; align-items: center; gap: 10px; margin: 10px 2px 6px; }
.timer-wrap {
  flex: 1; height: 8px;
  background: rgba(0,0,0,0.35); border-radius: 4px; overflow: hidden;
}
.timer-bar { height: 100%; width: 100%; background: #ffb300; transition: width 0.2s linear; }
.timer-bar.urgent { background: #ef5350; }
.timer-label { font-size: 0.8rem; min-width: 110px; text-align: right; opacity: 0.9; }

/* ===== Mesa ===== */
.table-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  margin: 6px 0 12px;
  position: relative;
  overflow: visible;
  /* Garante que mesa + FABs caibam mesmo em viewports estreitas. */
  min-width: 0;
}
.table-wrap > .table { flex: 1 1 auto; min-width: 0; }
.table-fab-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 6px;
  z-index: 3;
}
/* FAB redondo discreto estilo social casino (botão circular branco/cinza
   translúcido com ícone interno e label fora). */
.table-fab {
  position: relative;
  background:
    var(--skin-bg-surface),
    radial-gradient(circle at 35% 28%, rgba(255, 213, 79, 0.22) 0%, transparent 55%);
  color: var(--accent-gold-bright);
  border: var(--skin-border-strong);
  border-radius: 50%;
  padding: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--skin-shadow-elevated), var(--skin-inset-strong);
  transition: var(--skin-transition);
}
.table-fab:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold-bright);
  box-shadow: var(--skin-shadow-elevated), var(--skin-glow-hover);
}
.table-fab .fab-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.table-fab .fab-icon .ic {
  width: 1.05em;
  height: 1.05em;
}
.table-fab .fab-lbl {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: none;
}
.table-fab.is-active {
  background:
    radial-gradient(circle at 35% 28%, #fff1c2 0%, #f7b733 60%, #b8860b 100%);
  border-color: #fff8d8;
  color: #2a1a04;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 16px rgba(255, 215, 100, 0.7),
    0 6px 14px rgba(0, 0, 0, 0.5);
}
@media (max-width: 540px) {
  .table-wrap { gap: 6px; }
  .table-fab { width: 46px; height: 46px; }
  .table-fab .fab-icon { font-size: 1.25rem; }
  .table-fab .fab-lbl { font-size: 0.6rem; bottom: -14px; }
}
:root {
  --felt-bg:
    radial-gradient(ellipse at center, #1fb19c 0%, #0e7e76 55%, #044e51 100%);
  --cardback-bg:
    repeating-linear-gradient(45deg, rgba(130, 190, 255, 0.24) 0 9px, transparent 9px 18px),
    repeating-linear-gradient(-45deg, rgba(130, 190, 255, 0.24) 0 9px, transparent 9px 18px),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 58%),
    linear-gradient(160deg, #2a6fd4 0%, #1a4a96 48%, #0f3078 100%);
  --table-border-1: rgba(255, 215, 100, 0.85);
  --table-border-2: rgba(160, 110, 30, 0.85);
}
/* Mesa renderizada a partir de um asset PNG (madeira + feltro 3D). A caixa
   .table coincide com o oval da imagem, então os assentos continuam ancorados
   nas bordas corretas. */
.table {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 2 / 1;
  background: url("img/table.png") center / 100% 100% no-repeat;
  border: 0;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}
.table::before { display: none; }
.table-celebration {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 8;
  transform: translate(-50%, -50%) scale(0.78);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 231, 138, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 247, 194, 0.96), rgba(244, 183, 47, 0.92) 58%, rgba(166, 103, 8, 0.92));
  color: #2a1700;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 22px rgba(255, 213, 79, 0.62),
    0 10px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: tableCelebrationIn 1.12s ease-out forwards;
}
.table-celebration.is-score {
  top: 34%;
  font-size: 1rem;
  padding-inline: 20px;
}
.table-coin-burst {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 7;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff7c2 0%, #ffd54f 44%, #b8860b 100%);
  color: #6b3d00;
  font-size: 0.62rem;
  font-weight: 950;
  box-shadow: 0 0 10px rgba(255, 213, 79, 0.65), 0 4px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  animation: coinBurst 0.86s ease-out var(--delay, 0ms) forwards;
}
.table-coin-burst.is-score {
  width: 20px;
  height: 20px;
}
@keyframes tableCelebrationIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); filter: blur(1px); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); filter: blur(0); }
  70% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -74%) scale(0.96); }
}
@keyframes coinBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(0.45);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--d)) scale(1);
  }
}
.seat {
  position: absolute;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  min-width: 78px;
  z-index: 2;
}
.seat .seat-cards { order: -1; }
/* ===== 1x1 (2 jogadores): clássico — você embaixo, oponente em cima. ===== */
.seat-north { top: -38px;   left: 50%; transform: translateX(-50%); }
.seat-south { bottom: -38px; left: 50%; transform: translateX(-50%); }
.seat-west  { top: 50%; left: -34px; transform: translateY(-50%); }
.seat-east  { top: 50%; right: -34px; left: auto; transform: translateY(-50%); }

/* ===== 2x2 (4 jogadores): em volta da mesa, igual ao exemplo. =====
   Ordem de jogo ANTI-HORÁRIA (sul → leste → norte → oeste):
   você (sul) = lado esq. inferior · leste = lado dir. inferior ·
   parceiro (norte) = canto sup. dir. · oeste = canto sup. esq. */
.seats-4 .seat-west  { left: 8%;  top: -32px; bottom: auto; right: auto; transform: translateX(-50%); }
.seats-4 .seat-north { left: 92%; top: -32px; bottom: auto; right: auto; transform: translateX(-50%); }
.seats-4 .seat-south { left: 5%;  top: 56%;   bottom: auto; right: auto; transform: translate(-50%, -50%); }
.seats-4 .seat-east  { left: 95%; top: 56%;   bottom: auto; right: auto; transform: translate(-50%, -50%); }

@media (max-width: 540px) {
  .seat-north { top: -28px; }
  .seat-south { bottom: -26px; }
  .seats-4 .seat-west  { left: 10%; top: -22px; }
  .seats-4 .seat-north { left: 90%; top: -22px; }
  .seats-4 .seat-south { left: 9%;  top: 58%; }
  .seats-4 .seat-east  { left: 91%; top: 58%; }
}

/* Avatar grande circular + bandeira de nome embaixo. */
.player-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 110px;
}
.player-chip .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a2f5e, #07112d);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  border: 3px solid #2196f3;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.player-chip .avatar img,
.player-chip .avatar svg {
  width: 100%; height: 100%; object-fit: cover;
}
/* Moldura dourada (asset) por cima do avatar. */
.player-chip::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translateX(-50%);
  background: url("img/avatar-frame.png") center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}
.player-chip .pname {
  margin-top: -6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #1fb04d 0%, #0a7a30 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  position: relative;
  z-index: 1;
}
.player-chip .pe-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  z-index: 3;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffb300 0%, #ff8f00 100%);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.player-chip .pe-badge.hidden { display: none; }
.player-chip.team-a .avatar { border-color: #64b5f6; }
.player-chip.team-b .avatar { border-color: #ef9a9a; }
.player-chip.team-a .pname {
  background: linear-gradient(180deg, #4ea3ff 0%, #1565c0 100%);
}
.player-chip.team-b .pname {
  background: linear-gradient(180deg, #ff7474 0%, #b71c1c 100%);
}
.player-chip.is-me .pname {
  background: linear-gradient(180deg, #1fb04d 0%, #0a7a30 100%);
}
.player-chip.is-turn .avatar {
  border-color: #ffd54f;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(255, 213, 79, 0.8),
    0 4px 10px rgba(0, 0, 0, 0.5);
  animation: turnGlow 1.4s ease-in-out infinite;
}
.player-chip.is-turn {
  animation: chipTurnBob 1.35s ease-in-out infinite;
}
.player-chip.is-turn::before {
  filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.75));
  animation: frameGoldPulse 1.35s ease-in-out infinite;
}

/* Contagem regressiva por jogador (badge no canto superior direito do avatar). */
.player-chip .seat-timer {
  position: absolute;
  z-index: 5;
  top: -6px;
  right: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  z-index: 4;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: transform 0.12s ease;
}
.player-chip .seat-timer.warn {
  background: linear-gradient(180deg, #fb8c00 0%, #e65100 100%);
}
.player-chip .seat-timer.urgent {
  background: linear-gradient(180deg, #ef5350 0%, #b71c1c 100%);
  animation: seatTimerPulse 0.7s ease-in-out infinite;
}
@keyframes seatTimerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@media (max-width: 540px) {
  .player-chip .seat-timer {
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    font-size: 0.72rem;
    border-width: 1.5px;
  }
}
@keyframes turnGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 0 12px rgba(255, 213, 79, 0.55), 0 4px 10px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 0 22px rgba(255, 213, 79, 0.95), 0 4px 12px rgba(0,0,0,0.5); }
}
@keyframes chipTurnBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.035); }
}
@keyframes frameGoldPulse {
  0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 5px rgba(255, 213, 79, 0.55)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 213, 79, 0.95)); }
}
.player-chip.just-played .avatar,
.player-chip.just-played-strong .avatar {
  animation: avatarPlayPop 0.62s cubic-bezier(0.18, 0.86, 0.24, 1.14);
}
.player-chip.just-played .pname,
.player-chip.just-played-strong .pname {
  animation: namePlateFlash 0.62s ease-out;
}
.player-chip.just-played-strong::before {
  animation: avatarGoldBurst 0.82s ease-out;
}
@keyframes avatarPlayPop {
  0% { transform: scale(1) rotate(0deg); }
  38% { transform: scale(1.16) rotate(-3deg); }
  68% { transform: scale(0.96) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes namePlateFlash {
  0%, 100% { filter: brightness(1); }
  35% { filter: brightness(1.42) saturate(1.2); }
}
@keyframes avatarGoldBurst {
  0% { transform: translateX(-50%) scale(0.92); filter: drop-shadow(0 0 0 rgba(255, 213, 79, 0)); }
  38% { transform: translateX(-50%) scale(1.12); filter: drop-shadow(0 0 18px rgba(255, 213, 79, 0.95)); }
  100% { transform: translateX(-50%) scale(1); filter: drop-shadow(0 0 2px rgba(255, 213, 79, 0.2)); }
}
.player-chip.is-bot .avatar::after { content: "🤖"; position: absolute; bottom: -2px; right: -2px; font-size: 13px; }
.player-chip.is-empty { opacity: 0.5; font-style: italic; }
.player-chip.is-thinking::after {
  content: "";
  display: inline-block;
  width: 18px; height: 4px;
  margin-left: 4px;
  background-image:
    radial-gradient(circle at 3px 50%, #fff 1.5px, transparent 2px),
    radial-gradient(circle at 9px 50%, #fff 1.5px, transparent 2px),
    radial-gradient(circle at 15px 50%, #fff 1.5px, transparent 2px);
  animation: thinkBlink 1s infinite;
}
@keyframes thinkBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.bubble {
  position: absolute;
  top: -30px; left: 50%; transform: translateX(-50%);
  background: #ffb300;
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  animation: bubblePop 0.25s ease-out;
  z-index: 5;
}
.bubble.refuse { background: #ef5350; color: #fff; }
.bubble.accept { background: #66bb6a; color: #fff; }
.bubble.emoji { background: rgba(0,0,0,0.85); color: #fff; font-size: 1.4rem; padding: 4px 8px; }
.bubble.signal {
  background: #1976d2;
  color: #fff;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sinal com mini-carta (estilo app de referência). */
.bubble.signal-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  top: -58px;
  white-space: normal;
  animation: signalCardPop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bubble.signal-emoji {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 2rem;
  padding: 6px 12px;
  top: -50px;
  line-height: 1;
}
@keyframes signalCardPop {
  0%   { transform: translateX(-50%) scale(0.4) rotate(-8deg); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.12) rotate(3deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
}
.signal-mini-card {
  position: relative;
  width: 48px;
  height: 68px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
  border: 1px solid #c5cedb;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(255, 215, 100, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-mini-card.red { color: #c62828; }
.signal-mini-card.black { color: #1f1f1f; }
.signal-mini-card.cop {
  background: linear-gradient(180deg, #f3e5f5, #ce93d8);
  color: #4a148c;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.signal-mini-card.cop .cop-cup {
  width: 60%; height: 50%;
  background: url("img/copo.png") center / contain no-repeat;
}
.signal-mini-card.cop .cop-label { line-height: 1; }
.signal-mini-card .sig-rank {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}
.signal-mini-card .sig-suit-big {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Avatar "segurando" a carta do sinal — carta inclinada na borda + mãozinha. */
.signal-hold {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  bottom: 6px;
  right: -26px;
  transform-origin: bottom left;
  animation: signalHoldPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.signal-hold .signal-mini-card {
  transform: rotate(12deg);
}
.signal-hold .signal-hand {
  position: absolute;
  bottom: -10px;
  left: -10px;
  font-size: 1.25rem;
  transform: rotate(-18deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
/* Posições: mostra a carta para o lado de dentro da mesa. */
.signal-hold-north { bottom: -8px; right: -26px; }
.signal-hold-south { bottom: 28px; right: -26px; }
.signal-hold-west  { bottom: 6px; right: -30px; }
.signal-hold-east  { bottom: 6px; left: -30px; right: auto; transform-origin: bottom right; }
.signal-hold-east .signal-mini-card { transform: rotate(-12deg); }
.signal-hold-east .signal-hand { left: auto; right: -10px; transform: rotate(18deg) scaleX(-1); }
@keyframes signalHoldPop {
  0%   { transform: translateY(14px) scale(0.4); opacity: 0; }
  60%  { transform: translateY(-4px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 540px) {
  .signal-hold .signal-mini-card { width: 40px; height: 56px; }
  .signal-hold .signal-mini-card .sig-suit-big { font-size: 1.3rem; }
  .signal-hold { right: -20px; }
  .signal-hold-east { left: -24px; right: auto; }
}
.bubble.phrase {
  background: #ff6f00;
  color: #fff;
  max-width: 200px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}
.bubble.phrase.partner {
  background: #5e35b1;
}
.bubble.narrator {
  background: rgba(0,0,0,0.88);
  color: #ffb300;
  font-style: italic;
  max-width: 220px;
}

/* Painel de Falas — balão flutuante alinhado à coluna de FABs (lado esquerdo),
   mesmo padrão visual do balão de sinais. */
.phrases-panel {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  width: min(300px, calc(100vw - 84px));
  max-height: min(74vh, 460px);
  display: flex;
  flex-direction: column;
  z-index: 40;
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1f3aa8 0%, #122178 60%, #0a1450 100%);
  border: 2px solid #6aa9ff;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 18px 32px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(120, 170, 255, 0.4);
  animation: signalBubblePop 0.18s ease-out;
}
.phrases-panel .signals-head { margin-bottom: 10px; }
.phrase-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.phrase-tab {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid rgba(170, 200, 255, 0.30);
  background: rgba(8, 15, 56, 0.55);
  color: #cfe1ff;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.phrase-tab:hover:not(.active) {
  background: rgba(35, 60, 160, 0.7);
  border-color: #aac8ff;
}
.phrase-tab.active {
  background: linear-gradient(135deg, #ff9800, #ff6f00);
  border-color: #ffd54f;
  color: #1a1a1a;
  font-weight: 800;
}
.phrase-tab.hidden { display: none; }
.phrases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.phrase-btn {
  font-size: 0.74rem;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(120, 170, 255, 0.45);
  background: rgba(8, 15, 56, 0.7);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.phrase-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(35, 60, 160, 0.85);
  border-color: #aac8ff;
}
.phrase-btn:active:not(:disabled) { transform: translateY(0); }
.phrase-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Seta do balão apontando para a coluna de FABs (igual ao balão de sinais). */
.phrases-panel::before,
.phrases-panel::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 20px;
  background: linear-gradient(90deg, #1f3aa8 0%, #122178 100%);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.phrases-panel::before {
  left: -11px;
  background: #6aa9ff;
}
@media (max-width: 540px) {
  .phrases-panel {
    left: 56px;
    width: min(300px, calc(100vw - 72px));
    padding: 10px 11px 12px;
  }
  .phrase-btn { font-size: 0.72rem; min-height: 40px; padding: 8px 6px; }
}
@media (max-width: 380px) {
  .phrases-panel { left: 48px; width: min(290px, calc(100vw - 60px)); }
  .phrase-tab { font-size: 0.68rem; padding: 6px 4px; }
}
.voice-settings-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  margin-top: 8px;
  font-size: 0.85rem;
}
.voice-settings-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@keyframes bubblePop {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Cartas viradas em cima do avatar (fan curtinho) */
.seat-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 32px;
  margin-bottom: -8px;
  pointer-events: none;
}
.seat-cards .card {
  width: 22px;
  height: 32px;
  margin-left: -10px;
  border-radius: 4px;
  border-width: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.seat-cards .card:first-child { margin-left: 0; transform: rotate(-12deg); }
.seat-cards .card:nth-child(2) { transform: rotate(0deg); }
.seat-cards .card:nth-child(3) { transform: rotate(12deg); }

/* Centro: vira com pequeno deck atrás (efeito profundidade) */
.table-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.vira-stack {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 1;
}
.vira-box .card,
.vira-box .card-slot {
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.55));
}
.vira-deck,
.vira-deck-2 {
  position: absolute;
  width: 44px;
  height: 64px;
  border-radius: 6px;
  background: url("img/card-back.png") center / 100% 100% no-repeat, #2a1a4d;
  border: 1px solid rgba(255, 215, 100, 0.3);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
}
.vira-deck   { transform: translate(-56%, -50%) rotate(-12deg); }
.vira-deck-2 { transform: translate(-48%, -50%) rotate(-4deg); }
.vira-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(8deg);
  text-align: center;
}
.vira-box .lbl {
  display: block; font-size: 0.6rem;
  letter-spacing: 0.18em; opacity: 0.8; margin-bottom: 4px;
  transform: rotate(-8deg);
}
.manilha-lbl {
  display: block; font-size: 0.66rem; color: #ffd54f;
  margin-top: 4px; transform: rotate(-8deg);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.played-area {
  position: absolute;
  width: 72%; height: 86%;
  top: 7%; left: 14%;
}
.played-slot {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
/* Norte/Sul colados nas pontas verticais para deixar a vira respirar. */
.played-slot[data-pos="north"] { top: 0;    left: 50%; transform: translate(-50%, 0); }
.played-slot[data-pos="south"] { bottom: 0; left: 50%; transform: translate(-50%, 0); }
.played-slot[data-pos="west"]  { left: 0;   top: 50%;  transform: translate(0, -50%); }
.played-slot[data-pos="east"]  { right: 0;  top: 50%;  transform: translate(0, -50%); }

/* 2x2: cada carta jogada cai junto do seu dono (ordem anti-horária),
   empurradas para os cantos para não amontoarem embaixo da vira. */
.seats-4 .played-slot[data-pos="west"]  { top: 16%; left: 14%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.seats-4 .played-slot[data-pos="north"] { top: 16%; left: 86%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.seats-4 .played-slot[data-pos="south"] { top: 86%; left: 16%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.seats-4 .played-slot[data-pos="east"]  { top: 86%; left: 86%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.played-slot .card {
  --drop-x: 0px;
  --drop-y: -22px;
  --drop-r: -7deg;
  z-index: 1;
  animation: cardDropPremium 0.38s cubic-bezier(0.18, 0.86, 0.24, 1.12);
}
.played-slot .card.played-from-north { --drop-y: -46px; --drop-r: -8deg; }
.played-slot .card.played-from-south { --drop-y: 46px; --drop-r: 8deg; }
.played-slot .card.played-from-west  { --drop-x: -54px; --drop-y: 4px; --drop-r: -13deg; }
.played-slot .card.played-from-east  { --drop-x: 54px;  --drop-y: 4px; --drop-r: 13deg; }
.played-slot.played-impact::after,
.played-slot.played-impact-strong::after,
.played-slot.played-impact-cop::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 118, 0.38) 0%, rgba(255, 190, 45, 0.16) 42%, transparent 72%);
  transform: translate(-50%, -50%) scale(0.25);
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 0;
  animation: playedRing 0.72s ease-out forwards;
}
.played-slot.played-impact-strong::after {
  width: 122px;
  height: 122px;
  background: radial-gradient(circle, rgba(255, 246, 174, 0.58) 0%, rgba(255, 204, 56, 0.24) 44%, transparent 74%);
}
.played-slot.played-impact-cop::after {
  width: 132px;
  height: 132px;
  background: radial-gradient(circle, rgba(255, 236, 143, 0.62) 0%, rgba(167, 90, 255, 0.22) 48%, transparent 76%);
}
.played-slot .card.impact-strong,
.played-slot .card.impact-cop {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 215, 100, 0.75),
    0 0 18px rgba(255, 213, 79, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.48);
}
@keyframes cardDropPremium {
  0% {
    transform: translate3d(var(--drop-x), var(--drop-y), 0) rotate(var(--drop-r)) scale(0.78);
    opacity: 0;
    filter: blur(1px);
  }
  72% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.06);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes playedRing {
  0% { transform: translate(-50%, -50%) scale(0.22); opacity: 0; }
  34% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}
.played-slot .card.settled {
  animation: cardSettle 0.3s ease-out forwards;
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.45);
}
@keyframes cardSettle {
  0% { box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
  100% { box-shadow: 0 0 14px rgba(255, 179, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.45); }
}

/* ===== Cartas premium ===== */
.card {
  position: relative;
  width: 54px;
  height: 78px;
  border-radius: 8px;
  /* Papel marfim quente p/ casar com o tema dourado (antes era branco frio). */
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.92), rgba(255, 252, 240, 0.55) 55%, transparent 80%),
    linear-gradient(180deg, #fffdf6 0%, #f7efdc 72%, #ecddbd 100%);
  border: 1px solid #d8c79b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.25);
  user-select: none;
  font-weight: 900;
  font-family: "Inter", system-ui, sans-serif;
  overflow: hidden;
}
.card::before {
  /* Fina moldura dourada interna estilo carta de baralho premium. */
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(184, 134, 11, 0.30);
  border-radius: 6px;
  pointer-events: none;
}
.card .card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 2;
}
.card .card-corner-tl { top: 4px; left: 5px; }
.card .card-corner-br {
  bottom: 4px; right: 5px;
  transform: rotate(180deg);
  transform-origin: center;
}
.card .rank {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: "ss01" on;
}
.card .suit {
  font-size: 0.78rem;
  margin-top: 1px;
  line-height: 1;
}
.card .suit-big {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
  z-index: 1;
}
.card.red { color: #c62828; }
.card.black { color: #1f1f1f; }
.card.red .suit-big { color: #c62828; }
.card.black .suit-big { color: #1f1f1f; }

/* Figuras com arte central simples, leve e escalável (sem imagens externas). */
.card.face-card {
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5) 55%, transparent 80%),
    linear-gradient(180deg, #ffffff 0%, #f6f0df 58%, #e6d9b7 100%);
}
.card.face-card .suit-big { display: none; }
/* Figura ilustrada (asset) centralizada na carta. As pontas internas
   (face-crown/head/body) viraram legado e ficam ocultas. */
.face-art {
  position: absolute;
  inset: 14px 8px 16px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  z-index: 0;
}
.card.face-king .face-art { background-image: url("img/face-king.png"); }
.card.face-queen .face-art { background-image: url("img/face-queen.png"); }
.card.face-jack .face-art { background-image: url("img/face-jack.png"); }
.face-crown, .face-head, .face-body { display: none; }

/* Emblema de naipe nas figuras: dá as 4 versões (♦ ♠ ♥ ♣) de cada K/Q/J,
   colorido conforme o naipe (vermelho para ouros/copas, preto p/ espadas/paus). */
.card.face-card .face-suit {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  line-height: 1;
  z-index: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.card.face-card.red .face-suit { color: #d32f2f; }
.card.face-card.black .face-suit { color: #1a1a1a; }
.played-slot .card.face-card .face-suit,
.seat-cards .card.face-card .face-suit { font-size: 0.8rem; }

.card.manilha {
  border-color: #f7b733;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 215, 100, 0.85),
    0 0 14px rgba(247, 183, 51, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.45);
}
.card.manilha::after {
  /* Selo dourado discreto no canto para indicar manilha. */
  content: "★";
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 0.7rem;
  color: #f7b733;
  text-shadow: 0 0 4px rgba(255, 215, 100, 0.8);
  pointer-events: none;
}
.card.cop {
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(180deg, #fff8e1 0%, #ffe082 100%);
  border-color: #6a1b9a;
  color: #4a148c;
  font-size: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.card.cop::before { border-color: rgba(106, 27, 154, 0.25); }
.card.cop .cop-cup {
  width: 62%; height: 52%;
  background: url("img/copo.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.card.cop .cop-label { font-weight: 900; line-height: 1; }

/* Taça inline (substitui o antigo emoji 🥤). */
.copo-ic {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: -0.22em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.card.back {
  background: url("img/card-back.png") center / 100% 100% no-repeat, #2a1a4d;
  border: 1px solid rgba(255, 215, 100, 0.4);
  color: transparent;
}
.card.back::after { display: none; }
.card.playable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.card.playable:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 12px 20px rgba(0, 0, 0, 0.5);
}

.my-hand-wrap { margin-top: 8px; }
.my-label {
  font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.1em;
  margin-bottom: 4px; padding-left: 4px;
}
.hand {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 6px;
  min-height: 110px; padding: 14px 0 6px;
  perspective: 800px;
}
.hand .card {
  width: 74px;
  height: 104px;
  font-size: 1.05rem;
  transform-origin: 50% 120%;
  --hand-rest: rotate(0deg) translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, margin 0.18s ease;
}
.hand .card:nth-child(1) { --hand-rest: rotate(-9deg) translateY(6px); transform: var(--hand-rest); }
.hand .card:nth-child(2) { --hand-rest: rotate(0deg) translateY(0); transform: var(--hand-rest); }
.hand .card:nth-child(3) { --hand-rest: rotate(9deg) translateY(6px); transform: var(--hand-rest); }
.hand .card.hand-enter {
  animation: handFanIn 0.44s cubic-bezier(0.18, 0.86, 0.24, 1.12) both;
  animation-delay: calc(var(--deal-i, 0) * 70ms);
}
@keyframes handFanIn {
  0% {
    transform: translate3d(0, -26px, 0) rotate(0deg) scale(0.72);
    opacity: 0;
    filter: blur(1px);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.06);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: var(--hand-rest);
    opacity: 1;
    filter: blur(0);
  }
}
.hand .card.playable:hover {
  transform: translateY(-14px) rotate(0deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.hand .card .rank { font-size: 1.25rem; }
.hand .card .suit { font-size: 1rem; }
.hand .card .suit-big { font-size: 2.3rem; }
.hand .card .card-corner-tl { top: 6px; left: 7px; }
.hand .card .card-corner-br { bottom: 6px; right: 7px; }

.bid-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.bid-row .btn {
  flex: 1 1 140px;
  min-width: 0;
  white-space: nowrap;
}
/* Carta "armada" para jogar encoberta: segurar (long-press) vira a carta,
   mostrando o verso dourado; o toque seguinte joga ela encoberta. */
.hand .card.cover-preview {
  color: transparent !important;
  background: url("img/card-back.png") center / 100% 100% no-repeat, #2a1a4d !important;
  transform: translateY(-10px);
  outline: 2px solid #ffd54f;
  outline-offset: 1px;
  box-shadow: 0 0 14px rgba(255, 213, 79, 0.7), 0 10px 20px rgba(0, 0, 0, 0.5);
  animation: cardFlipArm 0.28s ease-out;
}
.hand .card.cover-preview > * { visibility: hidden; }
.hand .card.cover-preview::after {
  content: "encoberta";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  visibility: visible;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd54f;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
@keyframes cardFlipArm {
  0% { transform: translateY(-10px) rotateY(90deg); }
  100% { transform: translateY(-10px) rotateY(0deg); }
}

/* Verso da carta jogada tapada na mesa */
.played-card.is-covered,
.card.covered {
  background: url("img/card-back.png") center / 100% 100% no-repeat, #2a1a4d !important;
  border-color: rgba(255, 215, 100, 0.55) !important;
  color: transparent !important;
  position: relative;
}
.played-card.is-covered::after,
.card.covered::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ===== Sinais 2x2 — balão flutuante estilo social casino ===== */
.signals-panel.signals-bubble {
  /* Flutua sobre a área da mesa, alinhado à coluna de FABs. */
  position: absolute;
  left: 64px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 12;
  margin: 0;
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1f3aa8 0%, #122178 60%, #0a1450 100%);
  border: 2px solid #6aa9ff;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 18px 32px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(120, 170, 255, 0.4);
  min-width: 260px;
  max-width: 360px;
  animation: signalBubblePop 0.18s ease-out;
}
.signals-panel.signals-bubble::before,
.signals-panel.signals-bubble::after {
  /* Setinha apontando para o jogador atual (canto inferior esquerdo). */
  content: "";
  position: absolute;
  left: 26px;
  bottom: -16px;
  width: 22px; height: 18px;
  background: linear-gradient(180deg, #1f3aa8 0%, #122178 100%);
  clip-path: polygon(0 0, 100% 0, 30% 100%);
  border-bottom: 2px solid #6aa9ff;
}
.signals-panel.signals-bubble::after {
  background: #122178;
  bottom: -14px;
  border: 0;
}
@keyframes signalBubblePop {
  0%   { transform: scale(0.85) translateY(calc(-50% + 8px)); opacity: 0; }
  100% { transform: scale(1) translateY(-50%); opacity: 1; }
}
.signals-head {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  opacity: 0.75;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
  color: #cfe1ff;
}
.signals-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.signals-row:last-child { margin-bottom: 0; }

.signal-btn {
  position: relative;
  background: rgba(8, 15, 56, 0.7);
  border: 1.5px solid rgba(120, 170, 255, 0.5);
  color: #fff;
  border-radius: 14px;
  padding: 10px 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.signal-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(35, 60, 160, 0.85);
  border-color: #aac8ff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(120, 170, 255, 0.45);
}
.signal-btn:active:not(:disabled) {
  transform: translateY(0);
}
.signal-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.signal-btn .sig-glyph {
  line-height: 1;
  font-size: 1.65rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}
.signal-btn .sig-glyph.sig-red   { color: #ff5252; }
.signal-btn .sig-glyph.sig-black { color: #1a1a1a; text-shadow: 0 0 4px rgba(255, 255, 255, 0.65); }
.signal-btn .sig-glyph.sig-rank {
  color: #ffd54f;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 #5b3d00, 0 0 8px rgba(255, 213, 79, 0.4);
}
.signal-btn .sig-glyph.sig-emoji { font-size: 1.55rem; }
.signal-btn .sig-glyph.sig-copo { display: flex; align-items: center; justify-content: center; }
.signal-btn .sig-glyph.sig-copo .copo-ic { height: 1.85rem; }
/* Botão de reação com a taça e balão de reação da taça. */
.emoji-btn-copo .copo-ic { height: 1.4rem; }
.bubble.bubble-copo { padding: 4px 8px; }
.bubble.bubble-copo .copo-ic { height: 1.6rem; vertical-align: middle; }
@media (max-width: 540px) {
  .signals-panel.signals-bubble {
    left: 56px; min-width: 230px; max-width: 78vw;
    padding: 10px 10px 11px;
  }
  .signals-row { gap: 6px; }
  .signal-btn { min-height: 44px; padding: 8px 2px; }
  .signal-btn .sig-glyph { font-size: 1.35rem; }
}
@media (max-width: 380px) {
  .signals-panel.signals-bubble {
    left: 48px; min-width: 210px; max-width: 80vw;
    padding: 8px 8px 9px;
  }
  .signals-row { gap: 4px; }
  .signal-btn { min-height: 40px; padding: 6px 2px; border-radius: 11px; }
  .signal-btn .sig-glyph { font-size: 1.2rem; }
  .signal-btn .sig-glyph.sig-rank { font-size: 1.15rem; }
  .signals-head { font-size: 0.58rem; letter-spacing: 0.12em; margin-bottom: 6px; }
}

.emoji-bar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-top: 10px;
  background: rgba(0,0,0,0.3);
  padding: 6px 10px;
  border-radius: 10px;
}
.emoji-lbl { font-size: 0.72rem; opacity: 0.7; margin-right: 4px; }
.emoji-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.1s;
}
.emoji-btn:hover { transform: scale(1.15); background: rgba(255,255,255,0.15); }
.emoji-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Reações (emoji) — balão flutuante, mesmo estilo do balão de sinais ===== */
.emoji-bar.emoji-bubble {
  position: absolute;
  left: 64px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 40;
  margin: 0;
  width: min(300px, calc(100vw - 84px));
  max-height: min(74vh, 460px);
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1f3aa8 0%, #122178 60%, #0a1450 100%);
  border: 2px solid #6aa9ff;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 18px 32px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(120, 170, 255, 0.4);
  display: block;
  animation: signalBubblePop 0.18s ease-out;
}
.emoji-bar.emoji-bubble::before,
.emoji-bar.emoji-bubble::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 20px;
  background: linear-gradient(90deg, #1f3aa8 0%, #122178 100%);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.emoji-bar.emoji-bubble::before {
  left: -11px;
  background: #6aa9ff;
}
.emoji-bubble .emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 4px;
  overflow-y: auto;
  max-height: 250px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.emoji-bubble .emoji-btn {
  width: 100%;
  height: 42px;
  font-size: 1.4rem;
  border-radius: 12px;
  background: rgba(8, 15, 56, 0.6);
  border: 1.5px solid rgba(120, 170, 255, 0.45);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.emoji-bubble .emoji-btn:hover {
  transform: translateY(-2px);
  background: rgba(35, 60, 160, 0.85);
  border-color: #aac8ff;
}
@media (max-width: 540px) {
  .emoji-bar.emoji-bubble {
    left: 56px;
    width: min(300px, calc(100vw - 72px));
    padding: 10px 10px 11px;
  }
  .emoji-bubble .emoji-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .emoji-bubble .emoji-btn { height: 38px; font-size: 1.25rem; }
}
@media (max-width: 380px) {
  .emoji-bar.emoji-bubble {
    left: 48px;
    width: min(290px, calc(100vw - 60px));
  }
  .emoji-bubble .emoji-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; max-height: 220px; }
  .emoji-bubble .emoji-btn { height: 34px; font-size: 1.15rem; }
}

/* ===== Chat — balão flutuante ===== */
.chat-panel.chat-bubble {
  position: absolute;
  left: 64px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 40;
  margin: 0;
  width: min(320px, calc(100vw - 84px));
  max-height: min(74vh, 460px);
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1f3aa8 0%, #122178 60%, #0a1450 100%);
  border: 2px solid #6aa9ff;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 18px 32px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(120, 170, 255, 0.4);
  animation: signalBubblePop 0.18s ease-out;
}
.chat-panel.chat-bubble::before,
.chat-panel.chat-bubble::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 20px;
  background: linear-gradient(90deg, #1f3aa8 0%, #122178 100%);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.chat-panel.chat-bubble::before {
  left: -11px;
  background: #6aa9ff;
}
.chat-bubble .chat-messages {
  max-height: 180px;
  min-height: 80px;
  overflow-y: auto;
  font-size: 0.82rem;
  margin: 4px 0 8px;
  padding: 6px 8px;
  background: rgba(8, 15, 56, 0.55);
  border: 1px solid rgba(120, 170, 255, 0.25);
  border-radius: 10px;
}
.chat-bubble .chat-messages:empty::before {
  content: "Sem mensagens ainda. Diga oi!";
  display: block;
  text-align: center;
  font-size: 0.74rem;
  opacity: 0.5;
  padding: 12px 0;
}
.chat-bubble .chat-input-row { display: flex; gap: 6px; }
.chat-bubble .chat-input-row input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 15, 56, 0.6);
  border: 1.5px solid rgba(120, 170, 255, 0.5);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.chat-bubble .chat-input-row input:focus {
  outline: none;
  border-color: #aac8ff;
  box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.2);
}
@media (max-width: 540px) {
  .chat-panel.chat-bubble {
    left: 56px;
    width: min(320px, calc(100vw - 72px));
  }
}
@media (max-width: 380px) {
  .chat-panel.chat-bubble {
    left: 48px;
    width: min(290px, calc(100vw - 60px));
  }
  .chat-bubble .chat-messages { max-height: 140px; }
}

.extra-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.extra-actions .btn { flex: 1; min-width: 130px; }
.extra-actions .ea-ic { margin-right: 5px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: #323232;
  padding: 12px 20px;
  border-radius: 12px;
  max-width: 90%;
  text-align: center;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 79, 0.10), transparent 42%),
    rgba(0,0,0,0.68);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-card {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 224, 102, 0.18), transparent 36%),
    radial-gradient(circle at 92% 14%, rgba(79, 195, 247, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 35, 92, 0.98), rgba(7, 12, 36, 0.98));
  border: 1.5px solid rgba(255, 213, 79, 0.34);
  border-radius: var(--skin-radius-lg);
  padding: 22px 20px;
  max-width: 420px; width: 100%;
  box-shadow:
    0 22px 50px rgba(0,0,0,0.62),
    0 0 24px rgba(255, 213, 79, 0.12),
    var(--skin-inset);
  /* Conteúdo longo (ex.: planos VIP) rola dentro do card e mantém o
     botão de fechar acessível. */
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Barra de ações (Fechar/Cancelar) fica fixa no rodapé do card ao rolar. */
.modal-card .modal-actions {
  position: sticky;
  bottom: 0;
  margin: 14px -20px -22px;
  padding: 12px 20px;
  background: linear-gradient(180deg, transparent, rgba(7, 12, 36, 0.98) 35%);
}
.modal-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold-bright);
}
.modal-title-ic {
  font-size: 1.15em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.modal-sub { margin: 0 0 14px; opacity: 0.85; font-size: 0.85rem; }
.modal-sub.small { font-size: 0.78rem; margin-top: 10px; }

/* ===== Item #6 — Distribuição de cartas (~2,5s de embaralhamento) =====
   Enquanto a animação corre, escondemos a mão e os mini-slots dos oponentes
   para que apareçam apenas as cartas "voadoras" saindo do centro. */
body.is-dealing-hand .seat-cards > .card { opacity: 0; transition: opacity 0.15s; }
body.is-dealing-hand .hand > .card { opacity: 0; transition: opacity 0.18s; pointer-events: none; }
body.is-dealing-hand .vira-stack .card,
body.is-dealing-hand .vira-stack .vira-deck-card { opacity: 0.25; }
body.is-dealing-hand .bid-row .btn { opacity: 0.6; pointer-events: none; }

/* ===== Item #3 — Upload de foto customizada ===== */
.avatar-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.avatar-upload-row .avatar-upload-hint {
  font-size: 0.72rem;
  opacity: 0.7;
  flex: 1 1 100%;
}
.avatar-opt.avatar-opt-photo {
  outline: 2px dashed rgba(255, 235, 59, 0.7);
  outline-offset: 2px;
}

/* ===== Banner de aumento de aposta (Item #4) ===== */
.stake-raise-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(76, 175, 80, 0.18));
  border: 1px solid rgba(255, 193, 7, 0.6);
  color: #fffde7;
  font-size: 0.92rem;
}
.stake-raise-banner.hidden { display: none; }
.stake-raise-banner .srb-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stake-raise-banner .srb-line-small { font-size: 0.78rem; opacity: 0.85; }
.stake-raise-banner .srb-emoji { font-size: 1.25rem; }
.stake-raise-banner .srb-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.stake-raise-banner .srb-actions.hidden { display: none; }
.stake-raise-banner .srb-actions .btn.small { padding: 6px 12px; font-size: 0.85rem; }

/* ===== Truco: countdown 3s ===== */
.truco-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 14px;
  background: rgba(255, 152, 0, 0.95);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.3);
  animation: trucoCountdownPulse 1s ease-in-out infinite;
}
.truco-countdown.urgent {
  background: #e53935;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.45);
  animation: trucoCountdownUrgent 0.4s ease-in-out infinite;
}
.truco-countdown.hidden { display: none; }
@keyframes trucoCountdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes trucoCountdownUrgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== Botões extras na barra de bids ===== */
.bid-row .forfeit-btn.hidden,
.bid-row #btnRaiseStake.hidden { display: none; }
.bid-row .forfeit-btn {
  color: #ffcdd2;
  border-color: rgba(229, 57, 53, 0.55);
}
.bid-row .forfeit-btn:hover:not(:disabled) {
  background: rgba(229, 57, 53, 0.18);
  border-color: #e53935;
  color: #fff;
}

/* ===== Emoji: animação de "vôo" entre jogadores ===== */
.flying-emoji {
  position: fixed;
  z-index: 60;
  font-size: 2.5rem;
  pointer-events: none;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s linear;
  will-change: transform, opacity;
}
.flying-emoji.land {
  animation: flyEmojiImpact 0.6s ease-out;
}
.flying-emoji.bomb.land {
  animation: bombEmojiImpact 0.75s ease-out;
}
@keyframes flyEmojiImpact {
  0%   { transform: scale(1) rotate(0deg); }
  35%  { transform: scale(1.6) rotate(-10deg); }
  70%  { transform: scale(0.9) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes bombEmojiImpact {
  0%   { transform: scale(1); filter: brightness(1); }
  25%  { transform: scale(2.2); filter: brightness(1.4); }
  50%  { transform: scale(1.4); filter: brightness(1.1); }
  100% { transform: scale(1); filter: brightness(1); }
}
.emoji-bomb-burst {
  position: fixed;
  z-index: 61;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,120,40,0.85) 0%, rgba(255,40,0,0.35) 45%, transparent 70%);
  animation: bombBurstRing 0.7s ease-out forwards;
}
@keyframes bombBurstRing {
  0%   { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Pato dedicado — aparece grande no jogador "sendo espremido" (encolhe/balança)
   e gritando, para ficar bem evidente. */
.emoji-duck-squeeze {
  position: fixed;
  z-index: 62;
  font-size: 5rem;
  line-height: 1;
  pointer-events: none;
  transform-origin: center bottom;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
  animation: duckSqueeze 1.3s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
/* Linhas de "grito" ao redor do pato. */
.emoji-duck-squeeze::after {
  content: "💢";
  position: absolute;
  top: -8px;
  right: -18px;
  font-size: 2rem;
  animation: duckYell 1.3s ease-out forwards;
}
@keyframes duckSqueeze {
  0%   { transform: scale(0.3); opacity: 0; }
  14%  { transform: scale(1.5, 0.9); opacity: 1; }      /* surge esticado */
  28%  { transform: scale(0.78, 1.32) rotate(-6deg); }  /* espremido (alto/fino) */
  42%  { transform: scale(1.35, 0.82) rotate(5deg); }   /* achatado */
  56%  { transform: scale(0.86, 1.22) rotate(-5deg); }
  70%  { transform: scale(1.18, 0.9) rotate(4deg); }
  84%  { transform: scale(1, 1) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.05) translateY(-6px); opacity: 0; }
}
@keyframes duckYell {
  0%   { transform: scale(0.4); opacity: 0; }
  30%  { transform: scale(1.2); opacity: 1; }
  70%  { transform: scale(1) rotate(8deg); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Popover de emoji ao tocar no avatar do jogador */
.avatar-emoji-target {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar-emoji-target:hover,
.avatar-emoji-target:active {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.45);
}
.avatar-emoji-popover {
  position: fixed;
  z-index: 120;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.94);
  border: 1px solid rgba(255, 235, 59, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
/* Painel "Perfil" de emojis dedicados (pato, coração, canecas, bomba). */
.profile-emoji-panel {
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-width: min(320px, calc(100vw - 24px));
  border-radius: 18px;
  background: linear-gradient(180deg, #7b1fa2 0%, #512da8 52%, #311b92 100%);
  border: 2px solid rgba(186, 104, 255, 0.7);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.profile-emoji-head {
  padding: 12px 16px 10px;
  font-weight: 900;
  font-size: 1.08rem;
  color: #fff;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: 0.04em;
}
.profile-emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  max-height: min(58vh, 360px);
  overflow-y: auto;
}
.profile-emoji-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.profile-emoji-item:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.2);
}
.profile-emoji-icon {
  font-size: 2.1rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}
.profile-emoji-free {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffd54f;
  opacity: 0.92;
}
.avatar-emoji-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.avatar-emoji-btn:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.18);
}

/* Seletor inline de alvo para emojis direcionados */
.emoji-target-picker {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 235, 59, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emoji-target-picker .pick-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffeb3b;
}
.emoji-target-picker .pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.emoji-target-picker .pick-btn {
  flex: 1 1 auto;
  min-width: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.emoji-target-picker .pick-btn:hover { background: rgba(255, 255, 255, 0.14); }
.emoji-target-picker .pick-btn.cancel { border-color: rgba(255, 100, 100, 0.4); color: #ffb4b4; }

/* ===== Mão de Onze ===== */
.eleven-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,87,34,0.18), rgba(255,193,7,0.22));
  border: 1px solid rgba(255,193,7,0.55);
  box-shadow: 0 0 0 1px rgba(255,193,7,0.18) inset;
  color: #fff8e1;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  animation: eleven-pulse 1.6s ease-in-out infinite;
}
.eleven-banner.iron {
  background: linear-gradient(135deg, rgba(183,28,28,0.35), rgba(74,20,140,0.35));
  border-color: rgba(255,235,59,0.85);
  color: #fff;
}
.eleven-banner .eleven-emoji { font-size: 1.2rem; }
.eleven-banner .eleven-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.eleven-banner .eleven-sub {
  opacity: 0.85;
  font-weight: 400;
  font-size: 0.78rem;
}
.eleven-inline-actions {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}
.eleven-inline-actions.hidden { display: none; }
.eleven-inline-actions .btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 700;
}
.eleven-inline-waiting {
  margin-left: 8px;
  font-size: 0.78rem;
  color: #ffeb3b;
  font-weight: 500;
}
.eleven-inline-waiting.hidden { display: none; }
@keyframes eleven-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,193,7,0.18) inset, 0 0 0 0 rgba(255,193,7,0.0); }
  50% { box-shadow: 0 0 0 1px rgba(255,193,7,0.3) inset, 0 0 20px 2px rgba(255,193,7,0.25); }
}

/* Cartas do parceiro reveladas no próprio assento (mão de onze).
   Em vez de mostrar dorso (BACK), mostramos a carta aberta um pouco maior
   para que dê pra ler naipe e valor. */
.seat-cards.partner-revealed {
  height: 64px;
  margin-bottom: 0;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255, 235, 59, 0.08);
  outline: 1px dashed rgba(255, 235, 59, 0.5);
  pointer-events: none;
}
.seat-cards.partner-revealed .card {
  width: 38px;
  height: 56px;
  margin-left: -6px;
  border-radius: 5px;
  border-width: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  background: #fffdf6;
}
.seat-cards.partner-revealed .card:first-child {
  margin-left: 0;
  transform: rotate(-6deg);
}
.seat-cards.partner-revealed .card:nth-child(2) { transform: rotate(0deg); }
.seat-cards.partner-revealed .card:nth-child(3) { transform: rotate(6deg); }
@media (max-width: 540px) {
  .seat-cards.partner-revealed { height: 52px; }
  .seat-cards.partner-revealed .card { width: 32px; height: 46px; }
}

/* ===== Modal de compartilhar sala ===== */
.share-link-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}
.share-link-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-family: monospace;
  font-size: 0.85rem;
}
.share-qr-wrap {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin: 10px auto;
  width: max-content;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
#shareQrCanvas {
  display: block;
  width: 220px;
  height: 220px;
}
.share-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
  flex-wrap: wrap;
}
.share-actions .btn { flex: 1; min-width: 130px; }

/* Destaque visual no chip do parceiro quando ele revela cartas */
.player-chip.partner-reveal {
  outline: 2px solid #ffeb3b;
  outline-offset: 2px;
  box-shadow: 0 0 12px rgba(255,235,59,0.45);
}

/* Mão de ferro: jogador escolhe entre 3 cartas tapadas (jogo às cegas) */
.hand.iron-hand .iron-card {
  position: relative;
  cursor: not-allowed;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hand.iron-hand .iron-card.playable {
  cursor: pointer;
}
.hand.iron-hand .iron-card.playable:hover {
  transform: translateY(-10px) rotate(-2deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}
.iron-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffeb3b;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 900;
  pointer-events: none;
}
.hand.iron-hand::before {
  content: "🛡️ Mão de Ferro: escolha 1, 2 ou 3 às cegas. A carta é revelada na mesa assim que jogada.";
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: #ffeb3b;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.12em; text-transform: uppercase; }
.field input {
  padding: 11px 13px; border-radius: var(--skin-radius-sm, 10px);
  border: var(--skin-border, 1px solid rgba(255,255,255,0.2));
  background: rgba(8, 16, 44, 0.6); color: #fff; font-family: inherit; font-size: 1rem;
  box-shadow: var(--skin-inset, inset 0 1px 3px rgba(0,0,0,0.4));
  transition: var(--skin-transition, all 0.18s ease);
}
.field input:focus { outline: none; border-color: var(--accent-gold-bright, #ffd54f); box-shadow: var(--skin-inset, inset 0 1px 3px rgba(0,0,0,0.4)), 0 0 0 3px rgba(255, 213, 79, 0.25); }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-opt {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(8, 16, 44, 0.55);
  border: 2px solid rgba(255,255,255,0.12);
  font-size: 1.4rem;
  box-shadow: var(--skin-inset, inset 0 1px 2px rgba(0,0,0,0.4));
  transition: var(--skin-transition, all 0.18s ease);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.avatar-opt:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.avatar-opt.selected { border-color: var(--accent-gold-bright, #ffd54f); background: rgba(255,179,0,0.28); box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.3), 0 4px 10px rgba(0,0,0,0.4); }
.avatar-opt.has-img { padding: 0; overflow: hidden; }
.avatar-opt .avatar-img,
.me-avatar .avatar-img,
.player-chip .avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.me-avatar.has-img,
.player-chip .avatar.has-img { padding: 0; overflow: hidden; }

/* ===== Clube VIP ===== */
.vip-mini {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.vip-mini.tier-bronze { color: #ffcc9b; box-shadow: 0 0 10px rgba(205,127,50,0.35); }
.vip-mini.tier-silver { color: #e6e6e6; box-shadow: 0 0 10px rgba(192,192,192,0.35); }
.vip-mini.tier-gold { color: #ffe082; box-shadow: 0 0 14px rgba(255,213,79,0.55); }
.vip-mini.tier-none { opacity: 0.65; }

.vip-current {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.vip-current strong { font-size: 1.05rem; }
.vip-current span { opacity: 0.8; font-size: 0.85rem; }
.vip-current.tier-bronze { border-color: rgba(205,127,50,0.55); }
.vip-current.tier-silver { border-color: rgba(192,192,192,0.55); }
.vip-current.tier-gold { border-color: rgba(255,213,79,0.75); box-shadow: 0 0 18px rgba(255,213,79,0.25); }

.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.vip-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}
.vip-plan.tier-bronze { border-color: rgba(205,127,50,0.65); }
.vip-plan.tier-silver { border-color: rgba(192,192,192,0.65); }
.vip-plan.tier-gold {
  border-color: rgba(255,213,79,0.9);
  box-shadow: 0 0 22px rgba(255,213,79,0.28);
}
.vip-plan.current::after {
  content: "ATIVO";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #1a1a1a;
  background: #ffb300;
  border-radius: 999px;
  padding: 3px 7px;
}
.vip-plan-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.vip-plan-badge { font-size: 2.2rem; }
.vip-plan h3 { margin: 0; font-size: 1.05rem; }
.vip-plan p { margin: 2px 0 0; opacity: 0.75; font-size: 0.82rem; }
.vip-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
}
.vip-benefits li::before {
  content: "✓";
  color: #00e88a;
  font-weight: 900;
  margin-right: 6px;
}
.vip-plan-actions {
  margin-top: auto;
  display: grid;
  gap: 6px;
}
.vip-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  opacity: 0.75;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ===== Bloco de login social no modal de perfil ===== */
.auth-block {
  background: linear-gradient(135deg, rgba(255,179,0,0.08), rgba(0,200,255,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.auth-hint {
  font-size: 0.82rem;
  opacity: 0.85;
  margin: 0 0 10px;
}
.gsi-wrap { display: flex; justify-content: center; margin-bottom: 8px; min-height: 40px; }
.apple-btn { width: 100%; opacity: 0.7; cursor: not-allowed; }
.auth-status {
  padding: 8px 10px;
  background: rgba(0,200,140,0.18);
  border: 1px solid rgba(0,200,140,0.4);
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 8px 0;
}
.btn.small { font-size: 0.8rem; padding: 6px 10px; }

/* ===== Mesa Premium ===== */
.premium-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 224, 102, 0.18), transparent 42%),
    var(--skin-bg-purple);
  border: var(--skin-border-purple);
  border-radius: var(--skin-radius-sm);
  cursor: pointer;
  user-select: none;
  box-shadow: var(--skin-shadow), var(--skin-inset);
  transition: var(--skin-transition);
}
.premium-toggle:hover {
  border-color: rgba(255, 213, 79, 0.45);
  box-shadow: var(--skin-shadow-elevated);
}
.premium-toggle input { transform: scale(1.2); accent-color: #f4c43d; }
.premium-toggle .premium-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.premium-toggle .premium-label strong { color: #f4c43d; }

/* ===== Atalhos monetização ===== */
.monetization-row { flex-wrap: wrap; gap: 8px; }
.monetization-row .btn { flex: 1; min-width: 130px; }

/* ===== Loja de Skins ===== */
.shop-balance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.10);
  border: var(--skin-border);
  color: var(--accent-gold-bright);
  box-shadow: var(--skin-inset);
}
.shop-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.shop-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
  padding: 12px;
  border-radius: var(--skin-radius-md);
  border: var(--skin-border-strong);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 213, 79, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(38, 72, 160, 0.72), rgba(13, 24, 72, 0.86));
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.shop-hero strong {
  display: block;
  color: var(--accent-gold-bright);
  font-weight: 900;
  font-size: 0.98rem;
}
.shop-hero span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.86;
  line-height: 1.25;
}
.shop-hero-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2a1700;
  background: var(--skin-bg-gold);
  font-weight: 900;
  box-shadow: var(--skin-shadow-gold);
}
.shop-tab {
  background: var(--skin-bg-surface);
  color: #fff;
  border: var(--skin-border);
  padding: 8px 14px;
  border-radius: var(--skin-radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: var(--skin-inset);
  transition: var(--skin-transition);
}
.shop-tab:hover {
  border-color: var(--border-strong);
  box-shadow: var(--skin-shadow);
}
.shop-tab.active {
  background: var(--skin-bg-gold);
  color: #1a1200;
  border-color: transparent;
  box-shadow: var(--skin-shadow-gold);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}
.shop-card {
  position: relative;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--skin-transition);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--skin-shadow-elevated); }
.shop-card.rarity-common { border-color: rgba(255,255,255,0.15); }
.shop-card.rarity-rare { border-color: #4fc3f7; box-shadow: 0 0 12px rgba(79,195,247,0.2); }
.shop-card.rarity-epic { border-color: #b388ff; box-shadow: 0 0 14px rgba(179,136,255,0.25); }
.shop-card.rarity-legendary {
  border-color: #ffd54f;
  box-shadow: 0 0 18px rgba(255,213,79,0.4);
  animation: legendaryPulse 2s ease-in-out infinite;
}
.shop-rarity {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #201000;
  background: linear-gradient(180deg, #fff3bd, #f7b733);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
@keyframes legendaryPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255,213,79,0.4); }
  50% { box-shadow: 0 0 28px rgba(255,213,79,0.8); }
}
.shop-preview {
  width: 100%;
  height: 90px;
  border-radius: var(--skin-radius-xs);
  background-color: #222;
  border: 1px solid rgba(255, 213, 79, 0.16);
}
.shop-name { font-weight: 850; font-size: 0.94rem; }
.shop-desc { font-size: 0.75rem; opacity: 0.7; line-height: 1.2; }
.shop-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.shop-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--accent-gold-bright);
}
.shop-price .chip-coin { width: 0.95em; height: 0.95em; }
.shop-action {
  background: var(--skin-bg-gold);
  color: #1a1a1a;
  border: none;
  padding: 5px 10px;
  border-radius: var(--skin-radius-xs);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.78rem;
  box-shadow: var(--skin-shadow-gold);
}
.shop-action:hover { filter: brightness(1.06); }
.shop-action.owned { background: rgba(0,200,140,0.25); color: #00e88a; cursor: default; }
.shop-action.equipped { background: #00b85c; color: #fff; cursor: default; }
.shop-action:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Battle Pass ===== */
.pass-season { font-size: 0.7em; opacity: 0.7; font-weight: 400; }
.pass-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pass-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  background: var(--skin-bg-gold);
  border-radius: var(--skin-radius-sm);
  color: #1a1a1a;
  box-shadow: var(--skin-shadow-gold);
}
.pass-tier strong { font-size: 1.8rem; line-height: 1; }
.pass-tier span { font-size: 0.7rem; text-transform: uppercase; }
.pass-tier small { font-size: 0.75rem; opacity: 0.7; }
.pass-xp { flex: 1; min-width: 180px; }
.pass-xp-bar {
  height: 12px;
  background: rgba(0,0,0,0.36);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 213, 79, 0.15);
}
.pass-xp-bar #passXpFill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #b388ff);
  transition: width 0.4s ease;
  width: 0%;
}
.pass-xp span { font-size: 0.78rem; opacity: 0.8; }
.pass-rewards { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pass-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  gap: 8px;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-xs);
  padding: 8px;
  align-items: center;
  box-shadow: var(--skin-inset);
}
.pass-tier-num {
  font-weight: 700;
  text-align: center;
  background: rgba(255,179,0,0.2);
  border-radius: var(--skin-radius-xs);
  padding: 6px;
  font-size: 1.1rem;
  color: var(--accent-gold-bright);
}
.pass-track {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}
.pass-track.free { background: rgba(79,195,247,0.15); border: 1px solid rgba(79,195,247,0.3); }
.pass-track.premium { background: rgba(179,136,255,0.15); border: 1px solid rgba(179,136,255,0.3); }
.pass-track.locked { opacity: 0.4; }
.pass-track-desc { font-size: 0.85rem; }
.pass-claim-btn {
  background: var(--skin-bg-gold);
  color: #1a1a1a;
  border: none;
  padding: 4px 10px;
  border-radius: var(--skin-radius-xs);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 700;
  margin-top: 4px;
  box-shadow: var(--skin-shadow-gold);
}
.pass-claim-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pass-claim-btn.claimed { background: rgba(0,200,140,0.3); color: #00e88a; }

/* ===== Anúncio recompensado ===== */
.ad-player {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 79, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.92));
  border: 1px solid rgba(255, 213, 79, 0.24);
  border-radius: var(--skin-radius-md);
  padding: 40px 20px;
  text-align: center;
  margin: 14px 0;
  position: relative;
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.ad-countdown {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--skin-bg-gold);
  color: #1a1200;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--skin-shadow-gold);
}
.ad-fake {
  color: #fff;
  font-size: 1rem;
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ad-provider-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: #fff;
  opacity: 0.45;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== LGPD / Privacidade ===== */
.privacy-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.privacy-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  background: var(--skin-bg-surface);
  cursor: pointer;
  transition: var(--skin-transition);
  box-shadow: var(--skin-inset);
}
.privacy-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--skin-shadow);
}
.privacy-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px; accent-color: #f4c43d;
}
.privacy-row span { display: flex; flex-direction: column; gap: 2px; }
.privacy-row strong { font-size: 0.95rem; }
.privacy-row small { opacity: 0.65; font-size: 0.8rem; line-height: 1.35; }
.privacy-policy-link {
  font-size: 0.75rem;
  opacity: 0.55;
  text-align: right;
  margin: 2px 0 0;
}

/* ===== Ligas ===== */
.league-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.league-badge {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--badge-from, #cd7f32), var(--badge-to, #8a4500));
  box-shadow: 0 0 14px var(--badge-glow, rgba(205,127,50,0.5));
}
.league-badge.tier-bronze { --badge-from: #cd7f32; --badge-to: #6a3a0e; --badge-glow: rgba(205,127,50,0.4); }
.league-badge.tier-silver { --badge-from: #c0c0c0; --badge-to: #6a6a6a; --badge-glow: rgba(192,192,192,0.5); }
.league-badge.tier-gold { --badge-from: #ffd54f; --badge-to: #b8860b; --badge-glow: rgba(255,213,79,0.7); }
.league-badge.tier-diamond { --badge-from: #88e1ff; --badge-to: #1e88e5; --badge-glow: rgba(136,225,255,0.7); }
.league-badge.tier-master { --badge-from: #ff5252; --badge-to: #5e35b1; --badge-glow: rgba(255,82,82,0.7); }
.league-info-line { font-size: 0.9rem; opacity: 0.85; }
.league-info-line strong { color: #ffb300; }
.league-bar {
  height: 8px; background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 213, 79, 0.15);
  border-radius: 4px; overflow: hidden; margin-top: 6px;
}
.league-bar > div { height: 100%; background: linear-gradient(90deg, #4fc3f7, #ffb300); transition: width 0.4s; }
.league-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.league-tab {
  background: var(--skin-bg-surface); color: #fff; border: var(--skin-border);
  padding: 6px 12px; border-radius: var(--skin-radius-pill); cursor: pointer; font-size: 0.8rem;
  text-transform: capitalize;
  box-shadow: var(--skin-inset);
}
.league-tab:hover { border-color: var(--border-strong); }
.league-tab.active {
  background: var(--skin-bg-gold);
  color: #1a1200;
  border-color: transparent;
  box-shadow: var(--skin-shadow-gold);
}
.league-board {
  max-height: 30vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
}
.league-row {
  display: grid; grid-template-columns: 30px 28px 1fr auto; gap: 8px;
  padding: 6px 10px; background: var(--skin-bg-surface); border: var(--skin-border); border-radius: var(--skin-radius-xs);
  align-items: center; font-size: 0.85rem;
}
.league-row.is-me { background: rgba(255,179,0,0.18); border: 1px solid rgba(255,179,0,0.5); }
.league-row.promotes { border-left: 3px solid #00e88a; }
.league-row.relegates { border-left: 3px solid #ff5252; }
.league-rank { opacity: 0.7; font-weight: 700; }
.league-history {
  margin-top: 10px;
  background: rgba(0,0,0,0.2); border-radius: 8px; padding: 8px;
  font-size: 0.78rem; opacity: 0.85; max-height: 100px; overflow-y: auto;
}

/* ===== Torneios ===== */
.tournament-card {
  overflow: hidden;
}
.tournament-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 12px;
  padding: 12px;
  border-radius: var(--skin-radius-md);
  border: 1.5px solid rgba(255, 213, 79, 0.42);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 245, 190, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(86, 44, 134, 0.72), rgba(12, 22, 74, 0.9));
  box-shadow: var(--skin-shadow-elevated), var(--skin-inset);
}
.tournament-crown {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2a1700;
  background: var(--skin-bg-gold);
  box-shadow: var(--skin-shadow-gold);
}
.tournament-crown .ic { width: 1.35em; height: 1.35em; }
.tournament-hero strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
  color: var(--accent-gold-bright);
}
.tournament-hero span {
  display: block;
  font-size: 0.76rem;
  opacity: 0.86;
}
.tournament-info {
  background: rgba(5, 10, 33, 0.58);
  border: var(--skin-border);
  border-radius: var(--skin-radius-md);
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.tour-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tour-main > div {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}
.tour-main span,
.tournament-info .info-line span {
  opacity: 0.72;
  font-size: 0.72rem;
}
.tournament-info .info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  padding: 7px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tournament-info strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffb300;
  font-size: 1rem;
}
.tournament-info .chip-coin { width: 0.95em; height: 0.95em; }
.tour-countdown { font-size: 1.34rem; font-weight: 950; text-align: center; color: #4fc3f7; }
.tour-pool { font-size: 1.34rem; font-weight: 950; text-align: center; color: #ffb300; }
.tour-entered {
  text-align: center;
  color: #00e88a;
  font-weight: 850;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 232, 138, 0.12);
  border: 1px solid rgba(0, 232, 138, 0.35);
}

/* ===== Missões ===== */
.missions-list { display: flex; flex-direction: column; gap: 10px; }
.mission-card {
  background: rgba(0,0,0,0.3); border-radius: 10px;
  padding: 12px; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px;
  align-items: center;
}
.mission-card.completed { border: 1px solid rgba(0,232,138,0.5); }
.mission-icon { font-size: 1.8rem; }
.mission-info .mission-title { font-weight: 700; font-size: 0.95rem; }
.mission-info .mission-desc { opacity: 0.8; font-size: 0.78rem; line-height: 1.2; }
.mission-progress {
  height: 6px; background: rgba(0,0,0,0.4); border-radius: 3px; overflow: hidden; margin-top: 6px;
}
.mission-progress > div { height: 100%; background: linear-gradient(90deg, #4fc3f7, #00e88a); transition: width 0.3s; }
.mission-reward {
  text-align: center; font-size: 0.78rem;
}
.mission-reward strong { display: block; color: #ffb300; font-size: 0.95rem; }
.mission-claim {
  background: #ffb300; color: #1a1a1a; border: none;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: 0.78rem; margin-top: 4px;
}
.mission-claim:disabled { opacity: 0.4; cursor: not-allowed; }
.mission-claim.claimed { background: rgba(0,200,140,0.3); color: #00e88a; }

/* ===== Amigos ===== */
.friend-add-row {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.friend-add-row input {
  flex: 1; padding: 8px 10px;
  background: rgba(0,0,0,0.3); color: #fff;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  font-family: monospace; font-size: 0.85rem;
}
.friend-id-mine {
  font-size: 0.78rem; opacity: 0.8; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.friend-id-mine code {
  background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
  font-size: 0.75rem;
}
.friend-add-advanced {
  margin-bottom: 12px;
  font-size: 0.8rem;
}
.friend-add-advanced summary {
  cursor: pointer; opacity: 0.7; padding: 4px 0;
}
.friend-add-advanced summary:hover { opacity: 1; }
.friends-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.friend-row {
  display: grid; grid-template-columns: 36px 1fr auto auto; gap: 8px;
  align-items: center; padding: 8px 10px;
  background: rgba(0,0,0,0.2); border-radius: 6px;
}
.friend-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; overflow: hidden;
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #666; margin-right: 6px; }
.friend-online.is-online { background: #00e88a; box-shadow: 0 0 8px #00e88a; }
.friend-actions { display: flex; gap: 4px; }
.friend-actions button {
  background: rgba(0,0,0,0.4); color: #fff; border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 8px; border-radius: 5px; cursor: pointer; font-size: 0.75rem;
}
.friend-actions button.invite { background: #ffb300; color: #1a1a1a; border: none; font-weight: 700; }
.friend-actions button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Convite recebido */
.invite-body {
  background: rgba(0,200,140,0.1); border: 1px solid rgba(0,200,140,0.4);
  border-radius: 10px; padding: 14px; text-align: center; font-size: 1rem;
  margin-bottom: 12px;
}
.invite-body .invite-from {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 1.1rem; margin-bottom: 8px;
}
.invite-body .invite-from .avatar-img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}

/* ====== Loop viral ====== */

/* Bloco de código pessoal no shareModal. */
.share-refblock {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 179, 0, 0.08);
  border: 1px solid rgba(255, 179, 0, 0.35);
  text-align: center;
}
.share-refblock-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.share-refblock-title strong {
  color: #ffb300;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
}
.share-refblock-hint {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
}
.mini-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.mini-btn:hover { background: rgba(255,255,255,0.15); }

/* Stack vertical de ações no modal de fim de partida. */
.modal-actions-stack {
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.modal-actions-stack .btn { width: 100%; }

/* Lista compacta de jogadores para adicionar como amigo no fim da partida. */
.post-match-social {
  margin: 14px 0 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.post-match-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-match-players {
  display: flex; flex-direction: column; gap: 6px;
}
.post-match-player {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}
.post-match-player .avatar-img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.post-match-player .avatar-emoji {
  font-size: 1.4rem; width: 28px; text-align: center;
}
.post-match-player .nick { flex: 1; font-size: 0.95rem; }
.post-match-player button {
  background: #00c88c;
  border: none;
  color: #061018;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.post-match-player button:disabled {
  opacity: 0.5;
  cursor: default;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* Modal "adicionar amigo por código". */
#friendByCodeModal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  color: inherit;
  font-size: 1.05rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  margin: 8px 0 4px;
}

.replay-status {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(0,200,140,0.15);
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}

/* Badge premium nas salas */
.room-row.is-premium {
  border: 1px solid rgba(244,196,61,0.5);
  background: linear-gradient(135deg, rgba(244,196,61,0.08), rgba(0,0,0,0.3));
}
.room-premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f4c43d, #ff6f00);
  color: #1a1a1a;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 4px;
}

/* ===== Daltônicos: naipe grande ===== */
.card .suit-big {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 1.35rem;
  opacity: 0.85;
  line-height: 1;
  pointer-events: none;
}
.card { position: relative; }

/* ===== Animação de distribuição ===== */
.card.deal-fly {
  position: fixed;
  z-index: 150;
  transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* ===== Confetes ===== */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 250;
}

/* ===== Chat ===== */
.chat-panel {
  margin-top: 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.chat-messages {
  max-height: 88px;
  overflow-y: auto;
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.chat-msg { margin: 2px 0; opacity: 0.9; }
.chat-msg strong { color: #ffd54f; }
.chat-input-row { display: flex; gap: 6px; }
.chat-input-row input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.85rem;
}

/* ===== Stats / Ranking / Tutorial ===== */
.my-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stat-box {
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  padding: 8px;
  text-align: center;
  font-size: 0.72rem;
  box-shadow: var(--skin-shadow), var(--skin-inset);
  transition: var(--skin-transition);
}
.stat-box:hover {
  border-color: rgba(255, 213, 79, 0.44);
  box-shadow: var(--skin-shadow-elevated);
}
.stat-box span {
  display: block;
  opacity: 0.72;
  letter-spacing: 0.04em;
}
.stat-box strong {
  display: block;
  font-size: 1.1rem;
  color: #ffd54f;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 213, 79, 0.24);
}

.modal-wide { max-width: 520px; }
.tutorial-steps .t-step { display: none; }
.tutorial-steps .t-step.active { display: block; }
.t-step h3 { margin: 0 0 8px; font-size: 1rem; }
.t-step p { margin: 0 0 8px; font-size: 0.88rem; opacity: 0.9; line-height: 1.45; }
.tutorial-nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
.tutorial-dots { font-size: 0.75rem; opacity: 0.6; }
.ranking-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding: 2px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--skin-radius-md, 12px);
  border: var(--skin-border, 1px solid rgba(255,255,255,0.1));
  background: var(--skin-bg-surface, rgba(255,255,255,0.04));
  box-shadow: var(--skin-shadow, 0 2px 6px rgba(0,0,0,0.3)), var(--skin-inset, inset 0 1px 0 rgba(255,255,255,0.05));
  font-size: 0.88rem;
  transition: var(--skin-transition, all 0.18s ease);
}
.rank-row:hover { transform: translateX(2px); border-color: rgba(255, 213, 79, 0.4); }
.rank-pos {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #cdd6ea; font-size: 0.9rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.rank-medal { font-size: 1.15rem; background: transparent; }
.rank-nick { flex: 1 1 auto; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-wins { font-size: 0.78rem; opacity: 0.85; font-weight: 700; white-space: nowrap; }
.rank-wins-lbl { opacity: 0.6; font-weight: 600; }
.rank-coins {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; font-size: 0.8rem;
}
.rank-coins .chip-coin { width: 0.95em; height: 0.95em; }
.rank-coins.pos { color: #ffd95e; background: rgba(255, 200, 60, 0.14); }
.rank-coins.neg { color: #c9a7ff; background: rgba(150, 120, 210, 0.16); }
/* Pódio: top 3 com brilho dourado/prata/bronze. */
.rank-podium { border-width: 1.5px; }
.rank-podium-1 {
  background: linear-gradient(100deg, rgba(255, 213, 79, 0.22), rgba(255, 213, 79, 0.05));
  border-color: rgba(255, 213, 79, 0.6);
  box-shadow: 0 4px 14px rgba(255, 190, 50, 0.22), inset 0 1px 0 rgba(255,255,255,0.15);
}
.rank-podium-2 {
  background: linear-gradient(100deg, rgba(220, 228, 245, 0.18), rgba(220, 228, 245, 0.04));
  border-color: rgba(214, 224, 245, 0.5);
}
.rank-podium-3 {
  background: linear-gradient(100deg, rgba(214, 142, 76, 0.18), rgba(214, 142, 76, 0.04));
  border-color: rgba(214, 142, 76, 0.5);
}
.last-hand-content, .replay-content {
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 320px;
  overflow-y: auto;
}
.trick-summary { margin: 8px 0; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 8px; }
.checkbox-field { flex-direction: row !important; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }

.kbd-hint kbd {
  background: rgba(255,255,255,0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  margin: 0 2px;
}

.player-chip.is-disconnected { opacity: 0.55; border-style: dashed; }
.room-row .room-name { display: block; font-size: 0.75rem; color: #ffd54f; }

/* ===== Responsivo da partida (mesa + jogadores + cartas) ===== */
/* Bloco unificado para o layout novo (oval teal + avatares circulares +
   cartas premium + score-bar). Substitui o antigo, que ainda referenciava
   classes legadas. */
@media (max-width: 540px) {
  .game-panel { padding: 8px; }

  /* Cabeçalho do lobby (não da partida): brand, avatar, bônus diário. */
  .top h1 { font-size: 1.2rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 0.95rem; }
  .brand-logo { width: 44px; height: 44px; border-radius: 10px; }
  .me-avatar { width: 44px; height: 44px; font-size: 1.4rem; }
  .daily { padding: 6px 10px !important; font-size: 0.75rem; }

  /* Mesa em portrait: um pouco mais larga para casar com o asset. */
  .table { aspect-ratio: 1.55 / 1; max-width: 480px; }
  .table-wrap { margin: 4px 0 14px; }

  /* Avatares menores em mobile. */
  .seat { min-width: 64px; }
  .player-chip { max-width: 96px; }
  .player-chip .avatar { width: 46px; height: 46px; font-size: 1.25rem; border-width: 2.5px; }
  .player-chip::before { width: 70px; height: 70px; top: -12px; }
  .player-chip .pname { font-size: 0.66rem; padding: 2px 8px; max-width: 96px; }

  /* Cartas viradas (mini-fan acima do avatar) ainda menores. */
  .seat-cards { height: 26px; }
  .seat-cards .card { width: 18px; height: 26px; }

  /* Cartas jogadas no tabuleiro: encolhem proporcionalmente. */
  .played-slot .card { width: 44px; height: 64px; }
  .played-slot .card .suit-big { font-size: 1.45rem; }
  .played-slot .card .rank { font-size: 0.78rem; }
  .played-slot .card .suit { font-size: 0.62rem; }

  /* Vira / deck central também menores. */
  .vira-deck, .vira-deck-2 { width: 36px; height: 54px; }
  .vira-box { transform: translate(-50%, -50%) rotate(6deg); }

  /* Mão do jogador: encolhe e fan mais discreto. */
  .hand { gap: 4px; min-height: 96px; padding: 10px 0 4px; }
  .hand .card { width: 60px; height: 86px; }
  .hand .card .rank { font-size: 1.05rem; }
  .hand .card .suit-big { font-size: 1.95rem; }

  /* Botões de truco: caber 4 em 2 linhas mas legíveis. */
  .bid-row { gap: 6px; }
  .bid-row .btn { font-size: 0.82rem; padding: 8px 6px; }

  /* Ações extras (última mão / replay / chamar bots / voltar) viram grid 2 cols. */
  .extra-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .extra-actions .btn { min-width: 0; }

  /* Chat e emoji bar mais compactos. */
  .chat-panel:not(.chat-bubble),
  .emoji-bar:not(.emoji-bubble) { padding: 6px; }
  .emoji-bar:not(.emoji-bubble) { gap: 2px; }
}

/* Tela muito estreita (smartphones 320–380 px): última camada de compressão. */
@media (max-width: 380px) {
  .seat { min-width: 56px; }
  .player-chip .avatar { width: 42px; height: 42px; font-size: 1.15rem; }
  .player-chip::before { width: 64px; height: 64px; top: -11px; }
  .player-chip .pname { font-size: 0.62rem; padding: 2px 6px; }
  .hand .card { width: 54px; height: 78px; }
  .hand .card .suit-big { font-size: 1.75rem; }
  .played-slot .card { width: 38px; height: 56px; }
  .table { aspect-ratio: 1.4 / 1; }
  .score-bar { padding: 6px 8px; }
  .sb-team-score { font-size: 1.25rem; }
  .sb-points-label { font-size: 0.58rem; letter-spacing: 0.2em; }
  .score-bar-prize { right: 6px; top: -10px; font-size: 0.58rem; padding: 2px 7px; }
}

/* Landscape em celular (altura baixa): mesa mais larga, hero some, mão compacta. */
/* ============================================================
   ===== LANDSCAPE (celular na horizontal): enquadrar o jogo
   inteiro na tela, sem rolagem. A mesa é dimensionada pela
   ALTURA disponível (mantendo a proporção) e tudo ao redor
   fica compacto para caber em 100% da altura do viewport.
   ============================================================ */
@media (orientation: landscape) and (max-height: 600px) {
  /* Durante a partida, o app usa a tela toda e o cabeçalho some,
     liberando a altura para a mesa caber por completo. */
  #app:has(.game-panel:not(.hidden)) {
    max-width: 100%;
    padding: 0;
  }
  #app:has(.game-panel:not(.hidden)) > .top { display: none; }

  /* O painel do jogo ocupa exatamente a altura da tela e
     distribui o espaço: mesa cresce, resto fica fixo/compacto. */
  .game-panel {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    padding: 2px 10px 4px;
    gap: 2px;
  }

  /* Placar bem baixo no topo. */
  .score-bar {
    flex: 0 0 auto;
    margin: 0 auto;
    padding: 1px 14px;
    gap: 6px;
  }
  .score-bar-side { padding: 2px 10px; gap: 6px; }
  .score-bar-center { gap: 1px; padding: 1px 10px; min-width: 120px; }
  .sb-team-label { font-size: 0.55rem; letter-spacing: 0.14em; }
  .sb-team-score { font-size: 1.05rem; }
  .sb-points-label { font-size: 0.5rem; letter-spacing: 0.18em; }
  .sb-hand-row.sb-hand-mute { display: none; }

  .timer-row { flex: 0 0 auto; margin: 0; }

  /* Banners condicionais não empurram o layout (ficam sobre a mesa). */
  #stakeRaiseBanner:not(.hidden),
  #elevenBanner:not(.hidden) {
    flex: 0 0 auto;
    margin: 2px auto;
  }

  /* A mesa usa toda a altura que sobrar e centraliza. Como em paisagem
     sobra largura, deixamos a mesa mais alta (aspecto menos achatado)
     para aumentar o espaço vertical entre o norte (parceiro) e o sul (eu). */
  .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    margin: 0;
    gap: 6px;
  }
  .table-fab-col { gap: 8px; }
  .table-fab { width: 40px; height: 40px; }
  .table-fab .fab-icon { font-size: 1.1rem; }
  .table-fab .fab-lbl { font-size: 0.55rem; bottom: -13px; }
  /* Mesa LARGA (estilo arena do exemplo): ocupa a altura disponível e fica
     bem larga (aspecto 2:1). Largura sobrando no paisagem é aproveitada para
     espalhar os oponentes (leste/oeste) e as cartas centrais, reduzindo o
     amontoado. A regra base `.table-wrap > .table { flex: 1 1 auto }` é
     sobrescrita aqui (mesma especificidade). */
  .table-wrap {
    width: 100%;
    justify-content: center;
  }
  .table-wrap > .table {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 2.35 / 1;
    margin: 0 auto;
  }
  /* 1x1: você embaixo, oponente em cima. */
  .seat-north { top: -22px; left: 50%; }
  .seat-south { bottom: -14px; left: 50%; }
  /* 2x2: em volta da mesa larga, ordem anti-horária (sul → leste → norte → oeste). */
  .seats-4 .seat-west  { left: 8%;  top: -20px; bottom: auto; right: auto; transform: translateX(-50%); }
  .seats-4 .seat-north { left: 92%; top: -20px; bottom: auto; right: auto; transform: translateX(-50%); }
  .seats-4 .seat-south { left: 2%;  top: 56%;   bottom: auto; right: auto; transform: translate(-50%, -50%); }
  .seats-4 .seat-east  { left: 98%; top: 56%;   bottom: auto; right: auto; transform: translate(-50%, -50%); }
  /* Avatares menores para não cobrirem o feltro/cartas. */
  .player-chip .avatar { width: 42px; height: 42px; font-size: 1.15rem; border-width: 2.5px; }
  .player-chip::before { width: 64px; height: 64px; top: -11px; }
  .player-chip .pname { font-size: 0.62rem; padding: 2px 7px; }
  .seat { min-width: 56px; }

  /* Cartas jogadas e vira menores, espalhadas no feltro largo. */
  .played-area { width: 56%; left: 22%; }
  .played-slot .card { width: 38px; height: 54px; }
  .played-slot .card .rank { font-size: 0.78rem; }
  .played-slot .card .suit-big { font-size: 1.2rem; }
  .vira-deck, .vira-deck-2 { width: 34px; height: 50px; }
  .seat-cards .card { width: 20px; height: 29px; }

  /* Mão do jogador compacta e encostada na mesa (ganha altura para separar
     o norte/sul). As cartas sobem um pouco sobre a borda inferior da mesa. */
  .my-hand-wrap { flex: 0 0 auto; margin: -10px 0 0; z-index: 5; }
  .my-label { display: none; }
  .hand {
    min-height: 0;
    padding: 0;
    gap: 4px;
  }
  .hand .card { width: 42px; height: 60px; font-size: 0.8rem; }
  .hand .card .rank { font-size: 0.88rem; }
  .hand .card .suit { font-size: 0.76rem; }
  .hand .card .suit-big { font-size: 1.4rem; }

  /* Ações principais (Truco/Aceitar/Correr…) numa COLUNA LATERAL à direita,
     visível só quando é a vez do jogador (classe .has-action). Fora do fluxo,
     então não consome altura — a mesa fica mais alta. */
  .bid-row {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: stretch;
    width: min(34vw, 168px);
    margin: 0;
    padding: 7px;
    gap: 6px;
    flex-wrap: nowrap;
    z-index: 30;
    border-radius: 14px;
    background: rgba(6, 12, 34, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
  .bid-row.has-action {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  /* Só mostra os botões realmente acionáveis (esconde desabilitados/ocultos). */
  .bid-row .btn {
    flex: 0 0 auto;
    width: 100%;
    padding: 9px 8px;
    font-size: 0.82rem;
    min-height: 0;
  }
  .bid-row .btn:disabled { display: none; }

  /* Linha secundária = só ícones (economiza altura para a mesa). */
  .extra-actions {
    flex: 0 0 auto;
    margin: 3px 0 0;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .extra-actions .btn {
    flex: 0 0 auto;
    width: 38px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
  }
  .extra-actions .ea-txt { display: none; }
  .extra-actions .ea-ic { line-height: 1; }
  .kbd-hint { display: none; }

  /* Painéis não-balão escondidos (usamos as versões "bubble"). */
  .emoji-bar:not(.emoji-bubble),
  .chat-panel:not(.chat-bubble) { display: none; }
}

/* ============================================================
   ===== HERO COM MASCOTE + LOBBY MODERNO (Fase 2)
   ============================================================ */

/* ---- Hero / Mascote ---- */
.hero {
  position: relative;
  margin-top: 10px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 55%),
    radial-gradient(ellipse at 25% 60%, rgba(255, 213, 79, 0.24), transparent 55%),
    radial-gradient(ellipse at 78% 26%, rgba(79, 195, 247, 0.20), transparent 58%),
    linear-gradient(135deg, #07143f 0%, #1d3c93 55%, #10245f 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.54), 0 0 26px rgba(255, 213, 79, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 246px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
  align-items: stretch;
  max-width: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.12) 44%, transparent 58%);
  transform: translateX(-120%);
  animation: heroSweep 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroSweep {
  0%, 72% { transform: translateX(-120%); }
  86%, 100% { transform: translateX(120%); }
}
.hero-text {
  padding: 18px 14px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  position: relative;
}
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.13);
  border: 1px solid rgba(255, 213, 79, 0.28);
  color: #ffe9a8;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: var(--skin-inset);
}
.hero-title {
  margin: 0 0 6px;
  font-size: 1.68rem;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(255, 213, 79, 0.25);
}
.hero-subtitle {
  margin: 0 0 14px;
  font-size: 0.9rem;
  opacity: 0.92;
  line-height: 1.35;
  max-width: 18em;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 10, 35, 0.42);
  border: 1px solid rgba(255, 213, 79, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--skin-inset);
}
.hero-badges .ic {
  color: var(--accent-gold-bright);
  font-size: 0.95rem;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-cta .btn { width: 100%; }
.hero-pulse {
  animation: pulseCta 1.6s ease-in-out infinite;
}
@keyframes pulseCta {
  0%, 100% { box-shadow: 0 4px 14px rgba(255, 213, 79, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); transform: scale(1); }
  50% { box-shadow: 0 8px 28px rgba(255, 213, 79, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7); transform: scale(1.025); }
}
.hero-art {
  position: relative;
  min-height: 246px;
  background: transparent;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
}
.hero-art .mascot {
  position: absolute;
  inset: 0;
  background: url("mascote.png?v=4") right bottom / contain no-repeat;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  animation: mascotBreath 6s ease-in-out infinite;
}
/* Fallback decorativo caso o mascote.png ainda não tenha sido copiado.
   Mostra uma "moldura dourada com taça" como placeholder elegante. */
.hero-art .mascot::after {
  content: "🏆";
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 6rem;
  filter: drop-shadow(0 6px 14px rgba(255, 213, 79, 0.55));
  opacity: 0;
  transition: opacity 0.3s;
}
/* Quando a imagem falha em carregar, navegador mantém o background vazio.
   Não temos como detectar isso só com CSS; o fallback fica visível apenas
   quando o usuário define a classe .no-mascot manualmente em <div class="mascot">. */
.hero-art .mascot.no-mascot { background: none; }
.hero-art .mascot.no-mascot::after { opacity: 1; }
@keyframes mascotBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.hero-glow {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background:
    radial-gradient(circle at 60% 50%, rgba(255, 213, 79, 0.30), transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(79, 195, 247, 0.20), transparent 55%);
  filter: blur(8px);
  animation: heroGlow 7s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.hero-sparkles::before,
.hero-sparkles::after {
  content: "✦";
  position: absolute;
  color: var(--accent-gold-bright);
  font-size: 1rem;
  opacity: 0.6;
  text-shadow: 0 0 8px rgba(255, 213, 79, 0.8);
  animation: sparkleFloat 4s ease-in-out infinite;
}
.hero-sparkles::before { top: 18%; left: 12%; animation-delay: 0s; }
.hero-sparkles::after { top: 60%; right: 10%; font-size: 0.85rem; animation-delay: 1.6s; }
@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-6px) scale(1.3); opacity: 1; }
}

@media (max-width: 480px) {
  .lobby-prime {
    margin: -4px -4px 12px;
    padding: 8px;
    border-radius: 20px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    width: 100%;
    max-width: 100%;
    border-radius: 19px;
  }
  .hero-art {
    width: 100%;
    min-height: 138px;
    max-height: 168px;
    order: -1;
    flex: 0 0 auto;
  }
  .hero-art .mascot {
    inset: 0;
    width: 100%;
    background-position: center bottom;
    background-size: contain;
  }
  .hero-text { padding: 13px; text-align: center; }
  .hero-kicker { margin-left: auto; margin-right: auto; font-size: 0.58rem; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; margin-bottom: 12px; }
  .hero-badges span { font-size: 0.58rem; padding: 4px 7px; }
}

/* ---- Carrossel promo (top do lobby) ---- */
.promo-carousel {
  position: relative;
  margin-top: 12px;
  border-radius: var(--skin-radius-md);
  overflow: hidden;
  height: 88px;
  border: var(--skin-border-strong);
  box-shadow: var(--skin-shadow-elevated);
}
.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  opacity: 0;
  transform: translateX(15%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.promo-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.promo-slide.promo-vip {
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(120deg, #6a1b9a 0%, #ab47bc 50%, #ffd54f 100%);
}
.promo-slide.promo-daily {
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(120deg, #ff5252 0%, #ff9800 50%, #ffd54f 100%);
}
.promo-slide.promo-tournament {
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(120deg, #1e88e5 0%, #4fc3f7 50%, #ffd54f 100%);
}
.promo-slide .promo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.promo-slide .promo-icon .ic {
  width: 1.35em;
  height: 1.35em;
}
.promo-slide .promo-text {
  flex: 1;
  min-width: 0;
}
.promo-slide .promo-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.promo-slide .promo-text span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.promo-slide .promo-cta {
  background: rgba(10, 20, 60, 0.55);
  color: var(--accent-gold-bright);
  padding: 6px 12px;
  border-radius: var(--skin-radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  border: var(--skin-border);
  box-shadow: var(--skin-inset);
}
.promo-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.promo-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.3s, width 0.3s;
}
.promo-dots span.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* ---- Grid de modos (substitui linhas de botões soltos) ---- */
.lobby-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 9px;
}
.lobby-mode-card {
  position: relative;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-md);
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--skin-transition);
  overflow: hidden;
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.lobby-mode-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 79, 0.08);
  pointer-events: none;
}
.lobby-mode-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--skin-shadow-elevated), var(--skin-glow-hover);
}
.lobby-mode-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 50%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255, 213, 79, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.lobby-mode-card:hover::before { left: 150%; }
.lobby-mode-card .mode-icon {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.lobby-mode-card .mode-icon .ic {
  width: 1.15em;
  height: 1.15em;
}
.lobby-mode-card .mode-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.lobby-mode-card .mode-sub {
  display: block;
  font-size: 0.72rem;
  opacity: 0.78;
  margin-top: 2px;
}
.lobby-mode-card.is-premium {
  background: var(--skin-bg-purple);
  border-color: rgba(255, 213, 79, 0.45);
  box-shadow: var(--skin-shadow-elevated), var(--skin-inset);
}
.lobby-mode-card.is-featured {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 245, 190, 0.28), transparent 48%),
    var(--skin-bg-gold-soft);
  border-color: var(--accent-gold-bright);
  color: #1a1a1a;
  box-shadow: var(--skin-shadow-gold);
}
.lobby-mode-card.is-featured .mode-icon {
  filter: drop-shadow(0 3px 6px rgba(70, 34, 0, 0.28));
}
.lobby-mode-card.is-featured .mode-sub { opacity: 0.85; }

/* ---- Modal "Escolha sua mesa" (estilo app de referência) ---- */
.play-mode-modal {
  align-items: center;
  justify-content: center;
}
.play-mode-shell {
  width: min(680px, calc(100vw - 20px));
  max-height: min(92vh, 590px);
  margin: auto;
  padding: 18px 16px 15px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 224, 102, 0.22), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(79, 195, 247, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 35, 92, 0.98) 0%, rgba(10, 17, 52, 0.98) 56%, rgba(7, 10, 32, 0.98) 100%);
  border: 1.5px solid rgba(255, 213, 79, 0.42);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.70),
    0 0 28px rgba(255, 213, 79, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.play-mode-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.13);
  border: 1px solid rgba(255, 213, 79, 0.28);
  color: var(--accent-gold-bright);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--skin-inset);
}
.play-mode-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, #fff5c2, #f7b733 62%, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 213, 79, 0.18);
}
.play-mode-sub {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.75;
}
.play-mode-tiles {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.play-mode-tiles::-webkit-scrollbar { display: none; }
.play-mode-tile {
  flex: 0 0 142px;
  scroll-snap-align: center;
  position: relative;
  min-height: 236px;
  padding: 0;
  border: 1.5px solid rgba(255, 213, 79, 0.30);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 102, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(37, 74, 164, 0.85) 0%, rgba(21, 51, 126, 0.88) 48%, rgba(9, 22, 65, 0.92) 100%);
  cursor: pointer;
  text-align: center;
  color: #fff;
  overflow: hidden;
  transition: var(--skin-transition);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.play-mode-tile::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 213, 79, 0.10);
  pointer-events: none;
}
.play-mode-tile:hover,
.play-mode-tile:active {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 215, 100, 0.75);
  box-shadow: var(--skin-shadow-elevated), 0 0 22px rgba(255, 215, 100, 0.25);
}
.play-mode-tile.is-bot {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 102, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(95, 58, 154, 0.88) 0%, rgba(54, 34, 117, 0.9) 100%);
  border-color: rgba(255, 213, 79, 0.28);
}
.pmt-ribbon {
  position: absolute;
  top: 8px;
  left: -28px;
  width: 100px;
  padding: 3px 0;
  background: linear-gradient(90deg, #ff8f00, #ffb300);
  color: #1a1200;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(-42deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.pmt-deco {
  display: block;
  margin: 32px auto 4px;
  width: 78px;
  height: 54px;
  opacity: 0.25;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 56'%3E%3Crect x='8' y='4' width='28' height='40' rx='3' fill='%23fff' stroke='%23ccc'/%3E%3Ctext x='14' y='22' font-size='12' fill='%23c62828'%3E3%3C/text%3E%3Ctext x='14' y='34' font-size='14' fill='%23c62828'%3E♥%3C/text%3E%3Crect x='28' y='8' width='28' height='40' rx='3' fill='%23fff' stroke='%23ccc'/%3E%3Ctext x='34' y='26' font-size='12' fill='%231f1f1f'%3E3%3C/text%3E%3Ctext x='34' y='38' font-size='14' fill='%231f1f1f'%3E♠%3C/text%3E%3Crect x='48' y='12' width='28' height='40' rx='3' fill='%23fff' stroke='%23ccc'/%3E%3Ctext x='54' y='30' font-size='12' fill='%231f1f1f'%3E3%3C/text%3E%3Ctext x='54' y='42' font-size='14' fill='%231f1f1f'%3E♣%3C/text%3E%3C/svg%3E")
    center / contain no-repeat;
}
.pmt-icon {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 213, 79, 0.13);
  border: 1px solid rgba(255, 213, 79, 0.28);
  color: var(--accent-gold-bright);
  font-size: 1.35rem;
  box-shadow: var(--skin-inset), 0 0 12px rgba(255, 213, 79, 0.16);
  z-index: 2;
}
.pmt-vs {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  margin: 4px 0 7px;
}
.pmt-prize {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
  margin-bottom: 10px;
}
.pmt-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 8px;
  padding: 6px 8px;
  background: linear-gradient(180deg, #fff5bf, #f7b733);
  border-radius: 999px;
  color: #2a1700;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.pmt-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}
.pmt-tag {
  display: block;
  margin-top: 8px;
  padding-bottom: 11px;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.play-mode-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.play-mode-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pmf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--skin-bg-surface);
  border: var(--skin-border);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--skin-inset);
}
.pmf-chip.active {
  background: var(--skin-bg-gold);
  color: #1a1200;
  border-color: transparent;
  box-shadow: var(--skin-shadow-gold);
}
.play-mode-cancel { flex-shrink: 0; }

@media (max-width: 480px) {
  .play-mode-shell {
    width: min(96vw, 460px);
    padding: 15px 12px 13px;
    border-radius: 22px;
    gap: 10px;
  }
  .play-mode-kicker { font-size: 0.58rem; margin-bottom: 6px; }
  .play-mode-head h2 { font-size: 1.28rem; }
  .play-mode-sub { font-size: 0.72rem; }
  .play-mode-tiles {
    gap: 10px;
    padding: 4px 1px 8px;
  }
  .play-mode-tile {
    flex-basis: 132px;
    min-height: 218px;
    border-radius: 16px;
  }
  .pmt-ribbon {
    top: 7px;
    left: -30px;
    font-size: 0.55rem;
  }
  .pmt-icon {
    top: 19px;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .pmt-deco {
    width: 70px;
    height: 48px;
    margin-top: 30px;
  }
  .pmt-vs { font-size: 1.28rem; }
  .pmt-prize { font-size: 0.68rem; }
  .pmt-entry {
    margin: 0 9px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }
  .pmt-tag { font-size: 0.62rem; }
  .play-mode-foot {
    align-items: stretch;
    gap: 8px;
  }
  .play-mode-filters { gap: 6px; }
  .pmf-chip { padding: 5px 9px; font-size: 0.62rem; }
  .play-mode-cancel { padding-inline: 13px; }
}

@media (max-width: 380px) {
  .play-mode-shell {
    width: calc(100vw - 16px);
    padding: 13px 10px 12px;
  }
  .play-mode-tile {
    flex-basis: 124px;
    min-height: 206px;
  }
  .pmt-icon {
    width: 34px;
    height: 34px;
    font-size: 1.08rem;
  }
  .pmt-deco {
    width: 64px;
    height: 44px;
  }
  .pmt-vs { font-size: 1.16rem; }
  .play-mode-foot { flex-direction: column; }
  .play-mode-cancel { width: 100%; }
}

/* ---- Online indicator ---- */
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 232, 138, 0.14);
  border: 1px solid rgba(0, 232, 138, 0.40);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00e88a;
  vertical-align: middle;
  margin-left: 8px;
}
.online-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e88a;
  box-shadow: 0 0 8px #00e88a;
  animation: pulseGreen 2s ease-in-out infinite;
}
@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}

/* ---- Badge de notificação nos botões/ícones ---- */
.has-badge { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff5252, #b71c1c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-deep), 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 3;
  animation: badgePop 0.4s ease-out;
}
@keyframes badgePop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}
.notif-badge.is-pulse { animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 0 rgba(255, 82, 82, 0.7); }
  50% { box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 8px rgba(255, 82, 82, 0); }
}

/* ---- Daily Calendar Modal (Fase 3) ---- */
.daily-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.daily-day {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 42, 110, 0.6), rgba(10, 20, 60, 0.6));
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 4px 8px;
  text-align: center;
  font-size: 0.78rem;
  transition: transform 0.15s, border-color 0.2s;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
}
.daily-day .day-num {
  font-size: 0.65rem;
  opacity: 0.65;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.daily-day .day-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.daily-day .day-reward {
  font-weight: 800;
  color: var(--accent-gold-bright);
  font-size: 0.8rem;
}
.daily-day.is-claimed {
  background: linear-gradient(160deg, rgba(0, 232, 138, 0.25), rgba(0, 100, 60, 0.35));
  border-color: rgba(0, 232, 138, 0.55);
}
.daily-day.is-claimed::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--accent-green);
  font-weight: 900;
  font-size: 0.85rem;
}
.daily-day.is-today {
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 18px rgba(255, 213, 79, 0.55);
  transform: scale(1.05);
  background: linear-gradient(160deg, rgba(255, 213, 79, 0.18), rgba(184, 134, 11, 0.18));
}
.daily-day.is-locked {
  opacity: 0.55;
}
.daily-day.is-bonus {
  background: linear-gradient(160deg, rgba(255, 152, 0, 0.30), rgba(184, 134, 11, 0.30));
  border-color: var(--accent-orange);
}
.daily-day.is-bonus .day-icon { font-size: 1.7rem; }

/* ---- Footer rich (atalhos rápidos) ---- */
.lobby-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding: 10px 6px;
  background: var(--skin-bg-glass);
  border: var(--skin-border);
  border-radius: var(--skin-radius-md);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.footer-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  cursor: pointer;
  border-radius: var(--skin-radius-xs);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--skin-transition);
}
.footer-btn:hover {
  background: linear-gradient(160deg, rgba(255, 213, 79, 0.12), rgba(30, 58, 138, 0.45));
  border-color: rgba(255, 213, 79, 0.25);
  box-shadow: var(--skin-inset);
}
.footer-btn .fb-icon { font-size: 1.4rem; line-height: 1; }
.footer-btn .fb-icon .ic { width: 1em; height: 1em; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.footer-btn .fb-label { opacity: 0.85; }

/* ---- Header denso com saldo grande ---- */
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--skin-bg-elevated);
  border: var(--skin-border-strong);
  border-radius: var(--skin-radius-pill);
  padding: 6px 12px 6px 8px;
  font-weight: 800;
  color: var(--accent-gold-bright);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: var(--skin-transition);
  box-shadow: var(--skin-shadow), var(--skin-inset);
}
.balance-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--skin-shadow-elevated), var(--skin-glow-hover);
}
.balance-pill .coin-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold-deep));
  color: #1a1a1a;
  font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(255, 213, 79, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.balance-pill .coin-icon .ic {
  width: 0.9em;
  height: 0.9em;
}
.balance-pill .plus-btn {
  margin-left: 2px;
  background: var(--accent-gold-bright);
  color: #1a1a1a;
  width: 18px; height: 18px;
  font-weight: 900;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Animação de saldo (bounce ao incrementar) ---- */
.coin-bump { animation: coinBump 0.55s ease-out; }
@keyframes coinBump {
  0% { transform: scale(1); color: var(--accent-gold-bright); }
  35% { transform: scale(1.25); color: #ffeb3b; text-shadow: 0 0 12px #ffeb3b; }
  100% { transform: scale(1); color: var(--accent-gold-bright); }
}

/* ---- Top jogadores (carrossel) ---- */
.top-players-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}
.top-players-strip::-webkit-scrollbar { display: none; }
.top-player-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 130px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 79, 0.12), transparent 45%),
    var(--skin-bg-surface);
  border: var(--skin-border);
  border-radius: var(--skin-radius-sm);
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  box-shadow: var(--skin-shadow), var(--skin-inset);
  transition: var(--skin-transition);
}
.top-player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 79, 0.42);
  box-shadow: var(--skin-shadow-elevated);
}
.top-player-card.is-podium-1 {
  border-color: var(--accent-gold-bright);
  box-shadow: var(--skin-shadow-gold);
}
.top-player-card.is-podium-2 { border-color: #c0c0c0; }
.top-player-card.is-podium-3 { border-color: #cd7f32; }
.top-player-card .tp-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: rgba(255, 213, 79, 0.12);
  border: var(--skin-border);
  font-size: 1.25rem;
  box-shadow: var(--skin-inset);
}
.top-player-card .tp-name {
  display: block;
  font-weight: 800;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-player-card .tp-wins {
  display: block;
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* ---- Container hero invisível em telas finas (mascote escalando) ---- */
@media (max-width: 380px) {
  .hero-title { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.82rem; }
  .panel { padding: 12px; border-radius: 16px; }
  .lobby-prime { padding: 7px; border-radius: 18px; }
  .me-card { gap: 9px; padding: 10px; border-radius: 14px; }
  .me-avatar { width: 48px; height: 48px; font-size: 1.45rem; }
  .me-nick { font-size: 0.95rem; }
  .balance-pill { padding: 5px 9px 5px 7px; font-size: 0.82rem; }
  .daily { padding: 7px 9px !important; font-size: 0.74rem; }
  .hero-kicker { font-size: 0.54rem; padding: 3px 8px; }
  .hero-badges { gap: 4px; }
  .hero-badges span { font-size: 0.54rem; padding: 3px 6px; }
  .promo-carousel { height: 82px; border-radius: 14px; }
  .promo-slide { gap: 10px; padding: 0 12px; }
  .promo-slide .promo-icon { font-size: 1.8rem; }
  .promo-slide .promo-text strong { font-size: 0.88rem; }
  .promo-slide .promo-text span { font-size: 0.72rem; }
  .promo-slide .promo-cta { padding: 5px 8px; font-size: 0.68rem; }
  .stakes { gap: 6px; }
  .chip { padding: 7px 11px; font-size: 0.78rem; }
  .lobby-mode-card { padding: 10px 8px; }
  .lobby-mode-card .mode-icon { font-size: 1.7rem; }
  .lobby-mode-card .mode-title { font-size: 0.85rem; }
  .lobby-mode-card .mode-sub { font-size: 0.66rem; }
  .premium-toggle { padding: 8px 9px; gap: 8px; }
  .premium-toggle .premium-label { font-size: 0.76rem; }
  .copinho-banner { gap: 9px; padding: 9px 10px; }
  .cop-card { width: 40px; height: 56px; }
  .cop-text { font-size: 0.76rem; }
  .lobby-footer { grid-template-columns: repeat(4, 1fr); }
  .footer-btn { padding: 7px 2px; }
  .footer-btn .fb-icon { font-size: 1.2rem; }
  .footer-btn .fb-label { font-size: 0.62rem; }
  .my-stats { gap: 6px; }
  .stat-box { padding: 7px 4px; font-size: 0.66rem; }
  .stat-box strong { font-size: 1rem; }
  .rooms-list { padding: 6px; border-radius: 14px; }
  .daily-calendar { gap: 5px; }
  .daily-day { padding: 6px 2px 5px; min-height: 70px; font-size: 0.7rem; }
}

/* Quando o usuário ativa "reduced motion" pelo OS, desliga animações grandes. */
@media (prefers-reduced-motion: reduce) {
  .me-card::before,
  .hero-pulse,
  .hero-art .mascot,
  .hero-glow,
  .hero-sparkles::before,
  .hero-sparkles::after,
  .promo-slide,
  .pulseGreen,
  .notif-badge.is-pulse {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Overlay "Conexão perdida" (estilo social casino) ===== */
.conn-lost {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(4, 9, 28, 0.55) 0%, rgba(2, 5, 18, 0.85) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
  animation: connFade 0.18s ease-out;
}
.conn-lost.hidden { display: none; }
@keyframes connFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.conn-lost-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 340px;
  padding: 22px 26px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 30, 70, 0.96) 0%, rgba(6, 12, 35, 0.96) 100%);
  border: 1.5px solid rgba(120, 170, 255, 0.45);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(120, 170, 255, 0.25);
  animation: connPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}
@keyframes connPop {
  0%   { transform: scale(0.85) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.conn-lost-mascot {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #6ec1ff, #1f63c0 65%, #0a2a5b);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 22px rgba(120, 170, 255, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.45);
  animation: connBob 2.4s ease-in-out infinite;
}
@keyframes connBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.conn-lost-mascot .conn-lost-face {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.conn-lost-mascot .conn-lost-bang {
  position: absolute;
  top: -6px;
  right: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffeb3b;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.05em;
  transform: rotate(8deg);
  animation: connBangFlash 1.2s ease-in-out infinite;
}
@keyframes connBangFlash {
  0%, 100% { opacity: 1; transform: rotate(8deg) translateY(0); }
  50%      { opacity: 0.55; transform: rotate(8deg) translateY(-2px); }
}
.conn-lost-title {
  font-size: 1.15rem;
  margin: 4px 0 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.conn-lost-sub {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
  color: #cfe1ff;
}
.conn-lost-retry {
  margin-top: 8px;
  min-width: 160px;
  padding: 10px 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.conn-lost-retry.is-loading {
  pointer-events: none;
  opacity: 0.7;
}
.conn-lost-retry.is-loading::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: connSpin 0.8s linear infinite;
  vertical-align: -2px;
}
@keyframes connSpin {
  to { transform: rotate(360deg); }
}
@media (max-width: 540px) {
  .conn-lost-card { padding: 18px 18px 20px; }
  .conn-lost-mascot { width: 80px; height: 80px; }
  .conn-lost-mascot .conn-lost-face { font-size: 2.6rem; }
}

/* ============================================================
   Emoji: ataques direcionados a um jogador
   (tubarão morde, martelo com trovão, arma com furos de bala…)
   ============================================================ */
.emoji-attack {
  position: fixed;
  z-index: 62;
  pointer-events: none;
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  will-change: transform, opacity;
}

/* Tubarão sai do mergulho e "engole" o alvo */
.emoji-shark { animation: emShark 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; transform-origin: center bottom; }
@keyframes emShark {
  0%   { transform: translateY(130px) scale(0.4) rotate(-8deg); opacity: 0; }
  35%  { transform: translateY(0) scale(1.8) rotate(5deg); opacity: 1; }
  55%  { transform: translateY(-6px) scale(1.45) rotate(-4deg); }
  70%  { transform: translateY(0) scale(1.9) rotate(3deg); }
  100% { transform: translateY(-34px) scale(0.7) rotate(0); opacity: 0; }
}
.emoji-splash { position: fixed; z-index: 61; pointer-events: none; font-size: 2rem; animation: emSplash 0.9s ease-out forwards; }
@keyframes emSplash {
  0%   { transform: scale(0.3); opacity: 0; }
  40%  { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1.9) translateY(-12px); opacity: 0; }
}

/* Martelo: clarão de tela + raio + trovão */
.emoji-thunder-flash {
  position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85), rgba(170, 195, 255, 0.25) 58%, transparent 74%);
  animation: emFlash 0.85s ease-out forwards;
}
@keyframes emFlash {
  0% { opacity: 0; } 8% { opacity: 1; } 18% { opacity: 0.15; }
  28% { opacity: 0.9; } 100% { opacity: 0; }
}
.emoji-bolt { font-size: 3.6rem; color: #ffe14d; animation: emBolt 0.85s steps(2, end) forwards; filter: drop-shadow(0 0 10px rgba(255, 225, 80, 0.9)); }
@keyframes emBolt {
  0%   { transform: translateY(-34px) scale(0.6); opacity: 0; }
  20%  { transform: translateY(0) scale(1.3); opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0; }
}
.emoji-hammer { animation: emHammer 0.7s ease-in forwards; transform-origin: 80% 20%; }
@keyframes emHammer {
  0%   { transform: rotate(-72deg) translateY(-20px); opacity: 0; }
  35%  { transform: rotate(12deg); opacity: 1; }
  50%  { transform: rotate(-10deg); }
  65%  { transform: rotate(6deg); }
  100% { transform: rotate(0); opacity: 0; }
}

/* Arma: furos de bala que surgem no alvo */
.bullet-hole {
  position: fixed; z-index: 62; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #0a0a0a 0 35%, #3a2a1a 36% 60%, rgba(120, 80, 40, 0.35) 61% 100%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), inset 0 0 3px #000;
  animation: emHole 1.4s ease-out forwards;
}
@keyframes emHole {
  0%   { transform: scale(0); opacity: 0; }
  12%  { transform: scale(1.4); opacity: 1; }
  25%  { transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Ovo estourando */
.emoji-egg-splat { animation: emEgg 1.3s ease-out forwards; }
@keyframes emEgg {
  0%   { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  25%  { transform: scale(1.6) rotate(8deg); opacity: 1; }
  45%  { transform: scale(1.3); }
  100% { transform: scale(1.4) translateY(10px); opacity: 0; }
}

/* Presente saltando + brilhos */
.emoji-gift { animation: emGift 1.1s ease-out forwards; }
@keyframes emGift {
  0%   { transform: translateY(-62px) scale(0.4); opacity: 0; }
  40%  { transform: translateY(0) scale(1.3); opacity: 1; }
  55%  { transform: translateY(-10px) scale(1.1); }
  70%  { transform: translateY(0) scale(1.25); }
  100% { transform: scale(1); opacity: 0; }
}
.emoji-sparkle { position: fixed; z-index: 62; pointer-events: none; font-size: 1.2rem; animation: emSpark 0.9s ease-out forwards; }
@keyframes emSpark {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(1); opacity: 0; }
}

/* Pétalas (rosa / coração) caindo */
.emoji-petal { position: fixed; z-index: 62; pointer-events: none; font-size: 1.6rem; animation: emPetal 1.4s ease-in forwards; }
@keyframes emPetal {
  0%   { transform: translateY(-30px) rotate(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(72px) rotate(40deg); opacity: 0; }
}

/* Galo / canecas — "pop" simples */
.emoji-pop { animation: emPop 1.1s ease-out forwards; }
@keyframes emPop {
  0%   { transform: scale(0.3); opacity: 0; }
  30%  { transform: scale(1.5); opacity: 1; }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1.3) translateY(-12px); opacity: 0; }
}

/* Reações no chip do alvo (tremor / ser engolido) */
.player-chip.emoji-hit-shake { animation: emShake 0.6s ease-in-out; }
@keyframes emShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px) rotate(-3deg); }
  30% { transform: translateX(6px) rotate(3deg); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
.player-chip.emoji-swallowed { animation: emSwallow 1.2s ease-in-out; }
@keyframes emSwallow {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.7) rotate(-6deg); filter: brightness(0.55); }
  50%  { transform: scale(0.45) rotate(6deg); }
  70%  { transform: scale(0.8); }
  100% { transform: scale(1); filter: none; }
}

/* ============================================================
   Tela de resultado da partida (Vitória / Derrota)
   ============================================================ */
.result-card {
  text-align: center;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}
.result-card.result-win  { background: linear-gradient(160deg, #3a2e08, #1c1530 62%); border: 1px solid rgba(255, 205, 80, 0.5); }
.result-card.result-lose { background: linear-gradient(160deg, #2a1030, #161126 62%); border: 1px solid rgba(150, 120, 200, 0.4); }
.result-trophy { margin: 0 auto 2px; }
.result-trophy-img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.result-title {
  font-size: 2.6rem; font-weight: 900; letter-spacing: 1px;
  margin: 0.05em 0 0.05em; text-transform: uppercase;
}
.result-win .result-title {
  background: linear-gradient(180deg, #ffe79a, #f6b21a 60%, #b9740b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 6px rgba(246, 178, 26, 0.25);
}
.result-lose .result-title {
  background: linear-gradient(180deg, #e6d8ff, #a98ad6 60%, #6f55a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-sub { opacity: 0.85; margin: 0 0 14px; font-weight: 700; }
.result-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.result-col { border-radius: 14px; padding: 10px 6px; min-height: 84px; }
.result-col-a { background: linear-gradient(180deg, rgba(255, 210, 90, 0.16), rgba(255, 210, 90, 0.04)); }
.result-col-b { background: linear-gradient(180deg, rgba(160, 130, 210, 0.18), rgba(160, 130, 210, 0.04)); }
.result-col-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 8px; font-weight: 800; }
.result-player { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; }
.result-player.is-me { background: rgba(255, 255, 255, 0.06); }
.result-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; overflow: hidden;
  background: rgba(0, 0, 0, 0.25); border: 2px solid rgba(255, 255, 255, 0.15);
}
.result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.result-nick { font-size: 0.85rem; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-coin { font-weight: 900; font-size: 0.95rem; padding: 2px 10px; border-radius: 999px; }
.result-coin.pos { color: #ffd95e; background: rgba(255, 200, 60, 0.14); }
.result-coin.neg { color: #c9a7ff; background: rgba(150, 120, 210, 0.16); }
.result-actions-mini { display: flex; gap: 6px; margin-top: 2px; }
.result-mini-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 0.9rem; line-height: 1; cursor: pointer;
}
.result-mini-btn:disabled { opacity: 0.5; cursor: default; }
.result-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result-invite { background: linear-gradient(180deg, #8a7be0, #5b49b8); color: #fff; }
.result-new { background: linear-gradient(180deg, #ffc94d, #e89b15); color: #3a2600; }
@media (max-width: 380px) {
  .result-title { font-size: 2rem; }
  .result-avatar { width: 44px; height: 44px; font-size: 1.4rem; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .result-trophy-img { width: 52px; height: 52px; }
  .result-title { font-size: 1.8rem; }
  .result-sub { margin-bottom: 8px; }
  .result-teams { margin-bottom: 8px; }
  .result-avatar { width: 42px; height: 42px; font-size: 1.3rem; }
  .result-nick { font-size: 0.78rem; }
}

/* ============================================================
   RETRATO: mesa VERTICAL + disposição em losango (igual ao app de
   referência). Parceiro em cima, oponentes nas laterais, você embaixo.
   Escopo só em portrait — o modo paisagem (max-height:600) fica intacto.
   ============================================================ */
@media (orientation: portrait) {
  /* --- Tela cheia durante a partida: some o cabeçalho e as margens do app,
     o painel do jogo ocupa 100% da tela (sem rolagem). --------------------- */
  #app:has(.game-panel:not(.hidden)) { max-width: 100%; padding: 0; }
  #app:has(.game-panel:not(.hidden)) > .top { display: none; }

  .game-panel {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    padding: 4px 6px 8px;
    gap: 4px;
    /* fundo lounge escuro: as bordas em volta da mesa parecem o ambiente. */
    background: radial-gradient(125% 80% at 50% 28%, #241a3a 0%, #160f28 58%, #0b0718 100%);
  }

  /* Placar compacto estilo "social casino" (igual ao exemplo): barra menor,
     placar grande mas enxuto, sala/mesa discretos. */
  .score-bar {
    flex: 0 0 auto;
    margin: 2px auto 0;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    max-width: 96vw;
  }
  .score-bar-side { padding: 2px 9px; gap: 5px; }
  .sb-team-label { font-size: 0.5rem; letter-spacing: 0.16em; }
  .sb-team-score { font-size: 1.25rem; }
  .score-bar-center { min-width: 116px; gap: 2px; padding: 1px 8px; }
  .sb-points-label { font-size: 0.5rem; letter-spacing: 0.24em; }
  .sb-tricks { gap: 6px; margin: 1px 0; }
  .trick-pill { width: 10px; height: 10px; }
  .sb-hand-row { font-size: 0.6rem; gap: 4px; }
  .score-bar-prize { top: -10px; right: 10px; font-size: 0.58rem; padding: 2px 8px; }
  .score-fly { top: -12px; right: -2px; font-size: 0.68rem; }
  .timer-row { flex: 0 0 auto; margin: 0; }
  #stakeRaiseBanner:not(.hidden),
  #elevenBanner:not(.hidden) { flex: 0 0 auto; margin: 2px auto; }

  /* A mesa cresce e ocupa todo o espaço que sobra, centralizada. */
  .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
    gap: 0;
  }
  /* FABs (falas/sinal/emoji/chat) descidos para o canto INFERIOR esquerdo,
     abaixo do oponente oeste e ao lado da sua área — liberam o topo da mesa. */
  .table-fab-col {
    position: absolute;
    top: auto;
    bottom: 6px;
    transform: none;
    justify-content: flex-end;
    gap: 7px;
    z-index: 6;
  }
  /* Emoji/chat no canto inferior esquerdo; falas/sinal no inferior direito. */
  .fab-col-left  { left: 4px;  right: auto; }
  .fab-col-right { right: 4px; left: auto; }
  .table-fab {
    width: 38px;
    height: 38px;
  }
  .table-fab .fab-icon { font-size: 1.02rem; }
  .table-fab .fab-lbl { display: none; }

  /* Mesa dourada vertical: dimensionada pela altura disponível, mantendo a
     proporção do asset; brilho dourado reforça a borda da mesa. */
  .table {
    background: url("img/table-portrait.png") center / 100% 100% no-repeat;
    aspect-ratio: 880 / 863;
  }
  .table-wrap > .table {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    max-width: 96vw;
    max-height: 100%;
    margin: 0 auto;
    filter:
      drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6))
      drop-shadow(0 0 12px rgba(247, 200, 90, 0.3));
  }

  /* Copinho ao fundo no centro da mesa (marca d'água atrás da vira/cartas). */
  .table-center::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44%;
    aspect-ratio: 1 / 1.4;
    transform: translate(-50%, -50%);
    background: url("img/copo.png") center / contain no-repeat;
    opacity: 0.18;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
    z-index: 0;
    pointer-events: none;
  }

  /* VIRA igual ao exemplo: carta menor com o maço (deck) inclinado atrás dela. */
  .vira-stack { transform: translate(-50%, -50%) scale(0.84); }
  .vira-deck  { transform: translate(-72%, -46%) rotate(-15deg); }
  .vira-deck-2 { transform: translate(-60%, -50%) rotate(-7deg); }
  .vira-box .lbl { font-size: 0.52rem; margin-bottom: 2px; }
  .manilha-lbl { font-size: 0.6rem; margin-top: 2px; }

  /* 1x1: você embaixo, oponente em cima (centralizados na mesa vertical). */
  .seat-north { top: 6%;  bottom: auto; left: 50%; transform: translate(-50%, -50%); }
  .seat-south { top: 94%; bottom: auto; left: 50%; transform: translate(-50%, -50%); }

  /* 2x2 em losango: norte (parceiro) topo · oeste esq. · leste dir. · sul (você) base. */
  .seats-4 .seat-north { top: 7%;  left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
  .seats-4 .seat-south { top: 94%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
  .seats-4 .seat-west  { top: 50%; left: 13%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
  .seats-4 .seat-east  { top: 50%; left: 87%; right: auto; bottom: auto; transform: translate(-50%, -50%); }

  /* Cartas jogadas: empurradas para junto de cada jogador (não amontoadas
     embaixo da vira). Norte sobe, sul desce, oeste/leste abrem para os lados. */
  .seats-4 .played-slot[data-pos="north"] { top: 20%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
  .seats-4 .played-slot[data-pos="south"] { top: 80%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
  .seats-4 .played-slot[data-pos="west"]  { top: 50%; left: 26%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
  .seats-4 .played-slot[data-pos="east"]  { top: 50%; left: 74%; right: auto; bottom: auto; transform: translate(-50%, -50%); }

  /* Rodapé compacto: mão + ações coladas embaixo, sem empurrar a mesa. */
  .my-hand-wrap { flex: 0 0 auto; margin: 0; }
  .bid-row { flex: 0 0 auto; margin-top: 2px; }
  .extra-actions { flex: 0 0 auto; }
  .extra-actions .ea-txt { display: none; }
  .kbd-hint { display: none; }
}

/* Telas portrait baixinhas: garante que mesa + mão caibam sem rolagem. */
@media (orientation: portrait) and (max-height: 720px) {
  .my-label { display: none; }
  .extra-actions { gap: 6px; }
}

/* ============================================================
   Efeitos "nível Golden": manilha, animações de entrada e brilho
   ============================================================ */

/* Pulso dourado na carta de manilha jogada (acompanha as partículas). */
.played-slot .card.manilha-pop {
  animation: manilhaPop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.2);
  z-index: 5;
}
.played-slot .card.manilha-pop::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 213, 79, 0.9), 0 0 22px 6px rgba(255, 196, 60, 0.7);
  animation: manilhaGlow 0.9s ease-out forwards;
}
@keyframes manilhaPop {
  0% { transform: scale(1); filter: brightness(1); }
  28% { transform: scale(1.28) rotate(-2deg); filter: brightness(1.5) saturate(1.3); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes manilhaGlow {
  0% { opacity: 0; transform: scale(0.7); }
  30% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* Animações de entrada das telas/painéis (lobby, jogo, resultado). */
@keyframes screenFadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.92) translateY(10px); }
  60% { opacity: 1; transform: scale(1.01) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes goldShimmer {
  0% { background-position: -160% 0; }
  100% { background-position: 260% 0; }
}

#lobby:not(.hidden),
#game:not(.hidden) {
  animation: screenFadeUp 0.34s ease-out both;
}
.modal:not(.hidden) > .modal-card,
.modal:not(.hidden) > .play-mode-shell,
.modal:not(.hidden) > .starter-card {
  animation: modalPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
}

/* Brilho dourado deslizante nos CTAs principais (entrar/jogar/comprar). */
.level-ticket .lt-enter,
.quick-start-btn,
.btn.primary.big,
.starter-buy {
  position: relative;
  overflow: hidden;
}
.level-ticket .lt-enter::after,
.quick-start-btn::after,
.btn.primary.big::after,
.starter-buy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: goldShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #lobby:not(.hidden),
  #game:not(.hidden),
  .modal:not(.hidden) > .modal-card,
  .modal:not(.hidden) > .play-mode-shell,
  .modal:not(.hidden) > .starter-card { animation: none; }
  .level-ticket .lt-enter::after,
  .quick-start-btn::after,
  .btn.primary.big::after,
  .starter-buy::after { animation: none; display: none; }
  .played-slot .card.manilha-pop { animation: none; }
}
