/* Rhythm Nexus — portal de fases.
   Identidade: viagem de carro à noite, rádio, lembranças. Arte low-poly facetada.
   Paleta: quase preto, creme #f2e8d6, âmbar #ffa338. Sem neon, sem grade, sem roxo. */

@font-face { font-family: Saira; src: url(/fontes/SairaCondensed-Light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Saira; src: url(/fontes/SairaCondensed-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #08090e;
  --bg-deep: #05060a;
  --surface: #101119;
  --surface-2: #16171f;
  --surface-3: #1d1e28;
  --cream: #f2e8d6;
  --cream-dim: #cfc4b1;
  --muted: #9a9285;
  --line: rgba(242, 232, 214, .13);
  --line-strong: rgba(242, 232, 214, .26);
  --amber: #ffa338;
  --amber-light: #ffc069;
  --amber-dark: #d97d18;
  --amber-glow: rgba(255, 163, 56, .28);
  --ink: #16100a;
  --danger: #ff7a66;
  --ok: #8fd18a;

  --chamfer: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --chamfer-sm: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  --chamfer-xs: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --gap: 20px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font: 300 17px/1.6 Saira, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); }
h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0 0 .4em; color: #fff; }
h1 { font-size: clamp(32px, 5.2vw, 58px); letter-spacing: .01em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: .02em; }
main { flex: 1; width: min(1320px, 100%); margin: 0 auto; padding: 0 24px 72px; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── Textura de fundo: facetas de estrada à noite ───────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 620px at 78% -8%, rgba(255, 163, 56, .10), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(242, 232, 214, .045), transparent 60%),
    linear-gradient(180deg, rgba(8, 9, 14, .0) 0%, rgba(5, 6, 10, .55) 46%, var(--bg-deep) 100%);
}
body > * { position: relative; z-index: 1; }

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px 28px;
  padding: 0 24px;
  height: 68px;
  background: rgba(8, 9, 14, .82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: .26em;
  font-weight: 400;
  white-space: nowrap;
  flex: none;
}
.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
  background: url(/img/marca.svg) center / contain no-repeat;
}
.brand b { font-weight: 300; }
.brand .nx { color: var(--amber); font-weight: 400; }
.top nav { display: flex; gap: 26px; flex: 1; min-width: 0; }
.top nav a {
  color: var(--cream-dim);
  text-decoration: none;
  letter-spacing: .16em;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.top nav a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.top nav a[aria-current=page] { color: var(--amber); border-bottom-color: var(--amber); }
.account { display: flex; align-items: center; gap: 14px; flex: none; }
.account form { margin: 0; }
.langs { display: flex; gap: 6px; font-size: 13px; letter-spacing: .1em; flex: none; }
.langs a {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 7px;
  clip-path: var(--chamfer-xs);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.langs a:hover { color: var(--cream); background: var(--surface-3); }
.langs a.on { color: var(--ink); background: var(--amber); }
.me { display: flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; font-size: 15px; white-space: nowrap; }
.me::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--amber);
  transform: rotate(45deg);
  flex: none;
}
.nav-link { color: var(--cream-dim); text-decoration: none; letter-spacing: .1em; font-size: 15px; white-space: nowrap; }
.nav-link:hover { color: var(--amber); }

