/* Quiz do Ano · Claro */
.app { position: relative; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(6px + var(--safe-top)) 0 10px; min-height: 52px; }
.logo { height: 26px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(40, 0, 2, .35)); }
.title { font-weight: 900; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 10px; }
.body { font-size: 16px; line-height: 1.45; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.strong { font-weight: 800; }
.blue { color: var(--gold); }
.h { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.link { appearance: none; border: 0; background: none; color: #fff; font-weight: 700; font-size: 14.5px; min-height: 44px; padding: 0 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.grow { flex: 1 1 auto; min-height: 12px; }
.screen { padding-top: 8px; }
.s-intro .bar, .screen > .bar { margin: 0 0 4px; }
.btn.big { min-height: 60px; font-size: 18px; width: 100%; }

/* intro: o "o" com três raios girando e o número de perguntas */
.orb { position: relative; width: 132px; height: 132px; margin: 18px 0 18px 4px; }
.orb .ring { position: absolute; left: 8px; top: 30px; width: 84px; height: 84px; border-radius: 50%; border: 11px solid #fff; box-shadow: 0 16px 34px rgba(30, 0, 1, .45); animation: orbIn .8s var(--ease) both; }
.orb .r { position: absolute; width: 12px; height: 30px; border-radius: 8px; background: var(--gold); transform-origin: 50% 50%; animation: ray 1.8s var(--ease) infinite; }
.orb .r1 { left: 44px; top: -2px; }
.orb .r2 { left: 92px; top: 16px; transform: rotate(45deg); animation-delay: .12s; }
.orb .r3 { left: 110px; top: 58px; transform: rotate(90deg); animation-delay: .24s; }
@keyframes ray { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes orbIn { from { transform: scale(.6) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.orb b { position: absolute; left: 8px; top: 30px; width: 84px; height: 84px; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: #fff; }
.social { font-size: 14px; color: var(--soft); margin: 0; min-height: 20px; }

/* jogo */
.game { padding-top: calc(10px + var(--safe-top)); }
.qhead { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: background .25s; }
.segs i.done { background: #fff; }
.segs i.on { background: var(--gold); }
.qmeta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.bonus { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 900; font-variant-numeric: tabular-nums; }
.bonus .track { width: 64px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.bonus .fill { display: block; height: 100%; background: var(--gold); transform-origin: left; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.bonus.zero { color: var(--muted); }
.bonus svg { width: 15px; height: 15px; }
.pts { font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 999px; background: rgba(42, 0, 2, .35); border: 1px solid var(--line); transition: transform .2s var(--ease); }
.pts.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); background: var(--gold); color: #3A0003; } }
.qwrap { flex: 1; display: flex; flex-direction: column; }
.qbody { flex: 1; display: flex; flex-direction: column; animation: inR .32s var(--ease) both; }
.qbody .title { font-size: clamp(25px, 7.2vw, 31px); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { appearance: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 12px 18px; border-radius: 18px; text-align: left;
  border: 1.5px solid rgba(255, 255, 255, .22); background: var(--glass); color: #fff; font-size: 17px; font-weight: 800; transition: transform .12s var(--ease), background .15s, border-color .15s, opacity .2s, color .15s; animation: rise .35s var(--ease) both; }
.opt:nth-child(2) { animation-delay: .04s; } .opt:nth-child(3) { animation-delay: .08s; } .opt:nth-child(4) { animation-delay: .12s; }
.opt svg { width: 24px; height: 24px; flex-shrink: 0; }
.opt.right { background: #fff; color: var(--deep); border-color: #fff; animation: pulse .45s var(--ease); }
.opt.right svg { color: #12A150; }
.opt.wrong { background: rgba(42, 0, 2, .55); border-color: var(--gold); color: #fff; animation: shake .35s; }
.opt.dim { opacity: .4; }
.locked .opt { pointer-events: none; }
@keyframes pulse { 40% { transform: scale(1.03); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.plus { position: fixed; z-index: 30; font-size: 22px; font-weight: 900; color: var(--gold); text-shadow: 0 4px 14px rgba(30, 0, 1, .5); pointer-events: none; animation: plus .8s var(--ease) forwards; }
@keyframes plus { from { opacity: 0; transform: translateY(8px) scale(.8); } 25% { opacity: 1; transform: translateY(-6px) scale(1.1); } to { opacity: 0; transform: translateY(-40px); } }

/* retorno com avanço automático (ritmo de stories): toque em qualquer lugar pula */
.fb { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 460px; transform: translate(-50%, 110%); z-index: 20; padding: 18px 22px calc(18px + var(--safe-bottom)); background: #fff; color: #2A0002; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 50px rgba(30, 0, 1, .4); transition: transform .3s var(--ease); cursor: pointer; }
.fb.show { transform: translate(-50%, 0); }
.fb .verdict { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.fb .verdict svg { width: 26px; height: 26px; padding: 3px; border-radius: 50%; color: #fff; background: #12A150; flex-shrink: 0; }
.fb.bad .verdict svg { background: var(--red); }
.fb .cur { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: #5A2A2C; }
.fb .auto { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; color: var(--red); }
.fb .auto .tr { flex: 1; height: 4px; border-radius: 4px; background: rgba(218, 41, 28, .15); overflow: hidden; }
.fb .auto .tr i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.fb.show .auto .tr i { animation: fillx var(--dur, 2.6s) linear forwards; }
@keyframes fillx { to { transform: scaleX(1); } }
@media (min-width: 720px) { .fb { bottom: max(0px, calc((100dvh - min(880px, 100dvh - 56px)) / 2)); border-radius: 26px; width: calc(100% - 24px); max-width: 436px; } }

/* resultado */
.res-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.score { font-size: clamp(62px, 19vw, 84px); font-weight: 900; letter-spacing: -.05em; line-height: .9; margin: 0; color: var(--gold); font-variant-numeric: tabular-nums; }
.score small { display: block; font-size: 16px; letter-spacing: 0; color: #fff; font-weight: 700; margin-top: 8px; }
.level { margin: 14px 0 4px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.dots { display: flex; gap: 6px; margin: 10px 0 16px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .18); animation: dot .35s var(--ease) both; }
.dots i.ok { background: var(--gold); }
@keyframes dot { from { transform: scale(0); } to { transform: scale(1); } }
.rankbox { display: flex; gap: 14px; align-items: stretch; padding: 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); animation: rise .45s var(--ease) .15s both; }
.thumb { appearance: none; border: 0; padding: 0; width: 86px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .2); flex-shrink: 0; position: relative; box-shadow: 0 10px 24px rgba(30, 0, 1, .4); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; animation: reveal .6s var(--ease) both; }
.rk { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.rk .pos { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.rk .pos small { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.nick { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px 0 12px; border-radius: 12px; background: rgba(42, 0, 2, .35); border: 1.5px solid rgba(255, 255, 255, .16); transition: border-color .15s; }
.nick:focus-within { border-color: var(--gold); }
.nick input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: #fff; font-size: 15px; font-weight: 800; height: 36px; }
.nick svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; margin-right: 8px; }
.rk .hint { font-size: 12px; color: var(--muted); }
.mini { margin-top: 14px; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 14px; font-size: 14.5px; animation: rise .35s var(--ease) both; }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
.row.me { background: #fff; color: var(--deep); box-shadow: none; }
.row.me + .row { box-shadow: none; }
.row .pos { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold); }
.row.me .pos { color: var(--red); }
.row .who { min-width: 0; display: flex; flex-direction: column; }
.row .who b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who span { font-size: 12px; color: var(--muted); }
.row.me .who span { color: rgba(138, 0, 6, .7); }
.row .val { font-weight: 900; font-variant-numeric: tabular-nums; }
.foot { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(42, 0, 2, .4); border: 1px solid var(--line); margin: 6px 0 14px; }
.tabs button { appearance: none; border: 0; background: none; border-radius: 999px; min-height: 42px; font-weight: 800; color: var(--soft); transition: background .2s, color .2s; }
.tabs button.on { background: #fff; color: var(--deep); }
.cardview { width: 74%; margin: 4px auto 0; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 16; box-shadow: 0 26px 60px rgba(30, 0, 1, .55); background: rgba(0,0,0,.18); position: relative; }
.cardview img { width: 100%; height: 100%; object-fit: cover; display: block; animation: reveal .6s var(--ease) both; }
.app > .screen { min-height: 100dvh; padding-top: calc(8px + var(--safe-top)); }
@media (min-width: 720px) { .app > .screen { min-height: min(880px, calc(100dvh - 56px)); } }
.social b { color: #fff; }
.game .qwrap { transition: padding .32s var(--ease); }
.game.fbon .qwrap { padding-bottom: calc(var(--fbh, 150px) - var(--safe-bottom) - 6px); }
.fb { opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .2s ease, visibility 0s linear .3s; }
.fb.show { opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .15s ease, visibility 0s; }
