/* Quanto falta. Direção: a folhinha de parede, aquela de arrancar a folha de cada dia. Uma tira de cor com os furos em cima, o número do dia enorme
   no meio e, embaixo, o desenho da ocasião (Natal, viagem, aniversário...). O palco (.stage) tem a paleta da cena em qualquer tema; a página em
   volta é neutra, para a cor ficar só onde conta. Tipografia: Bricolage Grotesque (peso 800 nos números, 400 a 700 no texto), embutida em
   public/vendor/quanto-falta; JetBrains Mono (já hospedada em /vendor/fontes) só no relógio. Tema CLARO por padrão e escuro só pelo botão.
   Movimento: o palco anima por canvas (public/js/quanto-falta-stage.js) e os desenhos por classes (.blink, .sway...); html[data-motion=reduced] pára tudo. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/vendor/quanto-falta/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/vendor/fontes/jetbrains-mono-latin-wght.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
	--sans: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	color-scheme: light;
	--bg: #f2f3f5; --surface: #ffffff; --surface-2: #e9ebef; --ink: #15171c; --ink-2: #454b57; --ink-3: #5d6572;
	--line: #dfe2e7; --line-2: #7b8390; --focus: #1d5fd1; --brand: #d63a2c; --on-brand: #ffffff; --whats: #1a7a43; --on-whats: #ffffff; --shadow-btn: #c9ced6;
	--accent: var(--brand);
	--gutter: clamp(16px, 4vw, 40px); --radius: 16px; --band-h: 76px;
}
:root[data-theme='dark'] {
	color-scheme: dark;
	--bg: #0f1115; --surface: #171a21; --surface-2: #20242d; --ink: #eef0f4; --ink-2: #b9c0cc; --ink-3: #9aa2b0;
	--line: #262b35; --line-2: #6c7587; --focus: #78aaff; --brand: #ff6b5a; --on-brand: #1b0b08; --whats: #3fcf7a; --on-whats: #06210f; --shadow-btn: #05070a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--sans); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 18px; height: 18px; }
.muted { color: var(--ink-3); font-weight: 400; }

/* ───────── cabeçalho ───────── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top__in { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px 11px 11px 4px; background: var(--brand); color: var(--on-brand); }
.brand__name { font-size: 1.15rem; }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.tool { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); text-decoration: none; }
.tool:hover { background: var(--surface-2); }
.tool:active { transform: scale(0.95); }
.tool[aria-pressed='false'] .i { opacity: 0.45; }
.tool__count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font: 700 0.7rem/19px var(--sans); text-align: center; }
#themeToggle .i--moon { display: none; } #themeToggle[aria-pressed='true'] .i--sun { display: none; } #themeToggle[aria-pressed='true'] .i--moon { display: block; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; margin-right: 4px; border: 1.5px solid var(--line-2); border-radius: 99px; background: var(--surface); font-weight: 600; font-size: 0.9rem; }
.pill:hover { background: var(--surface-2); }

.main { padding-block: 0 40px; outline: none; }

/* ───────── a folhinha (o palco) ───────── */
.board { display: grid; gap: 26px; }
.stage {
	--st-top: #f2edde; --st-bottom: #e1d8c4; --ink: #26231c; --soft: #4d483c; --accent: #ef5b4f; --band-fg: #111111; --m1: #ef5b4f; --m2: #26231c; --m3: #fffaf0; --m4: #c8bda4;
	position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column;
	min-height: clamp(540px, 74svh, 720px);
	color: var(--ink); background: linear-gradient(180deg, var(--st-top), var(--st-bottom));
	border-radius: 0 0 32px 32px;
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.stage__sky { position: absolute; left: 0; right: 0; top: var(--band-h); z-index: 1; overflow: hidden; pointer-events: none; }
.stage__sky svg { display: block; width: 100%; height: auto; }
.stage[data-scene='junina'] .stage__body { padding-top: calc(min(100cqw, 640px) * 0.15 + 18px); }
.stage__motif { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; pointer-events: none; }
.stage__motif svg { display: block; width: min(100%, 520px); height: auto; overflow: visible; }

.stage__band { position: relative; z-index: 5; background: var(--accent); color: var(--band-fg); }
.stage__band::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 7px; background: radial-gradient(circle at 50% 0, var(--accent) 6px, transparent 6.5px) 0 0 / 15px 7px repeat-x; }
.stage__holes { display: block; height: 30px; background:
	radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0 4px, transparent 4.5px) 0 0 / 36px 30px repeat-x,
	radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0.34) 0 7px, transparent 7.5px) 0 0 / 36px 30px repeat-x; background-position: center; }
