/* ==========================================================================
   Valdória · Tokens de design (guia de estilo: /estilo.html)
   Fonte única de verdade para cor, tipo, espaço, tamanho, raio, sombra e movimento.
   Nenhum outro arquivo usa valores soltos: tudo referencia estes tokens.

   Identidade: "Sala de Situação, 1978".
   O gabinete do Planalto à noite: verde de mata e de feltro de mesa,
   ouro de selo oficial, vermelho de carimbo e papel de ofício.
   ========================================================================== */
:root {
  /* ---------- Paleta base ---------- */
  /* Mata: o verde do gabinete (fundos e painéis) */
  --ink-950: #0a1612;
  --ink-900: #0e1b17;
  --ink-800: #15261f;
  --ink-700: #1e3a32;
  --ink-600: #2a4d43;
  --ink-100: #dfe6dc;
  --ink-50: #edf0e8;

  /* Ouro de selo: a cor da Presidência, das ações e do que é seu */
  --brass-700: #8a5f0f;
  --brass-600: #c38e28;
  --brass-500: #e2aa3f;
  --brass-400: #eec25f;
  --brass-200: #f5dda0;
  --brass-100: #f8eccb;

  /* Carimbo: crise, perigo, voto contra */
  --stamp-500: #d9483b;

  /* Papel de ofício (tema claro) */
  --paper: #e6dfcb;
  --surface: #f6f1e3;
  --surface-2: #efe8d6;
  --surface-3: #e4dcc6;
  --line: #d3c9ae;
  --line-strong: #b9ad8c;

  --text: #17261f;
  --text-2: #475244;
  --text-3: #6b7062;
  --text-inv: #f4eedd;

  --ok: #2f6b45;
  --ok-bg: #dfeadb;
  --bad: #b23a2a;
  --bad-bg: #f3ddd5;
  --warn: #85600f;
  --warn-bg: #f2e5c4;
  --info: #2c6378;
  --info-bg: #dbe6e4;
  --focus: #b07a12;

  /* ---------- Tokens semânticos: mudam com o tema; as telas só usam estes ---------- */
  --solid: #17332a;                 /* botão escuro, bolha própria, selo de ícone */
  --solid-hover: #214539;
  --ink-text: #1f5244;              /* texto e ícone verde sobre fundo claro */
  --tint: #e7e5d1;                  /* fundo esverdeado suave */
  --tint-strong: #d9dcc3;
  --brass-text: var(--brass-700);   /* texto dourado legível */
  --brass-tint: var(--brass-100);   /* fundo dourado suave */
  --toast-bg: var(--ink-800);
  --toast-bd: var(--ink-600);
  --hud-bg: var(--ink-900);         /* barra de recursos e barra lateral: sempre escuras, como um console */
  --hud-bg-2: var(--ink-800);
  --hud-line: #2b453c;
  --hud-text: #ede5d0;
  --hud-text-2: #a9a28c;
  --panel-head: color-mix(in srgb, var(--surface-3) 70%, var(--surface));
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --corner: var(--brass-600);       /* cantoneiras douradas dos painéis */
  --backdrop: rgba(10, 22, 18, 0.62);

  /* Curvas de nível do mapa de Valdória: a textura de fundo do jogo */
  --tex-contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520' fill='none' stroke='%2317261f' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-20 120c80-60 170-40 230 10s150 70 210 20 120-40 120-40'/%3E%3Cpath d='M-20 150c90-50 160-30 220 15s160 75 220 25 110-35 110-35'/%3E%3Cpath d='M-20 182c95-40 150-20 210 20s170 80 230 30 100-30 100-30'/%3E%3Cpath d='M150 300c40-50 120-60 170-20s40 110-20 130-170 0-150-110z'/%3E%3Cpath d='M180 310c30-35 95-40 130-12s28 80-15 92-125 0-115-80z'/%3E%3Cpath d='M210 322c20-20 60-24 85-6s18 50-10 58-80 0-75-52z'/%3E%3Cpath d='M-20 440c70-30 140 10 200 0s140-60 220-40 120 30 120 30'/%3E%3Cpath d='M-20 470c80-25 150 15 210 5s140-55 220-35 110 25 110 25'/%3E%3C/svg%3E");

  /* ---------- Larguras padronizadas ---------- */
  --w-sidebar: 264px;
  --h-topbar: 72px;
  --w-menu: 240px;
  --w-select: 240px;
  --w-list: 280px;
  --w-panel: 300px;
  --w-modal: 560px;
  --w-modal-wide: 760px;
  --w-setup: 720px;

  /* ---------- Tipografia ---------- */
  /* Título: letreiro cívico condensado, de prédio público e placa de avenida */
  --font-title: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  /* Descrição: humanista de origem tipográfica latina, legível em textos longos e na interface */
  --font-ui: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-doc: var(--font-ui);
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.875rem;
  --fs-36: 2.5rem;
  --fs-48: 3.25rem;
  --fs-display: clamp(3rem, 7vw, 5.75rem);
  --lh-tight: 1.05;
  --lh-ui: 1.45;
  --lh-doc: 1.65;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 700;
  --fw-title: 800;
  --ls-title: 0.01em;

  /* ---------- Espaço: escala de 4 px ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* Controles: botões, inputs, dropdowns e abas usam só estas três alturas */
  --h-sm: 32px;
  --h-md: 40px;
  --h-lg: 48px;
  --icon-sm: 16px;
  --icon-md: 18px;
  --icon-lg: 20px;

  /* Raios: secos, de peça de metal e de pasta de arquivo */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 999px;

  /* Sombras com a cor da mata, nunca preto puro */
  --sh-1: 0 1px 0 rgba(23, 38, 31, 0.08), 0 2px 6px rgba(23, 38, 31, 0.06);
  --sh-2: 0 6px 18px rgba(23, 38, 31, 0.14), 0 2px 4px rgba(23, 38, 31, 0.08);
  --sh-3: 0 28px 60px rgba(10, 22, 18, 0.36), 0 6px 16px rgba(10, 22, 18, 0.2);
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus);
  --glow: 0 0 0 1px color-mix(in srgb, var(--brass-500) 55%, transparent), 0 0 24px color-mix(in srgb, var(--brass-500) 28%, transparent);

  /* Movimento: três durações e uma curva para tudo */
  --d-1: 120ms;
  --d-2: 200ms;
  --d-3: 320ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --wrap: 1360px;
  --aside: 320px;
  --gutter: var(--s-8);

}