/* ── Botões ──────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 12px 26px;
  font: 400 16px/1 Saira, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(160deg, var(--amber-light), var(--amber-dark));
  clip-path: var(--chamfer-sm);
  transition: filter .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 0 0 rgba(255, 163, 56, 0);
}
.button:hover { filter: brightness(1.12); box-shadow: 0 6px 22px -8px var(--amber-glow); }
.button:active { transform: translateY(1px); }
.button.ghost {
  color: var(--cream);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.button.ghost:hover { color: var(--amber); filter: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--amber); }
.button.ghost.active { color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.button.small { padding: 7px 13px; font-size: 13px; letter-spacing: .1em; }
.link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s var(--ease);
}
.link:hover { color: var(--amber); }
.link.danger { color: var(--danger); }
.link.danger:hover { color: #ff9c8c; }

/* ── Vitrine ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 0 -24px 8px;
  padding: clamp(64px, 11vw, 132px) 24px clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(/img/estrada.jpg) center 42% / cover no-repeat;
  background-color: var(--bg-deep);
  transform: scale(1.04);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, .95) 0%, rgba(5, 6, 10, .82) 42%, rgba(5, 6, 10, .35) 78%, rgba(5, 6, 10, .6) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, .8) 0%, rgba(5, 6, 10, .15) 40%, rgba(5, 6, 10, .9) 100%);
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(-1.5%, -1.2%, 0); }
}
.hero-inner { max-width: 680px; }
.hero p { color: var(--cream-dim); max-width: 54ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.hero h1 { text-shadow: 0 3px 22px rgba(0, 0, 0, .8); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  letter-spacing: .26em;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.caption::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

/* ── Filtros ─────────────────────────────────────────────────────────────── */
.filters {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(160px, 1fr)) auto;
  gap: 10px;
  margin: 26px 0 30px;
  padding: 14px;
  background: rgba(16, 17, 25, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
}
input[type=search], input[type=text], input[type=email], input[type=password], select, textarea, input[type=file] {
  width: 100%;
  padding: 11px 13px;
  color: var(--cream);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 0;
  font: 300 16px Saira, sans-serif;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; background: #07080c; }
input::placeholder, textarea::placeholder { color: #6f6a61; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url(/img/chevron.svg);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
}
select option { background: var(--surface); color: var(--cream); }
input[type=file] { padding: 9px 10px; font-size: 14px; }
input[type=file]::file-selector-button {
  margin: 0 12px 0 0;
  padding: 8px 14px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: var(--amber);
  font: 400 13px Saira, sans-serif;
  letter-spacing: .1em;
  clip-path: var(--chamfer-xs);
}
input[type=checkbox] { accent-color: var(--amber); width: 18px; height: 18px; }

/* ── Grade de fases ──────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; }
.section-head .count { color: var(--muted); font-size: 14px; letter-spacing: .1em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: var(--gap); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  text-decoration: none;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 46%, var(--bg-deep) 100%);
  clip-path: var(--chamfer);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  will-change: transform;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
  transition: box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .95); }
.card:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 163, 56, .45); }
.card:hover .art img { transform: scale(1.05); }
.card:hover strong { color: var(--amber); }
.art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
  overflow: hidden;
}
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.no-cover {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 163, 56, .22), transparent 58%),
    linear-gradient(180deg, #171822, #0b0c11);
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(5, 6, 10, .9) 100%);
}
.badge-diff {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 400;
  color: var(--ink);
  background: var(--amber);
  clip-path: var(--chamfer-xs);
}
.badge-diff .diamonds i { border-color: rgba(22, 16, 10, .45); }
.badge-diff .diamonds i.on { background: var(--ink); border-color: var(--ink); }
.badge-scenery {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cream);
  background: rgba(5, 6, 10, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  clip-path: var(--chamfer-xs);
}
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 15px; min-width: 0; flex: 1; }
.card-body strong {
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: .01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.card-body .artist {
  color: var(--muted);
  font-size: 15px;
  min-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}
.card-meta.sub { margin-top: 2px; padding-top: 0; border-top: 0; }
.card-meta span { white-space: nowrap; }
.diamonds { display: inline-flex; gap: 4px; vertical-align: middle; }
.diamonds i {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--line-strong);
  flex: none;
}
.diamonds i.on { background: var(--amber); border-color: var(--amber); }

/* ── Vazio / paginação ───────────────────────────────────────────────────── */
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  clip-path: var(--chamfer);
  background: rgba(16, 17, 25, .4);
}
.empty h2 { color: var(--cream); }
.empty.big { padding: 120px 24px; }
.empty.big h1 { color: #fff; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.notice {
  padding: 12px 16px;
  background: var(--surface-2);
  border-left: 3px solid var(--amber);
  clip-path: var(--chamfer-xs);
  margin: 20px 0 0;
}
.notice.error { border-left-color: var(--danger); color: #ffc8bf; }

/* ── Página da fase ──────────────────────────────────────────────────────── */
.level {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 44px;
  padding-top: 36px;
  align-items: start;
}
.level-art {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-3);
  clip-path: var(--chamfer);
  overflow: hidden;
}
.level-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 10, .55) 100%);
}
.level-art img { width: 100%; height: 100%; object-fit: cover; }
.level-art .badge-diff { top: 16px; left: 16px; font-size: 14px; padding: 6px 13px; }
.level-info { min-width: 0; }
.level-info .artist { font-size: 21px; margin: 0; color: var(--cream-dim); }
.level-info .author { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.level-info .description { white-space: pre-line; color: var(--cream-dim); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.stats div { background: var(--surface); padding: 13px 15px; min-width: 0; }
.stats dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.stats dd { margin: 0; font-size: 21px; color: #fff; display: flex; align-items: center; gap: 9px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.actions form { margin: 0; }
.hint { color: var(--muted); font-size: 14px; max-width: 62ch; }
.report { margin-top: 18px; color: var(--muted); font-size: 15px; }
.report summary { cursor: pointer; color: var(--cream-dim); }
.report form { display: grid; gap: 12px; margin-top: 14px; max-width: 460px; }
.report label { display: grid; gap: 6px; }
.detail-divider { height: 1px; background: var(--line); margin: 26px 0; }

/* ── Formulários ─────────────────────────────────────────────────────────── */
.narrow { max-width: 760px; margin: 0 auto; padding-top: 40px; }
.narrow > h1 { margin-bottom: 6px; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.panel {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 28px;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 50%, var(--bg-deep) 100%);
  clip-path: var(--chamfer);
  border: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.panel:focus-within { border-color: rgba(255, 163, 56, .4); }
.panel h2 { margin: 6px 0 0; font-size: 21px; }
.panel label { display: grid; gap: 7px; font-size: 15px; letter-spacing: .04em; color: var(--cream-dim); }
.panel label.check { grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.panel small { color: var(--muted); font-size: 13px; }
.panel .hint { margin: 0; }
.panel .button { justify-self: start; }
.panel .button[disabled] { opacity: .55; cursor: progress; }
.panel + .panel { margin-top: 18px; }
.auth-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: rgba(16, 17, 25, .6);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
}
.auth-aside .art-mini {
  aspect-ratio: 16 / 10;
  background: url(/img/cena-rodovia.jpg) center / cover no-repeat;
  margin-bottom: 16px;
  clip-path: var(--chamfer-sm);
}
.auth-aside p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.auth-aside ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.auth-aside li { margin-bottom: 6px; }
.auth-aside li::marker { color: var(--amber); }

/* ── Perfil ──────────────────────────────────────────────────────────────── */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
}
.profile p { margin: 0; color: var(--muted); }
.profile h1 { margin-bottom: 4px; }

/* ── Moderação ───────────────────────────────────────────────────────────── */
.admin { width: 100%; border-collapse: collapse; }
.admin td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin .row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin form { margin: 0; }
.admin small { color: var(--muted); }

/* ── Rodapé ──────────────────────────────────────────────────────────────── */
footer {
  padding: 30px 24px 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
footer p { margin: 5px 0; }
footer a { color: var(--cream-dim); text-decoration: none; }
footer a:hover { color: var(--amber); }
.text p { color: var(--cream-dim); }
.text h2 { margin-top: 1.6em; }

/* ── Entrada animada ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.show {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ── Responsivo ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { position: static; }
}
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filters input[type=search] { grid-column: 1 / -1; }
  .filters .button { grid-column: 1 / -1; }
  .level { grid-template-columns: 1fr; gap: 26px; }
  .level-art { aspect-ratio: 16 / 10; max-height: 340px; }
  .top { gap: 10px 18px; flex-wrap: wrap; height: auto; padding: 12px 24px; }
  .brand { order: 1; }
  .langs { order: 2; margin-left: auto; }
  .top nav { order: 3; flex: 1 1 100%; }
  .account { order: 4; margin-left: auto; }
  .hero { padding: 56px 24px 44px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  main { padding: 0 16px 52px; }
  .top { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px 12px; }
  .brand { order: 1; font-size: 16px; letter-spacing: .18em; }
  .brand .mark { width: 22px; height: 22px; }
  .langs { order: 2; margin-left: auto; }
  .top nav { order: 3; flex: 1 1 100%; gap: 18px; }
  .top nav a { font-size: 13px; letter-spacing: .1em; }
  .account { order: 4; margin-left: auto; gap: 10px; }
  .account .button { padding: 9px 13px; font-size: 12px; letter-spacing: .1em; }
  .nav-link { font-size: 13px; }
  .filters { top: 0; position: static; padding: 11px; gap: 8px; }
  .filters select, .filters input { font-size: 15px; padding: 10px 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { margin: 0 -16px 4px; padding: 44px 16px 38px; }
  .hero::after { background: linear-gradient(180deg, rgba(5, 6, 10, .9) 0%, rgba(5, 6, 10, .55) 45%, rgba(5, 6, 10, .95) 100%); }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 20px 16px; }
  .narrow { padding-top: 26px; }
  .actions .button { flex: 1 1 auto; }
  .account .me span { display: none; }
  .section-head { margin-bottom: 14px; }
}
@media (max-width: 380px) {
  .top nav { gap: 12px; }
  .top nav a { font-size: 12px; }
  .langs { gap: 2px; }
  .langs a { padding: 3px 5px; font-size: 12px; }
  .brand { font-size: 15px; letter-spacing: .16em; }
  .stats dd { font-size: 19px; }
  .card-meta { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .hero-art { transform: scale(1.04); }
}

/* Cadastro: seletor de idade e campo do responsável. */
[hidden] { display: none !important; }
.panel select { width: 100%; }
