/* Base: variáveis, reset, fundo, tooltips e movimento reduzido */
:root {
  --ink: #09090b;
  --ink-2: #131316;
  --line: rgba(236, 235, 230, 0.12);
  --bone: #ecebe6;
  --mute: #8d8d96;
  --signal: #7c5cff;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* meio-tom, referência ao mangá do avatar; some em direção ao rodapé */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(236, 235, 230, 0.1) 1.1px, transparent 1.5px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.page {
  position: relative;
  width: min(440px, 100% - 32px);
  margin: 0 auto;
  padding: 124px 0 168px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tooltips dos botões de ícone (hover e foco) ---------- */
.tip { position: relative; }
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 6px 10px;
  font: 600 12px/1.2 var(--text);
  white-space: nowrap;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .tip:hover::after { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