/* ---------- Sala de Situação: o jogo tem um tema só, escuro ---------- */
:root {
  --paper: #0e1b17;
  --surface: #15261f;
  --surface-2: #1a2e27;
  --surface-3: #223931;
  --line: #2b453c;
  --line-strong: #3d5e52;
  --text: #ede5d0;
  --text-2: #bdb59e;
  --text-3: #9a957f;
  --ok: #7cc48a;
  --ok-bg: #16301f;
  --bad: #ec6a55;
  --bad-bg: #3a1a15;
  --warn: #e9b95a;
  --warn-bg: #33280f;
  --info: #86bfd2;
  --info-bg: #14303a;
  --focus: #eec25f;
  --solid: #2a4a3f;
  --solid-hover: #335a4c;
  --ink-text: #a3d3c1;
  --tint: #1b3029;
  --tint-strong: #24413a;
  --brass-text: #eec25f;
  --brass-tint: #3a2e12;
  --toast-bg: #223931;
  --toast-bd: #3d5e52;
  --hud-bg: #0a1612;
  --hud-bg-2: #102019;
  --panel-head: #1a2e27;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --corner: #e2aa3f;
  --backdrop: rgba(4, 10, 8, 0.72);
  --tex-contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520' fill='none' stroke='%23e2aa3f' stroke-opacity='.055' stroke-width='1.2'%3E%3Cpath d='M-20 120c80-60 170-40 230 10s150 70 210 20 120-40 120-40'/%3E%3Cpath d='M-20 150c90-50 160-30 220 15s160 75 220 25 110-35 110-35'/%3E%3Cpath d='M-20 182c95-40 150-20 210 20s170 80 230 30 100-30 100-30'/%3E%3Cpath d='M150 300c40-50 120-60 170-20s40 110-20 130-170 0-150-110z'/%3E%3Cpath d='M180 310c30-35 95-40 130-12s28 80-15 92-125 0-115-80z'/%3E%3Cpath d='M210 322c20-20 60-24 85-6s18 50-10 58-80 0-75-52z'/%3E%3Cpath d='M-20 440c70-30 140 10 200 0s140-60 220-40 120 30 120 30'/%3E%3Cpath d='M-20 470c80-25 150 15 210 5s140-55 220-35 110 25 110 25'/%3E%3C/svg%3E");
  --sh-1: 0 1px 0 rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.22);
  --sh-2: 0 10px 24px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.3);
  --sh-3: 0 30px 70px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- Camada de jogo (styles/game.css): metal, vidro, guerra e inteligência ---------- */
