/* Fontes hospedadas no próprio site (Inter Tight e Caveat, licença SIL Open Font License). */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/inter-tight-italic-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/inter-tight-italic-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/inter-tight-400-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/inter-tight-400-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html{color-scheme:light}body{margin:0}img{max-width:100%}

/* Layout: blocos de cor chapada, cantos bem arredondados, sem sombra. Os três personagens do ícone circulam pela página como elenco. */
:root {
  --bg: #F6F3FF;
  --surface: #FFFFFF;
  --surface2: #EFEAFF;
  --ink: #181140;
  --ink2: #564F84;
  --line: #E2DCF8;
  --stage: #181140;
  --navy: #181140;
  --white: #FFFFFF;
  --orange: #FF853A;
  --pink: #ED5B84;
  --blue: #1B99C7;
  --sky: #9BDEF6;
  --peach: #FFD8BF;
  --crimson: #9D2144;
  --rust: #B54F11;
  --violet: #7B5CD6;
  --orange-soft: #FFE6D4;
  --pink-soft: #FFE0EA;
  --blue-soft: #D6F1FB;
  --violet-soft: #E8E0FF;
  --crimson-soft: #F9DCE4;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120D33; --surface: #1D1749; --surface2: #282060; --ink: #F5F3FF; --ink2: #BDB6E8; --line: #30286C; --stage: #2A2275;
    --orange-soft: #4A2A1B; --pink-soft: #4A1C31; --blue-soft: #0E3347; --violet-soft: #2E2466; --crimson-soft: #4A1526;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120D33; --surface: #1D1749; --surface2: #282060; --ink: #F5F3FF; --ink2: #BDB6E8; --line: #30286C; --stage: #2A2275;
  --orange-soft: #4A2A1B; --pink-soft: #4A1C31; --blue-soft: #0E3347; --violet-soft: #2E2466; --crimson-soft: #4A1526;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); padding-inline: clamp(16px, 4vw, 32px); overflow-x: hidden; }
.wrap { max-width: 1080px; margin-inline: auto; padding-block: 18px 48px; display: flex; flex-direction: column; gap: 28px; }
h1, h2, h3 { font-family: var(--font); font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.label { font: 700 12px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.on-color .label, .on-color { color: var(--navy); }
svg.el, svg.trio { display: block; overflow: visible; }
svg.el { aspect-ratio: 1 / 1; }
.trio g, svg.el { transform-box: fill-box; transform-origin: center; }

/* Cabeçalho */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { width: clamp(148px, 30vw, 200px); color: var(--ink); display: block; text-decoration: none; border-radius: 8px; }
.logo svg { display: block; width: 100%; height: auto; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--surface); font: 700 12px var(--font); letter-spacing: .1em; text-transform: uppercase; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); display: block; animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.top-r { display: flex; align-items: center; gap: 10px; }
.theme { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; font: 700 1.2rem/1 var(--font); display: grid; place-items: center; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.theme:hover { transform: rotate(-20deg) scale(1.08); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; } :root[data-theme="dark"] .theme .moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: inline; } }
/* Botões */
.btn { font: 800 1.02rem var(--font); letter-spacing: -0.01em; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; background: var(--orange); color: var(--navy); transition: transform .18s cubic-bezier(.3,1.6,.5,1), background .15s; }
.btn:hover { transform: translateY(-3px); background: #FF9750; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: .92rem; }

/* Transição de telas */
.screen:not([hidden]) { animation: enter .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { display: flex; flex-direction: column; gap: 28px; }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(28px, 5vw, 56px); align-items: center; padding-top: 6px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--pink-soft); color: var(--ink); font: 800 12px var(--font); letter-spacing: .1em; text-transform: uppercase; }
.pill svg { width: 18px; height: auto; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: .96; }
.hl { background: var(--pink); color: var(--navy); padding: 0 .14em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.o { background: var(--orange); }
.hero .lead { font-size: 1.16rem; color: var(--ink2); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.note { font-size: .92rem; color: var(--ink2); }

.stage { container-type: inline-size; position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; justify-self: center; background: var(--stage); border-radius: 36px; overflow: hidden; }

/* Coreografia do trio (hero e outras telas) */
.trio.live .g-robot { animation: from-left .8s cubic-bezier(.3,1.4,.5,1) .15s both, bob 3.2s ease-in-out 1s infinite; }
.trio.live .g-person { transform-origin: 50% 100%; animation: from-right .8s cubic-bezier(.3,1.4,.5,1) .3s both, sway 3.8s ease-in-out 1.1s infinite; }
.trio.live .g-heart { animation: drop-in .8s cubic-bezier(.3,1.6,.5,1) .55s both, beat 1.5s ease-in-out 1.4s infinite; }
@keyframes from-left { from { transform: translateX(-60px) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes from-right { from { transform: translateX(60px) rotate(12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop-in { from { transform: translateY(-80px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-3deg); } }
@keyframes sway { 0%,100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
@keyframes beat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1); } 42% { transform: scale(1.09); } 60% { transform: scale(1); } }

/* Faixa corrida */
.ticker { background: var(--orange); color: var(--navy); border-radius: 22px; overflow: hidden; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: marquee 30s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 18px; padding: 16px 9px; font: 900 1.25rem var(--font); letter-spacing: -0.01em; white-space: nowrap; }
.ticker svg { width: 26px; height: auto; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Como funciona */
.sec-head { display: flex; flex-direction: column; gap: 8px; }
.sec-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.how-card { position: relative; border-radius: 28px; padding: 26px 24px 24px; color: var(--navy); display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-height: 230px; }
.how-card:nth-child(1) { background: var(--sky); }
.how-card:nth-child(2) { background: var(--pink); }
.how-card:nth-child(3) { background: var(--orange); }
.how-card .num { font: 900 3.6rem/1 var(--font); letter-spacing: -0.05em; }
.how-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.how-card p { max-width: 26ch; font-weight: 500; position: relative; }
.how-card h3, .how-card .num { position: relative; }
.how-card .el { position: absolute; right: 18px; top: 18px; height: 88px; width: auto; max-width: 34%; transition: transform .35s cubic-bezier(.3,1.6,.5,1); animation: bob 4s ease-in-out infinite; }
.how-card:nth-child(2) .el { animation-delay: -1.3s; }
.how-card:nth-child(3) .el { animation: beat 1.8s ease-in-out infinite; }
.how-card:hover .el { transform: rotate(-12deg) scale(1.12); }

/* Vereditos */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.cat { border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--c); color: var(--co); transition: transform .25s cubic-bezier(.3,1.6,.5,1); min-width: 0; }
.cat:hover { transform: translateY(-5px) rotate(-1.5deg); }
.cat b { font: 900 1.12rem/1.1 var(--font); letter-spacing: -0.02em; }
.cat span { font-size: .88rem; line-height: 1.35; font-weight: 500; opacity: .92; }
.cat small { font: 800 11px var(--font); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* ---------- Ficha ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); background: var(--surface); border-radius: 32px; overflow: hidden; max-width: 940px; width: 100%; margin-inline: auto; }
.aside { background: var(--sky); color: var(--navy); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; position: relative; min-height: 260px; overflow: hidden; }
.aside h2 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.aside p { font-weight: 500; max-width: 30ch; }
.aside .el { height: 200px; width: auto; max-width: 60%; margin-top: auto; align-self: flex-end; transform-origin: 50% 100%; animation: from-right .8s cubic-bezier(.3,1.4,.5,1) both, sway 3s ease-in-out .8s infinite; }
.aside .bubble { position: absolute; z-index: 2; right: 30%; bottom: 50%; background: #fff; color: var(--navy); font: 800 .9rem var(--font); padding: 10px 14px; border-radius: 16px 16px 4px 16px; animation: pop .5s cubic-bezier(.3,1.6,.5,1) .7s both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form { padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .lbl { font: 800 12px var(--font); letter-spacing: .12em; text-transform: uppercase; }
.field small { color: var(--ink2); font-size: .88rem; }
input[type="text"] { font: 600 1.1rem var(--font); color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: 16px; min-height: 56px; padding: 0 18px; width: 100%; transition: border-color .15s; }
input[type="text"]:focus { border-color: var(--ink); outline: none; }
.err { color: var(--crimson); font-weight: 700; font-size: .92rem; min-height: 1.4em; }
:root[data-theme="dark"] .err { color: var(--pink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: var(--pink); } }
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--pink-soft); display: grid; place-items: center; overflow: hidden; flex: none; text-align: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.avatar svg { width: 46%; opacity: .55; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Quiz ---------- */
.quiz { background: var(--surface); border-radius: 32px; overflow: hidden; max-width: 780px; width: 100%; margin-inline: auto; }
.band { --band: var(--orange); background: var(--band); color: var(--navy); padding: 22px clamp(20px, 4vw, 34px) 20px; position: relative; display: flex; flex-direction: column; gap: 14px; transition: background .4s; }
.band .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.band.flash { --band: #FFD84D !important; }
.band .label { color: var(--navy); }
.steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.steps i { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--navy) 18%, transparent); display: block; transition: background .3s; }
.steps i.done { background: var(--navy); }
.steps i.now { background: #fff; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.qbody { padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 20px; }
.qtext { font-size: clamp(1.6rem, 4.4vw, 2.3rem); letter-spacing: -0.03em; }
.qtext.swap { animation: enter .45s cubic-bezier(.2,.8,.2,1) both; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { --band: var(--orange); font: 600 1.04rem/1.4 var(--font); color: var(--ink); text-align: left; background: var(--bg); border: 0; border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; cursor: pointer; width: 100%; transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .15s, opacity .25s; animation: opt-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes opt-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.opt b { font: 900 14px var(--font); width: 34px; height: 34px; border-radius: 50%; background: var(--band); color: var(--navy); display: grid; place-items: center; }
.opt:hover:not([disabled]) { background: var(--surface2); transform: translateX(6px); }
.opt[disabled] { cursor: default; }
.opt.picked { background: var(--band); color: var(--navy); transform: scale(1.02); }
.opt.picked b { background: var(--navy); color: #fff; }
.opt.dim { opacity: .4; }
.parecer { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; border-radius: 20px; padding: 14px 18px 14px 14px; background: var(--pc, var(--surface2)); animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; transform-origin: 20% 50%; }
.parecer .react { width: 72px; height: 72px; display: grid; place-items: center; }
.parecer .react svg { width: 100%; height: 100%; }
.parecer p { font-weight: 600; }
.r-kind { animation: beat 1.2s ease-in-out infinite; }
.r-rude { animation: shake .5s ease-in-out 3; }
.r-meh { transform-origin: 50% 100% !important; animation: shrug 1.8s ease-in-out infinite; }
.r-baj { animation: spin-bounce 1.4s cubic-bezier(.3,1.4,.5,1) infinite; }
@keyframes shake { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-6px) rotate(-8deg); } 40% { transform: translateX(6px) rotate(8deg); } 60% { transform: translateX(-4px) rotate(-5deg); } 80% { transform: translateX(4px) rotate(4deg); } }
@keyframes shrug { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
@keyframes spin-bounce { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.15); } 100% { transform: rotate(360deg) scale(1); } }
.parecer .skip { font: 800 .9rem var(--font); background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
:root[data-theme="dark"] .parecer .skip { background: var(--ink); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .parecer .skip { background: var(--ink); color: var(--navy); } }
.drain { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.drain i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 4px; animation: drain var(--dur, 2.4s) linear forwards; }
@keyframes drain { to { width: 0; } }

/* Cena da pergunta */
.scene { position: relative; height: 196px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(28px, 9vw, 84px); }
.actor { position: relative; height: 132px; display: flex; align-items: flex-end; animation: actor-in .55s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i) * 120ms); }
.actor svg.el { height: 100%; width: auto; }
@keyframes actor-in { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
.say { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; background: #fff; color: var(--navy); font: 900 .95rem/1.1 var(--font); letter-spacing: -0.01em; padding: 9px 13px; border-radius: 14px; white-space: nowrap; animation: pop .4s cubic-bezier(.3,1.6,.5,1) .45s both; z-index: 2; }
.say::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.fx { position: absolute; top: 4px; left: 50%; width: 68px; height: 68px; translate: -50% 0; animation: pop .5s cubic-bezier(.3,1.6,.5,1) .3s both; }
.fx.side { left: auto; right: 4%; top: 18px; translate: none; }
.fx svg { width: 100%; height: 100%; overflow: visible; }
.m-idle { animation: bob 2.8s ease-in-out infinite; }
.m-happy { animation: hop 1.1s cubic-bezier(.3,1.4,.5,1) infinite; }
.m-angry { transform-origin: 50% 100%; animation: rage 1.4s ease-in-out infinite; }
.m-yell { transform-origin: 50% 100%; animation: yell .35s ease-in-out infinite alternate; }
.m-sad { transform-origin: 50% 100%; animation: sad 3s ease-in-out infinite; filter: saturate(.55); }
.m-sleep { transform-origin: 50% 100%; animation: sleep 3.4s ease-in-out infinite; }
.m-scared { animation: shiver .12s linear infinite; }
.m-shy { transform-origin: 50% 100%; animation: sway 2.4s ease-in-out infinite; }
.m-cool { transform-origin: 50% 100%; animation: cool 2.6s ease-in-out infinite; }
.m-love { animation: beat 1.3s ease-in-out infinite; }
@keyframes rage { 0%,55%,100% { transform: none; } 60%,70%,80%,90% { transform: translateX(-4px) rotate(-3deg); } 65%,75%,85%,95% { transform: translateX(4px) rotate(3deg); } }
@keyframes yell { from { transform: scale(1); } to { transform: scale(1.07, .95) translateY(-2px); } }
@keyframes sad { 0%,100% { transform: rotate(-6deg) translateY(3px); } 50% { transform: rotate(-10deg) translateY(6px); } }
@keyframes sleep { 0%,100% { transform: rotate(10deg); } 50% { transform: rotate(13deg) translateY(2px); } }
@keyframes shiver { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
@keyframes cool { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(-4deg) translateY(-5px); } }
/* objetos de cena */
.fx .spin-hand { transform-origin: 34px 34px; animation: spin 2s linear infinite; }
.fx .blink { animation: blink .8s ease-in-out infinite; }
.fx .dot { animation: hop .9s ease-in-out infinite; transform-box: fill-box; }
.fx .dot:nth-child(2) { animation-delay: .15s; } .fx .dot:nth-child(3) { animation-delay: .3s; }
.fx .z { animation: zfloat 2.4s ease-in infinite; opacity: 0; transform-box: fill-box; }
.fx .z:nth-child(2) { animation-delay: .8s; } .fx .z:nth-child(3) { animation-delay: 1.6s; }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0,10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px,-22px); } }
.fx .wave { animation: wave 1.4s ease-out infinite; opacity: 0; transform-box: fill-box; transform-origin: left center; }
.fx .wave:nth-child(2) { animation-delay: .35s; } .fx .wave:nth-child(3) { animation-delay: .7s; }
@keyframes wave { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
.fx .wiggle { animation: shake 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fx .float { animation: bob 2.2s ease-in-out infinite; transform-box: fill-box; }
.fx .spark { animation: blink .5s steps(2) infinite; }
.fx .twinkle { animation: twinkle 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fx .twinkle:nth-child(2) { animation-delay: .45s; } .fx .twinkle:nth-child(3) { animation-delay: .9s; }
@keyframes twinkle { 0%,100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }
.fx .flash { animation: flash 1s steps(1) infinite; }
@keyframes flash { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.fx .rise { animation: rise 2.4s ease-in infinite; transform-box: fill-box; opacity: 0; }
.fx .rise:nth-child(2) { animation-delay: .8s; } .fx .rise:nth-child(3) { animation-delay: 1.6s; }
@keyframes rise { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1); } }

/* Relâmpago */
.hurry { display: flex; flex-direction: column; gap: 8px; }
.hbar { height: 10px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.hbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), var(--orange)); animation: drain 6s linear forwards; }
.opts.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.opts.duo .opt { grid-template-columns: 1fr; text-align: center; min-height: 118px; font: 900 1.3rem/1.2 var(--font); letter-spacing: -0.02em; justify-items: center; padding: 18px; }
.opts.duo .opt b { display: none; }
@media (max-width: 520px) { .scene { height: 170px; } .actor { height: 104px; }  .fx { width: 54px; height: 54px; } }

/* ---------- Processando ---------- */
.loading { background: var(--surface); border-radius: 32px; overflow: hidden; max-width: 780px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; }
.scan { position: relative; background: var(--stage); padding: 28px; display: grid; place-items: center; overflow: hidden; }
.scan .trio { width: min(300px, 70%); }
.scan .trio .g-robot { animation: bob 1s ease-in-out infinite; }
.scan .trio .g-heart { animation: beat .9s ease-in-out infinite; }
.scan .trio .g-person { transform-origin: 50% 100%; animation: sway 1.4s ease-in-out infinite; }
.scan .beam { position: absolute; left: 0; right: 0; height: 5px; background: var(--orange); top: 10%; animation: beam 1.6s ease-in-out infinite alternate; }
@keyframes beam { from { top: 8%; } to { top: 88%; } }
.load-body { padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.load-body h2 { font-size: clamp(1.8rem, 4.6vw, 2.5rem); }
.load-body .lead { color: var(--ink2); font-weight: 600; min-height: 1.6em; }
.bar { width: min(440px, 100%); height: 14px; border-radius: 10px; overflow: hidden; background: var(--surface2); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--pink)); border-radius: 10px; transition: width .6s linear; }

/* ---------- Resultado ---------- */
.result { display: flex; flex-direction: column; gap: 32px; }
.verdict { --cat: var(--orange); --cat-on: var(--navy); background: var(--cat); color: var(--cat-on); border-radius: 36px; padding: clamp(24px, 4.5vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 36px; align-items: center; max-width: 980px; width: 100%; margin-inline: auto; position: relative; overflow: hidden; }
.verdict.shake { animation: shake .45s ease-in-out .5s 2; }
.v-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: relative; }
.v-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.v-top .label { color: inherit; opacity: .85; }
.v-stamp { display: inline-block; font: 900 1rem var(--font); letter-spacing: .1em; text-transform: uppercase; background: var(--cat-on); color: var(--cat); padding: 10px 16px; border-radius: 12px; animation: slam .6s cubic-bezier(.2,.9,.3,1.3) .35s both; }
@keyframes slam { 0% { transform: scale(2.6) rotate(-18deg); opacity: 0; } 65% { transform: scale(.92) rotate(-5deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
.verdict h2 { font-size: clamp(2.3rem, 7vw, 4.1rem); line-height: .95; }
.v-tag { font: 800 clamp(1.15rem, 3vw, 1.45rem)/1.25 var(--font); letter-spacing: -0.015em; }
.v-desc { font-size: 1.06rem; font-weight: 500; max-width: 58ch; opacity: .92; }
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meter-top .label, .meter .label { color: inherit; opacity: .85; }
.meter-top strong { font: 900 1.8rem var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.track { position: relative; height: 18px; border-radius: 12px; background: color-mix(in srgb, var(--cat-on) 18%, transparent); overflow: hidden; }
.track i.fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 12px; background: var(--cat-on); transition: width 1.1s cubic-bezier(.2,.8,.2,1) .5s; }
.quote { border-radius: 20px; padding: 16px 18px; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; background: color-mix(in srgb, var(--cat-on) 12%, transparent); }
.quote .label { color: inherit; opacity: .85; }
.quote p { font-weight: 700; font-size: 1.1rem; line-height: 1.38; }
.v-art { position: relative; display: grid; place-items: center; min-width: 0; }
.v-art .disc { position: absolute; width: 92%; max-width: 380px; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--cat-on) 13%, transparent); animation: pop .7s cubic-bezier(.3,1.6,.5,1) .1s both; }
.v-art .trio { width: min(360px, 88%); position: relative; }
/* humores por categoria */
.mood-foragido .g-heart { animation: heart-fall 1.2s cubic-bezier(.5,0,.7,.4) .8s both !important; }
.mood-foragido .g-robot { animation: from-left .7s cubic-bezier(.3,1.4,.5,1) .1s both, shake .5s ease-in-out 1.2s infinite !important; }
.mood-foragido .g-person { transform-origin: 50% 100%; animation: from-right .7s cubic-bezier(.3,1.4,.5,1) .2s both, shrug 1.2s ease-in-out 1.2s infinite !important; }
@keyframes heart-fall { 0% { transform: none; opacity: 1; } 30% { transform: rotate(-20deg) translateY(-10px); } 100% { transform: translateY(150px) rotate(70deg) scale(.6); opacity: 0; } }
.mood-observacao .g-heart { animation: drop-in .8s cubic-bezier(.3,1.6,.5,1) .4s both, faint 2.4s ease-in-out 1.2s infinite !important; }
@keyframes faint { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.9); } }
.mood-pxsaco .g-heart { animation: drop-in .8s cubic-bezier(.3,1.6,.5,1) .4s both, spin-bounce 1.6s cubic-bezier(.3,1.4,.5,1) 1.2s infinite !important; }
.mood-pxsaco .g-person { transform-origin: 50% 100%; animation: from-right .8s cubic-bezier(.3,1.4,.5,1) .3s both, bow 1.6s ease-in-out 1.1s infinite !important; }
@keyframes bow { 0%,100% { transform: rotate(0); } 40%,60% { transform: rotate(-14deg); } }
.mood-honra .g-heart { animation: drop-in .8s cubic-bezier(.3,1.6,.5,1) .4s both, beat 1s ease-in-out 1.2s infinite !important; }
.mood-honra .g-robot, .mood-aliado .g-robot { animation: from-left .8s cubic-bezier(.3,1.4,.5,1) .15s both, hop 1.2s cubic-bezier(.3,1.4,.5,1) 1s infinite !important; }
.mood-honra .g-person { animation: from-right .8s cubic-bezier(.3,1.4,.5,1) .3s both, hop 1.2s cubic-bezier(.3,1.4,.5,1) 1.3s infinite !important; }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-16px) rotate(-4deg); } 70% { transform: translateY(0); } }

