/* ═══════════════════════════════════════════════════════════════════════
   EasyPlaceholder: laboratório de avatares e placeholders por URL. Visual de "ateliê": verde-azulado profundo com água-marinha e rosa.
   A cor do projeto vem de --accent / --accent-2 (o <body> as recebe do catálogo, src/data/projects.js).
   Movimento: juice.js põe data-motion="reduced" no <html> quando o sistema pede menos animação (ou pela opção do app).
   Áreas de toque de 44px ou mais. Não depende de tokens.css nem de Bootstrap.
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────── Tokens ───────── */
:root {
	color-scheme: dark;
	--accent: #2dd4bf;
	--accent-2: #f472b6;
	--bg: #06100f;
	--bg-2: #0b1a19;
	--panel: rgb(255 255 255 / .045);
	--ink: #eaf6f4;
	--ink-2: #b6cdc9;
	--ink-3: #86a09c;
	--line: rgb(255 255 255 / .1);
	--bad: #ff8099;
	--good: #5eead4;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
	--radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.5 var(--font);
	-webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
code { font: 500 .88em/1 var(--mono); padding: .15em .4em; border-radius: 6px; background: rgb(255 255 255 / .07); }
kbd { display: inline-block; min-width: 1.6em; padding: .05em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: rgb(255 255 255 / .06); font: 600 .78em/1.5 var(--mono); text-align: center; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ───────── Fundo ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #0e2a27 0%, var(--bg) 60%); }
.bg i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(120px); opacity: .16; }
.bg i:nth-child(1) { left: -22vmax; top: -26vmax; background: var(--accent); animation: drift 30s ease-in-out infinite alternate; }
.bg i:nth-child(2) { right: -26vmax; bottom: -30vmax; background: var(--accent-2); animation: drift 36s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(7vmax, 5vmax) scale(1.12); } }

