/* Editor de Vídeo da Brands · base visual: macOS Tahoe com uma camada retrô 8-bit.
   Tahoe (HIG + medidas em _refs/TOKENS.md): conteúdo sólido, vidro só no que é navegação e controle flutuante (barra
   lateral, cápsula de ações, pílulas da prévia), cantos grandes, escala de texto do Mac (13/16, título 26/32, ajuda 11/14).
   8-bit: papel de parede preto com fogo em pixel (pontilhado Bayer entre as cores), cursor de seleção de videogame em volta do cartão escolhido,
   números e setas em pixel, grade de pixels no palco da prévia. O pixel é tempero: o que a pessoa lê segue em Inter. */
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Mac", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --accent: #EE5A24; --accent-ink: #fff; --accent-soft: rgba(238, 90, 36, .13);
  --win: #FFFFFF;                       /* janela: conteúdo sólido */
  --papel-fundo: #FFFFFF;               /* papel de parede: branco com fogo laranja */
  --card: #F6F6F8;                      /* cartão grande dentro da janela (caixa do pedido, herói) */
  --group: #F2F2F5;                     /* grupo arredondado dos Ajustes */
  --stage: #F3F3F7;                     /* palco da prévia */
  --janela: #FFFFFF;                    /* fundo da janela inteira: palco, painel e trilho na mesma cor */
  --label: rgba(0, 0, 0, .86); --label-2: rgba(0, 0, 0, .52); --label-3: rgba(0, 0, 0, .3);
  --sep: rgba(0, 0, 0, .08); --fill: rgba(0, 0, 0, .055); --fill-2: rgba(0, 0, 0, .035); --fill-sel: rgba(0, 0, 0, .09);
  --field: #FFFFFF; --field-rim: inset 0 0 0 1px rgba(0, 0, 0, .12);
  --thumb: #FFFFFF; --thumb-shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .62); --glass-blur: blur(28px) saturate(180%);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .45);
  --glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 28px rgba(20, 10, 40, .14);
  --win-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 18px 50px rgba(40, 16, 60, .22);
  --pontos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='2' height='2' fill='%23000' fill-opacity='.11'/%3E%3C/svg%3E");
  --r-card: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #FF7A45; --accent-ink: #1a0b04; --accent-soft: rgba(255, 122, 69, .16);
  --papel-fundo: #000000;
  /* cinza único na janela toda (a opção "espacial" com degradê ficou guardada em painel-v2/mockup-cinzas, opção C) */
  --win: #1B1B1E; --card: #222226; --group: #26262A; --stage: #1B1B1E; --janela: #1B1B1E;
  --label: rgba(255, 255, 255, .92); --label-2: rgba(255, 255, 255, .56); --label-3: rgba(255, 255, 255, .3);
  --sep: rgba(255, 255, 255, .08); --fill: rgba(255, 255, 255, .09); --fill-2: rgba(255, 255, 255, .05); --fill-sel: rgba(255, 255, 255, .14);
  --field: rgba(255, 255, 255, .06); --field-rim: inset 0 0 0 1px rgba(255, 255, 255, .13);
  --thumb: #636368; --thumb-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --glass: rgba(34, 34, 40, .5);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), 0 12px 34px rgba(0, 0, 0, .45);
  --win-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), 0 20px 60px rgba(0, 0, 0, .55);
  --pontos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='2' height='2' fill='%23fff' fill-opacity='.09'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 13px/16px var(--font); letter-spacing: -.005em; color: var(--label); background: var(--papel-fundo); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.oculto { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--fill-sel) transparent; }