:root {
  --void: #050c0a;                    /* o fundo mais fundo, atrás de tudo */
  --war-300: #ffb3a6;
  --war-500: #e0503f;                 /* guerra, alvo, alerta */
  --war-700: #7a1f17;
  --intel-400: #7ec8e3;               /* mar, radar, desembarque */
  --intel-600: #2f7f9c;
  --gold-grad: linear-gradient(180deg, #f9e2a4 0%, #ecbb4f 42%, #b47c1c 100%);
  --gold-grad-hover: linear-gradient(180deg, #fff0c4 0%, #f3ca68 42%, #c68d28 100%);
  --gold-line: linear-gradient(90deg, transparent, var(--brass-500) 18%, var(--brass-200) 50%, var(--brass-500) 82%, transparent);
  --glass-1: rgba(10, 22, 18, 0.78);
  --glass-2: rgba(16, 32, 26, 0.86);
  --hair: rgba(226, 170, 63, 0.18);   /* fio dourado dos painéis de vidro */
  --hair-strong: rgba(226, 170, 63, 0.42);
  --r-xl: 14px;
  --d-4: 520ms;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sh-panel: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 0 rgba(0, 0, 0, 0.45), 0 22px 44px -22px rgba(0, 0, 0, 0.8);
  --sh-float: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 44px rgba(0, 0, 0, 0.5);
  --glow-gold: 0 0 0 1px color-mix(in srgb, var(--brass-500) 60%, transparent), 0 0 26px color-mix(in srgb, var(--brass-500) 32%, transparent);
  --glow-war: 0 0 0 1px color-mix(in srgb, var(--war-500) 60%, transparent), 0 0 26px color-mix(in srgb, var(--war-500) 36%, transparent);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Painéis sem cantoneiras decorativas; preserva as demais camadas de fundo. */
  --bk: var(--brass-500);
  --bk-o: 7px;
  --brackets: none;
}

/* Tons de acabamento preservados da camada de jogo; centralizados para manutenção. */
:root {
  --game-tone-000: #000;
  --game-tone-000000: #000000;
  --game-tone-020504: #020504;
  --game-tone-020605: #020605;
  --game-tone-030806: #030806;
  --game-tone-03090c: #03090c;
  --game-tone-040a08: #040a08;
  --game-tone-040c10: #040c10;
  --game-tone-060202: #060202;
  --game-tone-060708: #060708;
  --game-tone-060e0b: #060e0b;
  --game-tone-06100c: #06100c;
  --game-tone-06141d: #06141d;
  --game-tone-070f0c: #070f0c;
  --game-tone-07100d: #07100d;
  --game-tone-08120e: #08120e;
  --game-tone-0a0b0d: #0a0b0d;
  --game-tone-0b1814: #0b1814;
  --game-tone-0e0f11: #0e0f11;
  --game-tone-101113: #101113;
  --game-tone-111214: #111214;
  --game-tone-120d03: #120d03;
  --game-tone-121315: #121315;
  --game-tone-141517: #141517;
  --game-tone-142820: #142820;
  --game-tone-182e25: #182e25;
  --game-tone-1a0806: #1a0806;
  --game-tone-1a1204: #1a1204;
  --game-tone-1a2204: #1a2204;
  --game-tone-1d1503: #1d1503;
  --game-tone-1e1f22: #1e1f22;
  --game-tone-222326: #222326;
  --game-tone-280805: #280805;
  --game-tone-28292d: #28292d;
  --game-tone-2a2010: #2a2010;
  --game-tone-2c2d31: #2c2d31;
  --game-tone-2e0c09: #2e0c09;
  --game-tone-34353a: #34353a;
  --game-tone-5a3a06: #5a3a06;
  --game-tone-5c1a14: #5c1a14;
  --game-tone-5c6f68: #5c6f68;
  --game-tone-7a5510: #7a5510;
  --game-tone-7b83e0: #7b83e0;
  --game-tone-8a8a8a: #8a8a8a;
  --game-tone-8f8a78: #8f8a78;
  --game-tone-9fb4ac: #9fb4ac;
  --game-tone-a9bab3: #a9bab3;
  --game-tone-b0b0b0: #b0b0b0;
  --game-tone-b9811f: #b9811f;
  --game-tone-b9d23a: #b9d23a;
  --game-tone-bee63c: #bee63c;
  --game-tone-cfe6ee: #cfe6ee;
  --game-tone-d7f04a: #d7f04a;
  --game-tone-d8d2bf: #d8d2bf;
  --game-tone-d9534a: #d9534a;
  --game-tone-d9ab45: #d9ab45;
  --game-tone-d9cba6: #d9cba6;
  --game-tone-dff3fa: #dff3fa;
  --game-tone-e2c04f: #e2c04f;
  --game-tone-e2f58a: #e2f58a;
  --game-tone-e8b54c: #e8b54c;
  --game-tone-e8ff6a: #e8ff6a;
  --game-tone-ef6a58: #ef6a58;
  --game-tone-f0c060: #f0c060;
  --game-tone-f1d58c: #f1d58c;
  --game-tone-f3ecd8: #f3ecd8;
  --game-tone-f7dd9a: #f7dd9a;
  --game-tone-f7dfa0: #f7dfa0;
  --game-tone-ff9a88: #ff9a88;
  --game-tone-fff: #fff;
  --game-tone-fff3c4: #fff3c4;
  --game-tone-fff6d8: #fff6d8;
  --game-tone-fff8e6: #fff8e6;
  --game-tone-fffae1: #fffae1;
  --game-tone-fffaf0: #fffaf0;
  --game-tone-ffffff: #ffffff;
}
