/* ============================================================
   base — variáveis, reset e tipografia
   ============================================================ */

:root {
  /* fundo escuro com um leve puxão pro verde */
  --bg: #0a0e0c;
  --bg-soft: #0f1512;
  --surface: #141c18;
  --surface-2: #1a241f;
  --surface-3: #212d27;
  --line: #263229;
  --line-soft: #1d2721;

  --text: #e9f1ec;
  --text-dim: #a9bcb1;
  --muted: #7d9488;

  --green: #57e08a;
  --green-deep: #2fae62;
  --green-glow: rgba(87, 224, 138, 0.16);
  --red: #f0555a;
  --red-deep: #c22c31;
  --gold: #f3c24d;
  --blue: #5aa9f8;
  --purple: #a78bfa;

  /* cor de destaque do perfil que estiver aberto (cada um escolhe a sua) */
  --accent: var(--green);
  --accent-soft: rgba(87, 224, 138, 0.14);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);

  --header-h: 56px;
  --nav-h: 62px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body.travado { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; }
a:active { opacity: 0.7; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

img { max-width: 100%; display: block; }

::selection { background: var(--green-glow); }

/* barra de rolagem discreta (desktop) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-full); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* ---------- utilidades ---------- */
.oculto { display: none !important; }
.mono { font-family: var(--mono); }
.dim { color: var(--text-dim); }
.muted { color: var(--muted); }
.centro { text-align: center; }
.flex { display: flex; }
.entre { justify-content: space-between; }
.meio { align-items: center; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g14 { gap: 14px; }
.crescer { flex: 1; min-width: 0; }
.cortar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cortar-2 {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cortar-3 {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

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