/* =========================================================
   CANAL 01 · QUIZ (mesmo visual da referência)
   Branco + amarelo, cards creme, marca-texto amarelo,
   destaque vermelho, azul e verde.
   ========================================================= */
:root {
  --ink: #111111;
  --text: #1F1F1F;
  --muted: #8A8A8A;
  --yellow: #F8C918;
  --yellow-hl: #FBD31B;
  --cream: #FEF8E8;
  --cream-line: #F6E7A9;
  --track: #FDF4DC;
  --red: #E3262C;
  --blue: #2264EC;
  --green: #18A34A;
  --green-bg: #D3F8DB;
  --green-line: #9BE7AE;
  --gray-item: #EDEDF1;
  --pink: #FDE4E6;
  --pink-line: #F8C7CC;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.app { max-width: 470px; margin: 0 auto; padding: 0 14px 36px; min-height: 100vh; min-height: 100dvh; }
.top { height: 44px; display: flex; align-items: center; }
.back { width: 36px; height: 36px; margin-left: -6px; border: 0; background: none; display: grid; place-items: center; visibility: hidden; }
.back.on { visibility: visible; }
.bar { height: 9px; background: var(--track); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.bar i { display: block; height: 100%; width: 3%; background: var(--yellow); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar.off { visibility: hidden; }

.step { padding-top: 30px; animation: in .35s cubic-bezier(.2,.8,.2,1); }
.step.mid { padding-top: 14vh; }
@keyframes in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Títulos */
.t { font-weight: 800; font-size: 28px; line-height: 1.12; letter-spacing: -.02em; text-align: center; color: var(--ink); margin: 0 0 8px; }
.t.xl { font-size: 32px; }
.t.md { font-size: 24px; }
.s { text-align: center; color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.k { text-align: center; font-size: 17px; margin: 0 0 2px; color: var(--ink); }
.hl { background: var(--yellow-hl); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-red { background: var(--red); color: #fff; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-blue { background: var(--blue); color: #fff; padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-green { background: var(--green); color: #fff; text-decoration: underline; padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.warn { display: block; text-align: center; font-size: 48px; line-height: 1; margin-bottom: 6px; }

/* Caixa da intro */
.box-intro { border: 1px solid #EFEFEF; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); padding: 16px 14px; text-align: center; font-size: 17.5px; line-height: 1.45; margin: 22px 0 34px; }

/* Grade de mockups da intro */
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 6px; justify-items: center; margin-bottom: 18px; }

/* Opções */
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; text-align: left; background: var(--cream); border: 1.5px solid var(--cream-line); border-radius: 12px; font-size: 17px; line-height: 1.32; transition: background .15s, border-color .15s, transform .08s; }
.opt:active { transform: scale(.985); }
.opt .e { font-size: 34px; line-height: 1; width: 40px; text-align: center; flex: 0 0 auto; }
.opt .x { flex: 1; }
.opt .r { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #F2CB4A; background: #fff; display: grid; place-items: center; }
.opt .lt { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 6px; border: 1.5px solid #F2CB4A; color: #E5B400; font-size: 13px; display: grid; place-items: center; background: #fff; }
.opt.left .r { order: -1; }
.opt.short { min-height: 64px; }
.opt.caps { text-transform: uppercase; font-size: 17px; }
.opt.sel { background: #FFF3C4; border-color: var(--yellow); }
.opt.sel .r { background: var(--yellow); border-color: var(--yellow); }
.opt.sel .r::after { content: ""; width: 10px; height: 6px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt.sel .lt { background: var(--yellow); border-color: var(--yellow); color: #fff; }

/* Grade com imagens */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.gcard { display: flex; flex-direction: column; background: var(--cream); border: 1.5px solid var(--cream-line); border-radius: 14px; padding: 12px 12px 14px; text-align: left; min-height: 236px; }
.gcard .img { flex: 1; display: grid; place-items: center; padding: 4px 0 10px; }
.gcard .row { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.gcard .r { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #F2CB4A; background: #fff; display: grid; place-items: center; }
.gcard.sel { background: #FFF3C4; border-color: var(--yellow); }
.gcard.sel .r { background: var(--yellow); border-color: var(--yellow); }
.gcard.sel .r::after { content: ""; width: 10px; height: 6px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

/* Ilustrações dos cards de formato */
.il { width: 100%; max-width: 150px; display: grid; gap: 4px; }
.il i { display: block; border-radius: 4px; background-size: cover; position: relative; overflow: hidden; }
.il i::after { content: ""; position: absolute; left: 6%; right: 30%; bottom: 10%; height: 10%; border-radius: 2px; background: rgba(255,255,255,.9); }
.il.longos { grid-template-columns: 1fr 1fr; }
.il.longos i { aspect-ratio: 16/9; }
.il.shorts { grid-template-columns: repeat(3, 1fr); max-width: 120px; }
.il.shorts i { aspect-ratio: 9/16; border-radius: 6px; }
.il.cortes { grid-template-columns: 2fr 1fr; align-items: end; }
.il.cortes i:first-child { aspect-ratio: 16/10; }
.il.cortes i:last-child { aspect-ratio: 9/16; border-radius: 6px; }
.il.todos { grid-template-columns: 1fr 1fr 1fr; }
.il.todos i { aspect-ratio: 16/9; }
.il.todos i.v { aspect-ratio: 9/16; grid-row: span 2; border-radius: 6px; }
.il .yt { width: 22px; height: 15px; border-radius: 4px; background: #FF0033; position: relative; justify-self: center; margin-bottom: 4px; grid-column: 1 / -1; }
.il .yt::before { content: ""; position: absolute; left: 8px; top: 4px; border-left: 7px solid #fff; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.il .yt::after { display: none; }
.g1 { background: linear-gradient(135deg, #3b0764, #0f172a); }
.g2 { background: linear-gradient(135deg, #7f1d1d, #111827); }
.g3 { background: linear-gradient(135deg, #064e3b, #0b1120); }
.g4 { background: linear-gradient(135deg, #1e3a8a, #0b1120); }
.g5 { background: linear-gradient(135deg, #78350f, #111); }
.g6 { background: linear-gradient(135deg, #831843, #111827); }

/* Agitação */
.ag-list { display: grid; gap: 10px; margin: 22px 0 36px; }
.ag { background: var(--gray-item); border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 17.5px; line-height: 1.3; }
.ok-box { background: var(--green-bg); border: 1.5px solid var(--green-line); border-radius: 12px; padding: 14px 16px 12px; font-weight: 700; font-size: 17.5px; margin-bottom: 12px; }

/* Botão amarelo */
.btn { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--yellow); color: var(--ink); font-size: 18px; font-weight: 500; text-align: center; text-decoration: none; padding: 17px 16px; margin-top: 10px; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn.caps { text-transform: uppercase; font-size: 18px; letter-spacing: .01em; }
.btn:disabled { opacity: .45; }
.btn.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.sticky-btn { position: sticky; bottom: 10px; z-index: 3; }

/* Vídeos */
.vid-v { width: 100%; aspect-ratio: 9/16; max-height: 66vh; border-radius: 14px; overflow: hidden; background: #000; margin-top: 18px; position: relative; }
.vid-h { width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; margin-top: 18px; position: relative; }
.vid-v video, .vid-h video, .vid-v iframe, .vid-h iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; background: #000; }
.som { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; border: 0; border-radius: 99px; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 18px; white-space: nowrap; backdrop-filter: blur(4px); }

/* Teste de compatibilidade */
.pre { text-align: center; font-weight: 800; font-size: 21px; line-height: 1.22; color: var(--ink); margin: 0 0 16px; }
.pinkbox { background: var(--pink); border: 1.5px solid var(--pink-line); border-radius: 16px; padding: 16px 10px 8px; text-align: center; margin-bottom: 22px; }
.pinkbox b { display: block; color: var(--red); font-weight: 900; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.pinkbox span { font-size: 36px; display: block; margin-top: 2px; }
.caps-t { text-transform: uppercase; font-weight: 900; font-size: 27px; line-height: 1.12; text-align: center; color: var(--ink); margin: 0; letter-spacing: -.01em; }

/* Carregando */
.load { padding-top: 26vh; }
.load-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.load-bar { height: 12px; background: #EEEEEE; border-radius: 99px; overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 99px; }
.load p { text-align: center; color: var(--muted); margin-top: 18px; font-size: 17px; }

/* Resultado */
.res-card { border: 1px solid #ECECEC; border-radius: 12px; padding: 18px 14px 16px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.ring { width: 140px; height: 140px; margin: 0 auto 12px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.res-ok { font-weight: 700; font-size: 15px; }
.res-t { font-weight: 800; font-size: 23px; line-height: 1.2; text-align: center; margin: 22px 0 18px; letter-spacing: -.01em; }

/* Carrossel */
.car { overflow: hidden; border: 1px solid #ECECEC; border-radius: 12px; }
.car-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.car-item { flex: 0 0 100%; padding: 14px 10px; display: grid; place-items: center; }
.car-dots { display: flex; gap: 6px; justify-content: center; margin: 10px 0 0; }
.car-dots i { width: 7px; height: 7px; border-radius: 50%; background: #E3E3E3; }
.car-dots i.on { background: var(--yellow); }

/* Lista verde */
.gl { display: grid; gap: 8px; margin: 20px 0 30px; }
.gl div { background: var(--green-bg); border: 1.5px solid var(--green-line); border-radius: 14px; padding: 10px 14px; font-size: 17.5px; line-height: 1.32; }
.vcall { text-align: center; font-size: 17.5px; line-height: 1.4; margin: 0; }

