/* Frequency: mesmo visual do canvas no Claude Design (https://claude.ai/artifact/Ly7qEWbHt5juJNiXRCvvu2). */
:root {
  --bg: #0E0E12; --panel: #141419; --card: #1B1B22; --field: #17171D; --raise: #1F1F27; --bar: #121217;
  --line: #24242C; --line-2: #2A2A33; --field-line: #34343E;
  --text: #F4F2EE; --label: #E8E6E1; --muted: #B4B2BC; --dim: #A9A7B2; --faint: #9C9AA6; --placeholder: #8D8B97;
  --accent: #C8F560; --accent-hover: #E2FF9E; --live: #E5484D; --sky: #8AD8F2;
  --prata: #C9CED6; --ouro: #E9B949; --diamante: #8AD8F2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, .brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Login e cadastro (desktop dividido) ---------- */
.split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.hero { flex: 1 1 520px; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  background: var(--panel); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -0.01em; }
.pitch { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.legal { margin: 0; font-size: 13px; color: var(--faint); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 520px; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; font-size: 14px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; font-size: 15px; }
.steps b { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif;
  color: var(--bg); background: var(--accent); border-radius: 10px; }
.side { flex: 1 1 420px; padding: 56px 24px; display: flex; align-items: center; justify-content: center; }
.box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 32px; }
.box header { display: flex; flex-direction: column; gap: 8px; }
.box h2 { margin: 0; font-size: 36px; letter-spacing: -0.02em; }
.box header p, .switch { margin: 0; font-size: 16px; color: var(--muted); }
.switch { font-size: 15px; text-align: center; }
.switch a { font-weight: 600; }

form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 14px; font-weight: 500; color: var(--label); }
.help { margin: 0; font-size: 13px; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search] {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 12px; color-scheme: dark; }
input::placeholder { color: var(--placeholder); }
.with-btn, .with-prefix { position: relative; display: flex; }
.with-btn input { padding-right: 92px; }
.with-btn button { position: absolute; right: 4px; top: 4px; height: 44px; min-width: 80px; padding: 0 12px; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--accent); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.with-prefix > span, .with-prefix > svg { position: absolute; left: 16px; top: 15px; color: var(--placeholder); }
.with-prefix input { padding-left: 34px; }
.with-prefix.search input { padding-left: 46px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.alert { margin: 0; padding: 12px 14px; font-size: 14px; color: #FFD7CC; background: #3A1E19; border: 1px solid #6B2E22; border-radius: 10px; }
.primary { height: 52px; font: inherit; font-size: 16px; font-weight: 600; color: var(--bg); background: var(--accent); border: 0; border-radius: 12px; cursor: pointer; }
.primary:disabled { opacity: 0.55; cursor: not-allowed; }
.ghost { min-height: 48px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: transparent;
  border: 1px solid var(--field-line); border-radius: 12px; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.ghost:hover { color: var(--text); background: var(--card); }

/* ---------- App: moldura de iPhone 18 Pro Max (440×956) no computador, tela cheia no celular ---------- */
.device { height: 100dvh; }
.screen { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.island, .home { display: none; }
.status-gap { flex: none; height: env(safe-area-inset-top, 0px); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; } /* rola, sem barra visível (como no iPhone) */
.scroll::-webkit-scrollbar { display: none; }
@media (min-width: 600px) {
  .app-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 0; background: #E7E5E0; }
  .device { width: 468px; height: 984px; padding: 14px; background: #2C2C31; border-radius: 72px;
    box-shadow: 0 0 0 2px #4A4A52 inset, 0 24px 60px rgba(0, 0, 0, 0.28); }
  .screen { border-radius: 58px; }
  .island { display: block; position: absolute; z-index: 3; top: 11px; left: 157px; width: 126px; height: 37px; background: #000; border-radius: 20px; }
  .status-gap { height: 54px; }
  .home { display: block; position: absolute; z-index: 3; left: 153px; bottom: 8px; width: 134px; height: 5px; background: var(--text); border-radius: 3px; }
}
/* Monitores baixos: reduz a moldura inteira para caber sem rolar a página. */
@media (min-width: 600px) and (max-height: 1040px) { .device { zoom: 0.86; } }
@media (min-width: 600px) and (max-height: 880px) { .device { zoom: 0.74; } }
@media (min-width: 600px) and (max-height: 760px) { .device { zoom: 0.62; } }

.appbar { flex: none; padding: 8px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appbar .brand { font-size: 22px; gap: 10px; }
.chip { padding: 8px 12px; font-size: 14px; font-weight: 600; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; }
.page-title { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.pad { padding: 4px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.empty { margin: 0; color: var(--muted); font-size: 15px; }

.tabbar { flex: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bar); border-top: 1px solid var(--line); }
@media (min-width: 600px) { .tabbar { padding-bottom: 26px; } }
.tabbar a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--dim); text-decoration: none; }
.tabbar a[aria-current=page] { color: var(--accent); font-weight: 600; }

/* Feed */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.live-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
.live-card:hover { color: var(--text); }
.tile { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.tile .initial { font-family: 'Space Grotesk', sans-serif; font-size: 56px; font-weight: 700; color: rgba(255, 255, 255, 0.88); }
.pill-live { position: absolute; top: 10px; left: 10px; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--live); border-radius: 6px; }
.pill-sorteio { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--accent); border-radius: 999px; font-variant-numeric: tabular-nums; }
.pill-sorteio.soon { color: var(--text); background: rgba(14, 14, 18, 0.75); }
.tile video, .tile img.snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; background: linear-gradient(to bottom, rgba(14, 14, 18, 0), rgba(14, 14, 18, 0.55)); }
.tile > [class^="pill-"] { z-index: 1; } /* etiquetas acima do vídeo; a inicial fica atrás */
.pill-viewers { position: absolute; top: 10px; right: 10px; padding: 3px 8px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(14, 14, 18, 0.6); border-radius: 6px; font-variant-numeric: tabular-nums; }
.live-card .t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.live-card .h, .row .h { font-size: 13px; color: var(--dim); }

/* Procurar */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.row { min-height: 72px; padding: 8px; display: flex; align-items: center; gap: 14px; border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; }
.row:hover { color: var(--text); background: var(--card); }
.row .thumb { flex: none; width: 56px; height: 56px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: rgba(255, 255, 255, 0.9); border-radius: 14px; }
.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .t { font-size: 15px; font-weight: 600; }
.row .tag { flex: none; padding: 5px 9px; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--accent); border-radius: 999px; }

/* Live: vídeo vertical em tela cheia, chat sobreposto (canvas: Live · Sorteio aberto / Resultado) */
.live { --top: max(12px, env(safe-area-inset-top, 0px)); --bottom: calc(10px + env(safe-area-inset-bottom, 0px)); --b: calc(var(--bottom) + var(--kb, 0px)); }
@media (min-width: 600px) { .live { --top: 58px; --bottom: 34px; --b: calc(var(--bottom) + var(--kb, 0px)); } }
.lv-video { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lv-video .initial { font-family: 'Space Grotesk', sans-serif; font-size: 140px; font-weight: 700; color: rgba(255, 255, 255, 0.22); }
.lv-video .ph { padding: 4px 10px; font-size: 13px; color: var(--label); background: rgba(14, 14, 18, 0.5); border-radius: 6px; }
.lv-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 14, 18, 0), rgba(14, 14, 18, 0.82)); }
.lv-top { position: absolute; z-index: 2; top: var(--top); left: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; }
.lv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Selos do topo (criador, AO VIVO, espectadores): mesma altura, canto, fundo e letra. */
.lv-who, .lv-right .pill-live, .lv-viewers { height: 30px; display: flex; align-items: center; font-size: 13px; font-weight: 700; color: #fff; border-radius: 8px; }
.lv-who { min-width: 0; padding: 0 10px 0 4px; gap: 6px; background: rgba(14, 14, 18, 0.6); }
.lv-who .avatar { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; border-radius: 50%; }
.lv-who > div { min-width: 0; display: flex; flex-direction: column; }
.lv-who .h { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-who .t { margin: 0; font-family: Inter, sans-serif; font-size: 12px; font-weight: 400; color: #D6D4DD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-right { flex: none; display: flex; align-items: center; gap: 6px; }
.pill-live.static { position: static; }
.lv-right .pill-live { padding: 0 10px; background: #FF1F3D; box-shadow: 0 0 12px rgba(255, 31, 61, 0.55); } /* vermelho mais vivo na live */
.lv-viewers { padding: 0 10px; gap: 5px; background: rgba(14, 14, 18, 0.6); font-variant-numeric: tabular-nums; }
.lv-viewers[hidden] { display: none; }
.close-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border-radius: 12px; }
.close-btn:hover { color: var(--text); background: rgba(14, 14, 18, 0.4); }

/* A tela "sente" a raridade: vinheta na cor do nível (épico em diante) */
.lv-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s; background: radial-gradient(ellipse at 50% 48%, transparent 40%, var(--rc, transparent) 100%); }
.lv-vignette[data-rank="3"] { opacity: 0.22; } .lv-vignette[data-rank="4"] { opacity: 0.3; } .lv-vignette[data-rank="5"] { opacity: 0.4; } .lv-vignette[data-rank="6"] { opacity: 0.5; }
.lv-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: var(--rc, #fff); opacity: 0; }
.lv-flash.go { animation: screenflash 0.7s ease-out; }

/* Palco da escalada */
.stage { position: absolute; z-index: 2; bottom: calc(var(--b) + 200px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none; transition: opacity 0.2s; }
.stage.kb { opacity: 0; }
.stage .result .actions { pointer-events: auto; }
.stage-ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.stage-ring .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 6; }
.ring .prog { fill: none; stroke: var(--rc, var(--accent)); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 565.5; transition: stroke-dashoffset 0.9s linear, stroke 0.4s; }
.stage.urgent .ring .prog { stroke: var(--live); }
.stage .slot { position: absolute; display: grid; place-items: center; }
.stage .slot.dim { opacity: 0.45; filter: grayscale(0.6); }
.stage .slot.out { animation: slot-out 0.7s ease-in forwards; }
.stage .slot.in > .badge { animation: slot-in 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.stage.hot .slot.cur { animation: tremble 0.25s linear infinite; }
.stage .flash { position: absolute; inset: 24%; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; }
.stage.levelup .flash { animation: ringflash 1s ease-out; }
.stage .rays { position: absolute; inset: -18%; border-radius: 50%; opacity: 0; transition: opacity 0.6s;
  background: repeating-conic-gradient(from 0deg, var(--rc, #fff) 0deg 9deg, transparent 9deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.stage[data-state=result] .rays { opacity: 0.4; animation: spin 12s linear infinite; }
.stage .count { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 4px 12px; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); border: 2px solid var(--rc, var(--accent)); border-radius: 999px; }
.stage.urgent .count { border-color: var(--live); color: var(--live); animation: pulse 0.5s ease-in-out infinite; }
.stage-label { margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stage-label h2 { margin: 0; padding: 0 24px; font-family: 'Space Grotesk', sans-serif; font-size: 24px; letter-spacing: -0.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.stage[data-state=result] .stage-label h2 { font-size: 21px; }
.stage .chip { border: 0; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--rc, var(--accent)); border-radius: 999px; }
.stage .goal { width: min(320px, calc(100% - 40px)); display: flex; flex-direction: column; gap: 6px; }
.stage .goal .bar { height: 10px; background: rgba(255, 255, 255, 0.18); border-radius: 5px; }
/* Barra de uma cor; brilho correndo por dentro e a ponta (frente) pulsando. */
.stage .goal .bar > div { position: relative; height: 100%; border-radius: 5px; background: var(--rc, var(--accent)); transition: width 0.5s ease-out; } /* cor da raridade do nível */
.stage .goal .bar > div::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%) 0 0 / 60px 100%; animation: goal-run 1s linear infinite; }
.stage .goal .bar > div::after { content: ""; position: absolute; right: -2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 4px var(--rc, var(--accent)); animation: goal-tip 0.8s ease-in-out infinite; }
@keyframes goal-run { to { background-position: 60px 0; } }
@keyframes goal-tip { 0%, 100% { transform: scale(0.6); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
.stage.hot .goal .bar { animation: hot-bar 1s ease-in-out infinite; }
.stage-label .meta-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.stage .next { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--label); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.stage .next[hidden] { display: none; }
.stage .next strong { color: var(--text); }
.stage .hype { margin: 2px 0 0; min-height: 20px; font-size: 14px; font-weight: 700; color: var(--accent); text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.stage.hot .hype { animation: hot-text 1s ease-in-out infinite; transform-origin: center; }
.stage.urgent .hype { color: #FFB4A8; }
.stage .levelup-text { position: absolute; top: -14px; z-index: 3; margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: 0.06em; color: #fff; opacity: 0; text-shadow: 0 0 18px var(--rc, #fff); }
.stage.levelup .levelup-text { animation: levelup-text 1.2s ease-out; }
.stage .result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 24px; }
.stage .result .note { margin: 0; font-size: 15px; color: var(--label); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.stage .result .actions { display: flex; gap: 10px; }
.stage .result .primary { height: 48px; padding: 0 20px; font-size: 15px; font-weight: 700; border-radius: 14px; }
.stage .result .ghost { background: rgba(14, 14, 18, 0.45); border-color: rgba(255, 255, 255, 0.35); }
.screen.shake { animation: shake 0.5s; }
@keyframes slot-out { to { transform: translateY(-60px) scale(0.3); opacity: 0; } }
@keyframes slot-in { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ringflash { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes screenflash { 0% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes levelup-text { 0% { transform: translateY(20px) scale(0.6); opacity: 0; } 25% { transform: translateY(0) scale(1.1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }
@keyframes hot-bar { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 245, 96, 0); } 50% { box-shadow: 0 0 18px 2px rgba(200, 245, 96, 0.55); } }
@keyframes hot-text { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes tremble { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, -1px); } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(6px, -2px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(4px, -1px); } }
@media (prefers-reduced-motion: reduce) {
  .stage .slot.out, .stage .slot.in > .badge, .stage.hot .slot.cur, .stage.levelup .flash, .stage[data-state=result] .rays, .stage.urgent .count,
  .stage .goal .bar > div::before, .stage .goal .bar > div::after, .stage.hot .goal .bar, .stage.hot .hype, .stage.levelup .levelup-text, .screen.shake, .lv-flash.go { animation: none !important; }
}

.lv-alert { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(var(--b) + 64px); }
/* Coluna do chat (comentários + "entrou") acima da barra; sobe junto com o teclado (--kb, ver live.js). */
.lv-stream { position: absolute; z-index: 1; left: 12px; bottom: calc(var(--b) + 64px); width: min(300px, calc(100% - 96px));
  display: flex; flex-direction: column; gap: 10px; }
.lv-chat { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
/* 4º comentário (o mais antigo): a metade de cima vai sumindo até opacidade 0. */
.lv-chat li.fade { -webkit-mask-image: linear-gradient(to top, #000 50%, transparent); mask-image: linear-gradient(to top, #000 50%, transparent); }
.lv-join { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--label); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.lv-join .av { flex: none; width: 22px; height: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); border-radius: 50%; }
.lv-join b { font-weight: 700; }
.lv-join.pop { animation: join-in 0.35s ease-out; }
@keyframes join-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lv-join.pop { animation: none; } }
.lv-chat li { display: flex; align-items: flex-start; gap: 7px; }
.lv-chat .av { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, 0.22); border-radius: 50%; }
.lv-chat li > div { min-width: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; padding-top: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.lv-chat .n { margin-right: 5px; font-size: 13px; font-weight: 700; color: #D6D4DD; }
.lv-chat .m { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.lv-chat li.buy .av { color: var(--bg); background: var(--accent); }
.lv-chat li.buy .n { color: var(--accent); }
.lv-chat li.win .n { color: var(--ouro); }
.lv-chat li.win .av { background: transparent; }

.lv-bar { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: var(--b); display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.lv-input { flex: 1; min-width: 0; height: 52px; padding: 0 6px 0 18px; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; }
.lv-input:focus-within { border-color: rgba(200, 245, 96, 0.6); }
.lv-input input { flex: 1; min-width: 0; height: 100%; padding: 0; font: inherit; font-size: 16px; color: var(--text); background: transparent; border: 0; }
.lv-input input:focus-visible { outline: none; }
.lv-input input::placeholder { color: #C9C7D1; }
.icon-round { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--text); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.send-btn { color: var(--bg); background: var(--accent); }
/* Teclado aberto (digitando): só emoji e enviar; o Comprar cota sai. Fechado: sem o botão de emoji. */
.lv-bar:not(.typing) .emoji-btn, .lv-bar.typing .buy-btn { display: none; }
.lv-emojis { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(var(--b) + 62px); padding: 8px;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; background: rgba(14, 14, 18, 0.92); border-radius: 18px; }
.lv-emojis button { height: 44px; font-size: 24px; background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.lv-emojis button:hover { background: rgba(255, 255, 255, 0.1); }
.buy-btn { position: relative; flex: none; height: 52px; min-width: 132px; padding: 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: inherit; color: var(--bg); background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; }
.buy-btn:disabled { color: var(--text); background: rgba(255, 255, 255, 0.18); cursor: not-allowed; }
.buy-btn .l1 { font-size: 15px; font-weight: 700; line-height: 1.1; }
.buy-btn .l2 { font-size: 11px; font-weight: 600; line-height: 1.2; }
.buy-btn .mine { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--text); background: var(--bg); border: 2px solid var(--accent); border-radius: 999px; }

/* Perfil */
.me { display: flex; align-items: center; gap: 12px; }
.me .avatar { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--bg); background: var(--accent); border-radius: 50%; }
.me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-txt .page-title { font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .since { font-size: 13px; color: var(--dim); white-space: nowrap; }
.topup-btn { flex: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px;
  font-weight: 700; color: var(--bg); background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; }
.balance { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--field); border: 1px solid var(--line-2); border-radius: 16px; }
.balance .k { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.balance .v { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; }
.balance .meta { font-size: 13px; color: var(--dim); text-align: right; }
.note { font-size: 13px; color: var(--dim); }
.note.center { text-align: center; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; }

/* Estante: uma prateleira por raridade; nicho sem a insígnia fica em preto e branco */
.estante { display: flex; flex-direction: column; gap: 12px; }
.shelf-wall { display: flex; flex-direction: column; gap: 14px; }
.plank { position: relative; padding: 0 6px; }
.plank ul { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: end; }
.plank .board { height: 12px; border-radius: 3px; border-top: 2px solid var(--rc); background: linear-gradient(#3B2E22, #22190F);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.plank .lbl { position: absolute; right: 8px; bottom: -1px; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rc); }
.slot { position: relative; width: 100%; padding: 4px 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--text);
  background: none; border: 0; border-radius: 12px; }
button.slot { cursor: pointer; }
.slot .glow { position: absolute; bottom: 14px; width: 56px; height: 16px; border-radius: 50%; background: var(--rc); filter: blur(10px); opacity: 0.55; }
.slot .pic { position: relative; display: grid; }
.slot.off .pic { filter: grayscale(1) brightness(0.45) contrast(0.9); }
.slot .n { font-size: 10px; font-weight: 600; white-space: nowrap; }
.slot.off .n { color: #5D5B66; }
.slot .x { position: absolute; top: 0; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--bg); background: var(--text); border-radius: 999px; }
.slot .sale { position: absolute; top: -4px; left: 0; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bg); background: var(--accent); border-radius: 999px; }
.slot.new { z-index: 5; }
.slot.new .pic { animation: land 1.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.slot.new .glow { animation: land-glow 1.5s ease-out both; }
@keyframes land { 0% { transform: translate(var(--dx, 0), var(--dy, -200px)) scale(2.8); filter: drop-shadow(0 0 30px var(--rc)); }
  25% { transform: translate(var(--dx, 0), var(--dy, -200px)) scale(3); }
  80% { transform: none; filter: drop-shadow(0 0 18px var(--rc)); } 100% { transform: none; } }
@keyframes land-glow { 0%, 70% { opacity: 0; } 85% { opacity: 1; transform: scale(1.8); } 100% { opacity: 0.55; } }

/* Insígnias conquistadas */
.won { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.won li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.won .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.won .t { font-size: 14px; font-weight: 600; }
.won .t .v { margin-left: 6px; font-weight: 500; color: var(--rc); }
.won .h { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.won .fate { flex: none; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid; border-radius: 999px; }
.fate.keep { color: var(--accent); } .fate.sale { color: #6FA8FF; } .fate.done { color: var(--dim); } .fate.sold { color: #FFB03B; }

/* Folhas (pop-ups) dentro da tela do aparelho */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; }
.sheet-wrap[hidden] { display: none; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: rgba(6, 6, 9, 0.66); animation: fade-in 0.2s ease-out; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; padding: 10px 20px calc(24px + var(--bottom, 0px));
  display: flex; flex-direction: column; gap: 14px; background: var(--field); border-top: 1px solid var(--line-2); border-radius: 28px 28px 0 0;
  animation: sheet-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); scrollbar-width: none; }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--field-line); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-top: -6px; }
.x-btn { width: 44px; height: 44px; margin-right: -10px; font-size: 26px; line-height: 1; color: var(--dim); background: none; border: 0; cursor: pointer; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 14px; }
.seg button { min-height: 40px; padding: 0 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--dim); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.seg button[aria-pressed=true], .seg button[aria-selected=true] { color: var(--bg); background: var(--accent); }
.ghost.sm { min-height: 36px; font-size: 13px; border-radius: 999px; }
.primary.armed, .ghost.armed { box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.35); }
.ghost.armed { color: #FFB4A6; border-color: #6B2E22; }

/* Pop-up da insígnia */
.bs-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -30px; }
.bs-art { filter: drop-shadow(0 0 24px var(--rc)); }
.bs-name { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 28px; }
.sheet .chip { padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--rc); border: 0; }
.bs-nav { display: flex; align-items: center; gap: 12px; }
.bs-nav .ghost { width: 40px; padding: 0; font-size: 20px; }
.bs-info { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; background: var(--bg); border-radius: 16px; }
.bs-info dt { color: var(--dim); }
.bs-info dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bs-actions, .bs-sell { display: flex; flex-direction: column; gap: 10px; }
.bs-listed { margin: 0; padding: 12px; font-size: 14px; font-weight: 600; text-align: center; color: #6FA8FF; border: 1px solid #2E4566; border-radius: 12px; }
.bs-sell .field[hidden] { display: none; }

/* Recarga */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts button { min-height: 44px; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); background: none; border: 1px solid var(--field-line); border-radius: 12px; cursor: pointer; }
.amounts button[aria-pressed=true] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.pay-pane { display: flex; gap: 14px; align-items: center; }
.pay-pane[hidden] { display: none; }
.pay-pane.box { padding: 14px; flex-direction: column; align-items: stretch; gap: 6px; font-size: 14px; background: var(--bg); border-radius: 14px; }
.pay-pane code { font-size: 11px; color: #D6D4DD; word-break: break-all; }
.qr { flex: none; width: 132px; height: 132px; padding: 6px; background: #fff; border-radius: 10px; }
.qr svg { display: block; width: 100%; height: 100%; }
.pix-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pix-copy code { padding: 10px; background: var(--bg); border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.sheet:focus { outline: none; }

/* Mercado */
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-balance { padding: 6px 12px; font-size: 14px; font-weight: 700; background: var(--field); border: 1px solid var(--line-2); border-radius: 999px; }
.mk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk-card { padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--field); border: 1px solid var(--line-2);
  border-top: 2px solid var(--rc); border-radius: 18px; }
.mk-card .t { font-size: 15px; font-weight: 700; }
.mk-card .r { font-size: 12px; color: var(--rc); }
.mk-card .h { font-size: 12px; color: var(--dim); }
.mk-card .own { font-size: 14px; font-weight: 700; }
.mk-card .primary, .mk-card .ghost { width: 100%; height: auto; min-height: 40px; font-size: 14px; font-weight: 700; border-radius: 12px; }
.mk-actions { width: 100%; display: flex; flex-direction: column; gap: 6px; }
@media (prefers-reduced-motion: reduce) {
  .slot.new .pic, .slot.new .glow, .sheet, .sheet-wrap .scrim { animation: none; }
}
.section-title { margin: 0; font-size: 20px; }
.lv-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Sem zoom: bloqueia toque duplo (o pinça no iOS é cancelado em app.js). */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iOS (ex.: Modo de Pouca Energia) bloqueia autoplay e desenha um botão de play: escondido; o vídeo começa no 1º toque (app.js). */
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls { display: none !important; }

/* Ranking (canvas: Ranking) */
.podium { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.podium li { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.podium .av { width: 52px; height: 52px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--bg); border-radius: 50%; }
.podium .h { max-width: 100%; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .v { font-size: 13px; font-weight: 600; color: var(--accent); }
.podium .step { width: 100%; padding-top: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
  background: var(--field); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; }
.podium .p1 .av { width: 64px; height: 64px; background: var(--ouro); }
.podium .p2 .av { background: var(--prata); }
.podium .p3 .av { background: #C98A5A; }
.podium .p1 .step { height: 96px; }
.podium .p2 .step { height: 72px; }
.podium .p3 .step { height: 56px; }
.rank-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rank-rows li, .rank-me { min-height: 56px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 14px; }
.rank-rows li.me { outline: 1px solid rgba(200, 245, 96, 0.45); }
.rank-rows .pos, .rank-me .pos { width: 30px; flex: none; font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--dim); }
.rank-rows .av, .rank-me .av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; background: var(--line-2); border-radius: 50%; }
.rank-rows .who, .rank-me .who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.rank-rows .h, .rank-me .h { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-rows .s, .rank-me .s { font-size: 12px; color: var(--dim); }
.rank-rows .v, .rank-me .v { flex: none; font-size: 15px; font-weight: 700; }
.rank-me { flex: none; margin: 0 12px 10px; background: #1F2614; border: 1px solid rgba(200, 245, 96, 0.45); }
.rank-me .pos { color: var(--accent); }
.rank-me .av { color: var(--bg); background: var(--accent); }
.rank-me .s { color: #D6D4DD; }

/* ---------- Insígnias: efeitos por raridade (badges.js) ---------- */
.badge { position: relative; display: inline-grid; place-items: center; width: var(--size, 64px); height: var(--size, 64px); flex: none; }
.badge > svg, .badge > img { position: relative; z-index: 2; width: 100%; height: 100%; display: block; object-fit: contain; }
.badge[data-rarity=incomum] > :is(svg, img) { filter: drop-shadow(0 0 4px rgba(127, 209, 174, 0.35)); }
.badge[data-rarity=raro] > :is(svg, img) { animation: glow 2.4s ease-in-out infinite; }
.badge[data-rarity=epico] > :is(svg, img), .badge[data-rarity=lendario] > :is(svg, img), .badge[data-rarity=mitico] > :is(svg, img), .badge[data-rarity=supremo] > :is(svg, img) { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 calc(var(--size) * 0.06) var(--rc)); } 50% { filter: drop-shadow(0 0 calc(var(--size) * 0.18) var(--rc)); } }
/* épico+: faíscas orbitando */
.badge[data-rarity=epico]::before, .badge[data-rarity=epico]::after,
.badge[data-rarity=lendario]::before, .badge[data-rarity=lendario]::after,
.badge[data-rarity=mitico]::before, .badge[data-rarity=mitico]::after,
.badge[data-rarity=supremo]::before, .badge[data-rarity=supremo]::after {
  content: ""; position: absolute; z-index: 3; top: 50%; left: 50%; width: calc(var(--size) * 0.08); height: calc(var(--size) * 0.08);
  margin: calc(var(--size) * -0.04); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px var(--rc);
  animation: orbit 3s linear infinite; }
.badge::after { animation-delay: -1.5s !important; animation-duration: 4.2s !important; }
@keyframes orbit { from { transform: rotate(0deg) translateX(calc(var(--size) * 0.5)) scale(1); } 50% { transform: rotate(180deg) translateX(calc(var(--size) * 0.5)) scale(0.4); } to { transform: rotate(360deg) translateX(calc(var(--size) * 0.5)) scale(1); } }
/* lendário+: anéis de aura */
.badge .aura { position: absolute; inset: 0; z-index: 1; border-radius: 50%; border: 2px solid var(--rc); opacity: 0; animation: aura 2.6s ease-out infinite; }
.badge .aura + .aura { animation-delay: -1.3s; }
@keyframes aura { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
/* mítico+: anel de fogo girando atrás */
.badge .fire { position: absolute; inset: -8%; z-index: 0; border-radius: 50%; animation: spin 4s linear infinite; filter: blur(calc(var(--size) * 0.03));
  background: conic-gradient(from 0deg, #FF5A5A, #FF8A3D, #FFD166, #FF5A5A 40%, transparent 55%, #FF8A3D 75%, #FF5A5A); opacity: 0.85; }
.badge[data-rarity=supremo] .fire { background: conic-gradient(from 0deg, #4DE1FF, #B57BFF, #FF7AC8, #C8F560, #4DE1FF); inset: -12%; animation-duration: 3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .badge > svg, .badge > img, .badge::before, .badge::after, .badge .aura, .badge .fire { animation: none !important; }
  .badge::before, .badge::after, .badge .aura { display: none; }
}
.pill-sorteio { display: inline-flex; align-items: center; gap: 5px; }
.pill-sorteio .badge { margin-left: -3px; }
.podium .badge { margin-top: -4px; }

/* Comprar cota pulsando e brilhando (só habilitado; parado com a janela fechada) */
.buy-btn { overflow: visible; isolation: isolate; }
.buy-btn:not(:disabled) { animation: buy-pulse 1.4s ease-in-out infinite; }
.buy-btn:not(:disabled)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  animation: buy-ring 1.4s ease-out infinite; }
.buy-btn:not(:disabled)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; animation: buy-shine 2.2s ease-in-out infinite; }
@keyframes buy-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px 1px rgba(200, 245, 96, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 26px 6px rgba(200, 245, 96, 0.75); } }
@keyframes buy-ring { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.12, 1.4); opacity: 0; } }
@keyframes buy-shine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) {
  .buy-btn:not(:disabled), .buy-btn:not(:disabled)::before, .buy-btn:not(:disabled)::after { animation: none; }
  .buy-btn:not(:disabled) { box-shadow: 0 0 16px 3px rgba(200, 245, 96, 0.6); } }

/* ---------- Topo da home: câmera · logo · sino ---------- */
.home-bar { display: grid; grid-template-columns: 48px 1fr 48px; padding: 2px 14px 10px; }
.home-bar .brand { justify-self: center; }
.bar-title { margin: 0; justify-self: center; font-size: 20px; }
.icon-btn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--text); background: var(--field); border: 0; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--raise); }
.icon-btn.plain { background: none; }
.icon-btn.glass { background: rgba(14, 14, 18, 0.55); }
.count-dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--live); border: 2px solid var(--bg); border-radius: 999px; }
.count-dot[hidden] { display: none; }

/* ---------- Notificações ---------- */
.nt-group { margin: 10px 8px 0; font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.nt-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.nt-item { min-height: 76px; padding: 12px; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; border-radius: 16px; }
.nt-item:hover { color: var(--text); background: var(--panel); }
.nt-item.unread { background: var(--field); }
.nt-item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-item .t { font-size: 15px; font-weight: 700; }
.nt-item .s { font-size: 13px; color: var(--dim); }
.nt-item .w { font-size: 12px; color: var(--faint); }
.nt-item .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---------- Câmera ---------- */
.screen.cam { background: #000; --top: max(12px, env(safe-area-inset-top, 0px)); --b: calc(10px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 600px) { .screen.cam { --top: 58px; --b: 34px; } }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; } /* vídeo inteiro, sem zoom */
.cam-bg, .lv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(0.55); transform: scale(1.15); }
.cam-bg.mirror { transform: scale(-1.15, 1.15); }
.lv-bg[hidden] { display: none; }
.lv-media.rtc { object-fit: contain; }
.cam-video.mirror { transform: scaleX(-1); }
.cam-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(14, 14, 18, 0.55), rgba(14, 14, 18, 0) 22%, rgba(14, 14, 18, 0) 50%, rgba(14, 14, 18, 0.92)); }
.cam-top { position: absolute; z-index: 2; top: var(--top); left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cam-onair { display: flex; align-items: center; gap: 8px; }
.cam-onair[hidden] { display: none; }
.cam-onair .rec { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--live); border-radius: 8px; }
.cam-onair .blink { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: rec-blink 1.2s infinite; }
.cam-onair .watch { padding: 6px 10px; font-size: 12px; font-weight: 700; background: rgba(14, 14, 18, 0.6); border-radius: 8px; }
@keyframes rec-blink { 50% { opacity: 0.35; } }
.cam-msg { position: absolute; z-index: 2; top: 45%; left: 24px; right: 24px; margin: 0; text-align: center; font-size: 15px; color: var(--label); }
.cam-panel { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: calc(var(--b) + 10px); display: flex; flex-direction: column; gap: 14px; }
.cam-panel[hidden] { display: none; }
.cam-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--label); }
.cam-field input { height: 52px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--text); background: rgba(14, 14, 18, 0.7); border: 1px solid var(--field-line); border-radius: 14px; }
.cam-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--label); }
.cam-note b { color: var(--accent); }
.cam-note.center { text-align: center; font-size: 12px; color: var(--dim); }
.go-live { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--live); border: 0; border-radius: 999px; cursor: pointer; }
.go-live:disabled { opacity: 0.6; }
.go-live .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.cam-info { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; background: rgba(14, 14, 18, 0.7); border: 1px solid var(--line-2); border-radius: 16px; }
.cam-info > span { display: flex; flex-direction: column; gap: 2px; }
.cam-info .r { align-items: flex-end; }
.cam-info .k { font-size: 12px; color: var(--dim); }
.cam-info .v { font-size: 16px; font-weight: 700; }
.cam-info .accent { color: var(--accent); }
.go-watch, .go-end { min-height: 52px; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; font-weight: 700; border-radius: 999px; cursor: pointer; }
.go-watch { color: var(--bg); background: var(--accent); text-decoration: none; }
.go-watch:hover { color: var(--bg); }
.go-end { color: var(--text); background: transparent; border: 1px solid var(--live); }
.go-end.armed { color: #fff; background: var(--live); }

/* ---------- Live: prêmios e ganhadores ---------- */
.lv-prizes { align-self: flex-start; min-width: 196px; max-width: 260px; padding: 8px 10px; white-space: nowrap; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 6px;
  font: inherit; font-size: 13px; font-weight: 700; text-align: left; color: var(--text); background: rgba(14, 14, 18, 0.55); border: 0; border-radius: 14px; cursor: pointer; }
.lv-top3 { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 500; }
.lv-top3 li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lv-top3 .p { width: 12px; font-weight: 700; }
.lv-top3 .h { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-top3 .v { font-weight: 700; }
.lv-prizes[hidden] { display: none; }
.lv-prizes svg { color: var(--ouro); }
.gw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.gw-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.gw-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--dim); }
.gw-total b { font-family: 'Space Grotesk', sans-serif; font-size: 24px; color: var(--accent); }
.gw-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gw-list li { min-height: 56px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 14px; }
.gw-list li.me { background: #1F2614; outline: 1px solid rgba(200, 245, 96, 0.45); }
.gw-list .pos { width: 22px; font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--dim); }
.gw-list .av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; background: var(--line-2); border-radius: 50%; }
.gw-list .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gw-list .h { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-list .s { font-size: 12px; color: var(--dim); }
.gw-list .v { flex: none; font-size: 15px; font-weight: 700; }

/* ---------- Ranking: período ---------- */
.chips { display: flex; align-items: center; gap: 8px; }
.chips button { min-height: 36px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--dim); background: none; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed=true] { color: var(--text); background: var(--line-2); border-color: var(--accent); }
.chips .note { margin-left: auto; color: var(--faint); }
.rank-me .cta { color: var(--text); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .cam-onair .blink { animation: none; } }

/* ---------- Carteira (folha do perfil) ---------- */
.wl-sum { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border-radius: 16px; }
.wl-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-nums > span { display: flex; flex-direction: column; gap: 2px; }
.wl-nums .k { font-size: 12px; color: var(--dim); }
.wl-nums b { font-family: 'Space Grotesk', sans-serif; font-size: 22px; }
.wl-nums b.free { color: var(--accent); }
.wl-roll { display: flex; flex-direction: column; gap: 6px; }
.wl-roll[hidden] { display: none; }
.wl-roll .bar { height: 6px; background: var(--line-2); border-radius: 3px; }
.wl-roll .bar > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease-out; }
.wl-roll .note b { color: var(--text); }
.wl-pane { display: flex; flex-direction: column; gap: 14px; }
.wl-pane[hidden] { display: none; }

/* ---------- Mercado: busca e filtros ---------- */
.mk-filters { display: flex; flex-direction: column; gap: 10px; }
.mk-filters[hidden] { display: none; }
.mk-search { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: var(--dim); background: var(--field); border: 1px solid var(--line-2); border-radius: 12px; }
.mk-search:focus-within { border-color: var(--accent); }
.mk-search input { flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 15px; color: var(--text); background: none; border: 0; outline: none; }
.mk-row { display: flex; align-items: center; gap: 12px; }
.mk-order { flex: none; display: flex; gap: 4px; padding: 3px; background: var(--field); border-radius: 10px; }
.mk-order button { min-height: 32px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--dim); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.mk-order button[aria-pressed=true] { color: var(--bg); background: var(--accent); }
.mk-price { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--dim); }
.mk-price b { color: var(--text); }
.mk-price input { width: 100%; margin: 0; accent-color: var(--accent); }

/* Procurar: bolinha vermelha piscando antes de "Ao vivo agora" */
.live-label { display: flex; align-items: center; gap: 8px; }
.rec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #FF1F3D; box-shadow: 0 0 8px rgba(255, 31, 61, 0.8); animation: rec-blink 1.2s ease-in-out infinite; }
.rec-dot[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* ---------- Live: caixa do palco (embaixo da insígnia com o anel de tempo) ---------- */
.stage-box { width: min(360px, calc(100% - 24px)); box-sizing: border-box; padding: 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(14, 14, 18, 0.72); border: 1px solid color-mix(in srgb, var(--rc, var(--accent)) 55%, transparent); border-radius: 18px;
  box-shadow: 0 0 30px color-mix(in srgb, var(--rc, var(--accent)) 22%, transparent); }
.stage .stage-box .stage-label { margin-top: 0; }
.stage[data-state=open] .stage-box { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name val" "bar bar" "next hype"; align-items: center; gap: 8px 10px; }
.stage[data-state=open] .stage-box .stage-label, .stage[data-state=open] .stage-box .meta-row, .stage[data-state=open] .stage-box .goal { display: contents; }
.stage[data-state=open] #stage-name { grid-area: name; padding: 0; font-size: 22px; letter-spacing: -0.01em; text-align: left; text-shadow: none; }
.stage[data-state=open] #stage-chip { grid-area: val; padding: 0; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--rc, var(--accent)); background: none; }
.stage[data-state=open] .goal .bar { grid-area: bar; }
.stage[data-state=open] #goal-next { grid-area: next; justify-self: start; text-shadow: none; }
.stage[data-state=open] #hype { grid-area: hype; justify-self: end; margin: 0; min-height: 0; font-size: 13px; text-shadow: none; }

/* ---------- Procurar (variação B): a mais vista em destaque + grade por visualizações ---------- */
.pq-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
.pq-card:hover { color: var(--text); }
.pq-card .pic { position: relative; height: 150px; overflow: hidden; border-radius: 16px; background: var(--card); }
.pq-card.big .pic { height: 210px; border-radius: 20px; }
.pq-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pq-card.big .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14, 14, 18, 0) 40%, rgba(14, 14, 18, 0.9)); }
.pq-pill { position: absolute; z-index: 1; top: 8px; right: 8px; height: 24px; padding: 0 8px; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(14, 14, 18, 0.6); border-radius: 6px; }
.pq-card.big .pq-pill { top: 12px; right: 12px; height: 30px; font-size: 13px; border-radius: 8px; }
.pq-pill.live { left: 12px; right: auto; letter-spacing: 0.06em; background: #FF1F3D; box-shadow: 0 0 12px rgba(255, 31, 61, 0.55); }
.pq-badge { position: absolute; z-index: 1; left: 6px; bottom: 6px; }
.pq-card.big .pq-badge { left: auto; right: 14px; bottom: 12px; }
.pq-card .info { position: absolute; z-index: 1; left: 14px; right: 80px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.pq-card .info .tag { align-self: flex-start; padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--bg); background: var(--accent); border-radius: 6px; }
.pq-card .info .t { font-family: 'Space Grotesk', sans-serif; font-size: 20px; }
.pq-card .info .h { font-size: 13px; color: #D6D4DD; }
.pq-card > .t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pq-card .pq-pill.live { left: 12px; right: auto; }
.live-label { font-size: 14px; font-weight: 700; color: var(--text); }

/* ---------- Perfil (variação A): cabeçalho central, saldo com Carteira, abas Estante/Conquistadas ---------- */
.pf-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.pf-gear { position: absolute; top: -6px; right: -10px; color: var(--dim); }
.pf-avatar { width: 84px; height: 84px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700;
  color: var(--bg); background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--ring, var(--line-2)); }
.pf-name { margin: 6px 0 0; font-size: 22px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-top .since { font-size: 13px; color: var(--dim); }
.balance .v { font-size: 24px; }
.pf-pane { display: flex; flex-direction: column; gap: 8px; }
.shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.shelf-grid .slot { padding: 10px 0; background: var(--panel); border: 0; border-top: 2px solid var(--line-2); border-radius: 14px; cursor: default; }
.shelf-grid button.slot { cursor: pointer; border-top-color: var(--rc); }
.shelf-grid .slot .glow { bottom: 6px; }
.shelf-grid .slot .x { top: 4px; right: 6px; }
.shelf-grid .slot .sale { top: -8px; left: 4px; }

/* ---------- Carteira › Recarregar (variação B) ---------- */
.tp-amount { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--bg); border-radius: 18px; }
.tp-row { display: flex; align-items: center; gap: 16px; }
.tp-step { width: 42px; height: 42px; display: grid; place-items: center; font: inherit; font-size: 22px; color: var(--text); background: none; border: 1px solid var(--field-line); border-radius: 50%; cursor: pointer; }
.tp-val { display: flex; align-items: baseline; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; }
.tp-val input { width: 3.2ch; padding: 0; font: inherit; color: var(--text); text-align: center; background: none; border: 0; border-bottom: 2px solid transparent; outline: none; }
.tp-val input:focus { border-bottom-color: var(--accent); }
.tp-quick { display: flex; gap: 6px; }
.tp-quick button { padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); background: rgba(200, 245, 96, 0.1); border: 0; border-radius: 999px; cursor: pointer; }
.tp-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-methods button { height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--dim); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.tp-methods button[aria-pressed=true] { color: var(--accent); background: rgba(200, 245, 96, 0.08); border-color: var(--accent); }
#wl-pix { align-items: stretch; }
.qr.big { align-self: center; width: 200px; height: 200px; padding: 8px; border-radius: 14px; }
.pix-code { padding: 12px; font-size: 12px; word-break: break-all; color: var(--label); background: var(--bg); border-radius: 12px; }
.link-btn { align-self: center; padding: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--dim); background: none; border: 0; cursor: pointer; }
.stage .stage-box { margin-top: 16px; } /* respiro entre o tempo (embaixo do anel) e a caixa */

/* Live: modo criador (a própria câmera, trocar câmera, Encerrar) e folha de comentários */
.lv-media.mirror { transform: scaleX(-1); }
.lv-bg.mirror { transform: scale(-1.15, 1.15); }
.lv-stream { pointer-events: none; }
.lv-chat-open { position: absolute; inset: -6px; pointer-events: auto; background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.end-btn { flex: 1; height: 52px; min-width: 132px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: #FF2D46; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 45, 70, 0.45); }
.end-btn .sq { width: 12px; height: 12px; border-radius: 3px; background: #fff; }
.end-btn.armed { background: #B5122A; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8); }
.lv-bar.typing .end-btn { display: none; }
.cm-sheet { height: 62%; overflow: hidden; padding-bottom: calc(14px + var(--bottom, 0px)); }
.cm-head { display: flex; align-items: center; justify-content: space-between; }
.cm-list { flex: 1; min-height: 0; overflow-y: auto; gap: 12px; padding-right: 4px; overscroll-behavior: contain; }
.cm-list li > div { white-space: normal; text-shadow: none; }
.cm-list .av { width: 28px; height: 28px; font-size: 12px; }
button.close-btn { padding: 0; background: transparent; border: 0; cursor: pointer; }
.lv-right button.close-btn { background: rgba(14, 14, 18, 0.45); border-radius: 50%; }

/* Fim da live: só a marca, a frase e a contagem de 5 s */
.lv-ended { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 32px; text-align: center;
  background: radial-gradient(circle at 50% 42%, #1B1F14 0%, var(--bg) 60%); animation: fade-in 0.3s ease-out; }
.lv-ended .brand { font-size: 34px; }
.lv-ended .brand svg { animation: ended-beat 1.6s ease-in-out infinite; }
.lv-ended h1 { margin: 40px 0 0; font-size: 26px; }
.lv-ended p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--dim); }
.lv-ended .bar { width: 120px; height: 4px; margin-top: 28px; overflow: hidden; background: var(--line-2); border-radius: 2px; }
.lv-ended .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; animation: ended-drain 5s linear forwards; }
.lv-ended .go { position: absolute; bottom: calc(var(--b, 34px) + 14px); padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; }
@keyframes ended-drain { from { width: 100%; } to { width: 0; } }
@keyframes ended-beat { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lv-ended, .lv-ended .brand svg { animation: none; } }

/* Procurar: pessoas (qualquer perfil, ao vivo ou não) */
.pp { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.pp h2 { margin: 0; }
.pp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; }
.pp-av { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--bg); background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ring, var(--line-2)); }
.pp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-txt span { font-size: 13px; color: var(--dim); }
.pp-live { flex: none; padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: #FF1F3D; border-radius: 6px; }
.pp-go { flex: none; font-size: 24px; line-height: 1; color: var(--faint); }
/* Perfil de outra pessoa */
.pf-back { position: absolute; top: -6px; left: -10px; color: var(--text); }
.pf-watch { height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 800; color: #fff; text-decoration: none;
  background: #FF1F3D; border-radius: 999px; box-shadow: 0 0 16px rgba(255, 31, 61, 0.45); }
.pf-watch .dot { width: 9px; height: 9px; background: #fff; border-radius: 50%; animation: rec-blink 1.2s infinite; }
.dep { display: contents; }
.dep-note { margin: -6px 0 0; font-size: 14px; color: var(--dim); }
/* Prévia da câmera em canvas: o <video> só alimenta (fica invisível, mas tocando) */
.cam-src { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.lv-media.cam-src { opacity: 0; }
.lv-media.mirror { transform: scaleX(-1); }
.cam-video.mirror { transform: scaleX(-1); }

/* Live: anel, insígnia e caixa ~75% e mais juntos (sem encostar), para o rosto do criador ficar à vista */
.stage-ring { width: 112px; height: 112px; }
.stage .count { bottom: -9px; padding: 2px 9px; font-size: 14px; }
.stage .stage-box { margin-top: 6px; width: min(300px, calc(100% - 24px)); padding: 9px 12px; gap: 6px; border-radius: 16px; }
.stage[data-state=open] .stage-box { gap: 6px 10px; }
.stage[data-state=open] #stage-name { font-size: 18px; }
.stage[data-state=open] #stage-chip { font-size: 12px; }
.stage .goal .bar { height: 8px; }
.stage .goal .bar > div::after { width: 11px; height: 11px; margin-top: -5.5px; }
.stage .next { font-size: 12px; }
.stage[data-state=open] #hype { font-size: 12px; }
.stage-label h2 { font-size: 20px; }
.stage[data-state=result] .stage-label h2 { font-size: 18px; }
.stage .levelup-text { font-size: 22px; }
.stage .result .primary { height: 42px; font-size: 14px; }

/* Palco e chat ancorados no vídeo (live.js define --stage-b); em tela baixa, garante 2 linhas de chat acima da barra */
.stage { bottom: max(var(--stage-b, 0px), calc(var(--bottom) + 120px)); }
.stage.kb { bottom: calc(var(--b) + 200px); }
.lv-stream { max-height: calc(max(var(--stage-b, 0px), var(--bottom) + 120px) - var(--bottom) - 72px); overflow: hidden; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px); mask-image: linear-gradient(to bottom, transparent, #000 18px); }
.lv-stream > * { flex: none; }

/* Festa do ganhador */
.win-fx { position: absolute; inset: 0; z-index: 25; overflow: hidden; pointer-events: none; transition: opacity 0.45s;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--wc) 34%, transparent) 0%, rgba(14, 14, 18, 0.8) 58%); }
.win-fx.go { animation: fade-in 0.3s ease-out; }
.win-fx.bye { opacity: 0; }
.wf-rays { position: absolute; left: 50%; top: 40%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  background: repeating-conic-gradient(color-mix(in srgb, var(--wc) 30%, transparent) 0deg 10deg, transparent 10deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%); mask-image: radial-gradient(circle, #000 18%, transparent 62%); animation: spin 9s linear infinite; }
.wf-card { position: absolute; left: 0; right: 0; top: 22%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; text-align: center; }
.wf-badge { filter: drop-shadow(0 0 28px var(--wc)); }
.win-fx.go .wf-badge { animation: wf-pop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.wf-title { font-family: 'Space Grotesk', sans-serif; font-size: 30px; letter-spacing: 0.02em; color: #fff; text-shadow: 0 0 24px var(--wc); overflow-wrap: anywhere; }
.win-fx.me .wf-title { font-size: 40px; color: #E9B949; }
.win-fx.go .wf-title { animation: wf-title 0.7s 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.wf-line { font-size: 18px; font-weight: 700; color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.win-fx.go .wf-line { animation: wf-title 0.6s 0.45s ease-out both; }
.wf-confetti i { position: absolute; top: -24px; border-radius: 2px; animation: wf-fall var(--d) var(--dl) cubic-bezier(0.3, 0.2, 0.6, 1) forwards; }
@keyframes wf-fall { to { transform: translate(var(--dx), 1050px) rotate(var(--r)); } }
@keyframes wf-pop { from { transform: scale(0.2) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.15) rotate(6deg); opacity: 1; } to { transform: none; } }
@keyframes wf-title { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .win-fx.go, .wf-rays, .win-fx.go .wf-badge, .win-fx.go .wf-title, .win-fx.go .wf-line { animation: none; } }
.stage.gone { visibility: hidden; }

/* ---------- Funil de afiliado: vale grátis, FOMO e cadastro rápido ---------- */
.buy-btn.free:not(:disabled)::before { background: #FFD166; }
.buy-btn.free:not(:disabled) { background: #FFD166; }

.fomo { width: 100%; box-sizing: border-box; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.4;
  color: #D6D4DD; background: rgba(23, 23, 29, 0.94); border: 1px solid rgba(181, 123, 255, 0.55); border-radius: 18px; box-shadow: 0 0 30px rgba(181, 123, 255, 0.25); animation: fade-in 0.25s ease-out; }
.fomo[hidden], .lv-chat[hidden] { display: none; }
.fomo p { margin: 0; }
.fomo-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fomo-h strong { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: var(--text); }
.fomo-clock { padding: 3px 8px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--bg); background: #FF5A5A; border-radius: 999px; }
.fomo-clock[hidden] { display: none; }
.fomo .rc { color: #B57BFF; } .fomo .gold { color: var(--ouro); }
.fomo .primary { height: 44px; margin-top: 3px; font-weight: 800; }
.su-sheet form { display: flex; flex-direction: column; gap: 12px; }
.su-sub { margin: -8px 0 0; font-size: 14px; line-height: 1.45; color: var(--dim); }
.su-fast { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(200, 245, 96, 0.1); border-radius: 999px; white-space: nowrap; }
/* Destaque do que já saiu na live: o motivo para cadastrar agora. */
.su-prize { position: relative; overflow: hidden; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, rgba(233, 185, 73, 0.2), rgba(233, 185, 73, 0.06) 60%); border: 1px solid rgba(233, 185, 73, 0.45); border-radius: 16px; }
.su-prize[hidden] { display: none; }
.su-prize::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: cv-shine 3.2s 0.6s infinite; }
.su-prize .ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; color: #1A1200; background: linear-gradient(135deg, #FFE08A, #E9B949); border-radius: 12px; box-shadow: 0 0 18px rgba(233, 185, 73, 0.4); }
.su-prize .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: #D6D4DD; }
.su-prize .tx b { font-family: 'Space Grotesk', sans-serif; font-size: 22px; line-height: 1.15; color: #FFD166; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-prize .up { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding-left: 12px; font-size: 11px; color: var(--dim); border-left: 1px solid rgba(233, 185, 73, 0.3); }
.su-prize .up b { font-size: 14px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .su-prize::after { animation: none; } }
.su-login { margin: 0; text-align: center; font-size: 13px; }
/* Página do convite (vale grátis) */
.cv { align-items: center; background: radial-gradient(ellipse at 50% 40%, #2B2350 0%, #0E0E12 70%); }
.cv-conf span { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: cv-conf 3.2s linear infinite; }
@keyframes cv-conf { 0% { transform: translateY(-40px) rotate(0); } 100% { transform: translateY(110vh) rotate(720deg); } }
.cv-rays { position: absolute; left: 50%; top: 36%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 209, 102, 0.13) 0 10deg, transparent 10deg 30deg); animation: cv-spin 18s linear infinite; pointer-events: none;
  /* Pontas dos raios somem num degradê, sem borda dura. */
  filter: blur(3px); -webkit-mask: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0.6) 38%, transparent 68%); mask: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0.6) 38%, transparent 68%); }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-top { position: relative; margin-top: calc(var(--top, 0px) + 56px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cv-who { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, 0.08); border-radius: 999px; }
.cv-who .avatar { width: 26px; height: 26px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; border-radius: 50%; }
.cv-live { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--dim); }
.cv-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6A6873; }
.cv-live.on { color: #FF8090; } .cv-live.on::before { background: var(--live); animation: cv-blink 1.1s ease-in-out infinite; }
@keyframes cv-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.7); } 50% { opacity: 0.25; box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); } }
.cv-live[hidden] { display: none; }
.cv-tk-wrap { position: relative; margin-top: 84px; animation: cv-drop 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
/* Ticket: corpo + canhoto picotado, com os dois recortes no picote; levemente inclinado e flutuando. */
.cv-ticket { --cut: 248px; position: relative; width: 328px; height: 178px; display: grid; grid-template-columns: var(--cut) 1fr; overflow: hidden; color: #2A1B00;
  background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.55), transparent 42%), linear-gradient(135deg, #FFE9A3 0%, #FFD166 42%, #F2B33D 75%, #E39B2B 100%);
  border-radius: 20px; box-shadow: 0 22px 60px rgba(255, 190, 70, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
  -webkit-mask: radial-gradient(circle 13px at var(--cut) 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at var(--cut) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 13px at var(--cut) 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at var(--cut) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  transform: rotate(-4deg); animation: cv-float 3.2s 1.1s ease-in-out infinite; }
.cv-ticket::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: cv-shine 2.6s 1.2s infinite; }
.cv-tk-main { position: relative; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 8px, transparent 8px 16px); }
.cv-tk-main .k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; }
.cv-tk-main .v { display: flex; align-items: flex-start; gap: 4px; font-family: 'Space Grotesk', sans-serif; font-size: 78px; font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.45); }
.cv-tk-main .v small { margin-top: 8px; font-size: 26px; letter-spacing: 0; }
.cv-tk-main .d { font-size: 12.5px; font-weight: 700; opacity: 0.85; }
.cv-tk-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-left: 2.5px dashed rgba(42, 27, 0, 0.35); background: rgba(255, 255, 255, 0.14); }
.cv-tk-stub b { font-family: 'Space Grotesk', sans-serif; font-size: 30px; line-height: 1; }
.cv-tk-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; }
@keyframes cv-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }
@keyframes cv-drop { 0% { transform: translateY(-260px) rotate(-18deg) scale(0.6); opacity: 0; } 60% { transform: translateY(12px) rotate(4deg) scale(1.05); opacity: 1; } 80% { transform: translateY(-6px) rotate(-2deg); } 100% { transform: none; } }
@keyframes cv-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.cv-copy { position: relative; margin: 48px 28px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cv-copy h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.cv-copy p { margin: 0; font-size: 16px; line-height: 1.45; color: #D6D4DD; }
.cv-copy strong { color: #FFD166; }
.cv-cta { position: relative; margin: auto 28px calc(var(--bottom, 0px) + 56px); width: calc(100% - 56px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cv-go { width: 100%; height: 68px; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 0.1em; border-radius: 18px; animation: cv-pulse 1.3s ease-in-out infinite; }
.cv-go:disabled { animation: none; opacity: 0.8; }
/* Pulso: cresce um pouco e solta um anel verde. */
@keyframes cv-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 245, 96, 0.6); } 50% { transform: scale(1.045); box-shadow: 0 0 0 16px rgba(200, 245, 96, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 245, 96, 0); } }
@media (prefers-reduced-motion: reduce) { .cv-tk-wrap, .cv-ticket, .cv-ticket::after, .cv-rays, .cv-go, .cv-live.on::before { animation: none; } }
.lv-join.off { display: none; }

/* FOMO (visitante que já usou o vale): sem barra de chat/PARTICIPAR; o painel desce para o lugar dela.
   Sem o degradê e o limite de altura do chat, que apagavam e cortavam o topo do painel. */
.lv-stream.wide { z-index: 3; width: auto; right: 12px; bottom: var(--b); max-height: none; -webkit-mask-image: none; mask-image: none; }
.lv-bar[hidden] { display: none; }
/* Comentários atrás do painel do FOMO: apagados e parcialmente por baixo; tocando, vêm para a frente. */
.lv-stream.wide { gap: 0; }
.lv-stream.wide .lv-chat { order: -1; position: relative; z-index: 0; margin-bottom: -16px; padding-bottom: 22px; opacity: 0.45; filter: blur(0.4px); cursor: pointer; transition: opacity 0.2s, filter 0.2s; }
.lv-stream.wide .fomo { position: relative; z-index: 1; transition: opacity 0.2s, transform 0.2s; }
.lv-stream.wide.chat-on .lv-chat { z-index: 2; opacity: 1; filter: none; }
.lv-stream.wide.chat-on .fomo { opacity: 0.55; transform: translateY(6px) scale(0.98); }
/* O chat deixa os toques passarem para o vídeo; o painel do FOMO e os comentários atrás dele precisam do toque. */
.lv-stream.wide .fomo, .lv-stream.wide .lv-chat { pointer-events: auto; }

/* Ancoragem de valor: "Potencial de ganho de R$ X" logo acima do PARTICIPAR. */
.buy-pot { position: absolute; bottom: calc(100% + 7px); right: 0; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: #FFD166;
  padding: 3px 8px; background: rgba(14, 14, 18, 0.72); border-radius: 999px; text-shadow: none; pointer-events: none; }
.buy-pot[hidden] { display: none; }
/* Barra em estágios: 4 blocos (marcas em 25/50/75%); a partir de 80%, pisca em vermelho. */
.stage .goal .bar { position: relative; }
.stage .goal .bar::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, transparent calc(25% - 1.5px), rgba(14, 14, 18, 0.95) calc(25% - 1.5px) calc(25% + 1.5px), transparent calc(25% + 1.5px) calc(50% - 1.5px),
    rgba(14, 14, 18, 0.95) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px) calc(75% - 1.5px), rgba(14, 14, 18, 0.95) calc(75% - 1.5px) calc(75% + 1.5px), transparent calc(75% + 1.5px)); }