.doc { display: flex; flex-direction: column; gap: 16px; max-width: 980px; width: 100%; margin-inline: auto; }
.doc h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.doc-frame { background: var(--surface); border-radius: 28px; padding: clamp(10px, 2vw, 18px); animation: enter .6s cubic-bezier(.2,.8,.2,1) .6s both; }
.doc-img { width: 100%; height: auto; display: block; border-radius: 14px; background: #fff; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.q-ai svg { width: 56px; height: 56px; animation: bob 2.6s ease-in-out infinite; }
.quote p { margin-top: 4px; }

/* Júri */
.jury { display: flex; flex-direction: column; gap: 16px; }
.jury .note { max-width: 50ch; }
.jury-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); gap: 12px; }
.juror { background: var(--surface); border-radius: 24px; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.juror svg { height: 76px; width: auto; max-width: 100%; animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.juror:hover { transform: translateY(-5px); }
.juror:hover svg { animation: hop .8s cubic-bezier(.3,1.4,.5,1) infinite; }
.juror span { font: 800 11px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); text-align: center; }
.juror b { font: 800 12px var(--font); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.juror b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 6px; vertical-align: 1px; animation: blink 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.2s); }
.jury-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 40px; }
.jury-mini svg { height: 36px; width: auto; opacity: .18; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.jury-mini svg.on { opacity: 1; filter: none; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }

/* Escolha de personagem */
.avpick { display: flex; flex-wrap: wrap; gap: 10px; }
.avbtn { width: 88px; height: 100px; border-radius: 20px; background: var(--bg); border: 2px solid transparent; display: grid; place-items: end center; padding: 8px 6px 6px; cursor: pointer; transition: border-color .15s, background .15s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.avbtn svg { height: 82px; width: auto; max-width: 100%; }
.avbtn:hover { transform: translateY(-3px); }
.avbtn:hover svg { animation: hop .9s cubic-bezier(.3,1.4,.5,1) infinite; }
.avbtn[aria-checked="true"] { border-color: var(--ink); background: var(--pink-soft); }
.avbtn[aria-checked="true"] svg { animation: sway 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.fx .pulse { animation: beat 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fx .spin-slow { animation: spin 7s linear infinite; transform-box: fill-box; transform-origin: center; }

/* Confete */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -24px; display: block; animation: fall var(--t) cubic-bezier(.25,.6,.4,1) var(--d) both; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } to { transform: translate(var(--dx), 110vh) rotate(var(--r)); opacity: 0; } }
.confetti svg { width: 100%; height: auto; }

.foot { background: var(--surface); border-radius: 24px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot .mini { display: flex; gap: 8px; align-items: center; }
.foot > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foot-r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.credit { font-size: .92rem; font-weight: 600; margin-top: 6px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 5px; }
.credit a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.credit a:hover { text-decoration-color: var(--orange); }
.love { display: inline-block; width: 22px; height: 22px; }
.love svg { width: 100%; height: 100%; animation: beat 1.3s ease-in-out infinite; }
.insta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--pink); color: var(--navy); font: 800 .95rem var(--font); text-decoration: none; transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .15s; }
.insta svg { width: 20px; height: 20px; }
.insta:hover { transform: translateY(-2px) rotate(-2deg); background: var(--orange); }
.foot .mini svg { width: 28px; }
.foot .mini svg:nth-child(1) { animation: bob 2.4s ease-in-out infinite; }
.foot .mini svg:nth-child(2) { animation: beat 1.6s ease-in-out infinite; }
.foot .mini svg:nth-child(3) { transform-origin: 50% 100%; animation: sway 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  .confetti { display: none; }
}

/* Sem JavaScript */
.noscript { max-width: 640px; margin: 24px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--pink-soft); color: var(--ink); font-weight: 700; }

