/* ============================================================
   css/style.css — Adivinha Quem É? (v1.1 — visual renovado)
   A cor de destaque (--gold/--blue/--glow) muda por universo via JS.
   ============================================================ */

:root {
  --bg: #070a12;
  --bg-2: #0d1220;
  --surface: rgba(18, 24, 40, 0.72);
  --surface-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --gold: #c8aa6e;
  --gold-soft: #e0c489;
  --blue: #0ac8b9;
  --glow: rgba(200, 170, 110, 0.10);
  --text: #eef0f4;
  --muted: #8f98ad;
  --danger: #ff5c6c;
  --success: #3ee08f;
  --warn: #ffb547;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Black", "Arial Black", var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: linear-gradient(180deg, #0a0f1d 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; border-radius: 8px; }
a { color: var(--gold-soft); }

/* ===== Fundo ===== */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
    radial-gradient(800px 500px at 100% 20%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(90, 70, 200, 0.14), transparent 60%);
  transition: background 0.6s ease;
}
.bg-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
}
.particle {
  position: fixed; bottom: -10px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 0 8px var(--gold);
  animation: particleRise linear infinite; pointer-events: none;
}
@keyframes particleRise {
  from { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.7; }
  to { transform: translateY(-110vh); opacity: 0; }
}

.container {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; padding: 14px 18px 48px;
}

/* ===== Topbar ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 10px; z-index: 30;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-logo {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 19px; color: #0b0e17; border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--blue));
  box-shadow: 0 0 18px var(--glow);
}
.topbar-title {
  font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

.profile-area { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 12px 4px 4px;
  cursor: pointer; color: var(--text); font-weight: 700; font-size: 13px; font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.profile-btn:hover { border-color: var(--gold); background: var(--glow); }
.profile-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #0b0e17; font-weight: 900; font-size: 13px;
}
.profile-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-caret { font-size: 10px; opacity: 0.6; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: #10162a; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.18s ease; z-index: 40;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: none; }
.profile-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.profile-item:hover { background: var(--glow); }
.profile-signout { color: var(--danger); }
.profile-divider { height: 1px; background: var(--line); margin: 4px 6px; }

/* ===== Seletor de universos ===== */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.tab {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; font-family: inherit;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.tab:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.tab.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, transparent), var(--surface));
  box-shadow: 0 8px 30px var(--glow), inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent);
}
.tab-icon {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 22px; border-radius: 12px; background: var(--surface-2);
}
.tab-text { display: flex; flex-direction: column; min-width: 0; }
.tab-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-meta { font-size: 11px; color: var(--muted); font-weight: 600; }
.tab.active .tab-meta { color: var(--gold-soft); }

/* ===== Telas ===== */
.screen { animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp 0.35s ease; }

/* ===== Hero ===== */
.hero { display: flex; align-items: center; gap: 16px; padding: 4px 2px 18px; }
.logo-badge {
  width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 34px; color: #0b0e17; border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--blue));
  box-shadow: 0 10px 40px var(--glow); animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
.title {
  font-family: var(--display); font-size: clamp(28px, 5vw, 42px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.03em;
}
.title span {
  background: linear-gradient(90deg, var(--gold-soft), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ===== Layout do menu ===== */
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.menu-grid > .card { margin-bottom: 0; }
@media (min-width: 820px) {
  .menu-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .menu-grid .span-2 { grid-column: 1 / -1; }
}
.col { display: flex; flex-direction: column; gap: 14px; }
.col > .card { margin-bottom: 0; }

/* ===== Cards ===== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-accent {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, var(--gold), transparent 45%, var(--blue)) border-box;
}

/* ===== HUD do jogador ===== */
.hud { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hud-avatar {
  --pct: 0;
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
  position: relative;
}
.hud-avatar::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-2); }
.hud-avatar span { position: relative; font-family: var(--display); font-size: 22px; color: var(--gold-soft); }
.hud-level {
  position: absolute; bottom: -4px; right: -4px; z-index: 1;
  font-size: 11px; font-weight: 900; color: #0b0e17;
  background: var(--gold-soft); border-radius: 99px; padding: 1px 7px; border: 2px solid var(--bg-2);
}
.hud-main { flex: 1; min-width: 180px; }
.hud-name { font-weight: 900; font-size: 17px; }
.hud-title { font-size: 12px; color: var(--muted); font-weight: 600; }
.hud-xp { margin-top: 8px; }
.hud-xp-text { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar > div {
  height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--blue));
  transition: width 0.8s cubic-bezier(.2,.8,.2,1);
}
.hud-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}
.chip.hot { border-color: color-mix(in srgb, var(--warn) 60%, transparent); color: var(--warn); }

/* ===== Banner de login ===== */
.auth-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.auth-banner-icon { font-size: 30px; }
.auth-banner-text { flex: 1; min-width: 200px; }
.auth-banner-text strong { display: block; font-size: 15px; }
.auth-banner-text span { font-size: 13px; color: var(--muted); }

/* ===== Jogar ===== */
.field-label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.nick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nick-row .input { flex: 1; min-width: 180px; }
.menu-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.howto { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.howto summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--gold-soft); list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: "▸ "; }
.howto[open] summary::before { content: "▾ "; }
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.howto-step { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.howto-step b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }

