/* Terra da Gente - tema floresta. Unidades em vmin: escala de TV 1080p a celular. */
:root {
  --lime: #c6f432; --lime-2: #8fdc1f; --ink: #08210f;
  --ok: #4be08a; --bad: #ff6b57; --line: rgba(255, 255, 255, .16);
  --font: Futura, "Futura PT", "Jost", "Century Gothic", "Avenir Next", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { touch-action: pan-x pan-y; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; margin: 0; height: 100%; overflow: hidden; background: #06130b; color: #fff; font-family: var(--font); }

/* fundo: foto com zoom lento + camada de sombra */
#bg { position: fixed; top: -4%; left: -4%; right: -4%; bottom: -4%; z-index: 0;
  background: url(img/fundo.jpg) center / cover no-repeat; animation: drift 60s ease-in-out infinite alternate; }
#shade { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(4, 22, 11, .30) 0%, rgba(2, 12, 7, .90) 78%),
    linear-gradient(180deg, rgba(2, 12, 7, .55) 0%, rgba(2, 12, 7, .20) 30%, rgba(2, 12, 7, .70) 100%); }
#app { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 10vmin 6vmin 3vmin; text-align: center; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: fadeIn .5s ease both; }
#app::before, #app::after { content: ""; flex: 1 0 0%; }
#app::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- topo ---------- */
.top { position: fixed; z-index: 3; top: 0; left: 0; right: 0; height: 11vmin; padding: 0 5vmin; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(2, 12, 7, .65), rgba(2, 12, 7, 0)); }
.top .mini { height: 6vmin; }
.progress { display: flex; align-items: center; font-size: 2vmin; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
.bars { display: flex; margin-left: 2.4vmin; }
.bars i { display: block; width: 5vmin; height: .7vmin; border-radius: 1vmin; margin-left: .8vmin; background: rgba(255, 255, 255, .22); }
.bars i.on { background: linear-gradient(90deg, var(--lime), var(--lime-2)); box-shadow: 0 0 1.4vmin rgba(198, 244, 50, .5); }

/* ---------- tipografia ---------- */
.logo { width: min(54vmin, 70vw); filter: drop-shadow(0 1vmin 3vmin rgba(0, 0, 0, .55)); }
.rule { width: 9vmin; height: .5vmin; border-radius: 1vmin; margin: 4vmin 0 3.4vmin; background: linear-gradient(90deg, var(--lime), var(--lime-2)); }
.eyebrow { display: flex; align-items: center; justify-content: center; margin: 0 0 3vmin; font-size: 2.1vmin; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before, .eyebrow::after { content: ""; display: block; width: 6vmin; height: .2vmin; background: currentColor; opacity: .55; }
.eyebrow::before { margin-right: 2.2vmin; } .eyebrow::after { margin-left: 2.2vmin; }
.eyebrow.ok { color: var(--ok); }
.sub { font-size: 2.8vmin; font-weight: 400; opacity: .85; margin: 0 0 4vmin; }

/* ---------- painel da pergunta ---------- */
.panel { max-width: min(92vw, 128vmin); margin-bottom: 2.4vmin; padding: 3.2vmin 5vmin 3.6vmin;
  background: rgba(4, 20, 11, .52); -webkit-backdrop-filter: blur(1.8vmin); backdrop-filter: blur(1.8vmin);
  border: .2vmin solid var(--line); border-radius: 3.4vmin; box-shadow: 0 2vmin 7vmin rgba(0, 0, 0, .45), inset 0 .15vmin 0 rgba(255, 255, 255, .14); }
.panel .eyebrow { margin-bottom: 1.8vmin; }
h2 { margin: 0; font-size: 4.6vmin; font-weight: 500; line-height: 1.28; letter-spacing: .005em; }
h2.long { font-size: 3.2vmin; line-height: 1.34; }

/* ---------- botoes ---------- */
button {
  font: inherit; color: #fff; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; text-align: left; padding: 1.9vmin 3vmin; font-size: 3.1vmin; font-weight: 500; letter-spacing: .01em;
  background: rgba(8, 36, 19, .62); -webkit-backdrop-filter: blur(1.4vmin); backdrop-filter: blur(1.4vmin);
  border: .2vmin solid var(--line); border-radius: 2.2vmin; box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, .32);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
button:focus, button:active {
  transform: scale(1.04); color: var(--ink); border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  box-shadow: 0 0 0 .5vmin rgba(198, 244, 50, .32), 0 1.6vmin 5vmin rgba(143, 220, 31, .42);
}
button:disabled { cursor: default; }
.label { flex: 1 1 auto; }
.badge { flex: 0 0 auto; width: 5.8vmin; height: 5.8vmin; margin-right: 2.4vmin; border-radius: 1.5vmin; display: flex; align-items: center; justify-content: center;
  font-size: 2.6vmin; font-weight: 600; background: rgba(255, 255, 255, .12); border: .2vmin solid rgba(255, 255, 255, .28); transition: inherit; }
button:focus .badge, button:active .badge { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.chev { flex: 0 0 auto; width: 2.2vmin; height: 2.2vmin; margin: 0 1vmin 0 2vmin; border-top: .45vmin solid currentColor; border-right: .45vmin solid currentColor; transform: rotate(45deg); opacity: .8; }

/* lista de quizzes */
.cards { display: flex; flex-direction: column; width: min(86vw, 92vmin); }
.cards button { padding: 3vmin 3.6vmin; margin-bottom: 2.2vmin; }
.cards .num { flex: 0 0 auto; margin-right: 3vmin; padding-right: 3vmin; border-right: .2vmin solid currentColor; font-size: 3vmin; font-weight: 600; letter-spacing: .08em; color: var(--lime); transition: inherit; }
.cards button:focus .num, .cards button:active .num { color: var(--ink); }
.cards .label b { display: block; font-size: 3.5vmin; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cards .label small { display: block; margin-top: .6vmin; font-size: 2.2vmin; font-weight: 400; opacity: .78; }

/* alternativas */
.opts { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 2.2vmin; width: min(92vw, 128vmin); }
.opts button { animation: rise .55s ease both; }
.opts button:nth-child(2) { animation-delay: .06s; } .opts button:nth-child(3) { animation-delay: .12s; }
.opts button:nth-child(4) { animation-delay: .18s; } .opts button:nth-child(5) { animation-delay: .24s; } .opts button:nth-child(6) { animation-delay: .30s; }
.opts button:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (orientation: portrait) { .opts { grid-template-columns: 1fr; } .panel { padding: 4vmin 4.4vmin; } h2 { font-size: 4.2vmin; } h2.long { font-size: 3.3vmin; } }
.opts button.wrong { animation: shake .4s ease; transform: none; color: rgba(255, 255, 255, .55);
  background: rgba(255, 107, 87, .18); border-color: rgba(255, 107, 87, .6); box-shadow: none; }
.opts button.wrong .badge { background: var(--bad); color: #fff; border-color: transparent; }
.hint { margin: 1.4vmin 0 0; min-height: 3vmin; font-size: 2.3vmin; color: var(--bad); opacity: 0; transition: opacity .25s ease; }
.hint.show { opacity: 1; }
.hint.info { color: var(--lime); }

/* ajudas (pular / eliminar) */
.helps { display: flex; justify-content: center; margin-top: 1.2vmin; }
.sound { display: flex; align-items: center; justify-content: center; margin-top: 2.4vmin; }
.eq { display: flex; align-items: center; height: 8vmin; margin-right: 3.4vmin; }
.eq i { display: block; width: 1.1vmin; height: 100%; transform: scaleY(.22); margin: 0 .45vmin; border-radius: 1vmin; background: var(--lime); opacity: .45; }
.eq.on i { opacity: 1; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .12s; } .eq i:nth-child(3) { animation-delay: .26s; } .eq i:nth-child(4) { animation-delay: .08s; }
.eq i:nth-child(5) { animation-delay: .32s; } .eq i:nth-child(6) { animation-delay: .18s; } .eq i:nth-child(7) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
button[hidden] { display: none !important; }
.actions button:disabled { opacity: .5; }
.sound button { padding: 1.4vmin 3vmin; font-size: 2.2vmin; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; justify-content: center; background: rgba(255, 255, 255, .06); border-style: dashed; }
.helps button { margin: 0 1.2vmin; padding: 1.4vmin 3vmin; justify-content: center; font-size: 2.2vmin; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .06); border-style: dashed; }
.helps button:disabled { opacity: .3; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 3.2vmin; height: 3.2vmin; margin-left: 1.4vmin; padding: 0 .8vmin; border-radius: 2vmin;
  background: var(--lime); color: var(--ink); font-size: 2vmin; font-weight: 700; letter-spacing: 0; }
button:focus .count, button:active .count { background: var(--ink); color: var(--lime); }
.opts button.gone { opacity: .4; transform: none; box-shadow: none; pointer-events: none; }
.opts button.gone .label { text-decoration: line-through; }

/* acoes */
.actions { display: flex; justify-content: center; flex-wrap: wrap; }
.actions button { margin: 0 1.2vmin 2vmin; padding: 2.5vmin 5.4vmin; justify-content: center; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: 2.6vmin; }

/* acerto e premio */
.tick { width: 9vmin; height: 9vmin; margin-bottom: 2.4vmin; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(75, 224, 138, .16); border: .3vmin solid var(--ok); box-shadow: 0 0 4vmin rgba(75, 224, 138, .35); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.tick svg { width: 4.6vmin; height: 4.6vmin; }
.reward { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 3.4vmin; }
.reward img, .reward video { max-width: 86vw; max-height: 52vh; margin-bottom: 3vmin; border-radius: 2.6vmin; background: #000;
  border: .25vmin solid rgba(255, 255, 255, .28); box-shadow: 0 2.4vmin 7vmin rgba(0, 0, 0, .6); }
.reward audio { width: min(70vw, 90vmin); margin-bottom: 3vmin; }
.cap { max-width: 80vw; font-size: 3.6vmin; font-weight: 500; line-height: 1.3; }

/* resultado */
.ring { position: relative; width: 32vmin; height: 32vmin; margin: 0 auto 3.4vmin; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 9; }
.ring .bar { fill: none; stroke: var(--lime); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .8, .3, 1); filter: drop-shadow(0 0 1.2vmin rgba(198, 244, 50, .55)); }
.ring b { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 8.4vmin; font-weight: 600; letter-spacing: .02em; }
h1 { margin: 0 0 1.6vmin; font-size: 5.4vmin; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }

/* botao de tela cheia (fora do #app: nao entra na navegacao por setas do controle) */
#fs { position: fixed; left: 2.2vmin; bottom: 2.2vmin; z-index: 9; width: 6.4vmin; height: 6.4vmin; min-width: 36px; min-height: 36px; padding: 0; justify-content: center;
  border-radius: 1.8vmin; opacity: .65; }
#fs[hidden] { display: none; }
#fs:hover { opacity: 1; }
#fs svg { width: 55%; height: 55%; }

/* Atalho escondido para o menu principal: toque longo no canto inferior direito (sem nenhum rotulo visivel). */
#hm { position: fixed; right: 0; bottom: 0; width: 10vmin; height: 10vmin; z-index: 20; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1.2vmin;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; color: transparent; font-size: 1.5vmin; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
#hm::after { content: "menu principal"; }
#hm.show { color: rgba(255, 255, 255, .5); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(1.2vmin); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(2vmin); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1vmin); } 75% { transform: translateX(1vmin); } }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1%, -1%); } }
@media (prefers-reduced-motion: reduce) { #bg, #app, .opts button, .tick { animation: none !important; } }

/* ---------- relogio e pontos ---------- */
.chip { margin-left: 2.4vmin; padding: .7vmin 1.8vmin; border-radius: 2vmin; background: rgba(198, 244, 50, .16); border: .2vmin solid rgba(198, 244, 50, .55); color: var(--lime); font-weight: 600; letter-spacing: .08em; }
.clock { display: flex; align-items: center; justify-content: center; margin-bottom: 1.6vmin; }
.cbar { width: min(60vw, 70vmin); height: 1.1vmin; border-radius: 1vmin; background: rgba(255, 255, 255, .16); overflow: hidden; }
.cbar i { display: block; height: 100%; width: 100%; transform-origin: left center; will-change: transform; border-radius: 1vmin; background: linear-gradient(90deg, var(--lime-2), var(--lime)); }
.clock b { min-width: 9vmin; margin-left: 2vmin; font-size: 3.8vmin; font-weight: 600; text-align: left; font-variant-numeric: tabular-nums; }
.clock.low .cbar i { background: var(--bad); } .clock.low b { color: var(--bad); animation: pulse .8s ease-in-out infinite; }
.pts { margin: 0 0 3vmin; font-size: 5.6vmin; font-weight: 700; color: var(--lime); letter-spacing: .02em; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.tick.bad { background: rgba(255, 107, 87, .14); border-color: var(--bad); box-shadow: 0 0 4vmin rgba(255, 107, 87, .3); }
.eyebrow.bad { color: var(--bad); }
.reveal { margin-bottom: 4vmin; padding: 2.4vmin 4vmin; border-radius: 2.4vmin; background: rgba(75, 224, 138, .12); border: .2vmin solid rgba(75, 224, 138, .5); }
.reveal small { display: block; font-size: 2vmin; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.reveal b { display: block; margin-top: 1vmin; font-size: 3.6vmin; font-weight: 600; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- nome e teclado ---------- */
.namebox { min-width: min(80vw, 70vmin); margin-bottom: 3.4vmin; padding: 2.4vmin 4vmin; font-size: 5vmin; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2.6vmin; background: rgba(4, 20, 11, .6); border: .25vmin solid rgba(198, 244, 50, .6); min-height: 11vmin; }
.namebox .ph { opacity: .35; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.caret { display: inline-block; width: .4vmin; height: 5vmin; margin-left: .6vmin; vertical-align: middle; background: var(--lime); animation: blink 1s steps(1) infinite; }
.kb { width: min(94vw, 118vmin); }
.krow { display: flex; justify-content: center; margin-bottom: 1.4vmin; }
.krow button { margin: 0 .7vmin; }
.key { flex: 1 1 0; max-width: 10vmin; min-width: 0; padding: 2vmin 0; justify-content: center; font-size: 3.2vmin; font-weight: 600; border-radius: 1.8vmin; }
.key.wide { flex: 2 1 0; max-width: 20vmin; font-size: 2.2vmin; letter-spacing: .08em; text-transform: uppercase; }
.key.space { flex: 4 1 0; max-width: 40vmin; font-size: 2.2vmin; letter-spacing: .12em; text-transform: uppercase; }
.krow .go { flex: 3 1 0; max-width: 30vmin; padding: 2vmin 0; justify-content: center; font-size: 2.4vmin; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--lime), var(--lime-2)); color: var(--ink); border-color: transparent; }
.krow .go:disabled { opacity: .3; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- ranking ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 3vmin; }
.tab { margin: 0 .8vmin 1vmin; padding: 1.6vmin 3.4vmin; font-size: 2.3vmin; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 99vmin; }
.tab.on { background: rgba(198, 244, 50, .18); border-color: var(--lime); }
.board { position: relative; width: min(92vw, 90vmin); margin-bottom: 3vmin; padding-right: 1vmin; max-height: 56vmin; overflow-y: auto; -webkit-overflow-scrolling: touch;
  outline: none; border-radius: 2vmin; }
.board:focus { box-shadow: 0 0 0 .4vmin rgba(198, 244, 50, .55); }
.board::-webkit-scrollbar { width: .8vmin; }
.board::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 1vmin; }
.board::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 1vmin; }
.brow { display: flex; align-items: center; margin-bottom: 1.1vmin; padding: 1.5vmin 3vmin; border-radius: 2vmin; background: rgba(4, 20, 11, .55); border: .2vmin solid var(--line); font-size: 2.8vmin; line-height: 1.2; text-align: left; }
.brow .pos { width: 6vmin; font-weight: 700; color: var(--lime); }
.brow .nm { flex: 1 1 auto; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .pt { font-weight: 700; font-variant-numeric: tabular-nums; }
.brow.p1 { background: linear-gradient(90deg, rgba(198, 244, 50, .22), rgba(4, 20, 11, .55)); border-color: rgba(198, 244, 50, .6); }
.brow.me { border-color: #fff; box-shadow: 0 0 0 .4vmin rgba(255, 255, 255, .25); }
button.ghost { padding: 1.8vmin 4vmin; justify-content: center; font-size: 2.3vmin; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: transparent; border-style: dashed; }

/* ---------- sorteio das alternativas eliminadas ---------- */
.draw { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(2, 12, 7, .86); }
.dbox { text-align: center; }
.drum { width: 30vmin; height: 30vmin; margin: 0 auto 3.4vmin; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: .7vmin solid var(--lime); background: radial-gradient(circle, rgba(198, 244, 50, .18), rgba(4, 20, 11, .8)); box-shadow: 0 0 6vmin rgba(198, 244, 50, .35); }
.drum b { font-size: 16vmin; font-weight: 700; line-height: 1; }
.drum.stop { border-color: var(--bad); box-shadow: 0 0 7vmin rgba(255, 107, 87, .55); background: radial-gradient(circle, rgba(255, 107, 87, .25), rgba(4, 20, 11, .85)); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.drum.stop b { color: var(--bad); }
.chips { display: flex; justify-content: center; margin-bottom: 3vmin; }
.chip2 { width: 7vmin; height: 7vmin; margin: 0 1vmin; border-radius: 1.8vmin; display: flex; align-items: center; justify-content: center; font-size: 3vmin; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: .2vmin solid var(--line); color: rgba(255, 255, 255, .6); }
.chip2.on { background: var(--lime); color: var(--ink); border-color: transparent; }
.dtxt { margin: 0; font-size: 3.2vmin; font-weight: 500; letter-spacing: .04em; }
.drum.stop.ok { border-color: var(--lime); background: radial-gradient(circle, rgba(198, 244, 50, .28), rgba(4, 20, 11, .85)); box-shadow: 0 0 7vmin rgba(198, 244, 50, .55); }
.drum.stop.ok b { color: var(--lime); }

/* ---------- tela de acerto: midia a esquerda, informacoes a direita ---------- */
.rwd { display: flex; align-items: center; justify-content: center; width: 100%; }
.rwd-media { flex: 0 1 auto; margin-right: 6vmin; }
.rwd-media video, .rwd-media img { display: block; max-height: calc(100vh - 22vmin); max-width: 44vw; border-radius: 2.6vmin; background: #000;
  border: .25vmin solid rgba(255, 255, 255, .28); box-shadow: 0 2.4vmin 7vmin rgba(0, 0, 0, .6); }
.rwd-info { flex: 0 1 auto; max-width: 44vw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rwd-info .tick { margin-bottom: 2vmin; }
.rwd-info .eyebrow { margin-bottom: 1.6vmin; }
.rwd-info .pts { margin-bottom: 2vmin; }
.rwd-info .cap { max-width: 100%; margin-bottom: 4vmin; }
.rwd.solo .rwd-info { max-width: 80vw; }
@media (orientation: portrait) {
  .rwd { flex-direction: column; }
  .rwd-media { margin: 0 0 3vmin; }
  .rwd-media video, .rwd-media img { max-height: 42vh; max-width: 86vw; }
  .rwd-info { max-width: 92vw; }
}

/* foto pequena na alternativa (no lugar da letra) */
.opts button.has-pic { padding: 1.1vmin 3vmin 1.1vmin 1.2vmin; }
.pic { flex: 0 0 auto; width: 9vmin; height: 9vmin; margin-right: 2.4vmin; object-fit: cover; border-radius: 1.8vmin; background: #000; border: .2vmin solid rgba(255, 255, 255, .3); }
button:focus .pic, button:active .pic { border-color: var(--ink); }
.opts button.gone .pic { filter: grayscale(1); }
.revimg { display: block; width: 14vmin; height: 14vmin; margin: 1.4vmin auto 0; object-fit: cover; border-radius: 2vmin; border: .25vmin solid rgba(255, 255, 255, .35); }

/* ---------- MODO LEVE (tablet): sem efeitos caros, para o toque ficar fluido ----------
   Ligado automaticamente em /projeta (ou com ?lite=1; ?lite=0 desliga). TVs seguem com o visual completo. */
html.lite #bg { top: 0; left: 0; right: 0; bottom: 0; background-image: url(img/fundo-lite.jpg); animation: none; will-change: auto; }
html.lite #app { animation: none; }
html.lite .panel, html.lite button, html.lite .brow, html.lite .draw { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
html.lite .panel { background: rgba(4, 20, 11, .8); }
html.lite button { background: rgba(8, 36, 19, .86); transition: none; }
html.lite .opts button, html.lite .tick, html.lite .pts { animation: none; }
html.lite .logo, html.lite .ring .bar, html.lite .tick, html.lite .drum { filter: none; box-shadow: none; }
/* toque: so o dedo apertado destaca (sem foco "grudado" nem aumento de tamanho) */
html.lite button:focus { transform: none; box-shadow: none; }
html.lite button:active { transform: none; box-shadow: none; color: var(--ink); border-color: transparent; background: linear-gradient(135deg, var(--lime), var(--lime-2)); }
html.lite .eq.on i { animation-duration: 1.2s; }

/* aviso discreto do download para uso offline (so na Projeta) */
#off { position: fixed; top: 1.8vmin; left: 50%; transform: translateX(-50%); z-index: 9; padding: .9vmin 2.2vmin; border-radius: 2vmin; font-size: 1.9vmin; font-weight: 500; letter-spacing: .06em;
  background: rgba(4, 20, 11, .85); border: .2vmin solid var(--line); opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
#off.show { opacity: 1; }
#off.ok { border-color: var(--ok); color: var(--ok); }
#off.bad { border-color: var(--bad); color: var(--bad); }

/* controles discretos do modo instalado (tablet): Inicio / Sair, com confirmacao no segundo toque */
#tools { position: fixed; left: 1.4vmin; bottom: 1.2vmin; z-index: 9; display: flex; align-items: center; }
#tools[hidden] { display: none; }
#tools button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; margin: 0 1vmin 0 0; padding: .9vmin 1.8vmin; font-size: 1.5vmin; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .42); background: transparent; border: .15vmin solid rgba(255, 255, 255, .16); border-radius: 1.2vmin;
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
#tools button:focus, #tools button:active, html.lite #tools button:active { transform: none; box-shadow: none; color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
#tools button.armed { color: var(--lime); border-color: var(--lime); }
#t-dot { display: block; width: .8vmin; height: .8vmin; min-width: 4px; min-height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
#t-dot.on { background: var(--ok); box-shadow: 0 0 .8vmin rgba(75, 224, 138, .7); }

/* ---------- toque: o botao "acende" (classe .lit: no toque e mantida ~160 ms antes da acao) ---------- */
html button.lit, html.lite button.lit { transform: none; color: var(--ink); border-color: transparent; background: linear-gradient(135deg, var(--lime), var(--lime-2)); box-shadow: 0 0 0 .5vmin rgba(198, 244, 50, .35); }
button.lit .badge { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.cards button.lit .num { color: var(--ink); }
button.lit .count { background: var(--ink); color: var(--lime); }
button.lit .pic { border-color: var(--ink); }
.krow .go.lit { filter: brightness(1.12); }
/* modo leve (tablet): botao parado mais "cheio" e com borda visivel (antes parecia so um contorno) */
html.lite button { background: rgba(18, 62, 36, .92); border-color: rgba(255, 255, 255, .3); box-shadow: inset 0 .2vmin 0 rgba(255, 255, 255, .16); }
html.lite .helps button, html.lite .sound button, html.lite button.ghost { background: rgba(255, 255, 255, .07); box-shadow: none; }
html.lite .opts button.wrong { background: rgba(255, 107, 87, .22); border-color: rgba(255, 107, 87, .6); }

/* garante o destaque nos botoes com estilo proprio (Eliminar, Ouvir, Ver ranking, abas do ranking) */
html .helps button.lit, html .sound button.lit, html button.ghost.lit, html button.tab.lit,
html.lite .helps button.lit, html.lite .sound button.lit, html.lite button.ghost.lit, html.lite button.tab.lit {
  background: linear-gradient(135deg, var(--lime), var(--lime-2)); color: var(--ink); border-style: solid; border-color: transparent; box-shadow: 0 0 0 .5vmin rgba(198, 244, 50, .35); }

/* Projeta (tablet): mesmo visual das TVs, mas com o fundo PARADO. O zoom lento do fundo obrigava o aparelho a refazer o
   desfoque de vidro de todos os paineis a cada quadro, e isso pesava no toque. Visualmente quase nao se nota. */
html.calm #bg { top: 0; left: 0; right: 0; bottom: 0; animation: none; will-change: auto; }

/* tela de regras (antes da partida) */
.rules { width: min(90vw, 104vmin); margin-bottom: 3.4vmin; }
.rule-row { display: flex; align-items: center; margin-bottom: 1.8vmin; padding: 2.2vmin 3vmin; text-align: left; border-radius: 2.4vmin;
  background: rgba(4, 20, 11, .52); -webkit-backdrop-filter: blur(1.6vmin); backdrop-filter: blur(1.6vmin); border: .2vmin solid var(--line); }
.rnum { flex: 0 0 auto; width: 6.2vmin; height: 6.2vmin; margin-right: 2.8vmin; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3vmin; font-weight: 700; color: var(--ink); background: linear-gradient(135deg, var(--lime), var(--lime-2)); }
.rtxt b { display: block; font-size: 2.9vmin; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--lime); }
.rtxt span { display: block; margin-top: .6vmin; font-size: 2.7vmin; line-height: 1.3; opacity: .92; }

/* premio em FOTO (sem player): a foto pode ocupar mais da tela que o video (so em paisagem) */
@media (orientation: landscape) {
  .rwd.photo .rwd-media img { max-width: 56vw; }
  .rwd.photo .rwd-info { max-width: 34vw; }
}

/* Ribeirao: tela do telefone (so nessa ativacao) */
.consent { max-width: min(88vw, 100vmin); margin: 0 0 2vmin; font-size: 2.1vmin; line-height: 1.45; text-align: center; opacity: .85; }
.phonebox { margin-bottom: 2vmin; font-size: 4.6vmin; }
.phonebox .ph { letter-spacing: .06em; }
.agree { display: flex; align-items: center; margin-bottom: 2vmin; padding: 1.4vmin 2.6vmin; font-size: 2.1vmin; text-align: left; border-radius: 2vmin; }
.agree .cbox { flex: 0 0 auto; width: 3vmin; height: 3vmin; margin-right: 1.8vmin; border: .3vmin solid var(--lime); border-radius: .7vmin; position: relative; }
.agree.on .cbox { background: var(--lime); }
.agree.on .cbox::after { content: ''; position: absolute; left: 1vmin; top: .3vmin; width: .8vmin; height: 1.7vmin; border: solid #06130b; border-width: 0 .35vmin .35vmin 0; transform: rotate(45deg); }
.phonekb { width: min(60vw, 62vmin); }
.phonekb .key { max-width: none; }
.skip { margin-top: 1vmin; font-size: 2vmin; }