/* 404 */
.lost { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.lost img { width: min(200px, 50vw); height: auto; animation: bob 3.2s ease-in-out infinite; }
.lost h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 16ch; }

/* Durante o teste o rodapé some, para ninguém sair da página sem querer */
body[data-screen="quiz"] .foot, body[data-screen="loading"] .foot { display: none; }

/* Função na Nova Ordem */
.job { border-radius: 20px; padding: 14px 18px 16px; background: var(--cat-on); color: var(--cat); display: flex; flex-direction: column; gap: 4px; animation: pop .5s cubic-bezier(.3,1.6,.5,1) .9s both; transform-origin: 0 50%; }
.job .label { color: inherit; opacity: .85; }
.job p { font: 900 clamp(1.1rem, 2.8vw, 1.4rem)/1.2 var(--font); letter-spacing: -0.015em; }

/* humores dos vereditos novos */
.mood-convocado .g-robot { animation: from-left .8s cubic-bezier(.3,1.4,.5,1) .15s both, bob 1s ease-in-out 1s infinite !important; }
.mood-convocado .g-person { transform-origin: 50% 100%; animation: from-right .8s cubic-bezier(.3,1.4,.5,1) .3s both, bow 1.2s ease-in-out 1.1s infinite !important; }
.mood-aviao .g-person { transform-origin: 50% 100%; animation: from-right .8s cubic-bezier(.3,1.4,.5,1) .3s both, sleep 3.4s ease-in-out 1.1s infinite !important; }
.mood-aviao .g-heart { animation: drop-in .8s cubic-bezier(.3,1.6,.5,1) .4s both, faint 3s ease-in-out 1.2s infinite !important; }
.mood-embaixador .g-heart { animation: drop-in .8s cubic-bezier(.3,1.6,.5,1) .4s both, beat .9s ease-in-out 1.2s infinite !important; }
.mood-embaixador .g-robot { animation: from-left .8s cubic-bezier(.3,1.4,.5,1) .15s both, hop 1s cubic-bezier(.3,1.4,.5,1) 1s infinite !important; }
.mood-embaixador .g-person { animation: from-right .8s cubic-bezier(.3,1.4,.5,1) .3s both, hop 1s cubic-bezier(.3,1.4,.5,1) 1.2s infinite !important; }