.cta-card { overflow: hidden; text-align: center; padding: 26px 22px; }
.cta-glow {
  position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 55%);
  animation: ctaPulse 3.5s ease-in-out infinite;
}
@keyframes ctaPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.cta-badge {
  position: relative; display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  color: #0b0e17; background: linear-gradient(135deg, #ffe08a, var(--warn));
  padding: 5px 12px; border-radius: 99px; margin-bottom: 12px;
}
.cta-title { position: relative; font-family: var(--display); font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.cta-title span { color: var(--gold-soft); }
.cta-sub { position: relative; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.btn-cta { position: relative; font-size: 17px; padding: 16px; border-radius: 14px; animation: ctaBtn 2.4s ease-in-out infinite; }
@keyframes ctaBtn {
  0%, 100% { box-shadow: 0 6px 20px color-mix(in srgb, var(--gold) 35%, transparent); }
  50% { box-shadow: 0 6px 34px color-mix(in srgb, var(--gold) 70%, transparent); }
}

/* ===== Inputs e botões ===== */
.input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(5, 8, 16, 0.65); color: var(--text); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--muted); opacity: 0.7; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow); }
.input.shake { animation: shake 0.4s ease; border-color: var(--danger); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 18px; min-height: 44px; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #0b0e17; box-shadow: 0 6px 20px color-mix(in srgb, var(--gold) 30%, transparent); }
.btn-gold:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn-blue { background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 60%, white), var(--blue)); color: #05211f; box-shadow: 0 6px 20px color-mix(in srgb, var(--blue) 28%, transparent); }
.btn-blue:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); background: var(--glow); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.link-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 13px; font-weight: 700; font-family: inherit; padding: 8px; text-decoration: none;
}
.link-btn:hover { color: var(--text); }