/* vidro: só a camada de navegação e os controles que flutuam por cima do conteúdo */
.vidro { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--glass-shadow); }
@media (prefers-reduced-transparency: reduce) { .vidro { background: var(--group); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.logo { display: inline-flex; align-items: center; height: 12px; color: var(--label); opacity: .72; }
.logo svg { height: 100%; width: auto; display: block; }

/* ---------- pixel 8-bit ---------- */
.px { display: block; width: 14px; height: 14px; flex: none; }
.px.dig { width: 10px; height: 14px; }
/* canto em degrau de 1 pixel (o "arredondado" dos jogos antigos) */
.caixa-px { --d: 4px; clip-path: polygon(var(--d) 0, calc(100% - var(--d)) 0, calc(100% - var(--d)) var(--d), 100% var(--d), 100% calc(100% - var(--d)),
  calc(100% - var(--d)) calc(100% - var(--d)), calc(100% - var(--d)) 100%, var(--d) 100%, var(--d) calc(100% - var(--d)), 0 calc(100% - var(--d)), 0 var(--d), var(--d) var(--d)); }
/* degradê pontilhado (gerado no painel, --dither): fundo dos cartões especiais */
.dither { background: var(--papel-fundo) var(--dither, none) center / cover; image-rendering: pixelated; }
.dither img { image-rendering: auto; }

/* ---------- controles ---------- */
/* seletor segmentado */
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); gap: 0; }
.seg button { height: 24px; padding: 0 12px; border-radius: 7px; color: var(--label); font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .16s var(--ease), box-shadow .16s var(--ease); }
.seg button:hover:not(.on) { background: var(--fill-2); }
.seg button.on { background: var(--thumb); box-shadow: var(--thumb-shadow); font-weight: 600; }
.seg.cheio { display: flex; } .seg.cheio button { flex: 1; }
/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; padding: 0 15px; border-radius: 999px;
  font-weight: 500; white-space: nowrap; transition: background .16s var(--ease), filter .16s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.cinza { background: var(--fill); } .btn.cinza:hover { background: var(--fill-sel); }
.btn.texto { color: var(--label-2); padding: 0 10px; } .btn.texto:hover { color: var(--label); background: var(--fill-2); }
.btn.prim { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .15), 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.prim:hover { filter: brightness(1.06); }
.btn.grande { height: 40px; padding: 0 22px; font-size: 14px; }
.btn.peq { height: 24px; padding: 0 12px; }
.btn svg { width: 15px; height: 15px; } .btn .px { width: 12px; height: 12px; }
.ico-btn { width: 30px; padding: 0; }
.ib { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--label-2); transition: background .16s var(--ease), color .16s; }
.ib:hover { background: var(--fill); color: var(--label); }
.ib svg { width: 16px; height: 16px; }
/* atalho em pílula (os "chips" do Captions): + quando desligado, check em pixel quando ligado */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px 0 10px; border-radius: 999px; font-weight: 500; color: var(--label-2);
  background: var(--win); box-shadow: inset 0 0 0 1px var(--sep); transition: background .16s var(--ease), color .16s, box-shadow .16s; }
.chip:hover { color: var(--label); box-shadow: inset 0 0 0 1px var(--fill-sel); }
.chip svg { width: 13px; height: 13px; } .chip .px { width: 11px; height: 11px; }
.chip.on { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); font-weight: 600; }
/* campos */
input[type=text], textarea { width: 100%; border: 0; border-radius: 9px; background: var(--field); box-shadow: var(--field-rim); padding: 6px 10px; outline: none;
  transition: box-shadow .16s var(--ease); }
input[type=text] { height: 32px; }
input[type=text]:focus, textarea:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 56px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--label-3); }
input[type=range] { width: 150px; accent-color: var(--accent); }
/* menu suspenso (pop-up) no jeito dos Ajustes: valor + cápsula com ⌃⌄ */
select.popup { appearance: none; -webkit-appearance: none; border: 0; height: 26px; padding: 0 30px 0 9px; border-radius: 8px; cursor: pointer; text-align: right;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23888' fill-opacity='.16'/%3E%3Cpath d='M7 8.5l3-3 3 3M7 11.5l3 3 3-3' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center; }
select.popup:hover { background-color: var(--fill-2); }
select.popup option { color: initial; }
/* chave liga/desliga */
.chave { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--fill-sel); transition: background .2s var(--ease); }
.chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: transform .2s var(--ease); }
.chave.on { background: var(--accent); } .chave.on::after { transform: translateX(16px); }

