/* ===== Resenha Máxima: o boteco neon =====
   A identidade da Resenha: parede de tijolo à noite, letreiro de neon, a
   pergunta na lousa do bar, as respostas em guardanapo escrito à caneta, o
   ranking no quadro de giz. Tudo cabe na tela (sem rolar a página): o palco
   encolhe para caber (app.js, rsEncaixar). Nada roda sem parar além do
   letreiro piscando, que some nos gráficos leves. */
@font-face { font-family: "Neon Resenha"; font-display: swap; src: url("BubblegumSans-Regular.ttf") format("truetype"); }

body.modo-resenha .cena { background: #150a17; }
body.modo-resenha .tint:not(.base) { opacity: 0 !important; }

.resenha {
  --neon: #ff3fa4; --neon2: #39f3ff; --amarelo: #ffe14d; --giz: #f4f1e6; --lousa: #1c2b25; --madeira: #6b4325;
  --papel: #fbf7ec; --caneta: #1b2c7a; --ok: #3fdc93; --ruim: #ff5a4f; --apagado: #c3b6d6;
  --rs-rosa: var(--neon); --rs-roxo: #9b7bff; --rs-ouro: #ffd24a; --rs-ok: var(--ok); --rs-texto: #f6f0ff; --rs-apagado: var(--apagado);
  --mao: "Caderno", "Comic Sans MS", system-ui, sans-serif; --letreiro: "Neon Resenha", "Caderno", system-ui, sans-serif;
  position: fixed; left: 0; top: 0; width: 100%; height: var(--rs-h, 100dvh); z-index: 4; overflow: hidden; color: var(--rs-texto);
  display: grid; grid-template: "cabeca cabeca" auto "palco lado" minmax(0, 1fr) / minmax(0, 1fr) clamp(220px, 24vw, 300px);
  gap: clamp(8px, 1.6vh, 14px) clamp(10px, 1.6vw, 18px);
  padding: max(10px, var(--in-top)) max(10px, var(--in-right)) max(10px, var(--in-bottom)) max(10px, var(--in-left));
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; box-sizing: border-box;
  /* A parede: tijolo desenhado em SVG, a luz rosa do letreiro no alto e o ciano no canto. */
  background:
    radial-gradient(70vw 45vh at 50% -8%, rgba(255,63,164,.32), transparent 70%),
    radial-gradient(55vw 50vh at 105% 105%, rgba(57,243,255,.16), transparent 70%),
    radial-gradient(120vw 90vh at 50% 50%, transparent 40%, rgba(0,0,0,.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Crect width='96' height='48' fill='%232a1424'/%3E%3Crect x='2' y='2' width='44' height='20' rx='2' fill='%23331828'/%3E%3Crect x='50' y='2' width='44' height='20' rx='2' fill='%232e1626'/%3E%3Crect x='-22' y='26' width='44' height='20' rx='2' fill='%23301727'/%3E%3Crect x='26' y='26' width='44' height='20' rx='2' fill='%23361a2b'/%3E%3Crect x='74' y='26' width='44' height='20' rx='2' fill='%232f1626'/%3E%3C/svg%3E");
}
.resenha[hidden] { display: none; }

/* ----- Cabeçalho: letreiro, placa da rodada, relógio de neon ----- */
.rs-cabeca { grid-area: cabeca; display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px); min-width: 0; }
.rs-logo { flex: none; width: clamp(130px, 22vh, 200px); transform: rotate(-3deg); user-select: none; }
.rs-logo-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rs-logo-svg .tubo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rs-logo-svg text.tubo { font: 400 40px/1 var(--letreiro); letter-spacing: 1px; stroke-width: 1.6px; }
.rs-logo-svg text.pequeno { font-size: 17px; letter-spacing: 5px; stroke-width: 1.1px; }
.rs-logo-svg g.tubo { stroke-width: 1.4px; }
.rs-logo-svg .rosa { stroke: #ffe3f2; filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 7px var(--neon)) drop-shadow(0 0 16px rgba(255,63,164,.8)); animation: rs-pisca 7s infinite; }
.rs-logo-svg .ciano { stroke: #e2feff; filter: drop-shadow(0 0 2px var(--neon2)) drop-shadow(0 0 7px var(--neon2)); }
.rs-logo-svg .cheio { fill: #e2feff; stroke: none; }
.rs-logo-svg .bolha { fill: none; stroke: #e2feff; stroke-width: 1; filter: drop-shadow(0 0 4px var(--neon2)); }
body.rs-final .rs-logo-svg .rosa { filter: drop-shadow(0 0 2px #ff7a3b) drop-shadow(0 0 8px #ff7a3b) drop-shadow(0 0 18px rgba(255,90,40,.9)); }
@keyframes rs-pisca { 0%, 91%, 93.5%, 96%, 100% { opacity: 1; } 92%, 95% { opacity: .35; } }
.rs-tag { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 14px; border-radius: 99px;
  font: 800 clamp(11px, 1.7vh, 14px)/1.1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: rgba(10,4,14,.6); border: 1.5px solid rgba(255,63,164,.55); box-shadow: 0 0 14px rgba(255,63,164,.25) inset; }
.rs-cabeca-bts { flex: none; display: flex; align-items: center; gap: 8px; }
.rs-rodinha { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  color: #fff; background: rgba(10,4,14,.6); border: 1.5px solid rgba(57,243,255,.45); font: 800 13px/1 system-ui, sans-serif; }
.rs-rodinha svg { width: 20px; height: 20px; fill: currentColor; }
.rs-pill { width: auto; padding: 0 12px; border-radius: 99px; gap: 6px; display: none; }
.rs-pill[hidden] { display: none !important; }

/* Relógio: anel de neon que esvazia (app.js põe --p de 1 a 0). */
.rs-relogio { flex: none; position: relative; width: clamp(46px, 7.5vh, 64px); aspect-ratio: 1; display: grid; place-items: center; --p: 1; }
.rs-relogio:empty { display: none; }
.rs-relogio::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--neon2) calc(var(--p) * 360deg), rgba(255,255,255,.08) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%);
  filter: drop-shadow(0 0 6px var(--neon2)); }
.rs-relogio.urgente::before { background: conic-gradient(var(--ruim) calc(var(--p) * 360deg), rgba(255,255,255,.08) 0); filter: drop-shadow(0 0 8px var(--ruim)); }
.rs-relogio.calmo::before { background: conic-gradient(var(--amarelo) calc(var(--p) * 360deg), rgba(255,255,255,.08) 0); filter: drop-shadow(0 0 5px var(--amarelo)); }
.rs-relogio .rs-ate { position: relative; font: 400 clamp(15px, 2.6vh, 21px)/1 var(--letreiro); color: #fff; font-variant-numeric: tabular-nums; }
.rs-relogio.urgente .rs-ate { color: #ffd0cc; animation: rs-pulso 1s ease-in-out infinite; }
.rs-barra { display: none !important; }
@keyframes rs-pulso { 50% { transform: scale(1.18); } }

/* ----- Palco: onde a rodada acontece ----- */
.rs-cartao { grid-area: palco; position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 2vh, 20px); }
.rs-cartao canvas.confete { position: absolute; inset: -40px -10px; width: calc(100% + 20px); height: calc(100% + 80px); pointer-events: none; z-index: 6; }
.rs-palco { flex: 0 1 auto; min-height: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.rs-dentro { display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); width: min(100%, 760px); margin: 0 auto; padding: 6px 4px; box-sizing: border-box; }

.rs-fase { font: 800 clamp(11px, 1.6vh, 13px)/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--neon2);
  text-shadow: 0 0 10px rgba(57,243,255,.5); text-align: center; }
.rs-info { margin: 0; text-align: center; font-size: clamp(12px, 1.8vh, 14px); color: var(--apagado); }
.rs-ok { margin: 0; text-align: center; font-size: 15px; font-weight: 800; color: var(--ok); }
.rs-vazio, .rs-proxima { margin: 0; text-align: center; color: var(--apagado); font-size: clamp(12px, 1.7vh, 14px); }
.rs-proxima b { color: #fff; }

/* A lousa do bar: a pergunta da rodada. */
.rs-enunciado { position: relative; margin: 0; padding: clamp(12px, 2.4vh, 22px) clamp(14px, 2.4vw, 26px); border-radius: 10px; text-align: center;
  font: 400 clamp(20px, 4vh, 34px)/1.2 var(--mao); color: var(--giz); overflow-wrap: anywhere; text-shadow: 0 0 1px rgba(255,255,255,.6);
  background: radial-gradient(120% 140% at 30% 20%, rgba(255,255,255,.07), transparent 60%), var(--lousa);
  border: clamp(6px, 1vh, 9px) solid var(--madeira); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 12px 26px rgba(0,0,0,.45); }
.rs-enunciado.menor { font-size: clamp(15px, 2.4vh, 20px); padding: 8px 14px; border-width: 5px; }

.rs-modo { align-self: center; padding: 5px 14px; border-radius: 99px; font: 400 clamp(13px, 2vh, 16px)/1 var(--letreiro); letter-spacing: .06em; }
.rs-modo.final { color: #3a1400; background: linear-gradient(90deg, #ffb347, #ffd24a, #ff7a3b); box-shadow: 0 0 20px rgba(255,150,60,.6); }
.rs-modo.relampago { color: #1b1400; background: var(--amarelo); box-shadow: 0 0 18px rgba(255,225,77,.55); }

.rs-quantos { display: grid; gap: 5px; font-size: 12.5px; color: var(--apagado); text-align: center; width: min(100%, 420px); margin: 0 auto; }
.rs-quantos b { color: #fff; display: inline-block; }
.rs-prog { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.rs-prog i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); border-radius: inherit;
  background: linear-gradient(90deg, var(--neon2), #b8fbff); box-shadow: 0 0 10px var(--neon2); transition: transform .5s cubic-bezier(.2, 1, .3, 1); }

/* ----- Guardanapo: onde se escreve ----- */
.rs-form { flex: none; display: grid; gap: 6px; width: min(100%, 760px); margin: 0 auto; }
.rs-form[hidden] { display: none; }
.rs-texto { width: 100%; box-sizing: border-box; resize: none; min-height: 0; height: clamp(64px, 13vh, 110px); padding: 10px 14px; border: 0; outline: none;
  border-radius: 4px; font: 400 clamp(19px, 3vh, 24px)/1.25 var(--mao); color: var(--caneta); transform: rotate(-.6deg);
  background: repeating-linear-gradient(0deg, transparent 0 29px, rgba(27,44,122,.08) 29px 30px),
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.03) 1px, transparent 2px) 0 0 / 9px 9px, var(--papel);
  box-shadow: 0 10px 22px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.06); transition: box-shadow .2s; }
.rs-texto::placeholder { color: rgba(27,44,122,.4); }
.rs-texto:focus { box-shadow: 0 0 0 3px var(--neon), 0 0 22px rgba(255,63,164,.5), 0 10px 22px rgba(0,0,0,.45); }
.rs-texto.enviada { box-shadow: 0 0 0 3px var(--ok), 0 0 18px rgba(63,220,147,.45), 0 10px 22px rgba(0,0,0,.45); }
.rs-texto.erra { animation: rs-erra .3s; box-shadow: 0 0 0 3px var(--ruim), 0 10px 22px rgba(0,0,0,.45); }
@keyframes rs-erra { 25% { transform: translateX(-7px) rotate(-.6deg); } 75% { transform: translateX(7px) rotate(-.6deg); } }
.rs-form-pe { display: flex; align-items: center; gap: 8px; }
.rs-form-pe small { color: var(--apagado); font-size: 12px; font-variant-numeric: tabular-nums; }
#rs-conta.quase { color: #ffb347; font-weight: 800; }
.rs-form-pe .rs-dobro { flex: 1; }
.rs-form-pe .rs-dobro[hidden] + * { margin-left: auto; }
.rs-salva { margin: 0; font-size: 12.5px; color: var(--ok); overflow-wrap: anywhere; text-align: center; }

/* Botão de neon. */
.rs-bt { min-height: 46px; padding: 0 20px; border-radius: 99px; border: 0; cursor: pointer; color: #fff; font: 400 18px/1 var(--letreiro); letter-spacing: .04em;
  background: rgba(255,255,255,.1); transition: background .2s, box-shadow .2s, transform .1s, opacity .2s; }
.rs-bt.forte { background: var(--neon); box-shadow: 0 0 0 2px #ffc2e3 inset, 0 0 18px rgba(255,63,164,.75), 0 6px 0 #a3125f; }
.rs-bt.forte:active { transform: translateY(4px); box-shadow: 0 0 0 2px #ffc2e3 inset, 0 0 12px rgba(255,63,164,.6), 0 2px 0 #a3125f; }
.rs-bt[data-estado="enviada"] { background: var(--ok); color: #05301c; box-shadow: 0 0 16px rgba(63,220,147,.6), 0 6px 0 #1a7a50; cursor: default; }
.rs-bt[data-estado="enviando"] { opacity: .7; }
.rs-bt.grande { min-height: 54px; font-size: 22px; padding: 0 30px; align-self: center; }
.rs-bt.leve { background: rgba(10,4,14,.6); border: 1.5px solid rgba(255,255,255,.3); box-shadow: none; min-height: 40px; font-size: 16px; }

.rs-dobro { display: grid; gap: 1px; text-align: left; padding: 6px 12px; border-radius: 12px; cursor: pointer; color: #fff;
  font: 600 13px/1.2 system-ui, sans-serif; background: rgba(10,4,14,.55); border: 1.5px dashed rgba(255,225,77,.5); min-width: 0; }
.rs-dobro b { font: 400 16px/1.1 var(--letreiro); color: var(--amarelo); }
.rs-dobro small { font-size: 11px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-dobro[data-estado="on"] { border-style: solid; border-color: var(--amarelo); background: rgba(255,225,77,.18); box-shadow: 0 0 18px rgba(255,225,77,.45); }
.rs-dobro:disabled { opacity: .45; cursor: default; }
.rs-dobro[hidden] { display: none; }

/* ----- Opções em guardanapo (votar, achar a verdade) ----- */
.rs-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(6px, 1.2vh, 12px); }
.rs-opcao { position: relative; display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 10px 12px; cursor: pointer; border: 0; border-radius: 4px;
  font: 400 clamp(17px, 2.6vh, 21px)/1.2 var(--mao); color: var(--caneta); background: var(--papel); overflow-wrap: anywhere; min-width: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.4); transform: rotate(var(--r, -.8deg)); transition: transform .15s, box-shadow .15s; }
.rs-opcao:nth-child(even) { --r: .9deg; }
.rs-opcao:hover:not(:disabled) { transform: rotate(0) translateY(-2px); }
.rs-opcao small { display: block; margin-top: 2px; font: 700 11px/1 system-ui, sans-serif; color: #8a8fb0; text-transform: uppercase; letter-spacing: .08em; }
.rs-opcao.on { transform: rotate(0) scale(1.02); box-shadow: 0 0 0 3px var(--neon), 0 0 24px rgba(255,63,164,.7), 0 8px 18px rgba(0,0,0,.4); }
.rs-opcao.on::after { content: "VOTO"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-14deg); padding: 2px 8px;
  border: 2.5px solid #d8263a; border-radius: 6px; color: #d8263a; font: 900 13px/1.2 system-ui, sans-serif; letter-spacing: .1em; opacity: .9; background: var(--papel); }
.rs-opcao[data-rs-achar].on::after { content: "ESSA!"; }
.rs-opcao:disabled { opacity: .55; cursor: default; }
.rs-letra { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 400 15px/1 var(--letreiro);
  color: #fff; background: #2b1a3a; box-shadow: 0 0 0 2px rgba(255,255,255,.65) inset; }
.rs-opcao.on .rs-letra { background: var(--neon); }
.rs-anotado { margin: 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--ok); }

/* Quem escreveu: os bolachões com os nomes. */
.rs-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 16vw, 150px), 1fr)); gap: 8px; }
.rs-pessoa { display: flex; align-items: center; gap: 8px; padding: 7px 10px; min-width: 0; border-radius: 99px; cursor: pointer; color: #fff;
  font: 700 14px/1.2 system-ui, sans-serif; background: rgba(10,4,14,.6); border: 1.5px solid rgba(57,243,255,.35); transition: box-shadow .15s, border-color .15s; }
.rs-pessoa b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-pessoa.on { border-color: var(--neon2); box-shadow: 0 0 16px rgba(57,243,255,.6); background: rgba(57,243,255,.15); }
.resenha .ava { width: 30px; height: 30px; flex: none; font-size: 13px; }

.rs-revelacao { padding: clamp(12px, 2.4vh, 20px) 18px; border-radius: 6px; text-align: center; color: #2a1a0a; transform: rotate(-1.2deg);
  background: linear-gradient(180deg, #f0dfb3, #e2cc94); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.rs-revelacao small { display: block; font: 400 clamp(16px, 2.6vh, 22px)/1 var(--letreiro); letter-spacing: .14em; color: #7a2a14; }
.rs-revelacao p { margin: 6px 0 0; font: 400 clamp(22px, 4.2vh, 34px)/1.15 var(--mao); overflow-wrap: anywhere; }

/* Julgando. */
.rs-espera { display: flex; align-items: center; justify-content: center; gap: 12px; font: 400 clamp(18px, 3vh, 24px)/1.2 var(--letreiro); padding: 10px 0; color: #fff; }
.rs-espera i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--neon);
  box-shadow: 0 0 12px rgba(255,63,164,.5); animation: rs-gira .8s linear infinite; }
@keyframes rs-gira { to { transform: rotate(360deg); } }

/* ----- Resultado ----- */
/* 1) O seu: o guardanapo grande com o carimbo da nota. */
.rs-minha { position: relative; padding: clamp(14px, 2.6vh, 24px) clamp(16px, 2.6vw, 26px); border-radius: 4px; color: var(--caneta);
  background: var(--papel); box-shadow: 0 16px 34px rgba(0,0,0,.5); transform: rotate(-1deg); }
.rs-minha small { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6d80; }
.rs-minha p { margin: 6px 110px 0 0; font: 400 clamp(20px, 3.6vh, 30px)/1.2 var(--mao); overflow-wrap: anywhere; }
.rs-minha.so { transform: none; padding: 10px 14px; }
.rs-minha.so p { margin: 4px 0 0; font-size: 19px; }
.rs-minha .rs-coment { color: #b0234a; font: 400 clamp(16px, 2.4vh, 21px)/1.25 var(--mao); margin-top: 8px; }
.rs-nota-grande { position: absolute; right: 12px; top: 10px; width: clamp(80px, 13vh, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center;
  text-align: center; color: #d8263a; border: 4px solid #d8263a; box-shadow: inset 0 0 0 3px var(--papel), inset 0 0 0 5px rgba(216,38,58,.6);
  transform: rotate(-12deg); font: 400 clamp(26px, 4.6vh, 36px)/1 var(--letreiro); }
.rs-nota-grande small { font: 800 10px/1 system-ui, sans-serif; letter-spacing: .1em; color: #d8263a; }
.rs-ganhou { display: inline-block; margin-top: 8px; font: 400 24px/1 var(--letreiro); color: #13804f; }
.rs-minha-pos { display: inline-block; margin: 8px 0 0 10px; font: 700 13px/1.2 system-ui, sans-serif; color: #6b5b80; }
.rs-ver-roda { align-self: center; display: inline-flex; align-items: center; gap: 10px; }
.rs-ver-roda i { display: block; width: 46px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.rs-ver-roda i::before { content: ""; display: block; height: 100%; background: #fff; transform-origin: left; animation: rs-enche var(--t, 5s) linear forwards; }
@keyframes rs-enche { from { transform: scaleX(0); } }
.rs-meu-chip { align-self: center; padding: 6px 14px; border-radius: 99px; cursor: pointer; border: 1.5px solid rgba(255,63,164,.6); color: #fff;
  background: rgba(10,4,14,.7); font: 700 13px/1 system-ui, sans-serif; }

/* 2) A roda: os guardanapos de todo mundo. */
.rs-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(6px, 1.2vh, 10px); }
.rs-item { position: relative; padding: 9px 12px; border-radius: 4px; color: var(--caneta); background: var(--papel); min-width: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.4); transform: rotate(var(--r, -.6deg)); }
.rs-item:nth-child(even) { --r: .7deg; }
.rs-item.top { box-shadow: 0 0 0 3px var(--amarelo), 0 0 26px rgba(255,225,77,.55), 0 8px 18px rgba(0,0,0,.4); }
.rs-item.pior { background: #e9e4ea; }
.rs-item.minha { box-shadow: 0 0 0 3px var(--neon), 0 0 18px rgba(255,63,164,.5), 0 8px 18px rgba(0,0,0,.4); }
.rs-item-topo { display: flex; align-items: center; gap: 7px; font: 700 13px/1.2 system-ui, sans-serif; color: #3d3550; min-width: 0; }
.rs-item .ava { width: 24px; height: 24px; font-size: 11px; }
.rs-pos { flex: none; min-width: 20px; font-weight: 900; }
.rs-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-nota { flex: none; padding: 2px 8px; border-radius: 6px; font: 400 17px/1.1 var(--letreiro); color: #d8263a; border: 2px solid #d8263a; transform: rotate(-6deg); }
.rs-nota.ruim { color: #6b2a8a; border-color: #6b2a8a; }
.rs-pts { flex: none; font: 400 16px/1 var(--letreiro); color: #13804f; }
.rs-resposta { margin: 4px 0 0; font: 400 clamp(17px, 2.6vh, 21px)/1.18 var(--mao); overflow-wrap: anywhere; }
.rs-coment { margin-top: 3px; font: 400 clamp(14px, 2vh, 16px)/1.2 var(--mao); color: #b0234a; }
.rs-votos { display: inline-block; margin-top: 3px; font-size: 11.5px; color: #6b6280; }
.rs-dobro-res { display: inline-block; margin: 4px 6px 0 0; padding: 2px 9px; border-radius: 99px; font: 400 14px/1.2 var(--letreiro); letter-spacing: .04em; }
.rs-dobro-res.bom { color: #2a1800; background: var(--amarelo); }
.rs-dobro-res.mal { color: #fff; background: #6b2a8a; }
.rs-verdade { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; text-align: center; color: var(--giz); background: var(--lousa);
  border: 5px solid var(--madeira); box-shadow: 0 10px 22px rgba(0,0,0,.4); grid-column: 1 / -1; }
.rs-verdade small { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9fd8b8; }
.rs-verdade b { font: 400 clamp(20px, 3.4vh, 28px)/1.15 var(--mao); }
.rs-verdade span { font-size: 12.5px; color: var(--ok); }
.rs-outras { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(10,4,14,.6); border: 1px solid rgba(255,255,255,.1); grid-column: 1 / -1; }
.rs-outras small { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); }
.rs-outra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.06); }
.rs-outra p { flex: 1; min-width: 160px; margin: 0; font: 400 16px/1.2 var(--mao); color: #fff; }
.rs-outra i { color: var(--apagado); font-style: normal; font-family: system-ui, sans-serif; font-size: 12px; }
.rs-outra.minha p { color: #ffb3d9; }

/* Reações: bolachas de chope. */
.rs-reage { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rs-rx { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 8px; border-radius: 99px; cursor: pointer;
  font: 800 12px/1 system-ui, sans-serif; color: #3d3550; background: #fff; border: 1.5px solid rgba(0,0,0,.12); transition: transform .1s, box-shadow .15s; }
.rs-rx span { font-size: 16px; }
.rs-rx b:empty { display: none; }
.rs-rx.tem { background: #fff3fa; }
.rs-rx.on { border-color: var(--neon); box-shadow: 0 0 0 2px var(--neon), 0 0 12px rgba(255,63,164,.55); }
.rs-rx:active { transform: scale(.9); }
.rs-rx:disabled { opacity: .35; cursor: default; }
.rs-outra .rs-reage { margin: 0; }
.rs-outra .rs-rx { height: 26px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }
.rs-voa { position: fixed; z-index: 25; pointer-events: none; font-size: 28px; transform: translate(-50%, -50%);
  animation: rs-voa 1.3s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes rs-voa { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -80%) scale(1.3); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), -280%) scale(.9) rotate(14deg); } }

/* ----- Abertura (inscrição) ----- */
.rs-formatos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rs-formatos span { padding: 6px 12px; border-radius: 99px; font: 700 13px/1 system-ui, sans-serif; color: #fff;
  background: rgba(10,4,14,.6); border: 1.5px solid rgba(57,243,255,.35); }
.rs-abertura { display: grid; justify-items: center; gap: clamp(8px, 1.6vh, 14px); text-align: center; }
.rs-grande { font: 400 clamp(30px, 7vh, 64px)/1 var(--letreiro); color: #fff; text-shadow: 0 0 12px var(--neon), 0 0 30px rgba(255,63,164,.6); }
.rs-grande .rs-ate { font: inherit; color: var(--amarelo); text-shadow: 0 0 12px var(--amarelo); }

/* ----- Fim: pódio de neon ----- */
.rs-podio { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.4vw, 14px); perspective: 700px; }
.rs-degrau { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; min-width: 0; flex: 1; max-width: 200px; text-align: center; font-size: 13px;
  border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, rgba(57,243,255,.16), rgba(10,4,14,.7)); border: 1.5px solid rgba(57,243,255,.5);
  box-shadow: 0 0 18px rgba(57,243,255,.25); transform: rotateX(6deg); transform-origin: bottom; }
.rs-degrau b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 18px/1.1 var(--letreiro); }
.rs-degrau .ava { width: clamp(38px, 7vh, 54px); height: clamp(38px, 7vh, 54px); }
.rs-degrau.d1 { order: 2; padding-bottom: clamp(26px, 6vh, 50px); border-color: var(--amarelo); background: linear-gradient(180deg, rgba(255,225,77,.25), rgba(10,4,14,.7));
  box-shadow: 0 0 26px rgba(255,225,77,.45); }
.rs-degrau.d2 { order: 1; padding-bottom: clamp(16px, 3.4vh, 30px); }
.rs-degrau.d3 { order: 3; }
.rs-degrau.minha { box-shadow: 0 0 0 3px var(--neon), 0 0 26px rgba(255,63,164,.6); }
.rs-premio, .rs-voce-ganhou { margin: 0; text-align: center; font-size: 15px; }
.rs-voce-ganhou { font: 400 clamp(26px, 5vh, 40px)/1 var(--letreiro); color: var(--amarelo); text-shadow: 0 0 16px rgba(255,225,77,.8); }

.rs-eliminado { display: grid; gap: 4px; padding: 10px 14px; border-radius: 12px; text-align: center; background: rgba(255,90,80,.16); border: 1.5px solid rgba(255,90,80,.6); }
.rs-eliminado b { font: 400 20px/1.1 var(--letreiro); color: #ff8a80; }
.rs-eliminado span { font-size: 13px; color: var(--apagado); }

/* ----- Ranking: o quadro de giz ----- */
.rs-lado { grid-area: lado; min-height: 0; align-self: start; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; padding: 10px 12px 12px;
  border-radius: 10px; background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.06), transparent 60%), var(--lousa);
  border: 8px solid var(--madeira); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.5); box-sizing: border-box; }
.rs-lado-topo { display: flex; align-items: center; justify-content: space-between; font: 400 22px/1 var(--mao); color: var(--giz); padding: 0 2px 8px; }
.rs-lado-topo button { display: none; }
.rs-ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; min-height: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.rs-ranking li { display: flex; align-items: center; gap: 7px; min-height: 32px; min-width: 0; padding: 0 6px; border-radius: 6px; font: 400 18px/1 var(--mao); color: var(--giz); }
.rs-ranking li.eu { background: rgba(255,225,77,.14); box-shadow: inset 0 0 0 1.5px rgba(255,225,77,.6); }
.rs-ranking li small { font: 700 12px/1 system-ui, sans-serif; color: var(--ok); }
.rs-ranking li.rs-sep { min-height: 0; justify-content: center; color: var(--apagado); }
.rs-ranking .rs-pos { font-family: system-ui, sans-serif; font-size: 14px; }
.rs-ranking .ava { width: 22px; height: 22px; font-size: 10px; }
.rs-total { font: 400 20px/1 var(--mao); font-variant-numeric: tabular-nums; }
.rs-ranking li.subiu { animation: rs-subiu 1.6s ease-out; }
.rs-ranking li.ganhou small { display: inline-block; animation: rs-carimbo .4s cubic-bezier(.2, 1.6, .4, 1) .2s both; }
@keyframes rs-subiu { from { background: rgba(63,220,147,.4); transform: translateX(-5px); } }

/* ----- Faixa de neon (subiu, liderança, riso do público) ----- */
.rs-faixa { position: absolute; left: 50%; top: 0; z-index: 7; transform: translateX(-50%); max-width: calc(100% - 20px); padding: 8px 18px; border-radius: 99px;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 clamp(15px, 2.4vh, 19px)/1.1 var(--letreiro); color: #fff;
  background: rgba(10,4,14,.92); border: 2px solid var(--neon2); box-shadow: 0 0 20px rgba(57,243,255,.6); animation: rs-faixa .45s cubic-bezier(.2, 1.5, .4, 1); }
.rs-faixa.lider { color: #2a1800; background: var(--amarelo); border-color: #fff6b0; box-shadow: 0 0 26px rgba(255,225,77,.8); }
.rs-faixa.subiu { border-color: var(--ok); box-shadow: 0 0 20px rgba(63,220,147,.6); }
.rs-faixa.caiu { border-color: var(--ruim); box-shadow: 0 0 20px rgba(255,90,80,.6); }
@keyframes rs-faixa { from { transform: translate(-50%, -14px) scale(.85); opacity: 0; } }

/* ----- Abertura de rodada: o letreiro acende ----- */
.rs-flash { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; pointer-events: none; perspective: 900px;
  background: radial-gradient(circle at 50% 45%, rgba(50,14,50,.93), rgba(8,3,12,.97)); animation: rs-flash-fora 2.1s forwards; }
.rs-flash.final { background: radial-gradient(circle at 50% 45%, rgba(120,30,10,.94), rgba(20,4,4,.98)); animation-duration: 2.8s; }
.rs-intro { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 24px; transform-style: preserve-3d;
  animation: rs-intro .75s cubic-bezier(.2, 1.3, .4, 1) both; }
.rs-intro small { font: 800 13px/1 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--neon2); text-shadow: 0 0 10px var(--neon2); }
.rs-intro-emoji { font-size: clamp(60px, 13vh, 100px); line-height: 1.1; animation: rs-quica .9s cubic-bezier(.3, 1.6, .5, 1) .2s both; filter: drop-shadow(0 0 18px rgba(255,255,255,.35)); }
.rs-intro b { font: 400 clamp(34px, 8vh, 64px)/1 var(--letreiro); color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--neon), 0 0 44px var(--neon);
  animation: rs-acende 1s steps(1) .15s both; }
.rs-intro p { margin: 0; max-width: 460px; font-size: 15px; color: var(--apagado); }
.rs-intro em { font-style: normal; font: 400 18px/1 var(--letreiro); padding: 7px 16px; border-radius: 99px; color: #3a1400;
  background: linear-gradient(90deg, #ffb347, #ffd24a); box-shadow: 0 0 24px rgba(255,170,60,.8); animation: rs-carimbo .45s cubic-bezier(.2, 1.5, .4, 1) .35s both; }
.rs-intro.relampago em { background: var(--amarelo); }
.rs-intro strong { color: var(--amarelo); }
.rs-flash.final .rs-intro b { text-shadow: 0 0 6px #fff, 0 0 20px #ff7a3b, 0 0 50px #ff7a3b; }
@keyframes rs-intro { from { transform: rotateX(70deg) translateY(40px) scale(.7); opacity: 0; } }
@keyframes rs-quica { from { transform: translateY(-50px) scale(.4) rotate(-20deg); opacity: 0; } }
@keyframes rs-acende { 0% { opacity: .15; } 18% { opacity: 1; } 26% { opacity: .3; } 34%, 100% { opacity: 1; } }
@keyframes rs-flash-fora { 0%, 80% { opacity: 1; } to { opacity: 0; } }

/* ----- Rodada final: a parede pega fogo ----- */
body.rs-final .resenha { background:
    radial-gradient(70vw 45vh at 50% -8%, rgba(255,120,40,.4), transparent 70%),
    radial-gradient(55vw 50vh at 105% 105%, rgba(255,60,60,.2), transparent 70%),
    radial-gradient(120vw 90vh at 50% 50%, transparent 40%, rgba(0,0,0,.6)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Crect width='96' height='48' fill='%232c120e'/%3E%3Crect x='2' y='2' width='44' height='20' rx='2' fill='%23381612'/%3E%3Crect x='50' y='2' width='44' height='20' rx='2' fill='%23331410'/%3E%3Crect x='-22' y='26' width='44' height='20' rx='2' fill='%23361511'/%3E%3Crect x='26' y='26' width='44' height='20' rx='2' fill='%233c1813'/%3E%3Crect x='74' y='26' width='44' height='20' rx='2' fill='%23341410'/%3E%3C/svg%3E"); }


/* ----- Animações de entrada (app.js põe .entra só quando o momento muda) ----- */
.pop { animation: rs-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rs-pop { from { transform: scale(.82); } 60% { transform: scale(1.08); } }
.entra .rs-fase, .entra .rs-quantos, .entra .rs-espera, .entra .rs-eliminado, .entra .rs-modo, .entra .rs-meu-chip { animation: rs-sobe .4s cubic-bezier(.2, 1, .3, 1) both; }
.entra .rs-enunciado { animation: rs-lousa .55s cubic-bezier(.2, 1.3, .4, 1) .05s both; }
.entra .rs-opcao, .entra .rs-pessoa, .entra .rs-formatos span { animation: rs-cai .45s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i, 0) * 80ms + 180ms); }
.entra .rs-item, .entra .rs-verdade, .entra .rs-outras { animation: rs-cai .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 150ms); }
.entra .rs-item .rs-nota { animation: rs-carimbo .35s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 500ms); }
.entra .rs-minha { animation: rs-cai .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.entra .rs-nota-grande { animation: rs-carimbo .45s cubic-bezier(.2, 1.5, .4, 1) .5s both; }
.entra .rs-revelacao { animation: rs-vira .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.entra .rs-degrau { animation: rs-cresce .65s cubic-bezier(.2, 1.3, .4, 1) both; }
.entra .rs-degrau.d3 { animation-delay: .1s; }
.entra .rs-degrau.d2 { animation-delay: .35s; }
.entra .rs-degrau.d1 { animation-delay: .6s; }
.entra .rs-premio, .entra .rs-voce-ganhou, .entra .rs-grande { animation: rs-carimbo .5s cubic-bezier(.2, 1.5, .4, 1) .9s both; }
@keyframes rs-sobe { from { transform: translateY(14px); opacity: 0; } }
@keyframes rs-cai { from { transform: translateY(-30px) rotate(-8deg) scale(.9); opacity: 0; } }
@keyframes rs-lousa { from { transform: rotateX(-80deg); transform-origin: top; opacity: 0; } }
@keyframes rs-carimbo { from { transform: rotate(-16deg) scale(2.2); opacity: 0; } }
@keyframes rs-vira { from { transform: rotateY(90deg) rotate(-1.2deg); opacity: 0; } }
@keyframes rs-cresce { from { transform: scaleY(.15) translateY(30px); opacity: 0; } }

/* ----- Tela estreita (celular em pé, janela pequena): o ranking vira um
   botão no cabeçalho e abre por cima ----- */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .resenha { grid-template: "cabeca" auto "palco" minmax(0, 1fr) / minmax(0, 1fr); }
  .rs-pill { display: inline-flex; }
  .rs-lado { position: absolute; z-index: 15; left: 50%; top: 50%; width: min(92vw, 380px); max-height: 80%; transform: translate(-50%, -50%) scale(.9);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, 1.3, .4, 1); }
  .rs-lado.aberto { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
  .rs-lado-topo button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; color: var(--giz);
    background: rgba(255,255,255,.1); font-size: 16px; }
  .rs-logo { width: clamp(150px, 44vw, 200px); }
}
/* Celular em pé: a placa da rodada desce para uma linha só dela. */
@media (max-width: 560px) {
  .rs-cabeca { flex-wrap: wrap; row-gap: 6px; }
  .rs-cabeca-bts { margin-left: auto; }
  .rs-tag { order: 5; flex: 1 0 100%; text-align: center; padding: 5px 10px; }
}
/* Tela muito baixa (celular deitado): tudo mais compacto. */
@media (max-height: 520px) {
  .rs-logo { display: none; }
  .rs-texto { height: 54px; font-size: 18px; }
  .rs-bt { min-height: 40px; font-size: 16px; }
  .rs-dobro small { display: none; }
}
/* Apertado (app.js, quando nem encolhendo cabe): o secundário sai. */
.rs-palco.apertado .rs-coment, .rs-palco.apertado .rs-votos, .rs-palco.apertado .rs-outras, .rs-palco.apertado .rs-info { display: none; }
.rs-palco.apertado .rs-reage { margin-top: 3px; }

/* Gráficos leves, ou quem pediu menos movimento: tudo parado. */
body.leve .resenha *, body.leve .rs-flash, body.leve .rs-flash * { animation: none !important; transition: none !important; }
body.leve .rs-espera i { animation: rs-gira .8s linear infinite !important; }
body.leve .rs-voa { display: none; }
body.medio .rs-logo-svg .rosa { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .resenha *, .rs-flash, .rs-flash * { animation: none !important; transition: none !important; }
}
.rs-lado[hidden] { display: none; }

/* ----- Ícones (no lugar de emoji) ----- */
.rs-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; margin-right: .35em; }
.rs-ico .cheio { fill: currentColor; stroke: none; }
.rs-tag { display: flex; align-items: center; gap: 0; }
.rs-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-tag .rs-ico { color: var(--neon2); }
.rs-tag .rs-ico + .rs-ico { color: #fff; }
.rs-pill .rs-ico { color: var(--amarelo); margin-right: .25em; }
.rs-medalha { width: 1.5em; height: 1.5em; flex: none; vertical-align: middle; }
.rs-medalha circle { stroke-width: 1.5; }
.rs-medalha .fita { fill: #d8263a; }
.rs-medalha text { font: 400 10px/1 var(--letreiro); }
.rs-medalha.m1 circle { fill: #ffd34d; stroke: #b7860b; } .rs-medalha.m1 text { fill: #6b4a00; }
.rs-medalha.m2 circle { fill: #e3e7ef; stroke: #8b93a7; } .rs-medalha.m2 text { fill: #3f4657; }
.rs-medalha.m3 circle { fill: #e9a36a; stroke: #9b5a26; } .rs-medalha.m3 text { fill: #5a2d0c; }
.rs-medalha.m2 .fita { fill: #2b6cd8; } .rs-medalha.m3 .fita { fill: #2f9a5b; }
.rs-num { font: 900 13px/1 system-ui, sans-serif; }
.rs-intro-emoji .rs-ico { width: clamp(70px, 14vh, 110px); height: clamp(70px, 14vh, 110px); margin: 0; stroke: #fff; stroke-width: 1.3;
  filter: drop-shadow(0 0 3px var(--neon2)) drop-shadow(0 0 10px var(--neon2)) drop-shadow(0 0 22px rgba(57,243,255,.7)); }
.rs-intro-emoji .rs-ico .cheio { fill: #fff; }
.rs-flash.final .rs-intro-emoji .rs-ico { filter: drop-shadow(0 0 3px #ff7a3b) drop-shadow(0 0 12px #ff7a3b) drop-shadow(0 0 24px rgba(255,90,40,.8)); }
.rs-intro em .rs-ico { margin-right: .3em; }
.rs-modo .rs-ico, .rs-faixa .rs-ico { margin-right: .3em; }
.rs-faixa { display: flex; align-items: center; justify-content: center; }
.rs-faixa span { overflow: hidden; text-overflow: ellipsis; }
.rs-rx .rs-ico { width: 18px; height: 18px; margin: 0; }
.rs-rx[data-rs-reagir="😂"] .rs-ico { color: #e08a00; }
.rs-rx[data-rs-reagir="💀"] .rs-ico { color: #4a3f5c; }
.rs-rx[data-rs-reagir="🔥"] .rs-ico { color: #e8471c; }
.rs-rx[data-rs-reagir="🤡"] .rs-ico { color: #d8263a; }
.rs-outra .rs-rx .rs-ico { color: #fff; width: 15px; height: 15px; }
.rs-voa .rs-ico { width: 30px; height: 30px; margin: 0; color: #fff; stroke-width: 2;
  filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 10px var(--neon)); }
.rs-coment .rs-ico { color: #b0234a; }
.rs-votos .rs-ico { width: 1em; height: 1em; }
.rs-dobro b .rs-ico, .rs-dobro-res .rs-ico { margin-right: .25em; }
.rs-dobro-res { display: inline-flex; align-items: center; }
.rs-ok .rs-ico, .rs-anotado .rs-ico, .rs-salva .rs-ico { stroke-width: 2.4; }
.rs-pos .rs-ico { width: 18px; height: 18px; margin: 0; color: #6b6280; }
.rs-formatos span { display: inline-flex; align-items: center; }
.rs-formatos .rs-ico { color: var(--neon2); }
.rs-premio .rs-ico, .rs-info .rs-ico { color: var(--amarelo); }
.rs-voce-ganhou .rs-ico { stroke-width: 1.5; }
.rs-eliminado b .rs-ico { color: #ff8a80; }
.rs-proxima .rs-ico { color: var(--neon2); }
.rs-meu-chip { display: inline-flex; align-items: center; }
.rs-meu-chip .rs-ico { color: var(--neon); }
.rs-bt .rs-ico { stroke-width: 2.4; }
.st-mini-tempo.texto .rs-ico { width: 1em; height: 1em; margin: 0; }

/* Sem placar: o palco ocupa as duas colunas e fica centralizado de verdade. */
.resenha.sem-lado { grid-template: "cabeca" auto "palco" minmax(0, 1fr) / minmax(0, 1fr); }

/* ===== Modo Completo: o bar em 3D (app.js, rsAtualizar3d põe body.rs-3d) ===== */
.rs-cabeca { position: relative; z-index: 2; }
.rs-cartao { z-index: 1; }
.rs-cenario { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; perspective: 1000px; --px: 0; --py: 0; }
.rs-cenario[hidden] { display: none; }
.rs-cenario::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 52%, rgba(12,4,16,.8), rgba(12,4,16,.45) 55%, rgba(12,4,16,.08) 80%); }
.rs-cen-mundo { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--px) * 2.2deg)) rotateX(calc(var(--py) * -1.6deg)); }
.rs-cen-camada { position: absolute; inset: 0; transform-style: preserve-3d; }
.rs-cen-camada.fundo { opacity: .8; transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -8px), -80px) scale(1.09); }
.rs-cen-camada.luzes { transform: translate3d(calc(var(--px) * -28px), calc(var(--py) * -12px), 0); }
.rs-cen-camada.frente { transform: translate3d(calc(var(--px) * -44px), calc(var(--py) * -16px), 60px) scale(.95); }
.rs-cen-bolhas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Prateleiras com garrafas e a fita de LED atrás. */
.rs-cen-prat { position: absolute; left: 2%; right: 2%; height: 15vh; }
.rs-cen-prat.alta { top: 15vh; }
.rs-cen-prat.baixa { top: 37vh; }
.rs-cen-prat::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 75%;
  background: linear-gradient(to top, rgba(255,63,164,.38), rgba(255,63,164,.08) 60%, transparent); }
.rs-cen-prat.baixa::before { background: linear-gradient(to top, rgba(57,243,255,.32), rgba(57,243,255,.06) 60%, transparent); }
.rs-cen-garrafas { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 1.5%; }
.rs-garrafa { aspect-ratio: 1 / 3; width: auto; display: block; }
.rs-cen-prat .tabua { position: absolute; left: -1%; right: -1%; bottom: -12px; height: 12px; border-radius: 2px;
  background: linear-gradient(#8b5a2e, #4d2c14); box-shadow: 0 10px 16px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,220,170,.35); }

/* Luminárias penduradas, balançando, com o cone de luz. */
.rs-cen-lampada { position: absolute; top: -1vh; width: 110px; margin-left: -55px; transform-origin: 50% 0;
  animation: rs-balanca 5.5s ease-in-out infinite alternate; }
.rs-cen-lampada.e { left: 18%; }
.rs-cen-lampada.d { left: 82%; animation-delay: -2.7s; animation-duration: 6.2s; }
.rs-cen-lampada i { display: block; }
.rs-cen-lampada .fio { width: 2px; height: 12vh; margin: 0 auto; background: linear-gradient(#000, #2a2a2a); }
.rs-cen-lampada .cupula { position: relative; width: 84px; height: 36px; margin: 0 auto; border-radius: 42px 42px 6px 6px / 36px 36px 6px 6px;
  background: linear-gradient(160deg, #3e5a4c, #14211b 70%); box-shadow: inset 0 -5px 10px rgba(255,214,140,.4), 0 6px 14px rgba(0,0,0,.6); }
.rs-cen-lampada .cupula::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 18px; height: 12px; margin-left: -9px; border-radius: 0 0 9px 9px;
  background: #fff6d6; box-shadow: 0 0 14px 4px rgba(255,214,140,.9), 0 0 40px 10px rgba(255,190,100,.45); }
.rs-cen-lampada .cone { position: absolute; top: calc(12vh + 30px); left: 50%; width: 80vh; height: 85vh; transform: translateX(-50%);
  background: linear-gradient(rgba(255,214,140,.24), rgba(255,214,140,.06) 55%, rgba(255,214,140,0) 85%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation: rs-tremula 9s infinite; }
.rs-cen-lampada.d .cone { animation-delay: -4s; }
@keyframes rs-balanca { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes rs-tremula { 0%, 46%, 49%, 52%, 100% { opacity: 1; } 47% { opacity: .45; } 50% { opacity: .7; } }

/* O balcão de madeira em perspectiva, onde o guardanapo é escrito. */
.rs-cen-balcao { position: absolute; left: -6%; right: -6%; bottom: 0; height: 24vh; }
.rs-cen-balcao .tampo { position: absolute; left: 0; right: 0; top: 0; height: 13vh; transform: perspective(520px) rotateX(56deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 3px, transparent 3px 11px), linear-gradient(#93623a, #5e3a1d);
  box-shadow: inset 0 -3px 0 rgba(255,214,160,.45); }
.rs-cen-balcao .frente { position: absolute; left: 0; right: 0; top: 13vh; bottom: 0; border-top: 4px solid #b57a45;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 3px, transparent 3px 140px), linear-gradient(#4f2e16, #24140a);
  box-shadow: inset 0 14px 22px rgba(0,0,0,.55); }
.rs-cen-enfeite { position: absolute; bottom: 15vh; width: clamp(52px, 8vh, 84px); filter: drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.rs-cen-enfeite.e { left: 4%; transform: rotate(-4deg); }
.rs-cen-enfeite.d { right: 4%; transform: scaleX(-1) rotate(-6deg); }
.rs-chopp { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .rs-cen-enfeite { display: none; } .rs-cen-prat.baixa { display: none; } }

/* Guardanapos, lousa e pódio inclinam sob o ponteiro, com reflexo de luz. */
body.rs-3d .rs-opcao { transform: perspective(800px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) rotate(var(--r, -.8deg)) scale(var(--s, 1));
  transition: transform .15s ease-out, box-shadow .15s; }
body.rs-3d .rs-opcao.inclinado, body.rs-3d .rs-opcao.on { --r: 0deg; }
body.rs-3d .rs-opcao.on { --s: 1.03; }
body.rs-3d .rs-item { transform: perspective(800px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) rotate(var(--r, -.6deg)); transition: transform .15s ease-out; }
body.rs-3d .rs-minha { transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) rotate(-1deg); transition: transform .15s ease-out; }
body.rs-3d .rs-revelacao { position: relative; transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) rotate(-1.2deg); transition: transform .15s ease-out; }
body.rs-3d .rs-enunciado { transform: perspective(1000px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .2s ease-out; }
body.rs-3d .rs-degrau { transform: perspective(700px) rotateX(calc(6deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg)); transition: transform .15s ease-out; }
body.rs-3d .rs-pessoa { transform: perspective(500px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .15s ease-out; }
body.rs-3d :is(.rs-opcao, .rs-item, .rs-minha, .rs-revelacao, .rs-enunciado)::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.45), transparent 52%);
  opacity: 0; transition: opacity .2s; z-index: 1; }
body.rs-3d .inclinado::before { opacity: 1; }

/* A abertura vira uma placa pendurada em correntes que despenca e balança. */
body.rs-3d .rs-intro { position: relative; padding: 20px 34px 26px; border-radius: 18px; transform-origin: 50% -55vh;
  background: linear-gradient(180deg, rgba(34,12,40,.96), rgba(12,4,16,.97)); border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 70px rgba(0,0,0,.65), inset 0 0 34px rgba(255,63,164,.16); animation: rs-placa 1.5s cubic-bezier(.3, 1.05, .4, 1) both; }
body.rs-3d .rs-intro::before, body.rs-3d .rs-intro::after { content: ""; position: absolute; bottom: 100%; width: 4px; height: 55vh;
  background: repeating-linear-gradient(#c9c9d2 0 7px, #55555f 7px 10px); }
body.rs-3d .rs-intro::before { left: 16%; }
body.rs-3d .rs-intro::after { right: 16%; }
body.rs-3d .rs-flash::before, body.rs-3d .rs-flash::after { content: ""; position: absolute; top: -8%; width: 46vw; height: 125%; transform-origin: 50% 0;
  background: linear-gradient(rgba(255,240,205,.28), rgba(255,240,205,0) 80%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
body.rs-3d .rs-flash::before { left: -2%; animation: rs-holofote-e 2.4s ease-in-out both; }
body.rs-3d .rs-flash::after { right: -2%; animation: rs-holofote-d 2.4s ease-in-out both; }
@keyframes rs-placa { 0% { transform: translateY(-115vh) rotate(-14deg); } 48% { transform: translateY(0) rotate(9deg); }
  64% { transform: rotate(-5.5deg); } 78% { transform: rotate(3deg); } 90% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); } }
@keyframes rs-holofote-e { from { transform: rotate(-40deg); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(18deg); } }
@keyframes rs-holofote-d { from { transform: rotate(40deg); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(-18deg); } }

/* O brinde de chopp. */
.rs-brinde { position: fixed; inset: 0; z-index: 22; pointer-events: none; }
.rs-brinde .caneca { position: absolute; top: 50%; left: 50%; width: clamp(96px, 17vh, 160px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.rs-brinde .caneca.e { animation: rs-brinde-e 1.9s cubic-bezier(.3, 1.2, .4, 1) both; }
.rs-brinde .caneca.d { animation: rs-brinde-d 1.9s cubic-bezier(.3, 1.2, .4, 1) both; }
.rs-brinde .caneca.d svg { transform: scaleX(-1); }
.rs-brinde .gota { position: absolute; top: 44%; left: 50%; width: 11px; height: 11px; margin: -5px; border-radius: 50%; background: #fffaf0;
  box-shadow: 0 0 8px rgba(255,240,200,.8); opacity: 0; animation: rs-gota .9s cubic-bezier(.2, .8, .3, 1) .5s both; }
@keyframes rs-brinde-e { 0% { transform: translate(-60vw, -50%) rotate(-35deg); opacity: 0; } 12% { opacity: 1; }
  28% { transform: translate(-100%, -50%) rotate(16deg); } 38% { transform: translate(-116%, -52%) rotate(4deg); }
  82% { transform: translate(-112%, -52%) rotate(7deg); opacity: 1; } 100% { transform: translate(-112%, -64%) rotate(7deg); opacity: 0; } }
@keyframes rs-brinde-d { 0% { transform: translate(60vw, -50%) rotate(35deg); opacity: 0; } 12% { opacity: 1; }
  28% { transform: translate(0, -50%) rotate(-16deg); } 38% { transform: translate(16%, -52%) rotate(-4deg); }
  82% { transform: translate(12%, -52%) rotate(-7deg); opacity: 1; } 100% { transform: translate(12%, -64%) rotate(-7deg); opacity: 0; } }
@keyframes rs-gota { from { transform: rotate(var(--a)) translateY(0) scale(.3); opacity: 1; }
  to { transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rs-cenario, .rs-brinde { display: none !important; } }
/* O placar fica na frente do cenário (no celular ele já é absoluto, por cima). */
.rs-lado { position: relative; z-index: 1; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .rs-lado { position: absolute; z-index: 15; } }
.resenha.sem-lado .rs-lado { position: absolute; }
/* Celular estreito: o letreiro encolhe um pouco para o relógio caber na mesma linha. */
@media (max-width: 560px) {
  .rs-logo { width: clamp(118px, 36vw, 170px); }
  .rs-cabeca { gap: 8px; }
  .rs-relogio { width: 48px; }
}
/* Mentira e Dicionário: quem caiu em cada mentira, e a lorota da casa. */
.rs-caidos { display: flex; align-items: center; flex-wrap: wrap; margin-top: 4px; font: 700 12px/1.3 system-ui, sans-serif; color: #b0234a; }
.rs-caidos .rs-ico { width: 1.2em; height: 1.2em; }
.rs-item.casa { background: #2a1630; color: #fff; box-shadow: 0 0 0 2px rgba(255,225,77,.6), 0 8px 18px rgba(0,0,0,.4); }
.rs-item.casa .rs-item-topo { color: var(--amarelo); }
.rs-item.casa .rs-item-topo .rs-ico { color: var(--amarelo); }
.rs-item.casa .rs-pts { color: var(--amarelo); }
.rs-item.casa .rs-caidos { color: #ffb3d9; }