.stage .goal .bar > div::after { z-index: 2; }
.stage.hot .goal .bar > div { background: #FF1A1A; animation: imminent 0.32s ease-in-out infinite alternate; }
.stage.hot .goal .bar > div::after { box-shadow: 0 0 14px 6px #FF1A1A; }
@keyframes imminent { from { background: #FF1A1A; box-shadow: 0 0 16px 3px rgba(255, 26, 26, 0.95); } to { background: #9E0000; box-shadow: 0 0 4px rgba(255, 26, 26, 0.3); } }
.stage.hot .hype { color: #FF6B6B; }
/* Texto longo do "iminente": ocupa a linha toda (a "próxima" sai nesse momento). */
.stage.hot[data-state=open] .stage-box { grid-template-areas: "name val" "bar bar" "hype hype"; }
.stage.hot[data-state=open] .stage-box .next { display: none; }
@media (prefers-reduced-motion: reduce) { .stage.hot .goal .bar > div { animation: none; } }
/* Chat um pouco mais largo (cabe "acabou de comprar sua 5ª cota!") e acima da etiqueta do potencial. */
.lv-stream:not(.wide) { width: min(340px, calc(100% - 96px)); }
.live:has(#buy-pot:not([hidden])) .lv-stream:not(.wide) { bottom: calc(var(--b) + 90px);
  max-height: calc(max(var(--stage-b, 0px), var(--bottom) + 120px) - var(--bottom) - 98px); }

/* Recarga = Passaporte Frequency */
.tp-pass { margin: 0; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; color: #D6D4DD;
  background: linear-gradient(120deg, rgba(18, 53, 40, 0.9), rgba(13, 36, 27, 0.6)); border: 1px solid rgba(233, 185, 73, 0.4); border-radius: 14px; }
.tp-pass .ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ouro); border: 1.5px solid rgba(233, 185, 73, 0.6); border-radius: 50%; }
.tp-pass b { color: var(--text); } .tp-pass b.g { color: var(--accent); }

/* Perfil: aba discreta dos Passaportes (só o ícone) */
.seg.pf-seg { grid-auto-flow: row; grid-template-columns: 1fr 1fr 48px; }
.seg.pf-seg button[data-ptab=pass] { display: grid; place-items: center; padding: 0; }
.pp-intro { margin: 2px 0 12px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.pp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pp { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line, #2A2A33); border-radius: 18px; }
.pp-card { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: linear-gradient(135deg, #123528, #0D241B 60%, #0A1A14); }
.pp-k { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--ouro); }
.pp-ic { grid-row: span 3; width: 46px; height: 46px; display: grid; place-items: center; color: var(--ouro); border: 1.5px solid rgba(233, 185, 73, 0.6); border-radius: 50%; }
.pp-n { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.pp-d { font-size: 12px; color: #A9C9B8; }
.pp-row { padding: 12px 16px; display: flex; align-items: center; gap: 12px; background: #17171D; }
.pp-book { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent); background: rgba(200, 245, 96, 0.08); border-radius: 10px; }
.pp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 700; }
.pp-t span { font-size: 12px; font-weight: 500; color: var(--dim); }
.pp-read { flex: none; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 800; color: var(--bg); background: var(--accent); border: 0; border-radius: 10px; cursor: pointer; }
.pp-soon { flex: none; padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--dim); background: #1F1F27; border-radius: 999px; }
.seg.pf-seg:has(#pass-tab[hidden]) { grid-template-columns: 1fr 1fr; }