.stage__band-text { display: flex; justify-content: space-between; gap: 12px; padding: 0 22px 14px; font: 700 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.stage__body { position: relative; z-index: 4; flex: 1; display: flex; flex-direction: column; padding: 26px 22px calc(min(100cqw, 520px) / 2 - 8px); }
.stage__title { font: 800 clamp(1.75rem, 8cqw, 3rem)/1.02 var(--sans); letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; max-width: 18ch; }
.stage__kicker { margin-top: 1.1em; font: 600 clamp(1.05rem, 4.6cqw, 1.5rem)/1.1 var(--sans); color: var(--soft); min-height: 1.1em; }
.stage__figure { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.7rem; margin-top: 0.05em; }
.stage__number { font: 800 min(40cqw, 14rem)/0.82 var(--sans); letter-spacing: -0.055em; color: var(--ink); text-shadow: 0 0.025em 0 rgba(0, 0, 0, 0.1); }
.stage__number[data-digits='3'] { font-size: min(31cqw, 11.5rem); }
.stage__number[data-digits='4'] { font-size: min(24cqw, 9rem); }
.stage__number[data-digits='5'] { font-size: min(19cqw, 7.4rem); }
.stage__number[data-shout='1'] { font-size: min(25cqw, 8.4rem); letter-spacing: -0.035em; line-height: 0.95; }
.stage__unit { font: 700 clamp(1.5rem, 7.2cqw, 2.7rem)/1 var(--sans); letter-spacing: -0.02em; }
.stage__weeks { margin-top: 0.7em; font: 600 clamp(1rem, 4.4cqw, 1.4rem)/1.2 var(--sans); color: var(--soft); min-height: 1.2em; }
.stage__date { margin-top: 0.5em; font: 500 0.98rem/1.35 var(--sans); color: var(--soft); }
.stage__clock { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 0.8em; padding: 8px 14px 8px 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); font: 600 1.25rem/1 var(--mono); letter-spacing: 0.02em; }
.stage__clock-note { font: 500 0.82rem/1 var(--sans); color: var(--soft); letter-spacing: 0; }
.stage__party { align-self: flex-start; margin-top: 1em; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--st-top); font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.stage__party:active { transform: translateY(2px); box-shadow: none; }
.stage[data-state='loading'] .stage__body { visibility: hidden; }
.stage__skeleton { display: none; position: absolute; z-index: 4; inset: calc(var(--band-h) + 26px) 22px auto; gap: 18px; flex-direction: column; }
.stage[data-state='loading'] .stage__skeleton { display: flex; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.08)) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; }
.sk--line { height: 34px; width: 70%; } .sk--short { width: 40%; height: 22px; } .sk--big { height: 150px; width: 54%; border-radius: 16px; } .sk--chip { height: 58px; border-radius: 14px; background-color: var(--surface-2); background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); background-size: 200% 100%; }
.stage.is-turn { animation: turn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: 50% 0; }
.stage.is-pop .stage__number { animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* ───────── outras medidas ───────── */
.details { margin-top: 18px; padding-inline: 2px; }
.h3 { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.details__grid > div { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.details__grid dt { font: 500 0.8rem/1.25 var(--sans); color: var(--ink-3); }
.details__grid dd { margin-top: 3px; font: 700 1.12rem/1.2 var(--sans); letter-spacing: -0.01em; }
.details__holidays { margin-top: 10px; font-size: 0.85rem; line-height: 1.45; color: var(--ink-3); }

/* ───────── blocos do painel ───────── */
.board__right { display: grid; gap: 34px; align-content: start; padding-top: 4px; }
.block { display: grid; gap: 12px; }
.h2 { font: 800 1.3rem/1.15 var(--sans); letter-spacing: -0.02em; }
.lead { color: var(--ink-2); margin-top: -6px; }
.hint { font-size: 0.86rem; line-height: 1.45; color: var(--ink-3); }

.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 60px; padding: 8px 12px 8px 10px; text-align: left; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 2px 0 var(--shadow-btn); transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
.chip:hover { border-color: var(--line-2); }
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip__dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.14); }
.chip__text { min-width: 0; display: grid; line-height: 1.2; }
.chip__label { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.chip__date { font-size: 0.8rem; color: var(--ink-3); }
.chip__check { display: none; margin-left: auto; width: 18px; height: 18px; color: var(--ink); }
.chip[aria-pressed='true'] { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); background: var(--surface-2); }
.chip[aria-pressed='true'] .chip__check { display: block; }
.shortcuts__sk { list-style: none; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.input { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--surface); font-size: 1.05rem; color: var(--ink); }
.input:focus-visible { outline-offset: 1px; }
.input[aria-invalid='true'] { border-color: var(--brand); border-width: 2px; }
.field__error { color: var(--brand); font-size: 0.9rem; font-weight: 600; }
.field__error::before { content: '! '; font-weight: 800; }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }

