/* ═══════════════════════════════════════════════════════════════════════
   LifeScore: o teste de 20 perguntas (views/layouts/lifescore.eta, apps/lifescore*.eta)
   Claro por padrão e escuro quando o sistema pede (prefers-color-scheme). Os tokens de cada tema ficam nos dois blocos marcados com
   `@theme`: test/lifescore-page.test.js confere o contraste de cada par (texto, botão, link, aviso, borda de campo e cor das barras).
   A cor do projeto vem de --accent e --accent-2 (catálogo, no <html>): os tokens de marca são derivados delas com color-mix, e o
   teste resolve essas contas com as cores do catálogo. Nenhuma outra cor é escrita fora dos blocos de tema. Mobile-first.
   O movimento comum (confete, pop, tremida) vem de juice.css; juice.js põe data-motion="reduced" no <html>.
   ═══════════════════════════════════════════════════════════════════════ */

/* @theme light */
:root {
	color-scheme: light;
	--bg: #f7f5fd;
	--surface: #ffffff;
	--surface-2: #efebfa;
	--ink: #17132a;
	--ink-2: #463f62;
	--ink-3: #5f5a73;
	--line: #e3def3;
	--line-2: #cbc4e2;
	--line-3: #8179a3;
	--btn: color-mix(in srgb, var(--accent) 62%, #000000);
	--btn-hover: color-mix(in srgb, var(--accent) 52%, #000000);
	--btn-ink: #ffffff;
	--accent-text: color-mix(in srgb, var(--accent) 58%, #000000);
	--grad-a: color-mix(in srgb, var(--accent) 66%, #000000);
	--grad-b: color-mix(in srgb, var(--accent-2) 50%, #000000);
	--bar: color-mix(in srgb, var(--accent) 80%, #000000);
	--bar-2: color-mix(in srgb, var(--accent-2) 62%, #000000);
	--danger: #b3261e;
	--danger-ink: #ffffff;
	--ok: #1a7f45;
	--ok-ink: #ffffff;
	--shadow: 0 1px 2px rgb(23 19 42 / .05), 0 10px 28px -14px rgb(23 19 42 / .16);
	--glow: .1;
}
@media (prefers-color-scheme: dark) {
	/* @theme dark */
	:root {
		color-scheme: dark;
		--bg: #0f0d17;
		--surface: #18152a;
		--surface-2: #221e38;
		--ink: #f1eefc;
		--ink-2: #cbc5e6;
		--ink-3: #a39dbd;
		--line: #2d2848;
		--line-2: #413a63;
		--line-3: #7d75a6;
		--btn: var(--accent);
		--btn-hover: color-mix(in srgb, var(--accent) 85%, #ffffff);
		--btn-ink: #1a0f3a;
		--accent-text: color-mix(in srgb, var(--accent) 78%, #ffffff);
		--grad-a: var(--accent);
		--grad-b: var(--accent-2);
		--bar: var(--accent);
		--bar-2: var(--accent-2);
		--danger: #f28b82;
		--danger-ink: #1a0504;
		--ok: #4ade80;
		--ok-ink: #052e16;
		--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -14px rgb(0 0 0 / .6);
		--glow: .16;
	}
}

:root {
	--radius: 18px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); font-size: .92rem; }
.fine { margin: 14px 0; color: var(--ink-3); font-size: .86rem; }

/* ───────── fundo ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(90px); opacity: var(--glow); will-change: transform; animation: ls-drift 28s ease-in-out infinite alternate; }
.bg i:first-child { left: -22vmax; top: -24vmax; background: var(--accent); }
.bg i:last-child { right: -26vmax; bottom: -30vmax; background: var(--accent-2); animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes ls-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vmax, 3vmax) scale(1.08); } }

/* ───────── topo e rodapé ───────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--btn-ink); background: var(--btn); }
.brand__mark .i { width: 22px; height: 22px; stroke-width: 2; }
.top__tools { display: flex; align-items: center; gap: 8px; }
.tool { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; }
.tool:hover { color: var(--ink); border-color: var(--line-3); }
.tool[aria-pressed="false"] { color: var(--ink-3); background: transparent; }
.tool[aria-pressed="false"] .i { opacity: .5; }
.tool[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent-text); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; }
.pill:hover { color: var(--ink); border-color: var(--line-3); }
#whoBtn { max-width: 11em; }
#whoName { overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; padding-block: 28px 56px; outline: none; }
.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px max(22px, env(safe-area-inset-bottom)); }
.foot a { color: var(--ink-2); }

/* ───────── botões ───────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent; background: var(--btn); color: var(--btn-ink); font-weight: 650; font-size: .95rem; text-decoration: none; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; box-shadow: var(--shadow); }
.btn:hover:not(:disabled) { background: var(--btn-hover); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--big { min-height: 56px; padding-inline: 28px; font-size: 1.08rem; border-radius: 15px; }
.btn--ghost { background: transparent; border-color: var(--line-3); color: var(--ink); box-shadow: none; }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger { background: var(--surface); border-color: var(--danger); color: var(--danger); box-shadow: none; }
.btn--danger:hover:not(:disabled) { background: var(--danger); color: var(--danger-ink); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 600; text-decoration: underline; min-height: 32px; }

/* ───────── cartões e textos ───────── */
.card { margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.narrow { max-width: 460px; margin-inline: auto; margin-bottom: 20px; }
.h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1.12rem; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink-3); font: 600 .78rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: ls-blink 1.8s ease-in-out infinite; }
@keyframes ls-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.grad { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: .94rem; }
.note--error { border-color: var(--danger); }
.note--error::before { content: "Não deu: "; font-weight: 700; color: var(--danger); }

/* ───────── início ───────── */
.hero { padding-block: 12px 24px; }
.hero__title { font-size: clamp(2.1rem, 8vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.hero__lead { margin-top: 14px; max-width: 54ch; color: var(--ink-2); font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.areas-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.areas-intro li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.areas-intro .i { grid-row: span 2; width: 1.6em; height: 1.6em; color: var(--accent-text); align-self: center; }
.areas-intro b { font-size: 1rem; }
.areas-intro span { color: var(--ink-3); font-size: .88rem; line-height: 1.4; }
.challenge { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--accent-text); background: var(--surface); }
.challenge .i { width: 1.6em; height: 1.6em; color: var(--accent-text); }

/* ───────── o teste ───────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: .72rem; font-weight: 600; text-align: center; }
.step i { font-style: normal; overflow-wrap: anywhere; line-height: 1.2; }
.step.is-done { color: var(--ok); border-color: var(--ok); }
.step.is-current { color: var(--accent-text); border-color: var(--accent-text); background: var(--surface-2); }
.quiz__head { margin-bottom: 18px; }
.quiz__title { font-size: 1.8rem; letter-spacing: -.03em; font-weight: 800; }
.quiz__blurb { margin-top: 4px; color: var(--ink-2); }
.questions { display: grid; gap: 16px; }
.q { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
/* o legend flutuado sai da borda do cartão (o padrão do navegador o põe em cima da linha) */
.q__text { float: left; display: flex; gap: 10px; width: 100%; margin-bottom: 12px; padding: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.q__n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--accent-text); font: 700 .8rem var(--mono); }
.opts { display: grid; gap: 8px; clear: both; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__face { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: .96rem; line-height: 1.3; transition: border-color .15s, background .15s, transform .12s; }
.opt:hover .opt__face { border-color: var(--line-3); }
.opt input:checked + .opt__face { border-color: var(--accent-text); background: var(--surface-2); font-weight: 650; box-shadow: inset 0 0 0 1px var(--accent-text); }
.opt input:focus-visible + .opt__face { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; }
.nav--start { justify-content: flex-start; margin-top: 16px; }

/* ───────── o resultado e a conta ───────── */
.result { text-align: center; }
.score { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 2px; }
.score b { font-size: clamp(4.2rem, 22vw, 6.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score span { color: var(--ink-3); font: 600 1.1rem var(--mono); }
.delta { flex-basis: 100%; font-style: normal; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.delta[data-dir="up"] { color: var(--ok); }
.delta[data-dir="down"] { color: var(--danger); }
.band { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent-text); }
.band__note { max-width: 46ch; margin: 6px auto 0; color: var(--ink-2); }
.ahead { max-width: 52ch; margin: 14px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: .93rem; }
.bars { display: grid; gap: 12px; margin: 22px 0 0; text-align: left; }
.bar { display: grid; grid-template-columns: minmax(7.2em, 9.5em) 1fr 2.6em; align-items: center; gap: 12px; }
.bar__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .95rem; }
.bar__name .i { color: var(--accent-text); }
.bar__track { height: 12px; overflow: hidden; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.bar__track i { display: block; width: var(--w); height: 100%; border-radius: 999px; background: var(--bar); transform-origin: 0 50%; animation: ls-grow .9s var(--ease) both; }
.bar:nth-child(even) .bar__track i { background: var(--bar-2); }
.bar b { text-align: right; font: 700 .95rem var(--mono); font-variant-numeric: tabular-nums; }
@keyframes ls-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.levers { display: grid; gap: 12px; margin-top: 14px; }
.lever { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.lever__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.lever__gain { color: var(--accent-text); font: 700 .84rem var(--mono); }
.lever__now { margin-top: 2px; color: var(--ink-3); font-size: .88rem; }
.lever__tip { margin-top: 6px; color: var(--ink-2); font-size: .94rem; }

.duel__rows { display: grid; gap: 6px; margin-top: 12px; }
.duel__row { display: grid; grid-template-columns: 1fr auto auto 3.4em; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: .92rem; }
.duel__row:first-child { font-weight: 700; }
.duel__row em { font-style: normal; font: 700 .9rem var(--mono); text-align: right; }
.duel__row.is-win em { color: var(--ok); }
.duel__row.is-lose em { color: var(--danger); }

/* ───────── compartilhar ───────── */
.share__grid { display: grid; gap: 20px; margin-top: 12px; }
.share__canvas { display: block; width: min(100%, 270px); height: auto; margin-inline: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface-2); }
.share__side { display: grid; gap: 14px; align-content: start; }
.share__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip__face { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.chip input:checked + .chip__face { border-color: var(--accent-text); color: var(--accent-text); background: var(--surface-2); }
.chip input:focus-visible + .chip__face { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* ───────── formulários ───────── */
.form { display: grid; gap: 14px; margin-top: 14px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 650; font-size: .92rem; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--bg); color: var(--ink); font-size: 1rem; }
.input::placeholder { color: var(--ink-3); }
.input--mono { font-family: var(--mono); letter-spacing: .04em; }
.field__foot { min-height: 1em; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 1px solid var(--line-3); background: var(--bg); color: transparent; transition: background .15s, border-color .15s; }
.check__box .i { width: 18px; height: 18px; stroke-width: 3; }
.check input:checked + .check__box { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.check input:focus-visible + .check__box { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.code__value { margin: 16px 0; padding: 18px 12px; border-radius: 14px; border: 2px dashed var(--accent-text); background: var(--surface-2); text-align: center; font: 800 clamp(1.05rem, 5.2vw, 1.5rem)/1.3 var(--mono); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }

/* ───────── gráfico, tabela e mudanças ───────── */
.chart { margin-top: 10px; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { fill: var(--ink-3); font: 500 11px var(--mono); }
.chart__line { fill: none; stroke: var(--bar); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: color-mix(in srgb, var(--bar) 14%, transparent); stroke: none; }
.chart__dot { fill: var(--surface); stroke: var(--bar); stroke-width: 2.5; }
.chart__dot--last { fill: var(--bar); }
.table-details { margin-top: 10px; }
.table-details summary, .settings summary { cursor: pointer; min-height: 40px; padding-block: 8px; font-weight: 650; color: var(--accent-text); }
.table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.table th:first-child, .table th[scope="row"], .table td:first-child { text-align: left; }
.table thead th { color: var(--ink-3); font-weight: 600; }
.table-details { overflow-x: auto; }
.changes { display: grid; gap: 8px; margin-top: 12px; }
.change { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border-left: 4px solid var(--line-3); }
.change.is-up { border-left-color: var(--ok); }
.change.is-down { border-left-color: var(--danger); }
.change__area { color: var(--ink-3); font-size: .8rem; }
.change__text { grid-column: 1; color: var(--ink-2); font-size: .9rem; }
.change em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 .88rem var(--mono); font-style: normal; }
.change.is-up em { color: var(--ok); }
.change.is-down em { color: var(--danger); }
.settings details { border-top: 1px solid var(--line); }
.settings details[open] { padding-bottom: 14px; }

/* ───────── páginas legais ───────── */
.legal { max-width: 70ch; }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.legal__tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.legal__tabs a[aria-current="page"] { border-color: var(--accent-text); color: var(--accent-text); background: var(--surface-2); }
.legal__title { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.legal__meta { margin: 8px 0 24px; color: var(--ink-3); font-size: .9rem; }
.legal__section { margin-bottom: 26px; }
.legal__section h2 { margin-bottom: 8px; font-size: 1.2rem; letter-spacing: -.01em; }
.legal__section p, .legal__section li { color: var(--ink-2); }
.legal__section p + p, .legal__section p + ul, .legal__section ul + p { margin-top: 10px; }
.legal__section ul { padding-left: 1.2em; list-style: disc; }
.legal__section li { margin-top: 6px; padding-left: 2px; }
.legal__table { overflow-x: auto; margin-top: 10px; }
.legal__table .table { text-align: left; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; }
.legal__back { margin-top: 28px; }

/* ───────── avisos ───────── */
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 8px; width: min(420px, 100% - 32px); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: .93rem; }
.toast--error { border-color: var(--danger); }

/* ───────── telas maiores e menos movimento ───────── */
@media (min-width: 640px) {
	.share__grid { grid-template-columns: 270px 1fr; align-items: start; }
	.share__canvas { margin-inline: 0; }
	.steps .step { font-size: .8rem; }
}
@media (max-width: 520px) {
	/* o cabeçalho não pode passar da largura (a página inteira alargaria): o "Como funciona" fica só no rodapé */
	.pill--far { display: none; }
}
@media (max-width: 440px) {
	.brand__name { display: none; }
	#whoBtn { max-width: 9.5em; }
}
@media (max-width: 480px) {
	.bar { grid-template-columns: 1fr 2.6em; }
	.bar__name { grid-column: 1 / -1; }
	.bar__track { grid-column: 1; }
	.duel__row { grid-template-columns: 1fr auto auto 3em; gap: 8px; font-size: .84rem; padding-inline: 10px; }
	.card { padding: 18px; }
}
@media (forced-colors: active) {
	/* o texto com degradê some quando o sistema tira os fundos: volta para a cor do texto do sistema */
	.grad, .score b { background: none; color: CanvasText; }
	.bar__track i { background: Highlight; }
	.opt input:checked + .opt__face, .chip input:checked + .chip__face { outline: 3px solid Highlight; }
	.check input:checked + .check__box { background: Highlight; color: HighlightText; }
}
html[data-motion="reduced"] .bg i, html[data-motion="reduced"] .pulse, html[data-motion="reduced"] .bar__track i { animation: none; }
@media (prefers-reduced-motion: reduce) {
	.bg i, .pulse, .bar__track i { animation: none; }
	html { scroll-behavior: auto; }
}
