/* fiz pq eu quiz: escuro suave */
:root {
  color-scheme: dark;
  --fundo: #15171c;
  --cartao: #1e2128;
  --cartao-2: #262a33;
  --linha: #2e333d;
  --texto: #eceef1;
  --texto-2: #a3a9b5;
  --texto-3: #8a909c;
  --verde: #3fae7c;
  --ambar: #d9a13b;
  --azul: #5b8def;
  --violeta: #a47be8;
  --ausente: #3a3f4a;
  --erro: #f07a6e;
  --raio: 12px;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Young Serif", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--texto);
  font: 17px/1.5 var(--sans);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }

.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; margin: 0 auto; padding: 18px 16px 4px;
}
.logo { font-family: var(--serif); font-size: 21px; text-decoration: none; letter-spacing: -.01em; }
.logo b { font-weight: 400; color: var(--ambar); }
.topo-acoes { display: flex; gap: 8px; }

main { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }

h1 { font-weight: 600; font-size: clamp(26px, 5vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 2px; }
.sub { color: var(--texto-2); margin: 0 0 18px; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; cursor: pointer; font-size: 15px; font-weight: 500;
  background: var(--cartao-2); border: 1px solid var(--linha); border-radius: 10px; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: #2d323c; border-color: #3a404c; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn.forte { background: var(--texto); color: var(--fundo); border-color: var(--texto); }
.btn.forte:hover { background: #fff; }
.btn.mini { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.redondo { width: 36px; padding: 0; border-radius: 50%; }

.aviso {
  position: fixed; left: 50%; top: 16px; z-index: 50; transform: translate(-50%, -8px);
  background: var(--texto); color: var(--fundo); font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; max-width: calc(100vw - 32px); text-align: center;
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

.balao { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 12, .7); }
.balao[hidden] { display: none; }
.balao-caixa {
  background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px;
  padding: 22px 22px 20px; width: min(420px, 100%); max-height: 90dvh; overflow: auto;
  animation: sobe .2s ease-out;
}
@keyframes sobe { from { transform: translateY(8px); opacity: 0; } }
.balao-caixa h2 { font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; font-size: 22px; }
.balao-caixa p { margin: 8px 0; color: var(--texto-2); }
.balao-caixa b { color: var(--texto); font-weight: 600; }
.balao-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.rodape { max-width: 720px; margin: 0 auto; padding: 0 16px 28px; color: var(--texto-3); font-size: 14px; }

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