/* ===== Desafio diário ===== */
.daily-card { overflow: hidden; }
.daily-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px 160px at 100% 0%, rgba(255, 181, 71, 0.16), transparent 70%);
}
.daily-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.daily-icon { font-size: 22px; }
.daily-head h2 { font-size: 16px; flex: 1; margin: 0; }
.daily-bonus {
  font-size: 11px; font-weight: 900; color: #0b0e17;
  background: linear-gradient(135deg, #ffe08a, var(--warn)); padding: 4px 10px; border-radius: 99px;
}
.daily-quote {
  position: relative; font-size: 16px; font-style: italic; font-weight: 600;
  padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--warn); border-radius: 12px; margin-bottom: 10px;
}
.daily-hint { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.daily-lock { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* ===== Ranking ===== */
.rank-list { list-style: none; counter-reset: rank; display: flex; flex-direction: column; gap: 4px; }
.rank-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px;
  font-size: 14px; background: var(--surface-2); border: 1px solid transparent;
  animation: fadeUp 0.3s ease backwards;
}
.rank-list li:nth-child(2) { animation-delay: 0.03s; } .rank-list li:nth-child(3) { animation-delay: 0.06s; }
.rank-list li:nth-child(4) { animation-delay: 0.09s; } .rank-list li:nth-child(5) { animation-delay: 0.12s; }
.rank-list li.rank-top { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.rank-list li.rank-me { border-color: var(--gold); box-shadow: 0 0 0 3px var(--glow); }
.rank-list li::before {
  counter-increment: rank; content: counter(rank);
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--muted);
}
.rank-list li:first-child::before { background: linear-gradient(135deg, #ffe08a, #f2a93b); color: #0b0e17; }
.rank-list li:nth-child(2)::before { background: linear-gradient(135deg, #eef2f7, #9aa5b5); color: #0b0e17; }
.rank-list li:nth-child(3)::before { background: linear-gradient(135deg, #f0b48a, #a05f35); color: #0b0e17; }
.rank-list li.rank-empty::before, .rank-list li.rank-skel::before { display: none; }
.rank-nick { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { font-weight: 900; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.rank-empty { color: var(--muted); font-size: 13px; justify-content: center; }
.rank-skel { height: 40px; background: linear-gradient(90deg, var(--surface-2), rgba(255,255,255,0.08), var(--surface-2)) !important; background-size: 200% 100% !important; animation: skel 1.2s linear infinite !important; }
@keyframes skel { to { background-position: -200% 0; } }
.rank-count { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }

/* ===== Conquistas ===== */
.ach-count { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: auto; }
.ach-preview { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ach-mini {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 22px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); filter: grayscale(1); opacity: 0.35;
  transition: transform 0.2s;
}
.ach-mini:hover { transform: translateY(-2px); }
.ach-mini.on { filter: none; opacity: 1; border-color: color-mix(in srgb, var(--gold) 70%, transparent); background: var(--glow); box-shadow: 0 0 16px var(--glow); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.ach-item { text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); opacity: 0.45; }
.ach-item.on { opacity: 1; border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: var(--glow); }
.ach-item.new { animation: newAch 1s ease 0.4s both; border-color: var(--warn); }
@keyframes newAch { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.ach-item .a-icon { display: block; font-size: 24px; }
.ach-item .a-name { display: block; font-weight: 800; font-size: 12px; }
.ach-item .a-desc { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.ach-item .a-new { display: inline-block; margin-top: 4px; font-size: 9px; font-weight: 900; letter-spacing: .08em; color: #0b0e17; background: var(--warn); border-radius: 99px; padding: 1px 6px; }

/* ===== Carregando ===== */
.coming-card { text-align: center; padding: 48px 20px; }
.coming-icon { font-size: 48px; margin-bottom: 10px; animation: floaty 2s ease-in-out infinite; }
.coming-title { font-size: 20px; margin-bottom: 6px; }
.coming-text { color: var(--muted); font-size: 14px; }

/* ===== Tela de jogo ===== */
.game-wrap { max-width: 720px; margin: 0 auto; }
.gamebar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.round-info { flex: 1; min-width: 0; }
.round-badge { font-size: 12px; font-weight: 900; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.progress { display: flex; gap: 4px; margin-top: 6px; }
.progress-seg { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); transition: background 0.3s; }
.progress-seg.ok { background: var(--success); }
.progress-seg.fail { background: var(--danger); }
.progress-seg.now { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.progress-fill { display: none; }
.stats { position: relative; display: flex; align-items: center; gap: 10px; }
.stat {
  font-family: var(--display); font-size: 28px; color: var(--text); min-width: 56px; text-align: right;
  font-variant-numeric: tabular-nums; transition: color 0.3s;
}
.stat.pop { animation: pop 0.35s ease; }
@keyframes pop { 50% { transform: scale(1.22); } }
.float-gain {
  position: absolute; right: 0; top: -6px; font-weight: 900; font-size: 16px; pointer-events: none;
  animation: floatUp 1.1s ease forwards; white-space: nowrap;
}
.float-gain.plus { color: var(--success); }
.float-gain.minus { color: var(--danger); }
@keyframes floatUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-36px); } }
.stat-combo {
  font-size: 12px; font-weight: 900; color: #0b0e17;
  background: linear-gradient(135deg, #ffe08a, var(--warn)); padding: 5px 10px; border-radius: 99px;
}
.stat-combo.hot { animation: ctaBtn 1.2s ease-in-out infinite; background: linear-gradient(135deg, #ffb547, #ff5c6c); }

.xp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.xp-label { font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.xp-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.xp-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--gold-soft)); transition: width 0.6s ease; }

.quote-card { padding: 26px 24px 20px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.quote-card::before {
  content: "\201C"; position: absolute; top: -30px; right: 16px; font-family: Georgia, serif;
  font-size: 160px; line-height: 1; color: color-mix(in srgb, var(--gold) 16%, transparent); pointer-events: none;
}
.quote-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quote-source { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.timer-badge {
  font-size: 13px; font-weight: 900; color: #0b0e17; background: linear-gradient(135deg, #ffe08a, var(--warn));
  padding: 5px 11px; border-radius: 99px; font-variant-numeric: tabular-nums;
}
.timer-badge.urgent { animation: ctaBtn 0.8s ease-in-out infinite; background: linear-gradient(135deg, #ff9aa5, var(--danger)); }
.quote-text { position: relative; font-size: clamp(19px, 3.2vw, 25px); font-weight: 700; font-style: italic; line-height: 1.4; margin-bottom: 16px; }
#quote-card.good { border-color: var(--success); box-shadow: 0 0 0 4px rgba(62, 224, 143, 0.12), var(--shadow); }
#quote-card.bad { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 92, 108, 0.12), var(--shadow); }

.hints { position: relative; display: grid; gap: 6px; }
.hint-pill {
  font-size: 13px; padding: 9px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  animation: fadeUp 0.3s ease;
}
.hint-pill.hint-locked { color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); animation: none; }

.attempts { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; color: var(--muted); font-weight: 700; }
.attempt-dot { width: 22px; height: 8px; border-radius: 99px; background: var(--success); opacity: 0.8; }
.attempt-dot.lost { background: var(--danger); opacity: 0.35; }

.answer-row { display: flex; gap: 10px; }
.answer-row .input { flex: 1; font-size: 16px; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.kbd-hint { font-size: 11px; color: var(--muted); }

.reveal-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.35s ease; }
.reveal-avatar {
  width: 84px; height: 84px; flex-shrink: 0; display: grid; place-items: center; border-radius: 20px; overflow: hidden;
  background: var(--bg-2); border: 2px solid var(--gold); box-shadow: 0 0 24px var(--glow);
}
.reveal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font-family: var(--display); font-size: 30px; color: var(--gold-soft); }
.reveal-info { flex: 1; min-width: 160px; }
.reveal-info h2 { font-family: var(--display); font-size: 22px; }
.reveal-info p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.game-footer { text-align: center; margin-top: 10px; }

/* ===== Modais ===== */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(3, 5, 10, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeUp 0.2s ease;
}
.modal-box {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(170deg, #121a30, #0b1020); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); animation: popIn 0.28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-title { font-family: var(--display); font-size: 22px; text-align: center; margin-bottom: 10px; }

/* ===== Resultado ===== */
.stars { display: flex; justify-content: center; gap: 6px; font-size: 34px; margin: 2px 0 4px; }
.stars span { filter: grayscale(1); opacity: 0.25; transform: scale(0.6); transition: all 0.4s cubic-bezier(.2,.9,.3,1.4); }
.stars span.on { filter: none; opacity: 1; transform: none; text-shadow: 0 0 18px rgba(255, 200, 80, 0.7); }
.final-score {
  font-family: var(--display); font-size: 58px; text-align: center; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, var(--gold-soft), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.record-badge {
  display: block; width: max-content; margin: 6px auto; font-size: 12px; font-weight: 900; letter-spacing: 0.08em;
  color: #0b0e17; background: linear-gradient(135deg, #ffe08a, var(--warn)); padding: 4px 12px; border-radius: 99px;
  animation: popIn 0.5s ease 0.3s both;
}
.final-tier { text-align: center; font-size: 14px; font-weight: 900; color: var(--gold-soft); }
.final-nick { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.final-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.final-stat { text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; }
.final-stat span { display: block; font-family: var(--display); font-size: 22px; }
.final-stat small { font-size: 11px; color: var(--muted); }
.final-xp { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.final-xp .hud-xp-text { margin-bottom: 6px; }
.final-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.rank-title { font-size: 13px; font-weight: 900; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.final-note { font-size: 12px; color: var(--muted); text-align: center; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }

/* ===== Level up ===== */
.levelup {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; pointer-events: none;
}
.levelup-box {
  text-align: center; padding: 26px 34px; border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--gold) 40%, #0b1020), #0b1020);
  border: 2px solid var(--gold); box-shadow: 0 0 80px color-mix(in srgb, var(--gold) 50%, transparent);
  animation: levelIn 2.6s ease forwards;
}
.levelup-box b { display: block; font-family: var(--display); font-size: 34px; }
.levelup-box span { font-size: 14px; color: var(--gold-soft); font-weight: 800; }
@keyframes levelIn {
  0% { opacity: 0; transform: scale(0.5); } 15% { opacity: 1; transform: scale(1.06); } 25% { transform: none; }
  80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); }
}

/* ===== Autenticação ===== */
.auth-box { max-width: 420px; }
.auth-sub { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.auth-tab {
  padding: 9px; border: none; border-radius: 9px; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.auth-tab.active { background: var(--glow); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .btn { margin-top: 2px; }
.auth-error { font-size: 13px; color: var(--danger); background: rgba(255, 92, 108, 0.1); border: 1px solid rgba(255, 92, 108, 0.3); padding: 8px 12px; border-radius: 10px; }
.field-help { font-size: 11px; color: var(--muted); margin-top: -4px; }
.auth-note { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.4; }
.consent-label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent-label input { margin-top: 2px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.modal-box .link-btn { display: block; margin: 8px auto 0; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: rgba(16, 22, 42, 0.95); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  border-radius: 14px; padding: 12px 18px; font-size: 14px; font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation: toastIn 0.25s ease; max-width: min(92vw, 460px); text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Confete ===== */
#confetti { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.confetti-piece { position: fixed; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.6; } }

/* ===== Rodapé ===== */
.site-footer { margin-top: 28px; padding: 18px 8px; border-top: 1px solid var(--line); text-align: center; }
.site-footer span { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ===== Responsivo ===== */
@media (max-width: 620px) {
  .container { padding: 10px 12px 40px; }
  .tabs { gap: 6px; }
  .tab { flex-direction: column; text-align: center; padding: 10px 6px; gap: 4px; }
  .tab-icon { width: 34px; height: 34px; font-size: 19px; }
  .tab-name { font-size: 12px; }
  .hero { padding-bottom: 12px; }
  .logo-badge { width: 52px; height: 52px; font-size: 28px; border-radius: 16px; }
  .profile-name { display: none; }
  .profile-btn { padding-right: 8px; }
  .nick-row .btn { width: 100%; }
  .answer-row { flex-direction: column; }
  .answer-row .btn { width: 100%; }
  .reveal-card { flex-direction: column; text-align: center; }
  .reveal-card .btn { width: 100%; }
  .final-score { font-size: 46px; }
  .kbd-hint { display: none; }
  .card { padding: 16px; }
  .quote-card { padding: 22px 16px 16px; }
}

/* ===== Acessibilidade: menos movimento ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .particle, #confetti { display: none; }
}

/* ===== Ajustes v1.1 ===== */
.card h2.cta-title { display: block; font-size: 22px; font-weight: 900; }
.hints { display: flex; flex-wrap: wrap; gap: 6px; }
.hint-pill { flex: 1 1 100%; }
.hint-pill.hint-locked { flex: 0 0 auto; padding: 6px 10px; font-size: 12px; }
body.in-game .tabs { display: none; }
@media (max-width: 620px) {
  .hero .logo-badge, .hero .title { display: none; }
  .hero { padding: 0 2px 10px; }
  .subtitle { margin-top: 0; }
  .card h2.cta-title { font-size: 19px; }
}

/* ===== v1.2: arte de League of Legends ===== */
.bg-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-art-layer {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center 20%;
  opacity: 0; transform: scale(1.06);
  filter: saturate(1.1) blur(1.5px);
  transition: opacity 1.2s ease, transform 8s ease-out;
}
.bg-art-layer.on { opacity: 0.42; transform: scale(1); }
.bg-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,10,18,0.35) 0%, rgba(7,10,18,0.78) 50%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(7,10,18,0.85) 100%);
}
.bg-glow { z-index: 0; }

/* Emblemas de elo */
.tier-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tier-badge img { width: 20px; height: 20px; object-fit: contain; }
.rank-list .tier-badge { order: 2; }
.rank-list .rank-score { order: 3; }
.chip .tier-badge img { width: 18px; height: 18px; }
.final-tier { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tier-badge.big { width: 150px; height: 120px; overflow: hidden; }
.tier-badge.big img { width: 420px; height: auto; max-width: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)); animation: popIn 0.5s ease 0.2s both; }

/* Moldura hextech (só no tema LoL) */
body[data-universe="lol"] .card:not(.card-accent):not(.daily-card) {
  border-color: rgba(200, 170, 110, 0.22);
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 2px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 2px 16px no-repeat,
    var(--surface);
}
body[data-universe="lol"] .topbar { border-color: rgba(200, 170, 110, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 -1px 0 rgba(200,170,110,0.35); }
body[data-universe="lol"] .btn-gold { border: 1px solid #f0e6d2; text-transform: uppercase; letter-spacing: 0.04em; }
body[data-universe="lol"] .title span { background: linear-gradient(90deg, #f0e6d2, #c8aa6e 50%, #0ac8b9); -webkit-background-clip: text; background-clip: text; }
.legal-riot { font-size: 10px !important; opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .bg-art-layer { transition: none; } }

/* ===== v1.2: universos bloqueados (em breve) ===== */
.tab.locked { opacity: 0.75; }
.tab.locked .tab-icon { filter: grayscale(0.6); position: relative; }
.tab.locked .tab-meta { color: var(--warn); font-weight: 800; }
.tab.locked.active .tab-meta { color: var(--warn); }
#screen-loading .coming-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#screen-loading .cta-badge { margin: 0; }
#screen-loading .coming-text { max-width: 460px; }
#screen-loading .coming-icon { margin-bottom: 0; }

/* ===== Selo de versão (Beta) ===== */
.beta-badge {
  font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0b0e17; background: linear-gradient(135deg, #ffe08a, var(--warn));
  padding: 2px 8px; border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}
.footer-version { display: block; margin-top: 10px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; }

/* ===== Dificuldade da pergunta ===== */
#quote-card[data-diff="facil"] .quote-source { color: var(--success); }
#quote-card[data-diff="medio"] .quote-source { color: var(--warn); }
#quote-card[data-diff="dificil"] .quote-source { color: var(--danger); }
#quote-card[data-diff="dificil"] { box-shadow: 0 0 0 1px rgba(255, 92, 108, 0.25), var(--shadow); }

/* ===== v1.3: economia (energia, cristais, diamantes), baú, ícones ===== */
.eco-bar { display: flex; align-items: center; gap: 6px; }
.eco-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: 800 12px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.eco-chip:hover { border-color: var(--gold); }
.eco-chip.low { border-color: var(--danger); color: var(--danger); animation: ctaBtn 1.6s ease-in-out infinite; }
.eco-premium { border-color: rgba(122, 162, 255, 0.4); }
.hud-avatar { border: none; cursor: pointer; padding: 0; overflow: visible; }
.hud-avatar img { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.chip-btn { cursor: pointer; font-family: inherit; color: var(--text); }
.chip-btn.ready { border-color: var(--warn); color: var(--warn); animation: ctaBtn 2s ease-in-out infinite; }
.h2-link { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--gold-soft); text-decoration: none; }
.season-line { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.rank-icon { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; order: 0; }
.final-rewards { text-align: center; font-weight: 900; color: var(--gold-soft); margin: 4px 0 8px; }
.energy-options { display: grid; gap: 8px; margin: 10px 0; }
.chest-box { text-align: center; }
.chest-art { font-size: 72px; line-height: 1; margin: 6px 0 12px; }
.chest-art.open { animation: chestOpen 0.9s cubic-bezier(.2,.9,.3,1.4); }
@keyframes chestOpen { 0% { transform: scale(0.6) rotate(-10deg); } 40% { transform: scale(1.25) rotate(8deg); } 70% { transform: scale(0.95) rotate(-4deg); } 100% { transform: none; } }
.chest-rewards { display: grid; gap: 8px; margin-bottom: 10px; }
.chest-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); animation: newAch 0.6s ease both; }
.chest-item span { font-size: 22px; }
.chest-item img { width: 36px; height: 36px; border-radius: 50%; }
.icons-box { max-width: 560px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.icon-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--text); font-family: inherit; }
.icon-cell img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.icon-cell small { font-size: 10px; font-weight: 800; color: var(--muted); text-align: center; line-height: 1.2; }
.icon-cell.locked img { filter: grayscale(1) brightness(0.55); }
.icon-cell.owned:hover { border-color: var(--gold); }
.icon-cell.equipped { border-color: var(--success); box-shadow: 0 0 0 3px rgba(62, 224, 143, 0.15); }
.icon-cell.equipped small { color: var(--success); }
@media (max-width: 620px) {
  .eco-bar { gap: 4px; }
  .eco-chip { padding: 4px 7px; font-size: 11px; }
  .topbar-title { display: none; }
}

/* ===== Aviso do admin (settings/announcement) ===== */
.announce {
  margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; text-align: center;
  font-size: 13px; font-weight: 800; background: var(--glow); border: 1px solid var(--gold); color: var(--text);
}
.announce.warn { border-color: var(--danger); background: rgba(255, 92, 108, 0.12); }

/* ===== Logo (img/logo-icon.svg) ===== */
img.topbar-logo { background: none; padding: 0; box-shadow: 0 0 18px var(--glow); object-fit: contain; }
img.logo-badge { background: none; padding: 0; object-fit: contain; border-radius: 20px; }

/* ===== Selo VIP (img/vip.svg) ===== */
.vip-ico { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; filter: drop-shadow(0 0 4px rgba(224, 92, 255, 0.6)); }
.chip-vip { border-color: rgba(224, 92, 255, 0.5); color: #f0c6ff; }
.chip-vip .vip-ico { margin: 0 2px 0 0; }
.admin-msg { white-space: pre-wrap; font-size: 15px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 14px; margin: 6px 0 10px; }

/* ===== VIP em breve / lista de espera ===== */
.vip-cta { overflow: hidden; border-color: rgba(224, 92, 255, 0.45); background: linear-gradient(160deg, rgba(224, 92, 255, 0.14), var(--surface) 55%); }
.vip-cta h2 { font-size: 18px; }
.vip-cta .vip-ico.big { width: 26px; height: 26px; vertical-align: -6px; margin: 0 4px 0 0; }
.vip-cta-text { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.vip-cta .link-btn { display: block; margin: 8px auto 0; }
.soon-tag { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #0b0e17; background: linear-gradient(135deg, #ffe08a, #e05cff); padding: 3px 9px; border-radius: 99px; }
.btn-wait { font-size: 15px; padding: 14px 18px; animation: ctaBtn 2.4s ease-in-out infinite; }
.btn-wait.joined { animation: none; background: rgba(62, 224, 143, 0.15); color: var(--success); border: 1px solid var(--success); box-shadow: none; }
.wl-box { max-width: 420px; }