/* ---------- formulário em grupos (Ajustes do Sistema) ---------- */
.aj + .aj, .aj + details, details + .aj { margin-top: 22px; }
.aj > h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px 4px; font-size: 13px; line-height: 16px; font-weight: 700; scroll-margin-top: 16px; }
.grupo { background: var(--group); border-radius: 14px; padding: 0 14px; }
.grupo > :not(.oculto) ~ :not(.oculto) { border-top: 1px solid var(--sep); }   /* fio só entre linhas que aparecem */
.linha { position: relative; display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 0; }
.linha .rot { flex: 1; min-width: 0; font-weight: 500; }
.linha .rot small, .linha .dica { display: block; margin-top: 3px; font-size: 11px; line-height: 14px; color: var(--label-2); font-weight: 400; letter-spacing: .005em; }
.linha .dica:empty { display: none; }
.linha .ctl { flex: none; display: flex; align-items: center; gap: 8px; max-width: 62%; }
.linha .ctl input[type=text] { width: 220px; }
/* linha empilhada: rótulo em cima, controle largo embaixo */
.linha.pilha { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 0 13px; }
.linha.pilha .ctl { display: block; max-width: none; }
.linha.pilha .ctl input[type=text] { width: 100%; }
.linha.pilha .seg { display: flex; } .linha.pilha .seg button { flex: 1; height: 28px; }
.linha.pilha .ctl > .dica { margin-top: 7px; }
.valor-dir { position: absolute; right: 0; top: 12px; font-weight: 600; color: var(--label); max-width: 55%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cheia { padding: 10px 0 12px; }
.cheia > .dica { margin: 8px 0 0; font-size: 11px; line-height: 14px; color: var(--label-2); display: block; }
.cheia > .dica:empty { display: none; }
.tile { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .12); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile .ic { width: 13px; height: 13px; color: #fff; stroke-width: 2.1; }
.aa { font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.aa.p { font-size: 10px; } .aa.m { font-size: 12px; } .aa.g { font-size: 15px; }
/* "Opções avançadas": um triângulo só, fechado por padrão */
details.avancado > summary { list-style: none; display: flex; align-items: center; gap: 7px; margin: 0 0 8px 4px; cursor: pointer; font-weight: 700; scroll-margin-top: 16px; }
details.avancado > summary::-webkit-details-marker { display: none; }
details.avancado > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.7px solid var(--label-2); border-bottom: 1.7px solid var(--label-2);
  transform: rotate(-45deg); transition: transform .2s var(--ease); margin-right: 2px; }
details.avancado[open] > summary::before { transform: rotate(45deg); }
details.avancado > summary small { margin-left: 4px; color: var(--label-2); font-weight: 400; font-size: 11px; }
/* estilo das animações: faixa com o escolhido e os mais usados, "Ver todos" abre a grade */
.faixa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.faixa-it { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: center; }
.faixa-img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 14; border-radius: 9px; overflow: hidden; background: #0d0d10; color: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); transition: box-shadow .16s var(--ease), transform .16s var(--ease); }
.faixa-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faixa-img .ic { width: 18px; height: 18px; }
.faixa-img.vazio { background: var(--fill); color: var(--label-2); box-shadow: none; }
.faixa-img.dither { background: var(--papel-fundo) var(--dither, none) center / cover; }
.faixa-img em { position: absolute; bottom: 8px; font: 600 11px/1 var(--font); color: var(--label-2); }
.faixa-nome { font-size: 10.5px; line-height: 13px; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.faixa-it:hover .faixa-img { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--fill-sel); }
.faixa-it.on .faixa-img { box-shadow: 0 0 0 2px var(--group), 0 0 0 4px var(--accent); }
.faixa-it.on .faixa-nome { color: var(--label); font-weight: 600; }
/* legenda: miniaturas de todas, o nome embaixo, a escolhida com anel na cor de destaque */
.legendas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
.legendas button { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.legendas .leg-img { display: block; width: 100%; aspect-ratio: 700 / 220; border-radius: 9px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); transition: box-shadow .16s var(--ease); }
.legendas .leg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.legendas .leg-img.txt { display: grid; place-items: center; background: var(--fill); color: var(--label-2); font-size: 11px; }
.legendas b { font-size: 12px; font-weight: 500; color: var(--label-2); }
.legendas button:hover:not(.on) .leg-img { box-shadow: 0 0 0 2px var(--fill-sel); }
.legendas button.on .leg-img { box-shadow: 0 0 0 2px var(--group), 0 0 0 4px var(--accent); }
.legendas button.on b { color: var(--label); font-weight: 600; }
.linha .valor { color: var(--label-2); }
/* formato: 4 opções com a proporção desenhada */
.formatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.formatos button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px 9px; border-radius: 11px; background: var(--fill-2);
  transition: background .16s var(--ease), box-shadow .16s var(--ease); }
.formatos button:hover { background: var(--fill); }
.formatos .forma { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 6px; }
.formatos .forma i { display: block; border-radius: 4px; box-shadow: inset 0 0 0 1.6px var(--label-3); }
.formatos b { font-size: 13px; font-weight: 600; }
.formatos small { font-size: 11px; color: var(--label-2); white-space: nowrap; }
.formatos button.on { background: var(--thumb); box-shadow: var(--thumb-shadow); }
.formatos button.on .forma i { background: var(--accent-soft); box-shadow: inset 0 0 0 1.8px var(--accent); }

/* provas na tela: "quando eu falar de ___, mostre ___" */
.prova-linha { display: grid; grid-template-columns: auto 1fr 30px; gap: 6px 8px; align-items: center; padding: 8px 0; }
.prova-linha + .prova-linha { border-top: 1px solid var(--sep); }
.prova-linha > span { color: var(--label-2); font-size: 11px; white-space: nowrap; }
.prova-linha > .ico-btn { grid-column: 3; grid-row: 1 / span 2; height: 30px; align-self: center; }
.prova-linha > input:last-child { grid-column: 2; }
.mais-prova { margin-top: 6px; }

/* pedido: texto leigo (não pode parecer código) */
.pedido { font: 12px/1.65 var(--font); white-space: pre-wrap; word-break: break-word; color: var(--label-2); margin: 0;
  background: var(--group); border-radius: 14px; padding: 16px 18px; overflow: auto; user-select: text; }
.pedido .k { color: var(--label); font-weight: 600; }
.pedido .c { color: var(--label-3); }

/* ---------- cartão de estilo (galeria) ---------- */
.cartao { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--r-card); }
.cartao .tela { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: #0d0d10;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 4px 14px rgba(0, 0, 0, .1); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.cartao .tela::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .74)); pointer-events: none; }
.cartao:hover .tela { transform: translateY(-3px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 14px 28px rgba(0, 0, 0, .2); }
.cartao.on .tela { box-shadow: 0 0 0 2px var(--win), 0 0 0 4.5px var(--accent), 0 14px 28px rgba(0, 0, 0, .2); }
.cartao video, .cartao img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cartao img, .cartao video { -webkit-user-drag: none; user-select: none; }
.cartao .nome-c { position: absolute; left: 8px; right: 8px; bottom: 11px; z-index: 1; color: #fff; font-size: 13px; line-height: 16px; font-weight: 600;
  text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
/* cursor de seleção de videogame: 4 cantos em pixel que pulsam em volta do escolhido */
.mira { position: absolute; inset: -11px; pointer-events: none; background: var(--accent); opacity: 0;
  -webkit-mask: var(--m-tl) top left / 15px 15px no-repeat, var(--m-tr) top right / 15px 15px no-repeat, var(--m-bl) bottom left / 15px 15px no-repeat, var(--m-br) bottom right / 15px 15px no-repeat;
  mask: var(--m-tl) top left / 15px 15px no-repeat, var(--m-tr) top right / 15px 15px no-repeat, var(--m-bl) bottom left / 15px 15px no-repeat, var(--m-br) bottom right / 15px 15px no-repeat; }
.cartao.on .mira { opacity: 1; animation: mira 1.1s steps(1) infinite; }
@keyframes mira { 50% { inset: -8px; } }
.selo { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* "Automático": estilos de verdade lado a lado */
.mosaico { position: absolute; inset: 0; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 2px; background: #0d0d10; }
.mosaico.m8 { grid-template: repeat(4, 1fr) / 1fr 1fr; }
.mosaico img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }
/* "Copiar de um vídeo": degradê pontilhado 8-bit com o link no meio */
.ref-vazio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 14px; text-align: center;
  color: #fff; font-size: 11px; line-height: 14px; font-weight: 500; border-radius: inherit;
  background: var(--papel-fundo) var(--dither, none) center / cover; image-rendering: pixelated; }
.ref-vazio i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ref-vazio .ic { width: 19px; height: 19px; }
.ref-vazio span { max-width: 14ch; opacity: .8; margin-bottom: 18%; }
.ilu { position: absolute; inset: 0; background: linear-gradient(180deg, #2a3242, #171b24); }

/* folha (sheet) com a grade de estilos */
dialog.dlg-estilos { width: min(940px, calc(100vw - 32px)); }
.grade-estilos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; max-height: min(64vh, 660px); overflow: auto;
  padding: 12px 12px 14px; margin: 0 -12px; outline: none; }
.grade-estilos .cartao .nome-c { font-size: 11.5px; line-height: 14px; bottom: 8px; }

/* aviso que some sozinho */
.aviso { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 10px 18px; border-radius: 99px;
  font-weight: 500; pointer-events: none; transition: .25s var(--ease); }
.aviso.ve { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* tema claro: o ladrilho de fogo é branco em cima, então ícone e texto por cima dele ficam escuros */
:root:not([data-theme="dark"]) .ref-vazio { color: #7A2A10; }
:root:not([data-theme="dark"]) .ref-vazio i { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(122, 42, 16, .2); }
:root:not([data-theme="dark"]) .faixa-img.dither { color: #7A2A10; }
