/* Chácara — party night. Dark only: it's played at night, on phones, outdoors. */
:root {
  --bg: #110e1a;
  --bg2: #191427;
  --surface: rgba(255, 255, 255, .055);
  --surface2: rgba(255, 255, 255, .09);
  --surface3: rgba(255, 255, 255, .14);
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #f7f2ea;
  --muted: #aaa3bb;
  --dim: #716a86;
  --ink: #1a1222;

  --gold: #ffc54d;
  --coral: #ff5e7e;
  --mint: #33d9b2;
  --sky: #5aa9ff;
  --violet: #a287ff;
  --yes: #3ddc84;
  --no: #ff6161;
  --maybe: #ffb547;

  --accent: var(--gold);
  --accent-ink: var(--ink);
  --glow: rgba(255, 197, 77, .35);

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --font-d: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
}

body[data-game="quem"] { --accent: var(--coral); --glow: rgba(255, 94, 126, .35); }
body[data-game="resposta"] { --accent: var(--mint); --glow: rgba(51, 217, 178, .32); }
body[data-game="melhores"] { --accent: var(--gold); --glow: rgba(255, 197, 77, .38); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The night sky: two soft glows that follow the game's accent. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(80% 50% at 100% 110%, rgba(162, 135, 255, .16), transparent 60%),
    radial-gradient(70% 40% at 0% 100%, rgba(90, 169, 255, .10), transparent 60%),
    linear-gradient(180deg, #151021, var(--bg) 40%);
  transition: background .6s var(--ease);
}
.sky::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 38% 8%, #fff7, transparent),
    radial-gradient(1px 1px at 88% 30%, #fff5, transparent),
    radial-gradient(1px 1px at 22% 40%, #fff4, transparent),
    radial-gradient(1px 1px at 60% 28%, #fff5, transparent);
}

#app { min-height: 100dvh; }

.screen {
  width: 100%; max-width: 520px; margin: 0 auto;
  padding: calc(var(--top) + 12px) 16px calc(var(--bottom) + 120px);
  display: flex; flex-direction: column; gap: 16px;
}
.screen.wide { max-width: 760px; }
.screen > * { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes flip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }

/* ---------- primitives ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.card.tight { padding: 14px; }
.card.hero {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sec-h h2 { font-size: 18px; }
.eyebrow { font: 700 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.count {
  min-width: 28px; height: 28px; padding: 0 9px; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--surface2); font: 700 14px/1 var(--font);
}

.btn {
  --b: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px; width: 100%;
  border-radius: var(--r);
  background: var(--b); color: var(--accent-ink);
  font: 700 17px/1 var(--font-d); letter-spacing: .005em;
  box-shadow: 0 8px 24px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s var(--ease), filter .15s, opacity .2s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); filter: brightness(1.08); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.ghost { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:active { background: var(--surface3); }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: var(--r-sm); width: auto; }
.btn.xs { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; width: auto; }
.btn.yes { --b: var(--yes); }
.btn.no { --b: var(--no); color: #fff; }
.btn.danger { background: transparent; color: var(--no); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--no) 45%, transparent); }
.btn .ico { width: 20px; height: 20px; }
.link { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .15s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.94); background: var(--surface2); }
.icon-btn svg { width: 20px; height: 20px; }
.ico { width: 20px; height: 20px; flex: none; }

.field { display: flex; flex-direction: column; gap: 8px; }
.lbl { font: 700 13px/1 var(--font); color: var(--muted); letter-spacing: .02em; }
.input, textarea.input {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border-radius: var(--r); border: 1.5px solid var(--line2);
  background: rgba(0, 0, 0, .25); color: var(--text);
  font-size: 17px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { resize: none; line-height: 1.35; min-height: 96px; }
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: rgba(0, 0, 0, .35); }
.hint { font-size: 13px; color: var(--dim); }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
}
.seg button {
  min-height: 44px; padding: 6px 8px; border-radius: 10px; color: var(--muted);
  font: 700 14px/1.1 var(--font); transition: background .2s, color .2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.seg button small { font: 500 11px/1.1 var(--font); opacity: .8; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px -6px var(--glow); }
.seg.ro button { pointer-events: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px;
  background: var(--surface2); color: var(--muted); font: 700 12px/1 var(--font); white-space: nowrap;
}
.chip.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.chip svg { width: 14px; height: 14px; }

/* answer chips (radio) */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.answers label { position: relative; }
.answers input { position: absolute; opacity: 0; pointer-events: none; }
.answers span {
  display: grid; place-items: center; min-height: 52px; border-radius: 14px;
  background: var(--surface2); border: 1.5px solid var(--line); font: 700 16px/1 var(--font-d);
  transition: all .18s var(--ease);
}
.answers input:checked + span { transform: translateY(-2px); color: var(--ink); border-color: transparent; }
.answers .a-sim input:checked + span { background: var(--yes); box-shadow: 0 8px 20px -8px var(--yes); }
.answers .a-nao input:checked + span { background: var(--no); box-shadow: 0 8px 20px -8px var(--no); color: #fff; }
.answers .a-talvez input:checked + span { background: var(--maybe); box-shadow: 0 8px 20px -8px var(--maybe); }

/* avatars */
.av {
  --s: 48px; width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: calc(var(--s) * .52); line-height: 1;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 100%, #fff 25%), var(--c));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 4px 12px -4px color-mix(in srgb, var(--c) 70%, transparent);
  position: relative;
}
.av.xs { --s: 24px; }
.av.sm { --s: 34px; }
.av.lg { --s: 72px; }
.av.xl { --s: 104px; }
.av .dot {
  position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 10px; min-height: 10px; border-radius: 50%;
  background: var(--dim); border: 2.5px solid var(--bg);
}
.av .dot.on { background: var(--yes); }
.av .crown { position: absolute; top: -28%; left: 50%; transform: translateX(-50%) rotate(-8deg); width: 54%; color: var(--gold); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.avs { display: flex; }
.avs .av { margin-left: -8px; border: 2px solid var(--bg); }
.avs .av:first-child { margin-left: 0; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.topbar .title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.topbar .title h1 { font-size: 19px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topbar .title .mini-art { width: 36px; height: 36px; flex: none; }
.code-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font: 800 18px/1 var(--font-d); letter-spacing: .14em;
}
.code-chip small { font: 700 10px/1 var(--font); letter-spacing: .14em; color: var(--muted); }

/* ---------- home ---------- */
.home { gap: 20px; padding-top: 0; }
.lights { margin: 0 -16px -6px; height: 96px; position: relative; }
.lights svg { width: 100%; height: 100%; overflow: visible; }
.lights .bulb { animation: twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -8px; }
.logo {
  font: 800 clamp(56px, 18vw, 84px)/.9 var(--font-d); letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff9ec 10%, #ffd98a 60%, #ff9f55);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 170, 70, .35));
}
.tag { color: var(--muted); font-size: 17px; max-width: 300px; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-input {
  text-transform: uppercase; letter-spacing: .4em; font: 800 22px/1 var(--font-d); text-align: center;
  padding-left: calc(16px + .2em);
}
.code-input::placeholder { letter-spacing: .2em; font-size: 16px; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.showcase { display: grid; gap: 12px; }
.foot { text-align: center; color: var(--dim); font-size: 13px; padding: 8px 0 0; }

/* game cards (home + lobby) */
.gcard {
  --accent: var(--gc); --glow: color-mix(in srgb, var(--gc) 40%, transparent);
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--r-lg); text-align: left; width: 100%;
  background: linear-gradient(140deg, color-mix(in srgb, var(--gc) 13%, transparent), var(--surface) 60%);
  border: 1.5px solid var(--line);
  transition: border-color .25s, transform .2s var(--ease), background .25s;
  overflow: hidden;
}
.gcard .art { width: 76px; height: 76px; }
.gcard h3 { font-size: 20px; margin-bottom: 4px; }
.gcard p { color: var(--muted); font-size: 14px; line-height: 1.35; }
.gcard .chips { margin-top: 8px; }
button.gcard:active { transform: scale(.985); }
.gcard.on { border-color: var(--gc); background: linear-gradient(140deg, color-mix(in srgb, var(--gc) 24%, transparent), color-mix(in srgb, var(--gc) 6%, transparent)); box-shadow: 0 12px 34px -16px var(--gc); }
.gcard .tick {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gc); color: var(--ink); animation: pop .35s var(--spring);
}
.gcard .tick svg { width: 16px; height: 16px; }
.gsettings {
  --accent: var(--gc); --glow: color-mix(in srgb, var(--gc) 40%, transparent);
  display: flex; flex-direction: column; gap: 14px; padding: 16px; margin-top: -6px;
  border-radius: 0 0 var(--r-lg) var(--r-lg); background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-top: 0;
  animation: rise .35s var(--ease);
}

/* ---------- lobby ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 8px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; border-radius: 16px; position: relative; animation: pop .4s var(--spring) both; }
.ptile .nm { font: 700 14px/1.15 var(--font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile .you { font: 700 10px/1 var(--font); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-top: -4px; }
.ptile.off .av { filter: grayscale(.8) brightness(.7); }
button.ptile:active { background: var(--surface); }
.invite-tile .av { background: transparent; border: 2px dashed var(--line2); box-shadow: none; color: var(--muted); font-size: 26px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 14px 16px calc(var(--bottom) + 14px);
  background: linear-gradient(180deg, transparent, rgba(17, 14, 26, .92) 30%);
  pointer-events: none;
}
.dock > * { pointer-events: auto; max-width: 488px; margin: 0 auto; }
.dock .stack { gap: 8px; }
.waiting {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: var(--r);
  background: var(--surface2); color: var(--muted); font-weight: 700; border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: twinkle 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

/* ---------- sheet ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(8, 6, 14, .6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(100%); } }
.sheet {
  width: 100%; max-width: 520px; max-height: 88dvh; overflow: auto;
  background: linear-gradient(180deg, #221b33, #1a1527); border: 1px solid var(--line2); border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 10px 20px calc(var(--bottom) + 22px);
  animation: slideup .32s var(--ease) both; display: flex; flex-direction: column; gap: 16px;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line2); margin: 0 auto 4px; }
.sheet h2 { font-size: 22px; }
.sheet .menu { display: flex; flex-direction: column; gap: 8px; }
.sheet .menu button {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-align: left;
}
.sheet .menu button.bad { color: var(--no); }
.sheet .menu button svg { width: 20px; height: 20px; color: var(--muted); }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: r; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: #e6e0ee; }
.rules li::before {
  counter-increment: r; content: counter(r); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gc, var(--accent)) 20%, transparent); color: var(--gc, var(--accent)); font: 800 15px/1 var(--font-d);
}
.avpick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.avpick button { border-radius: 50%; padding: 3px; border: 2px solid transparent; transition: transform .15s; }
.avpick button[aria-pressed="true"] { border-color: var(--text); transform: scale(1.06); }
.avpick .av { --s: 100%; aspect-ratio: 1; font-size: 24px; }
.invite { align-items: center; text-align: center; }
.bigcode { font: 800 64px/1 var(--font-d); letter-spacing: .18em; padding-left: .18em; }
.qr { width: 200px; height: 200px; padding: 12px; background: #fff; border-radius: 18px; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }

/* ---------- toast + moment ---------- */
#toast {
  position: fixed; left: 50%; top: calc(var(--top) + 12px); z-index: 90; transform: translate(-50%, -140%);
  width: max-content; max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 14px; text-align: center;
  background: #2a2240; border: 1px solid var(--line2); box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  font-weight: 700; font-size: 15px; transition: transform .35s var(--spring); pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); }
#moment { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; place-items: center; padding: 24px; transition: background .3s; }
#moment:has(.moment:not(.out)) { background: rgba(8, 6, 14, .55); }
.moment {
  pointer-events: auto; width: min(92vw, 400px); padding: 28px 24px 26px; border-radius: 30px; text-align: center;
  background: linear-gradient(170deg, #2c2342, #1b1529); border: 1px solid var(--line2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255,255,255,.04), 0 0 80px -10px var(--mglow, var(--glow));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: pop .5s var(--spring) both;
}
.moment.out { animation: momentOut .3s var(--ease) both; }
@keyframes momentOut { to { opacity: 0; transform: scale(.92) translateY(10px); } }
.moment .m-emoji { font-size: 64px; line-height: 1; animation: bob 1.6s ease-in-out infinite; }
.moment h2 { font-size: 28px; }
.moment .m-sub { color: var(--muted); font-size: 16px; }
.moment .m-big {
  font: 800 30px/1.1 var(--font-d); padding: 10px 18px; border-radius: 16px; margin-top: 4px;
  background: color-mix(in srgb, var(--mcolor, var(--accent)) 18%, transparent); color: var(--mcolor, var(--accent));
}
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 85; pointer-events: none; }

.offline {
  position: fixed; top: calc(var(--top) + 8px); left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: #3a1f2a; color: #ffb3c1; border: 1px solid #5a2a3a; font-size: 13px; font-weight: 700;
}
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.loading { min-height: 80dvh; display: grid; place-items: center; color: var(--muted); }

/* ---------- shared game bits ---------- */
.turn {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.turn.mine {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, #1c1628), color-mix(in srgb, var(--accent) 8%, #1c1628));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 20px 50px -24px var(--accent);
}
.turn .t-head { display: flex; align-items: center; gap: 12px; }
.turn .t-head h2 { font-size: 24px; }
.turn.mine .t-head h2 { font-size: 28px; }
.badge-now {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  background: var(--accent); color: var(--ink); font: 800 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  animation: pulse 1.8s infinite;
}
.judge {
  border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column; gap: 14px; text-align: center;
  background: linear-gradient(160deg, #3a2b12, #241a10); border: 1.5px solid color-mix(in srgb, var(--gold) 50%, transparent);
  box-shadow: 0 20px 50px -20px rgba(255, 197, 77, .5);
}
.judge .guess { font: 800 28px/1.15 var(--font-d); color: var(--gold); word-break: break-word; }
.judge .truth { font-size: 15px; color: var(--muted); }
.judge .truth b { color: var(--text); }
.judge .row .btn { flex: 1; }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-top: 16px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pod .nm { font: 700 14px/1.15 var(--font); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .sc { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; min-height: 2.4em; }
.pod .stand {
  width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: start center; padding-top: 10px;
  font: 800 30px/1 var(--font-d); color: rgba(0, 0, 0, .55);
  animation: grow .9s var(--spring) both;
  transform-origin: bottom;
}
@keyframes grow { from { transform: scaleY(0); } }
.pod.p1 .stand { height: 120px; background: linear-gradient(180deg, #ffe08a, #f2b13a); animation-delay: .5s; }
.pod.p2 .stand { height: 86px; background: linear-gradient(180deg, #e8ecf5, #aab3c5); animation-delay: .25s; }
.pod.p3 .stand { height: 64px; background: linear-gradient(180deg, #f4bd8d, #c97d47); }
.pod.p1 .av { animation: bob 2s ease-in-out infinite; }
.pod.empty { visibility: hidden; }
.ranklist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rankrow { display: grid; grid-template-columns: 28px auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.rankrow .pos { font: 800 16px/1 var(--font-d); color: var(--muted); text-align: center; }
.rankrow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankrow .sc { font-size: 13px; color: var(--muted); text-align: right; }
.winner-title { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.winner-title h1 { font-size: 34px; }

/* ---------- Quem Sou Eu ---------- */
.table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.seat {
  position: relative; border-radius: 20px; padding: 12px; background: var(--surface); border: 1.5px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .3s, box-shadow .3s;
}
.seat.now { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.seat .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.seat .who .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .st { font-size: 12px; color: var(--muted); }
.pcard {
  border-radius: 14px; min-height: 74px; padding: 12px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #fff8ef, #f3e6d6); color: #2b1d2e;
  font: 800 18px/1.1 var(--font-d); word-break: break-word;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0,0,0,.06);
  animation: flip .5s var(--ease) both;
}
.pcard.mine {
  color: rgba(255, 255, 255, .9); font-size: 34px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #3a1430));
}
.pcard.done { background: linear-gradient(160deg, #d9f7e8, #b6ecd1); color: #0e3b26; }
.pcard.gave { background: linear-gradient(160deg, #e9e5ef, #cfc8db); color: #3b3448; }
.pcard.big { min-height: 120px; font-size: 32px; border-radius: 20px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); animation: rise .35s var(--ease) both; }
.note .q { flex: 1; min-width: 0; font-size: 15px; word-break: break-word; }
.ans { flex: none; height: 26px; padding: 0 10px; border-radius: 99px; display: inline-grid; place-items: center; font: 800 12px/1 var(--font); color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.ans.sim { background: var(--yes); }
.ans.nao { background: var(--no); color: #fff; }
.ans.talvez { background: var(--maybe); }
.hotseat { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px 18px; }
.hotseat .eyes { font-size: 64px; animation: bob 2s ease-in-out infinite; }
.progress { display: flex; flex-wrap: wrap; gap: 10px; }
.progress .p { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; }
.progress .p .nm { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress .p.ok .av::after {
  content: '✓'; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yes); color: var(--ink); font: 800 11px/1 var(--font); border: 2px solid var(--bg);
}
.progress .p:not(.ok) .av { opacity: .45; }
.bar { height: 8px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s var(--ease); }

/* ---------- Resposta sem Pergunta ---------- */
.board {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; padding: 22px 14px;
  border-radius: var(--r-xl); background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  perspective: 600px;
}
.slot {
  min-width: 64px; height: 56px; padding: 0 14px; border-radius: 14px; display: grid; place-items: center;
  font: 800 20px/1 var(--font-d); position: relative; transition: transform .2s var(--ease);
}
.slot.hid {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 6px, transparent 6px 12px), var(--surface2);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); color: color-mix(in srgb, var(--accent) 70%, #fff);
  font-size: 15px; min-width: 56px;
}
.slot.hid.peek { color: rgba(255,255,255,.45); font-size: 16px; font-style: italic; }
.slot.open { background: var(--accent); color: var(--ink); animation: flip .55s var(--spring) both; box-shadow: 0 8px 20px -10px var(--accent); }
.slot.qm { background: none; color: var(--accent); font-size: 40px; min-width: 0; padding: 0 2px; }
button.slot.hid { cursor: pointer; animation: pulse 1.6s infinite; }
button.slot.hid:active { transform: scale(.94); }
.answer-card { text-align: center; padding: 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, #eafff8, #c6f5e7); color: #0b3a2e; }
.answer-card .eyebrow { color: #2a7a64; }
.answer-card .big { font: 800 34px/1.1 var(--font-d); margin-top: 8px; word-break: break-word; }
.guesses { display: flex; flex-wrap: wrap; gap: 8px; }
.guesses .g { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface); font-size: 14px; }
.guesses .g s { color: var(--muted); text-decoration-color: var(--no); text-decoration-thickness: 2px; }
.guesses .g.ok { background: color-mix(in srgb, var(--yes) 22%, transparent); }
.scores { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.scores::-webkit-scrollbar { display: none; }
.scores .s { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.scores .s b { font: 800 16px/1 var(--font-d); }
.scores .s.now { border-color: var(--accent); }
.qtabs { display: flex; gap: 8px; }
.qtabs button { flex: 1; height: 40px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; color: var(--muted); }
.qtabs button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.qtabs button.ok::after { content: ' ✓'; color: var(--accent); }
.recap { display: flex; flex-direction: column; gap: 10px; }
.recap .rq { padding: 14px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.recap .rq .qt { font-weight: 700; }
.recap .rq .an { color: var(--accent); font-weight: 700; }

/* ---------- Melhores do Ano ---------- */
.stage-title { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 8px 0; }
.stage-title h1 { font-size: clamp(30px, 8vw, 44px); }
.stage-title .sub { color: var(--muted); max-width: 420px; }
.gold-text {
  background: linear-gradient(90deg, #fff1c2, #ffc54d 30%, #fff6da 50%, #ffb238 70%, #fff1c2);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.trophy { width: 150px; height: 150px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 18px 40px rgba(255, 190, 70, .45)); }
.noms { display: grid; gap: 12px; }
.nom {
  position: relative; border-radius: var(--r-lg); overflow: hidden; text-align: left; width: 100%;
  background: var(--surface); border: 2px solid var(--line); transition: border-color .25s, transform .2s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column;
}
.nom:active { transform: scale(.99); }
.nom.on { border-color: var(--gold); box-shadow: 0 16px 40px -18px rgba(255, 197, 77, .7); }
.nom .media { position: relative; aspect-ratio: 16 / 9; background: #0b0910; }
.nom .media img, .nom .media video { width: 100%; height: 100%; object-fit: cover; }
.nom .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.nom .info h3 { font-size: 20px; padding-right: 36px; }
.nom .info p { color: var(--muted); font-size: 14px; }
.nom .pick {
  position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line2); display: grid; place-items: center; color: var(--ink); transition: all .2s var(--spring);
}
.nom.on .pick { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.nom .pick svg { width: 18px; height: 18px; opacity: 0; }
.nom.on .pick svg { opacity: 1; }
.nom .expand {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .5); color: #fff; backdrop-filter: blur(6px);
}
.nom .expand svg { width: 18px; height: 18px; }
@media (min-width: 640px) { .noms.three { grid-template-columns: repeat(3, 1fr); } .noms.three .nom .info h3 { font-size: 18px; } }
.suspense { min-height: 62dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.suspense h1 { font-size: 30px; }
.drum { font-size: 84px; animation: drum .16s ease-in-out infinite alternate; }
@keyframes drum { from { transform: rotate(-6deg) scale(1); } to { transform: rotate(6deg) scale(1.06); } }
.envelope { width: 120px; height: 84px; border-radius: 10px; background: linear-gradient(160deg, #ffe39a, #e9a93a); position: relative; box-shadow: 0 20px 40px -10px rgba(255,190,70,.6); animation: bob 1s ease-in-out infinite; }
.envelope::before { content: ''; position: absolute; inset: 0 0 auto; height: 50%; background: linear-gradient(160deg, #ffd56b, #d8952a); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.winner-card { border-radius: var(--r-xl); overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 30px 70px -24px rgba(255, 197, 77, .8); animation: pop .7s var(--spring) both; background: #1d1726; }
.winner-card .media { aspect-ratio: 16 / 9; background: #0b0910; }
.winner-card .media img, .winner-card .media video { width: 100%; height: 100%; object-fit: cover; }
.winner-card .info { padding: 16px 18px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.winner-card .info h2 { font-size: 30px; }
.results { display: flex; flex-direction: column; gap: 10px; }
.res { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.res .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .pc { font: 800 16px/1 var(--font-d); color: var(--muted); }
.res .bar { grid-column: 1 / -1; height: 10px; }
.res.win .pc { color: var(--gold); }
.res.win .bar > i { background: linear-gradient(90deg, #ffd56b, #ffb238); }
.res:not(.win) .bar > i { background: var(--surface3); }
.vote-status { display: flex; align-items: center; gap: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; animation: fade .2s both; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 86dvh; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: calc(var(--top) + 12px); right: 12px; }
.winners { display: flex; flex-direction: column; gap: 12px; }
.wrow { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.wrow .th { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #0b0910; }
.wrow .th img, .wrow .th video { width: 100%; height: 100%; object-fit: cover; }
.wrow .cat { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wrow .wn { font: 800 19px/1.15 var(--font-d); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