.scenes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 4px; }
.scene { position: relative; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 10px 6px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.scene:hover { border-color: var(--line-2); }
.scene input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scene__dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.14); }
.scene__name { font-size: 0.86rem; font-weight: 600; line-height: 1.15; }
.scene:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); background: var(--surface-2); }
.scene:has(input:checked) .scene__name::after { content: ' ✓'; font-weight: 800; }
.scene:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.check__box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--line-2); border-radius: 8px; background: var(--surface); color: transparent; transition: background 0.12s, border-color 0.12s; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check input:focus-visible + .check__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.check__text { display: grid; gap: 2px; }
.check__text strong { font-weight: 700; font-size: 0.97rem; line-height: 1.25; }
.check__text small { font-size: 0.85rem; line-height: 1.4; color: var(--ink-3); }
.check--sub { margin-left: 38px; }
.check--inline { padding: 0; align-items: center; }
.more { border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
.more summary { cursor: pointer; min-height: 52px; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; font-weight: 500; color: var(--ink-3); }
.more[open] summary::after { content: '–'; }
.more__body { display: grid; gap: 16px; padding: 4px 16px 18px; }

/* ───────── botões ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.97rem; box-shadow: 0 3px 0 var(--shadow-btn); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--shadow-btn); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--whats { background: var(--whats); border-color: var(--whats); color: var(--on-whats); min-height: 56px; font-size: 1.05rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--whats) 55%, #000); }
.btn--whats:hover { background: color-mix(in srgb, var(--whats) 90%, #000); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 color-mix(in srgb, var(--brand) 55%, #000); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 90%, #000); }
.btn--quiet { border-color: transparent; background: transparent; box-shadow: none; }
.btn--quiet:hover { background: var(--surface-2); }
.btn.is-done { border-color: var(--whats); }

.share { display: grid; gap: 10px; }
.share__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.share__row--ics { align-items: center; }

/* ───────── minhas contagens ───────── */
.saved { display: grid; gap: 10px; }
.mini { display: flex; align-items: stretch; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); }
.mini__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; border: 0; border-radius: 13px; background: transparent; }
.mini__open:hover .mini__swatch { transform: rotate(-2deg) scale(1.03); }
.mini__swatch { flex: none; position: relative; width: 66px; height: 66px; display: grid; place-items: center; align-content: center; border-radius: 14px; background: linear-gradient(180deg, var(--st-top), var(--st-bottom)); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.12); overflow: hidden; transition: transform 0.15s; }
.mini__swatch::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 11px; background: var(--accent); }
.mini__num { margin-top: 8px; font: 800 1.45rem/1 var(--sans); letter-spacing: -0.04em; }
.mini__unit { font: 600 0.62rem/1.1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.mini__text { min-width: 0; display: grid; gap: 2px; padding-block: 4px; }
.mini__name { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.mini__meta { font-size: 0.84rem; color: var(--ink-3); line-height: 1.3; }
.mini__actions { display: flex; flex-direction: column; justify-content: center; }
.mini__actions .tool { width: 44px; height: 44px; }
.empty { display: grid; justify-items: start; gap: 6px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 18px; color: var(--ink-2); }
.empty__art { width: 96px; height: auto; color: var(--ink-3); }
.empty__title { font-weight: 700; color: var(--ink); }
.empty__text { font-size: 0.93rem; }
.saved__note { display: flex; gap: 7px; align-items: flex-start; }
.saved__note .i { margin-top: 2px; flex: none; }

/* ───────── rodapé, aviso e janela ───────── */
.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--ink-2); font-size: 0.9rem; }
.foot .wrap { display: grid; gap: 18px; }
.foot__author a { font-weight: 600; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: min(92vw, 440px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); animation: toast-in 0.25s ease both; }
.toast { pointer-events: none; }
.toast__action { pointer-events: auto; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sheet { width: min(92vw, 420px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.sheet::backdrop { background: rgba(10, 12, 16, 0.55); }
.sheet__form { display: grid; gap: 14px; padding: 22px; }
.sheet__actions { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 8px; }

/* ───────── telas maiores ───────── */
@media (min-width: 720px) {
	.main { padding-block: 28px 56px; }
	.stage { border-radius: 28px; }
	.shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.details__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.board { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 44px; align-items: start; }
	.board__left { min-width: 0; }
	.stage { min-height: clamp(580px, calc(100svh - 150px), 760px); }
}
@media (min-width: 960px) and (min-height: 820px) { .board__left { position: sticky; top: 84px; } }
@media (max-width: 519px) { #install #installLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .pill { width: 44px; padding: 0; justify-content: center; margin-right: 0; } .top__tools { gap: 0; } }
@media (max-width: 719px) {
	.stage { margin-inline: calc(var(--gutter) * -1); }
	.scenes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.brand__name { font-size: 1.05rem; }
}
@media (max-width: 380px) { .shortcuts { grid-template-columns: minmax(0, 1fr); } .share__row { grid-template-columns: 1fr; } }

/* ───────── os desenhos da ocasião (cores e movimento) ───────── */
.f1 { fill: var(--m1); } .f2 { fill: var(--m2); } .f3 { fill: var(--m3); } .f4 { fill: var(--m4); }
.s1 { stroke: var(--m1); } .s2 { stroke: var(--m2); } .s3 { stroke: var(--m3); } .s4 { stroke: var(--m4); }
.blink { animation: blink 2.4s ease-in-out infinite; } .b1 { animation-delay: -0.4s; } .b2 { animation-delay: -1.1s; } .b3 { animation-delay: -1.8s; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; } .p2 { animation-delay: -1.2s; }
.rise { animation: rise 2.8s ease-in infinite; } .r1 { animation-delay: -0.2s; } .r2 { animation-delay: -1.1s; } .r3 { animation-delay: -2s; }
.sway { animation: sway 4s ease-in-out infinite; }
.bob { animation: bob 3.4s ease-in-out infinite; } .bob.b2 { animation-delay: -1.1s; } .bob.b3 { animation-delay: -2.2s; }
.wiggle { animation: wiggle 2.8s ease-in-out infinite; } .wiggle.w2 { animation-delay: -1.4s; }
.flag { transform-box: fill-box; transform-origin: 50% 0; animation: flag 2.4s ease-in-out infinite; } .fl2 { animation-delay: -0.8s; } .fl3 { animation-delay: -1.6s; }
.flame { animation: flame 0.9s ease-in-out infinite; } .flame.fb { animation-duration: 0.7s; animation-delay: -0.2s; } .flame.fc { animation-duration: 0.55s; animation-delay: -0.35s; }
.beat { animation: beat 1.6s ease-in-out infinite; } .beat.b2 { animation-delay: -0.3s; }
.flick { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 0.55s ease-in-out infinite; } .flick.f2d { animation-delay: -0.2s; } .flick.f3d { animation-delay: -0.4s; }
.swing { animation: swing 3.2s ease-in-out infinite; }
.fly { animation: fly 20s linear infinite; }
.sweep { animation: sweep 60s linear infinite; }
.shine { animation: blink 2.2s ease-in-out infinite; }
.wave { animation: wave 5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.22; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-36px); opacity: 0; } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
@keyframes flag { 0%, 100% { transform: skewX(0) rotate(0); } 50% { transform: skewX(-9deg) rotate(4deg); } }
@keyframes flame { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(0.94, 1.1) skewX(2deg); } 60% { transform: scale(1.05, 0.93) skewX(-2deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(1); } 42% { transform: scale(1.07); } }
@keyframes flick { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(0.86, 1.14); } }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes fly { from { transform: translateX(-40px); } to { transform: translateX(540px); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes turn { from { opacity: 0; transform: perspective(900px) rotateX(-12deg) translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0.82); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* menos movimento: o botão Animações (e o pedido do sistema, lido pelo JS e pelo <head>) para tudo */
html[data-motion='reduced'] .stage *, html[data-motion='reduced'] .stage, html[data-motion='reduced'] .sk, html[data-motion='reduced'] .toast, html[data-motion='reduced'] .btn, html[data-motion='reduced'] .chip { animation: none !important; transition: none !important; }
html[data-motion='reduced'] .chip:active, html[data-motion='reduced'] .btn:active { transform: none; }