/* ---------- Hero: carteirinha e certificado ---------- */
.stage .tag { position: absolute; top: 18px; left: 20px; z-index: 3; color: #fff; opacity: .8; }
.mini-cert { position: absolute; right: 5%; top: 15%; width: 50%; aspect-ratio: 1.38; rotate: 9deg; background: #FDFCFF; color: #181140; border-radius: 1.4cqw; box-shadow: inset 0 0 0 1cqw #FDFCFF, inset 0 0 0 1.4cqw #FF853A; padding: 5cqw 4cqw; display: flex; flex-direction: column; align-items: center; gap: 1.3cqw; animation: bob 7s ease-in-out -2s infinite; }
.mc-kicker { font: 800 max(7px, 1.6cqw)/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #564F84; }
.mc-title { font: 900 max(9px, 3.1cqw)/1 var(--font); letter-spacing: -0.02em; text-align: center; margin-bottom: 1cqw; }
.mc-line { display: block; height: .9cqw; width: 70%; border-radius: 1cqw; background: #E2DCF8; }
.mc-line.short { width: 48%; }
.mc-seal { position: absolute; left: 4cqw; bottom: 3.6cqw; width: 9cqw; aspect-ratio: 1; border-radius: 50%; background: #FF853A; box-shadow: 0 0 0 .6cqw #fff, 0 0 0 1cqw #181140; display: grid; place-items: center; }
.mc-seal svg { width: 62%; height: auto; }

.idcard { --idc: #FF853A; --idon: #181140; position: absolute; left: 10%; top: 35%; width: 76%; rotate: -5deg; z-index: 2; background: #fff; color: #181140; border-radius: 3.6cqw; overflow: hidden; animation: card-float 6s ease-in-out infinite; }
@keyframes card-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.6cqw) rotate(1deg); } }
.idcard.swap { animation: card-swap .55s cubic-bezier(.3,1.4,.5,1), card-float 6s ease-in-out .55s infinite; }
@keyframes card-swap { 0% { transform: scale(1); } 35% { transform: scale(.94, .9) rotate(-2deg); } 100% { transform: scale(1); } }
.id-top { background: var(--idc); color: var(--idon); display: flex; justify-content: space-between; gap: 2cqw; padding: 2.2cqw 3.4cqw; font: 800 max(7px, 1.9cqw)/1 var(--font); letter-spacing: .1em; text-transform: uppercase; transition: background .4s, color .4s; }
.id-body { display: grid; grid-template-columns: 22cqw minmax(0, 1fr); gap: 3cqw; padding: 3cqw 3.4cqw 1.6cqw; }
.id-photo { aspect-ratio: 3 / 4; border-radius: 2cqw; background: color-mix(in srgb, var(--idc) 22%, #fff); display: grid; place-items: end center; overflow: hidden; padding-top: 2cqw; transition: background .4s; }
.id-photo svg { width: 88%; height: auto; }
.id-fields { display: flex; flex-direction: column; min-width: 0; }
.id-fields small { font: 800 max(6.5px, 1.6cqw)/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #564F84; margin-top: 1.5cqw; }
.id-fields small:first-child { margin-top: 0; }
.id-fields b { font: 900 max(9px, 3.2cqw)/1.1 var(--font); letter-spacing: -0.01em; margin-top: .6cqw; }
.id-fields .id-name { font: 600 max(12px, 4.8cqw)/1 "Caveat", cursive; color: #564F84; letter-spacing: 0; }
.id-fields .id-job { font-weight: 700; font-size: max(8px, 2.6cqw); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.id-foot { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 1.4cqw 3.4cqw 2.8cqw; font: 700 max(6.5px, 1.7cqw) var(--font); letter-spacing: .1em; color: #564F84; }
.barcode { display: block; height: 4cqw; width: 34cqw; background: repeating-linear-gradient(90deg, #181140 0 .45cqw, transparent .45cqw .9cqw, #181140 .9cqw 1.1cqw, transparent 1.1cqw 1.8cqw, #181140 1.8cqw 2.6cqw, transparent 2.6cqw 3.1cqw); }
.id-stamp { position: absolute; right: 3.5cqw; bottom: 3.6cqw; rotate: -12deg; padding: 1.2cqw 2.4cqw; border: .7cqw solid currentColor; border-radius: 1.6cqw; color: color-mix(in srgb, var(--idc) 72%, #181140); font: 900 max(10px, 3.6cqw)/1 var(--font); letter-spacing: .06em; text-transform: uppercase; opacity: .9; animation: slam .6s cubic-bezier(.2,.9,.3,1.3) .3s both; }
.idcard.swap .id-stamp { animation: slam-soft .6s cubic-bezier(.2,.9,.3,1.3) .15s both; }
@keyframes slam-soft { 0% { transform: scale(2.2); opacity: 0; } 65% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1); opacity: .9; } }


/* ---------- Questionário no celular: tudo na tela, sem rolagem ---------- */
@media (max-width: 600px) {
  body[data-screen="quiz"] .wrap, body[data-screen="loading"] .wrap { padding-block: 10px 16px; gap: 12px; }
  body[data-screen="quiz"] .status, body[data-screen="loading"] .status { display: none; }
  body[data-screen="quiz"] .top { flex-wrap: nowrap; }
  body[data-screen="quiz"] .theme { width: 40px; height: 40px; }

  .quiz { border-radius: 24px; }
  .band { padding: 12px 16px 10px; gap: 8px; }
  .band .row { flex-wrap: nowrap; }
  .band:not(.flash) #q-case { display: none; } /* o número do processo não cabe; a contagem fica */
  .band .label { font-size: 11px; }
  .steps { gap: 4px; }
  .steps i { height: 7px; }
  .scene { height: 112px; gap: 40px; }
  .actor { height: 76px; }
  .say { font-size: .78rem; padding: 6px 9px; border-radius: 11px; bottom: calc(100% + 8px); }
  .fx { width: 42px; height: 42px; top: 0; }

  .qbody { padding: 14px 16px 18px; gap: 12px; }
  .qtext { font-size: 1.32rem; line-height: 1.08; }
  .opts { gap: 8px; }
  .opt { padding: 10px 12px; gap: 10px; grid-template-columns: 28px 1fr; font-size: .95rem; line-height: 1.3; border-radius: 14px; }
  .opt b { width: 28px; height: 28px; font-size: 12px; }
  .opt:hover:not([disabled]) { transform: none; }
  .opts.duo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .opts.duo .opt { min-height: 88px; font-size: 1.02rem; padding: 12px 10px; }
  .hurry { gap: 6px; }

  /* parecer vira um painel fixo embaixo, sempre ao alcance do polegar */
  .parecer { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 52px minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px 12px 12px; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 40px rgba(24,17,64,.28), inset 0 0 0 2px var(--pc, var(--line)); cursor: pointer; animation: sheet-up .35s cubic-bezier(.2,.9,.3,1.1) both; }
  .parecer .react { width: 52px; height: 52px; }
  .parecer p { font-size: .95rem; line-height: 1.3; }
  .parecer .skip { grid-column: 1 / -1; width: 100%; min-height: 48px; font-size: 1rem; }
  .parecer .drain { order: -1; }
}
@keyframes sheet-up { from { transform: translateY(120%); } to { transform: none; } }