/* ───────── Esqueleto ───────── */
.sk { display: block; border-radius: 10px; background: linear-gradient(100deg, rgb(255 255 255 / .06) 30%, rgb(255 255 255 / .15) 50%, rgb(255 255 255 / .06) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.sk--title { width: 40%; height: 20px; margin-bottom: 16px; }
.sk--row { height: 48px; margin-top: 12px; }

/* ───────── Botões, pílulas e ferramentas ───────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / .06); color: var(--ink); font-weight: 600; text-decoration: none; transition: background .2s, transform .15s var(--ease), border-color .2s; }
.btn:hover { background: rgb(255 255 255 / .11); border-color: rgb(255 255 255 / .2); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn kbd { margin-left: 2px; color: inherit; opacity: .75; }
.btn--primary { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06100f; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); filter: brightness(1.07); }
.btn--ghost { background: transparent; }
.btn--small { min-height: 44px; padding: 0 14px; font-size: .92rem; }
.btn--icon { width: 48px; padding: 0; flex: none; }

.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; max-width: 1280px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 4px; }
.top__tools { display: flex; gap: 8px; justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.brand__logo { width: 1.8em; height: 1.8em; }
.pill { display: inline-flex; align-items: center; justify-self: start; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .05); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s, transform .15s var(--ease); }
.pill:hover { background: rgb(255 255 255 / .1); }
.pill:active { transform: scale(.96); }
.tool { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / .05); transition: background .2s, color .2s, transform .15s var(--ease); }
.tool:hover { background: rgb(255 255 255 / .1); }
.tool:active { transform: scale(.92); }
.tool[aria-pressed="false"] { color: var(--ink-3); background: transparent; }
.tool[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }

/* ───────── Estrutura ───────── */
.app { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 16px 24px; display: grid; gap: 28px; align-content: start; }
.app > * { min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -30px rgb(0 0 0 / .8); }
.nojs { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }

.intro { display: grid; gap: 10px; padding-top: 10px; }
.kicker { color: var(--accent); font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.intro h2 { font: 800 clamp(1.7rem, 4.6vw, 2.8rem)/1.08 var(--font); letter-spacing: -.02em; max-width: 18em; }
.intro__lead { max-width: 46em; color: var(--ink-2); }
.tabs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / .04); font-weight: 700; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.tab small { color: var(--ink-3); font: 500 .78rem/1 var(--mono); }
.tab:hover { background: rgb(255 255 255 / .09); }
.tab:active { transform: scale(.96); }
.tab[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tab[aria-selected="true"] small { color: inherit; opacity: .8; }

.lab { display: grid; gap: 16px; align-items: start; }
@media (max-width: 979px) { .preview { order: -1; } }
@media (min-width: 980px) { .lab { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); } .preview { position: sticky; top: 12px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; } }

/* ───────── Controles ───────── */
.controls { padding: 18px; display: grid; gap: 14px; min-height: 360px; }
.controls__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.controls__head h3 { font: 700 1.05rem/1.2 var(--font); }
.field { display: grid; gap: 8px; }
.field > label, .ctl__label, .ctl > label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.row { display: flex; gap: 8px; align-items: center; }
.row > .inp { flex: 1; min-width: 0; }
.inp, .sel, textarea.inp { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / .28); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea.inp { padding: 12px 14px; min-height: 76px; resize: vertical; line-height: 1.4; }
.inp::placeholder { color: var(--ink-3); }
.inp:hover, .sel:hover { border-color: rgb(255 255 255 / .22); }
.inp[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.sel { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a09c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.sel option { background: #0b1a19; color: var(--ink); }
.hint { color: var(--ink-3); font-size: .84rem; line-height: 1.4; }
.ctl__hint { display: none; color: var(--ink-3); font-size: .82rem; line-height: 1.4; }
.controls[data-help="on"] .ctl__hint { display: block; }

.switch-row { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: relative; width: 46px; height: 26px; flex: none; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid var(--line); transition: background .2s; }
.switch__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.switch input:checked + .switch__track { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 3px; }

.grp { border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / .025); }
.grp > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; list-style: none; cursor: pointer; font-weight: 700; border-radius: 16px; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary:hover { background: rgb(255 255 255 / .04); }
.grp > summary .i { margin-left: auto; color: var(--ink-3); transition: transform .25s var(--ease); }
.grp[open] > summary .i { transform: rotate(180deg); }
.grp__n { min-width: 1.7em; padding: .15em .5em; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font: 700 .74rem/1.4 var(--mono); text-align: center; }
.grp__body { display: grid; gap: 18px; padding: 4px 16px 18px; }

.ctl { display: grid; gap: 8px; }
.ctl__head { display: flex; align-items: center; gap: 10px; }
.ctl__head label { flex: 1; font-weight: 600; font-size: .92rem; }
.val { font: 600 .82rem/1 var(--mono); color: var(--ink-3); }
.val[data-set="true"] { color: var(--accent); }
.reset { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-2); }
.reset:hover { background: rgb(255 255 255 / .1); }
.reset .i { width: 1em; height: 1em; }
input[type="range"] { width: 100%; height: 32px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .04); font-weight: 600; font-size: .9rem; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.chip:hover span { background: rgb(255 255 255 / .09); }
.chip input:active + span { transform: scale(.95); }
.chip input:checked + span { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 17%, transparent); color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.colorrow { display: flex; gap: 8px; align-items: center; }
.swatch { width: 48px; height: 48px; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / .28); cursor: pointer; }
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 8px; }
.swatch::-moz-color-swatch { border: 0; border-radius: 8px; }
.dims { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }

/* ───────── Prévia ───────── */
.preview { padding: 16px; display: grid; gap: 14px; }
.stage { position: relative; display: grid; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(100% 120% at 50% 0%, #10302d, #08171a); transition: background .3s; }
.stage[data-bg="light"] { background: #f2f6f5; }
.stage[data-bg="check"] { background: conic-gradient(#d6dedc 25%, #f4f7f6 0 50%, #d6dedc 0 75%, #f4f7f6 0) 0 0 / 22px 22px; }
.stage__switch { display: inline-flex; justify-self: end; padding: 3px; border-radius: 999px; background: rgb(0 0 0 / .45); }
.stage__switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #cfe3df; font: 600 .76rem/1 var(--font); }
.stage__switch button[aria-pressed="true"] { background: #fff; color: #06100f; }
.stage__canvas { position: relative; display: grid; place-items: center; min-height: 250px; }
.stage__img { display: block; max-width: 100%; max-height: 300px; width: auto; height: auto; opacity: 0; transition: opacity .25s; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .35)); }
body[data-kind="avatar"] .stage__img { width: 220px; height: 220px; }
.stage__img.is-ready { opacity: 1; }
.stage__sk { position: absolute; width: 200px; height: 200px; border-radius: 50%; transition: opacity .2s; }
body[data-kind="placeholder"] .stage__sk { width: 70%; height: 150px; border-radius: 14px; }
.stage__img.is-ready ~ .stage__sk, .stage__sk.is-gone { opacity: 0; pointer-events: none; }
.ladder { display: flex; align-items: flex-end; justify-content: center; gap: 14px; min-height: 76px; }
.ladder img { display: block; height: auto; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .3)); }
.warn { padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: #ffd0d8; font-size: .88rem; }

.urlbox { display: grid; gap: 12px; }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt { position: relative; }
.fmt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fmt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: 600 .82rem/1 var(--mono); color: var(--ink-2); background: rgb(255 255 255 / .03); transition: background .2s, color .2s; }
.fmt:hover span { background: rgb(255 255 255 / .09); }
.fmt input:checked + span { background: #fff; color: #06100f; border-color: #fff; }
.fmt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.code { margin: 0; max-height: 8.6em; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / .4); font: 500 .8rem/1.55 var(--mono); color: #cdeee8; white-space: pre-wrap; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn--primary { flex: 1 1 140px; }

/* ───────── Barra para telas estreitas ───────── */
.mini { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: 4px 16px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: rgb(8 22 21 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -16px rgb(0 0 0 / .8); }
.mini__img { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgb(255 255 255 / .06); }
.mini__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .8rem/1 var(--mono); color: var(--ink-2); }
@media (min-width: 980px) { .mini { display: none !important; } }

/* ───────── Blocos de baixo ───────── */
.block { display: grid; gap: 16px; }
.block__head { display: grid; gap: 6px; }
.block__head h2 { font: 700 1.5rem/1.2 var(--font); letter-spacing: -.01em; }
.block__head p { color: var(--ink-2); max-width: 50em; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .compare { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: grid; justify-items: center; gap: 8px; padding: 14px 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: background .2s, border-color .2s, transform .2s var(--ease); animation: tile-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.tile:hover { background: rgb(255 255 255 / .09); transform: translateY(-3px); }
.tile:active { transform: scale(.96); }
.tile[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tile img { display: block; max-width: 100%; height: auto; }
.tile span { font: 600 .8rem/1.2 var(--mono); color: var(--ink-2); text-align: center; overflow-wrap: anywhere; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.gallery .tile img { width: 72px; height: 72px; }
.compare .tile img { width: 96px; height: 96px; }
body[data-kind="placeholder"] .compare .tile img, body[data-kind="placeholder"] .gallery .tile img { width: auto; height: auto; max-width: 100%; max-height: 90px; }
body[data-kind="placeholder"] .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.example { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-align: left; transition: background .2s, transform .2s var(--ease); }
.example:hover { background: rgb(255 255 255 / .09); transform: translateY(-2px); }
.example:active { transform: scale(.97); }
.example__art { display: grid; place-items: center; width: 76px; height: 64px; }
.example__art img { display: block; max-width: 76px; max-height: 64px; width: auto; height: auto; }
.example b { display: block; font-size: .95rem; }
.example small { display: block; margin-top: 2px; color: var(--ink-3); font: 500 .72rem/1.4 var(--mono); overflow-wrap: anywhere; }

.routes { display: grid; gap: 6px; color: var(--ink-2); }
.table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.table__row { display: grid; grid-template-columns: 8em 6.5em minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .9rem; align-items: start; }
.table__row--head { border-top: 0; background: rgb(255 255 255 / .06); font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.table__name code { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (max-width: 860px) {
	.table__row { grid-template-columns: 1fr; gap: 4px; }
	.table__row--head { display: none; }
	.table__row > span[data-label]::before { content: attr(data-label) ': '; color: var(--ink-3); font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
	.table__name::before { display: none; }
}

.foot { padding: 12px 16px max(24px, env(safe-area-inset-bottom)); text-align: center; color: var(--ink-3); font-size: .86rem; }
.foot a { color: inherit; }

/* ───────── Aviso e ajuda ───────── */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; max-width: min(92vw, 420px); padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgb(12 30 28 / .96); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8); font-weight: 600; font-size: .92rem; text-align: center; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: #ffd0d8; }
.dlg { width: min(94vw, 520px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #0b1a19; color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9); }
.dlg::backdrop { background: rgb(2 8 8 / .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg-in .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.dlg__box { display: grid; gap: 14px; padding: 24px; }
.dlg__box h2 { font: 800 1.4rem/1.2 var(--font); }
.dlg__box h3 { font: 700 1rem/1.2 var(--font); margin-top: 4px; }
.dlg__list { display: grid; gap: 8px; padding-left: 1.3em; list-style: decimal; color: var(--ink-2); }
.dlg__note { color: var(--ink-3); font-size: .9rem; }
.keys { display: grid; gap: 8px; }
.keys div { display: flex; align-items: center; gap: 12px; }
.keys dt { min-width: 2.4em; }
.keys dd { color: var(--ink-2); }

/* ───────── Juice próprio ───────── */
.is-rolling .i { animation: roll .55s var(--ease); }
@keyframes roll { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(200deg) scale(1.35); } 100% { transform: rotate(360deg) scale(1); } }
.stage__img.is-flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { transform: scale(.7) rotate(-14deg); opacity: .3; } 60% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.stage__img.is-pop { animation: pop .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.94); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ───────── Menos movimento ───────── */
html[data-motion="reduced"] .bg i, html[data-motion="reduced"] .sk, html[data-motion="reduced"] .tile, html[data-motion="reduced"] .is-rolling .i,
html[data-motion="reduced"] .stage__img.is-flip, html[data-motion="reduced"] .stage__img.is-pop, html[data-motion="reduced"] .dlg[open] { animation: none; }
html[data-motion="reduced"] .toast, html[data-motion="reduced"] .switch__track::after, html[data-motion="reduced"] .btn, html[data-motion="reduced"] .chip span, html[data-motion="reduced"] .tile, html[data-motion="reduced"] .example { transition: none; }
@media (prefers-reduced-motion: reduce) {
	.bg i, .sk, .tile, .is-rolling .i, .stage__img.is-flip, .stage__img.is-pop, .dlg[open] { animation: none; }
	.toast, .switch__track::after, .btn, .chip span, .tile, .example { transition: none; }
}

@media (max-width: 560px) {
	.top { grid-template-columns: auto 1fr auto; gap: 8px; }
	.pill span { display: none; }
	.pill { padding: 0 12px; }
	.brand { font-size: 1.05rem; justify-self: center; }
	.tabs { display: grid; grid-template-columns: 1fr 1fr; }
	.tab { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 6px 10px; }
	.stage__canvas { min-height: 200px; }
	body[data-kind="avatar"] .stage__img { width: 168px; height: 168px; }
	.stage__sk { width: 150px; height: 150px; }
	.actions .btn { flex: 1 1 40%; }
}

@media (max-width: 479px) { .brand span { display: none; } .brand { justify-self: center; } }

.switch--small { min-height: 40px; font-size: .84rem; color: var(--ink-2); }
.switch--small code { font-size: .92em; }
.block .usage { color: var(--ink); }
