/* ============================================================
   GAMEHUB — SKIN BRUNO 🃏🔥
   Tema do site inteiro replicado do CSS artístico do Bruno
   (games/bruno/public/style.css), conforme diretriz §3.2 do GDD:
   fundo radial laranja→vermelho→escuro, painéis #e74206 com borda
   e sombra chunky #a30000, botões pill com gradiente vermelho e
   hover branco+glow laranja #ff811a, inputs escuros #61140A,
   títulos brancos com text-shadow vermelho, destaque #ffbb00.
   Carregada por cima do design system. O jogo em si não usa isto.
   ============================================================ */

:root {
  /* Paleta re-mapeada para os tokens globais */
  --bg-deepest:   #290702;               /* borda do gradiente do Bruno   */
  --bg-primary:   #61140A;               /* input escuro do Bruno         */
  --bg-secondary: #4a0f08;               /* input focus do Bruno          */
  --bg-elevated:  #7a2210;
  --accent-cyan:   #ffbb00;              /* amarelo .mode-info do Bruno   */
  --accent-purple: #f1c40f;              /* amarelo erro/aviso do Bruno   */
  --accent-pink:   #ff811a;              /* glow laranja do hover         */
  --text-bright:  #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.75);

  --font-ui: 'Roboto', sans-serif;       /* fonte do Bruno                */

  --bruno-panel:  #e74206;               /* painel principal              */
  --bruno-under:  #a30000;               /* sombra/borda chunky           */
  --bruno-grad:   linear-gradient(45deg, #d71212 10px, #e00b0b); /* botão */
  --bruno-glow:   0 0 15px #ff811a;

  --shadow-chunky:      0 6px 0 0 var(--bruno-under);
  --shadow-chunky-cyan: 0 6px 0 0 var(--bruno-under);
  --glow-cyan:      var(--bruno-glow);
  --glow-cyan-soft: 0 0 8px rgba(255, 129, 26, 0.45);
  --radius-btn: 50px;                    /* pill em tudo, como no Bruno   */
  --radius-card: 22px;
  --radius-modal: 30px;
}

/* ---------- Fundo: o gradiente exato do Bruno ---------- */
body {
  background: radial-gradient(circle at center, #ffa126 5%, #960a02, #290702 100%);
  background-attachment: fixed;
  font-family: var(--font-ui);
  color: #fff;
}

h1, h2, h3 { color: #fff; }

/* ---------- Topbar: faixa escura translúcida sobre o gradiente ---------- */
.topbar {
  background: rgba(41, 7, 2, 0.88);
  backdrop-filter: blur(4px);
  border-bottom: 4px solid var(--bruno-under);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}
.logo {
  font-family: 'Roboto', sans-serif;   /* logo estilo título do Bruno */
  font-weight: 900;
  font-size: 15px;                      /* ESQUARTEJAMENTO é comprido! */
  color: #fff;
  text-shadow: 0 2px var(--bruno-under);
  letter-spacing: 0.5px;
}
@media (max-width: 767px) { .logo { font-size: 12px; } }
.logo::after {
  content: 'beta';
  position: absolute; top: -6px; right: -30px;
  font-size: 10px; font-weight: 900; -webkit-text-stroke: 0;
  color: #290702; background: #ffbb00;
  padding: 1px 7px; border-radius: 50px; transform: rotate(8deg);
  text-shadow: none; box-shadow: 0 2px 0 var(--bruno-under);
}
.icon-btn { color: rgba(255, 255, 255, 0.75); border-radius: 50px; }
.icon-btn:hover, .icon-btn.active { color: #ffbb00; background: rgba(0, 0, 0, 0.3); }
.wallet {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 187, 0, 0.35);
  color: #fff;
}
.wallet b { color: #ffbb00; }
.wallet .gems { color: #ffd3f2; }

/* ---------- Painéis/cards: vermelho Bruno com borda+sombra chunky ---------- */
.card, .notif-panel, .search-results {
  background: var(--bruno-panel);
  border: 5px solid var(--bruno-under);
  box-shadow: 0 8px 0 0 var(--bruno-under);
  border-radius: var(--radius-card);
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: scale(1.015);
  background: var(--bruno-panel);
  box-shadow: 0 8px 0 2px var(--bruno-under), var(--bruno-glow);
}
/* Superfícies de leitura densa (feed, listas): escuras como o room-list do Bruno */
.card[style*="padding:0"], .dm-list, .dm-thread {
  background: rgba(0, 0, 0, 0.35);
  border: 5px solid var(--bruno-under);
}
.post:hover { background: rgba(0, 0, 0, 0.2); }
.post, .match-row, .lb-row, .notif-row { border-bottom: 2px solid rgba(163, 0, 0, 0.5); }

/* ---------- Botões: o botão exato do Bruno ---------- */
.btn {
  background: var(--bruno-grad);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  border-radius: 150px;
  border: 4px solid var(--bruno-under);
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn:hover {
  transform: scale(1.05);
  letter-spacing: 0px;
  border-color: #ffffff;
  box-shadow: var(--bruno-glow) !important;
}
.btn:active { transform: scale(0.95); box-shadow: 0 2px 10px rgba(255, 94, 98, 0.4) !important; }
.btn-primary { background: var(--bruno-grad); color: #fff; }
.btn-secondary {
  background: linear-gradient(45deg, #7f8c8d, #95a5a6);
  color: #fff;
  border-color: #636e72;
}
.btn-secondary:hover { border-color: #fff; box-shadow: 0 0 15px #bdc3c7 !important; }
.btn-ghost { background: rgba(0, 0, 0, 0.25); border-color: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); box-shadow: none !important; }
.btn-danger { background: var(--bruno-grad); border-color: var(--bruno-under); }
.btn-pulse { animation: none; }

/* ---------- Inputs: escuros com sombra chunky, como o Bruno ---------- */
.input, select.input, textarea.input {
  background: #61140A;
  border: none;
  border-radius: 50px;
  box-shadow: 0 5px 0 0 var(--bruno-under);
  color: #fff;
  font-weight: bold;
}
textarea.input { border-radius: 20px; }
.input:focus {
  background: #4a0f08;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 5px 0 0 var(--bruno-under);
  letter-spacing: 0.5px;
}
.input::placeholder { color: rgba(255, 255, 255, 0.7); }
.field-hint { color: rgba(255, 255, 255, 0.75); }
.field-hint.ok { color: #b6ff9e; }
.field-hint.bad { color: #f1c40f; }   /* erro amarelo, como o login do Bruno */

/* ---------- Modais: painel laranja do Bruno (#ee8b21) ---------- */
.modal-backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: none; }
.modal {
  background: #ee8b21;
  border: 8px solid var(--bruno-under);
  border-top: 8px solid var(--bruno-under);
  box-shadow: 0 10px 0 var(--bruno-under);
  border-radius: 30px;
}
.modal h2, .modal h3 { color: #fff; text-shadow: 0 4px var(--bruno-under); }

/* ---------- Títulos de seção: efeito do título do Bruno ---------- */
.section-title h2 {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 4px var(--bruno-under);
  background: none;
  transform: none;
  padding: 0;
}

/* ---------- Chips/abas ---------- */
.chip {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 187, 0, 0.3);
  color: #ffbb00;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  box-shadow: none;
}
.chip:hover { border-color: #ffbb00; color: #ffbb00; }
.chip.active {
  background: #ffbb00; color: #290702;
  border-color: #ffbb00; transform: none;
  box-shadow: 0 3px 0 var(--bruno-under);
}
.tabs { border-bottom: 3px solid var(--bruno-under); }
.tab { color: rgba(255, 255, 255, 0.7); text-transform: uppercase; font-weight: 800; }
.tab.active { color: #ffbb00; border-bottom-color: #ffbb00; text-shadow: none; }

/* ---------- Badges: etiquetas amarelas .mode-info ---------- */
.badge {
  background: rgba(0, 0, 0, 0.3);
  color: #ffbb00;
  border: 2px solid rgba(255, 187, 0, 0.3);
  box-shadow: none; transform: none;
  text-transform: uppercase;
}
.badge-new { background: #ffbb00; color: #290702; border-color: #ffbb00; }
.badge-hot { background: var(--bruno-grad); color: #fff; border-color: var(--bruno-under); box-shadow: var(--glow-cyan-soft); }
.badge-event, .badge-beta { background: #ee8b21; color: #fff; border-color: var(--bruno-under); }

/* ---------- Avatar: aro branco/amarelo estilo foco do Bruno ---------- */
.avatar {
  background: #61140A;
  color: #ffbb00;
  box-shadow: 0 0 0 3px #ffbb00, 0 4px 0 var(--bruno-under);
  position: relative;
}
/* designs da comunidade: avatar de imagem + moldura PNG por cima */
.avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
}
.avatar-frame-img {
  position: absolute; inset: -18%;
  width: 136%; height: 136%;
  pointer-events: none; z-index: 2;
}

/* 🎨 upload de design da comunidade */
.design-drop {
  border: 3px dashed #ffbb00; border-radius: 14px;
  background: #61140A;
  padding: 26px 14px; text-align: center; cursor: pointer;
  color: #ffd9a0; font-size: .9rem;
  transition: background .15s, transform .12s;
}
.design-drop:hover, .design-drop.over {
  background: #7a1a0c; transform: scale(1.01);
  border-color: #fff;
}
.design-preview { text-align: left; }

/* ---------- Toasts / popup de conquista ---------- */
.toast, .ach-popup {
  background: var(--bruno-panel);
  border: 5px solid var(--bruno-under);
  border-left: 5px solid var(--bruno-under);
  box-shadow: 0 6px 0 var(--bruno-under);
  border-radius: 20px;
  color: #fff; font-weight: bold;
}
.toast-success { border-color: #2ecc71; }
.toast-error { border-color: #f1c40f; }
.ach-popup { border-color: var(--rarity, #ffbb00); }
.ach-popup .ach-title { color: #ffbb00; }

/* ---------- Hub ---------- */
.game-card { background: var(--bruno-panel); }
.game-card .info b { text-shadow: 0 2px var(--bruno-under); }
.game-card .cat { color: rgba(255, 255, 255, 0.8); }
.game-card .players { color: #b6ff9e; }
.featured-card .overlay { background: linear-gradient(180deg, transparent 30%, rgba(41, 7, 2, 0.95)); }
.stat-pill { background: rgba(0, 0, 0, 0.3); border-radius: 16px; }
.stat-pill b { color: #ffbb00; }
.room-row { background: rgba(0, 0, 0, 0.3); border-radius: 16px; }

/* ---------- Feed ---------- */
.composer.card { background: var(--bruno-panel); }
.char-count { color: rgba(255, 255, 255, 0.7); }
.char-count.over { color: #f1c40f; }
.post-actions { color: rgba(255, 255, 255, 0.7); }
.post-actions button:hover { color: #ffbb00; background: rgba(0, 0, 0, 0.25); }
.post-actions button.on { color: #f1c40f; }
.post-actions button.on-repost { color: #b6ff9e; }
.post .meta-card { background: rgba(0, 0, 0, 0.3); border-color: var(--bruno-under); }
a { color: #ffbb00; }
a:hover { text-shadow: 0 0 8px rgba(255, 187, 0, 0.6); }
.user-link b { color: #fff; }

/* ---------- Perfil ---------- */
.profile-banner { background: linear-gradient(120deg, #960a02, #ffa126); border: 5px solid var(--bruno-under); }
.profile-head .avatar { border: 4px solid var(--bruno-under); }
.ach-card { background: rgba(0, 0, 0, 0.3); }
.result-win { color: #b6ff9e; }
.result-loss, .result-abandoned { color: #f1c40f; }

/* ---------- DMs ---------- */
.dm-bubble { background: #61140A; }
.dm-bubble.mine { background: var(--bruno-grad); color: #fff; }

/* ---------- Loja / torneios / ranking ---------- */
.store-card { background: rgba(0, 0, 0, 0.3); }
.discount-tag { background: #ffbb00; color: #290702; }
.bracket-match { background: rgba(0, 0, 0, 0.35); border-left-color: var(--bruno-under); }
.bracket-match .p.winner { background: rgba(46, 204, 113, 0.25); color: #b6ff9e; }
.lb-value { color: #ffbb00; }
.lb-row:nth-child(1) .lb-rank { color: #ffbb00; text-shadow: 0 0 10px rgba(255, 187, 0, 0.7); }

/* ---------- Onboarding: painel de boas-vindas do Bruno ---------- */
.welcome .logo-big {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 9vw, 84px);
  color: #fff;
  -webkit-text-stroke: 2px #e74206;
  text-shadow: 0 10px var(--bruno-under);
  background: none; border: none; box-shadow: none;
  transform: none; padding: 0;
  animation: none;
}
.welcome::after { content: none; }
.welcome > div > h2 { text-shadow: 0 4px var(--bruno-under); }
.welcome-actions .btn { font-size: 1.3rem; padding: 16px 40px; }

/* ---------- Ticker e rodapé (estrutura + tema) ---------- */
.homemade-ticker {
  overflow: hidden; white-space: nowrap;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid var(--bruno-under);
  color: #ffbb00; font-weight: bold;
  font-size: 0.8rem; padding: 4px 0;
}
.homemade-ticker span {
  display: inline-block; padding-left: 100%;
  animation: tickerScroll 28s linear infinite;
}
@keyframes tickerScroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .homemade-ticker span { animation: none; padding-left: 8px; } }
.homemade-footer {
  text-align: center; color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem; padding: 24px 0 12px; opacity: 0.85;
}
.homemade-footer b { color: #ffbb00; }
.bottom-nav {
  background: rgba(41, 7, 2, 0.94);
  border-top: 4px solid var(--bruno-under);
}
.bottom-nav a.active { color: #ffbb00; text-shadow: 0 0 8px rgba(255, 187, 0, 0.6); }

/* ---------- Bordas de raridade seguem visíveis sobre vermelho ---------- */
.rarity-common    { --rarity: #cfcfcf; }
[class*="rarity-"] { background: rgba(0, 0, 0, 0.3); }

/* ---------- Guest banner ---------- */
.guest-banner {
  background: var(--bruno-panel);
  border: 5px solid var(--bruno-under);
  box-shadow: 0 6px 0 var(--bruno-under);
  font-weight: bold;
}

/* ---------- Emojis-imagem e ícones SVG (sem emoji Unicode) ---------- */
.emo {
  display: inline-block;
  height: 1.35em; width: auto;
  vertical-align: -0.3em;
  user-select: none;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25));
}
.emo-lg { height: 2.2em; vertical-align: -0.7em; }
.emo-xl { height: 44px; vertical-align: middle; }
.emo-hero { height: 90px; }
.icon {
  width: 1.25em; height: 1.25em;
  vertical-align: -0.25em;
  display: inline-block;
}
.icon-coin, .icon-gem { vertical-align: -0.3em; }
.post-actions .emo { filter: grayscale(1) drop-shadow(0 2px 0 rgba(0,0,0,0.25)); }
.post-actions button.on .emo, .post-actions button.on-repost .emo { filter: none; }

/* Botão de entrar no Bruno com a foto do BrUno */
.bruno-play-img {
  height: 40px; width: 40px;
  object-fit: cover; object-position: top;
  border-radius: 50%;
  border: 2px solid #a30000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

/* ---------- Esquartejamento+ (card na loja) ---------- */
.plus-card {
  background: linear-gradient(120deg, #4a0f08, #8a0000, #e74206);
  border: 4px solid #ffbb00;
  border-radius: 18px;
  box-shadow: 0 6px 0 #a35a00, 0 0 24px rgba(255,187,0,.35);
  padding: 18px 22px;
  margin: 8px 0 20px;
  text-align: center;
}
.plus-card p { margin: 8px 0 12px; }
.plus-card ul { display: inline-block; margin: 0; }
.plus-badge {
  display: inline-block; font-weight: 900; letter-spacing: 1px;
  color: #290702; background: #ffbb00; padding: 4px 16px; border-radius: 50px;
  box-shadow: 0 3px 0 #a35a00; animation: glowPulse 2s infinite;
  font-size: .95rem;
}
/* selo Plus ao lado do nick no perfil/topbar */
.plus-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .7rem; font-weight: 900; color: #290702;
  background: linear-gradient(90deg, #ffbb00, #ff811a);
  padding: 1px 8px; border-radius: 50px; vertical-align: middle;
  box-shadow: 0 2px 0 #a35a00;
}

/* ---------- Hub: evento de fds, esquartejado do dia, missões ---------- */
.weekend-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, #8a0000, #e74206, #8a0000);
  border: 3px solid #ffbb00; border-radius: 14px; padding: 10px 16px;
  margin-bottom: 14px; color: #fff; box-shadow: 0 4px 0 #a35a00, 0 0 18px rgba(255,187,0,.35);
  animation: glowPulse 2.2s infinite;
}
.weekend-banner b { color: #ffbb00; letter-spacing: 1px; }

/* 🎬 modo cinema: some tudo, fica só o palco do jogo */
.cinema-mode .topbar, .cinema-mode .homemade-ticker, .cinema-mode .sidebar,
.cinema-mode .homemade-footer, .cinema-mode .bottom-nav, .cinema-mode .ad-rail,
.cinema-mode .section-title, .cinema-mode #spec-cheers + p { display: none !important; }
.cinema-mode .layout { display: block; }
.cinema-mode main { max-width: 100vw; padding: 8px; }
.cinema-mode #spec-stage { min-height: 78vh; }

/* 📣 arquibancada: emoji subindo da mesa */
@keyframes ghCheerFloat {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  15% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { transform: translateY(-140px) scale(1); opacity: 0; }
}

/* 🎪 faixa compacta da home → Central do Esquartejamento */
.central-strip {
  display: flex; align-items: center; gap: 12px;
  background: var(--bruno-panel);
  border: 3px solid var(--bruno-under); border-radius: 14px;
  box-shadow: 0 4px 0 var(--bruno-under);
  padding: 8px 14px; margin-bottom: 14px;
  color: #fff; text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.central-strip:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bruno-under), 0 0 14px rgba(255, 129, 26, .35); }
.central-icon { font-size: 1.6rem; }
.central-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.central-text b { color: #ffbb00; letter-spacing: 1px; font-size: .92rem; }
.central-text .text-muted { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.esquartejado-card {
  background: linear-gradient(160deg, #3d0d06, #290702);
  border: 3px solid #a30000; border-radius: 14px; overflow: hidden;
  margin-bottom: 14px; box-shadow: 0 4px 0 #a30000;
}
.esq-header {
  background: #a30000; color: #ffd9c4; font-weight: 900; letter-spacing: 2px;
  font-size: .8rem; padding: 5px 14px;
}
.esq-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #ffd9c4; }

.missions-card {
  background: linear-gradient(160deg, #61140a, #3d0d06);
  border: 3px solid #a30000; border-radius: 14px; padding: 12px 16px;
  margin-bottom: 14px; box-shadow: 0 4px 0 #a30000;
}
.missions-title { font-weight: 900; color: #ffbb00; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.streak-chip {
  font-weight: 700; font-size: .75rem; color: #ffd9c4;
  background: rgba(0,0,0,.35); border-radius: 50px; padding: 3px 12px; margin-left: auto;
}
.mission-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; color: #ffd9c4; }
.mission-row.done { opacity: .65; }
.mission-name { flex: 0 0 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mission-bar { flex: 1; height: 10px; background: rgba(0,0,0,.4); border-radius: 50px; overflow: hidden; }
.mission-fill { height: 100%; background: linear-gradient(90deg, #ffbb00, #ff811a); border-radius: 50px; transition: width .4s; }
.mission-reward { font-size: .72rem; white-space: nowrap; opacity: .85; }
.missions-locked { opacity: .85; }

/* título equipado no perfil */
.title-tag {
  display: inline-block; font-size: .72rem; font-weight: 900; color: #ffbb00;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,187,0,.4);
  padding: 1px 10px; border-radius: 50px; vertical-align: middle; letter-spacing: .5px;
}
/* ao vivo agora */
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b;
  box-shadow: 0 0 8px #ff3b3b; animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

/* quote-post */
.quote-box {
  margin-top: 8px; padding: 8px 12px; border: 2px solid rgba(255,187,0,.35);
  border-radius: 12px; background: rgba(0,0,0,.25);
}
.quote-box:hover { border-color: #ffbb00; }

/* álbum */
.sticker-missing { opacity: .35; filter: grayscale(1); }
.record-card.sticker[data-dupe] { cursor: pointer; border-color: #ffbb00; }

/* mural de recordes */
.records-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.record-card {
  background: linear-gradient(160deg, #61140a, #3d0d06);
  border: 3px solid #a30000; border-radius: 14px; padding: 16px 12px;
  box-shadow: 0 4px 0 #a30000; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.record-icon { font-size: 2rem; }
.record-name { color: #ffd9c4; font-size: .85rem; }
.record-value { color: #ffbb00; font-weight: 900; font-size: 1.15rem; }
.record-holder { display: inline-flex; align-items: center; gap: 6px; color: #37DCF2; text-decoration: none; font-size: .8rem; }

/* clãs + ranked */
.clan-tag { color: #37DCF2; font-weight: 900; text-decoration: none; }
.clan-tag:hover { text-shadow: 0 0 10px #37DCF2; }
.clan-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
@media (max-width: 800px) { .clan-layout { grid-template-columns: 1fr; } }
.clan-msgs {
  max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px; font-size: .85rem;
}
.clan-msg b { color: #ffbb00; }
.ranked-me {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(160deg, #61140a, #3d0d06);
  border: 3px solid #ffbb00; border-radius: 14px; padding: 10px 16px;
  margin-bottom: 12px; box-shadow: 0 4px 0 #a35a00;
}
.ranked-league { font-weight: 900; font-size: 1.05rem; color: #ffbb00; }

.title-chip.locked { opacity: .45; cursor: not-allowed; }
.title-chip.unlocked { border-color: #ffbb00; cursor: pointer; }
.title-chip.equipped { background: linear-gradient(90deg, #ffbb00, #ff811a); color: #290702; font-weight: 900; }
.rivalry-line {
  background: rgba(0,0,0,.3); border: 2px dashed rgba(255,187,0,.35); border-radius: 12px;
  padding: 8px 14px; margin-top: 8px; font-size: .9rem; color: #ffd9c4;
}

/* enquetes */
.poll-box { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.poll-opt {
  position: relative; border: 2px solid #a30000; border-radius: 10px;
  padding: 7px 12px; cursor: pointer; overflow: hidden; font-size: .88rem;
  background: rgba(0,0,0,.25); transition: border-color .15s;
}
.poll-opt:hover { border-color: #ffbb00; }
.poll-opt .poll-fill {
  position: absolute; inset: 0; width: 0; background: rgba(255, 129, 26, .3); z-index: 0;
  transition: width .5s;
}
.poll-opt > span { position: relative; z-index: 1; }
.poll-opt.voted { border-color: #ffbb00; }
.poll-opt.closed { cursor: default; }
.poll-total { font-size: .72rem; color: var(--text-muted); }

/* ---------- Player de Replay (Bruno reboot) ---------- */
.replay-box { margin-top: 10px; }
.rp-table {
  position: relative;
  background: radial-gradient(ellipse at center, #7a1a08 0%, #4a0f05 70%, #290702 100%);
  border: 3px solid #a30000; border-radius: 14px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 4px 0 #a30000;
  min-height: 220px; padding: 12px; overflow: hidden;
}
.rp-players { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rp-player {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35); border: 2px solid var(--pc, #e74206);
  border-radius: 50px; padding: 3px 10px; font-size: .75rem; color: #ffd9c4;
  transition: transform .2s, box-shadow .2s;
}
.rp-player.rp-turn { transform: scale(1.08); box-shadow: 0 0 12px var(--pc, #ffbb00); background: rgba(255,187,0,.15); }
.rp-player.rp-out { opacity: .4; text-decoration: line-through; }
.rp-pname { font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-uno { background: #ffbb00; color: #290702; font-weight: 900; font-size: .65rem; padding: 0 6px; border-radius: 50px; animation: glowPulse 1s infinite; }
.rp-center { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 10px; }
.rp-card {
  width: 44px; height: 62px; border-radius: 8px; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,.5);
}
.rp-red { background: #d32f2f; } .rp-blue { background: #1976d2; }
.rp-green { background: #388e3c; } .rp-yellow { background: #f9a825; color: #290702; }
.rp-wild { background: conic-gradient(#d32f2f 0 25%, #f9a825 0 50%, #388e3c 0 75%, #1976d2 0); }
.rp-card-back { background: repeating-linear-gradient(45deg, #290702, #290702 6px, #61140a 6px, #61140a 12px); }
.rp-discard { filter: drop-shadow(0 0 10px var(--glow, transparent)); transition: filter .3s; }
.rp-discard.rp-pop .rp-card { animation: rpPop .35s ease-out; }
@keyframes rpPop { 0% { transform: scale(1.4) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }
.rp-dir { font-size: 1.6rem; color: #ffbb00; transition: transform .4s; }
.rp-dir.rp-spin { transform: rotate(360deg) scale(1.4); }
.rp-fly {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  transform: translate(calc(var(--x0) - 22px), calc(var(--y0) - 31px)) scale(.7);
  animation: rpFly .45s ease-in forwards;
}
@keyframes rpFly {
  to { transform: translate(calc(var(--x1) - 22px), calc(var(--y1) - 31px)) scale(1) rotate(360deg); }
}
.rp-ripple {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px;
  border-radius: 50%; opacity: .5; pointer-events: none; z-index: 2;
  transform: translate(-50%, -50%);
  animation: rpRipple .6s ease-out forwards;
}
@keyframes rpRipple { to { width: 500px; height: 500px; opacity: 0; } }
.rp-banner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(41,7,2,.75); font-size: 1.3rem; color: #ffbb00; z-index: 6;
  animation: rpBanner .5s ease-out;
}
@keyframes rpBanner { from { transform: scale(1.6); opacity: 0; } }
.rp-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rp-controls .rp-seek { flex: 1; accent-color: #ffbb00; }
.rp-controls .btn { padding: 4px 12px; font-size: .8rem; }
.rp-time { font-size: .72rem; min-width: 34px; }

/* ---------- Loja de Diamantes ---------- */
.gem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.gem-pack {
  position: relative;
  background: linear-gradient(160deg, #61140a, #3d0d06);
  border: 3px solid #a30000;
  border-radius: 16px;
  box-shadow: 0 5px 0 #a30000;
  padding: 22px 14px 16px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.gem-pack:hover { transform: translateY(-4px); box-shadow: 0 9px 0 #a30000, 0 0 18px rgba(255, 129, 26, .35); }
.gem-pack-best {
  border-color: #ffbb00;
  box-shadow: 0 5px 0 #a35a00, 0 0 22px rgba(255, 187, 0, .35);
  background: linear-gradient(160deg, #6b3305, #3d0d06);
}
.gem-pack-best:hover { box-shadow: 0 9px 0 #a35a00, 0 0 26px rgba(255, 187, 0, .5); }
.gem-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #ffbb00; color: #290702; font-weight: 900; font-size: .68rem;
  padding: 2px 12px; border-radius: 50px; white-space: nowrap;
  box-shadow: 0 2px 0 #a35a00; letter-spacing: .5px;
}
.gem-tag-bonus { background: #37DCF2; box-shadow: 0 2px 0 #1a7f91; }
.gem-pack-icon svg { width: 44px; height: 44px; filter: drop-shadow(0 0 8px rgba(55, 220, 242, .6)); animation: gemFloat 2.4s ease-in-out infinite; }
.gem-pack-amount { font-size: 1.5rem; font-weight: 900; color: #ffbb00; margin-top: 4px; }
.gem-pack-label { font-size: .75rem; color: #ffd9c4; opacity: .8; margin-bottom: 12px; }
.gem-pack .gem-buy { width: 100%; }
@keyframes gemFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Rails de anúncio (áreas azuis das telas) ---------- */
.ad-rail {
  position: fixed; top: 68px; bottom: 12px; width: 200px; z-index: 40;
  display: flex; align-items: stretch;
}
.ad-rail-left { left: 8px; }
.ad-rail-right { right: 8px; }
@media (min-width: 1600px) { .ad-rail { width: 260px; } }
.ad-slot {
  flex: 1;
  border: 3px solid var(--bruno-under);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 6px 0 var(--bruno-under), inset 0 0 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
}
.ad-inner { flex: 1; display: flex; align-items: center; justify-content: center; }
.ad-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255, 255, 255, 0.4); text-align: center; padding: 20px;
}
.ad-ph-badge {
  font-weight: 900; font-size: 0.9rem; letter-spacing: 1px; line-height: 1.4;
  color: #ffbb00; opacity: 0.55;
  border: 2px dashed rgba(255, 187, 0, 0.4); border-radius: 12px; padding: 12px 18px;
}
.ad-ph-hint { font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
/* empurra o conteúdo pra não ficar atrás dos rails em telas largas */
body.has-ad-rails .layout { max-width: 1180px; }
@media (min-width: 1600px) { body.has-ad-rails .layout { max-width: 1320px; } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar-track { background: #290702; }
::-webkit-scrollbar-thumb { background: var(--bruno-under); }
::-webkit-scrollbar-thumb:hover { background: #ffbb00; }

/* ---------- Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.25) 25%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.25) 75%);
  background-size: 200% 100%;
}

/* 📈 nível de conta colado no nick (rodada 9) */
.lvl-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 5px;
  background: linear-gradient(180deg, #ffbb00, #ff811a); color: #290702;
  border: 1px solid #a35a00; border-radius: 9px;
  font-size: .62rem; font-weight: 900; vertical-align: middle;
  box-shadow: 0 1px 0 #a35a00;
}
/* 📈 barra de XP no perfil */
.xp-bar { height: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,187,0,.35); border-radius: 6px; overflow: hidden; }
.xp-bar > div { height: 100%; background: linear-gradient(90deg, #ffbb00, #ff811a); transition: width .4s ease; }
/* 🥊 placar de rixa no perfil */
.rixa-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(215,18,18,.12); border: 2px solid #d71212; border-radius: 12px;
  padding: 8px 12px; margin: 6px 0; font-size: .85rem; font-weight: 700;
}
.rixa-line .rixa-score { font-weight: 900; color: #ffbb00; font-size: 1rem; }
/* 🎯 chips de façanha da semana */
.feat-chip {
  display: inline-flex; gap: 4px; align-items: center;
  background: rgba(255,187,0,.12); border: 1px solid #ffbb00; border-radius: 50px;
  color: #ffbb00; padding: 3px 10px; font-size: .72rem; font-weight: 800;
}
/* 🌪️ badge turbo nas salas */
.turbo-badge { background: #7b1fa2; color: #fff; border-radius: 50px; padding: 2px 8px; font-size: .68rem; font-weight: 900; }
