/* ChiqGames · Sistema de diseño v1.1.3 (docs/v113/DISENO.md)
   Tres pieles, cada una con su familia de variables en <html data-skin="…">:
   - imgamer (por defecto): la web y el foro. Oscuro, paneles grises y acento lima. Modo claro opcional.
   - biz: el panel del staff (bizadmin). Claro, barra superior azul y lateral oscura. Modo oscuro opcional.
   - player: la tienda (PLAYER). Siempre oscura, cálida, acento naranja.
   El tema elegido por la persona (data-theme = dark, light o system) cambia el modo de la piel;
   sin elección, cada piel usa el suyo. Los nombres semánticos (--bg, --text, --accent…) son los
   que usan todas las vistas; las variables propias de cada piel van con su prefijo. */

:root {
  color-scheme: dark;
  --theme-color: #111315;

  /* IMGAMER */
  --lime: #8ac926;
  --lime-text: #a3ed29;
  --lime-deep: #6f9d26;
  --lime-line: #5d8919;
  --lime-meta: #638b22;
  --row-hot-a: #527122;
  --row-hot-b: #2a321e;
  --chip-line: #394a20;
  --blue: #16a6f7;
  --red: #b41d33;
  --on-lime: #000000;

  /* Semánticos */
  --navy: #111315;
  --navy-deep: #0b0c0d;
  --brand: var(--lime);
  --brand-text: var(--lime-text);
  --bg: #111315;
  --bg-2: #1e1e1e;
  --bg-3: #2a2a2a;
  --bg-inset: #161616;
  --line: #2b2d2f;
  --line-2: #3b3e41;
  --text: #ffffff;
  --text-2: #dcdfd9;
  --text-3: #a0a0a0;
  --accent: var(--lime);
  --accent-ink: #000000;
  --accent-text: var(--lime-text);
  --go: #8ac926;
  --siren: #ff5a6e;
  --beacon: #16a6f7;
  --caution: #ffc53d;
  --fam-zombi: #a3ed29;
  --fam-rol: #c890ff;
  --fam-combate: #ff8b5c;
  --fam-motor: #3fd4f0;
  --fam-evento: #ffb23f;
  --rank-founder: #f5b642;
  --rank-admin: #ff5a6e;
  --rank-mod: #5fb8ff;
  --rank-helper: #8ac926;
  --header-bg: #111315;
  --header-line: #2b2d2f;
  --shadow: 0 14px 34px -24px rgb(0 0 0 / 0.9);
  --shadow-pop: 0 24px 60px -20px rgb(0 0 0 / 0.8), 0 0 0 1px var(--line-2);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* VIP (escudos) y destacado */
  --vip-1: #3ecf5a;
  --vip-2: #f5b642;
  --vip-3: #5ad8ff;
  --vip-4: #c86bff; /* VIP 4 (GOD) */
  --vip-5: #ff5b15; /* VIP 5 (GG VIP) */
  --vip-6: #ff3d6e; /* VIP 6 (Patreon) */
  --vip-7: #ffe14d; /* VIP 7 (Patreon superior) */
  --featured: #8ac926;

  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --display-weight: 400;
  --display-case: uppercase;
  --display-tracking: 0.02em;
  --display-leading: 1;

  --fs-xs: 0.75rem;
  --fs-s: 0.845rem;
  --fs-m: 0.9375rem;
  --fs-l: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2.1rem;
  --fs-3xl: 2.9rem;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* IMGAMER claro (opcional) */
:root[data-theme="light"] {
  color-scheme: light;
  --theme-color: #f2f4ef;
  --lime-text: #4d7a10;
  --lime-meta: #4d7a10;
  --row-hot-a: #d9eebd;
  --row-hot-b: #f4f8ee;
  --chip-line: #b9cf98;
  --bg: #f2f4ef;
  --bg-2: #ffffff;
  --bg-3: #e8ece3;
  --bg-inset: #f7f9f4;
  --line: #dde3d5;
  --line-2: #c6cfba;
  --text: #14170f;
  --text-2: #3f463a;
  --text-3: #66705c;
  --go: #3c7a0c;
  --siren: #c4213b;
  --beacon: #0b6fb4;
  --caution: #8a5a00;
  --fam-zombi: #4d7a10;
  --fam-rol: #7a3fc4;
  --fam-combate: #c2491a;
  --fam-motor: #0a7d96;
  --fam-evento: #9a5c00;
  --rank-founder: #9a5c00;
  --rank-admin: #c4213b;
  --rank-mod: #1d68cc;
  --rank-helper: #3c7a0c;
  --header-bg: #ffffff;
  --header-line: #dde3d5;
  --shadow: 0 1px 2px rgb(20 23 15 / 0.06), 0 12px 30px -22px rgb(20 23 15 / 0.35);
  --shadow-pop: 0 24px 60px -22px rgb(20 23 15 / 0.35), 0 0 0 1px var(--line-2);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --theme-color: #f2f4ef;
    --lime-text: #4d7a10;
    --lime-meta: #4d7a10;
    --row-hot-a: #d9eebd;
    --row-hot-b: #f4f8ee;
    --chip-line: #b9cf98;
    --bg: #f2f4ef;
    --bg-2: #ffffff;
    --bg-3: #e8ece3;
    --bg-inset: #f7f9f4;
    --line: #dde3d5;
    --line-2: #c6cfba;
    --text: #14170f;
    --text-2: #3f463a;
    --text-3: #66705c;
    --go: #3c7a0c;
    --siren: #c4213b;
    --beacon: #0b6fb4;
    --caution: #8a5a00;
    --fam-zombi: #4d7a10;
    --fam-rol: #7a3fc4;
    --fam-combate: #c2491a;
    --fam-motor: #0a7d96;
    --fam-evento: #9a5c00;
    --rank-founder: #9a5c00;
    --rank-admin: #c4213b;
    --rank-mod: #1d68cc;
    --rank-helper: #3c7a0c;
    --header-bg: #ffffff;
    --header-line: #dde3d5;
    --shadow: 0 1px 2px rgb(20 23 15 / 0.06), 0 12px 30px -22px rgb(20 23 15 / 0.35);
    --shadow-pop: 0 24px 60px -22px rgb(20 23 15 / 0.35), 0 0 0 1px var(--line-2);
  }
}

/* ─── bizadmin: panel del staff (claro por defecto) ─── */
:root[data-skin="biz"] {
  color-scheme: light;
  --theme-color: #1183e1;
  --biz-top: #1183e1;
  --biz-side: #191818;
  --biz-side-label: #1a2226;
  --biz-side-sub: #2c3b41;
  --biz-side-text: #8ba3a6;
  --biz-side-label-text: #6b8a92;
  --biz-side-hover: #212b30;
  --biz-link: #0077d3;
  --biz-orange: #e08e0b;
  --kpi-blue: #007bff;
  --kpi-teal: #04a9ac;
  --kpi-red: #dc3545;
  --kpi-violet: linear-gradient(135deg, #8380ee, #5278f0);
  --kpi-pink: linear-gradient(135deg, #fc625e, #e8433e);
  --kpi-lilac: linear-gradient(135deg, #8b95ff, #6f7bf5);
  --kpi-amber: linear-gradient(135deg, #f0a93a, #e3931f);
  --kpi-cyan: linear-gradient(135deg, #12cefd, #018ed4);
  --pill-red: #dd4a38;
  --chart-1: #36a2eb;
  --chart-2: #ff6384;
  --chart-3: #ffcd56;
  --prog-red: #f06272;
  --prog-blue: #0075ff;
  --prog-track: #e3e6ea;

  --brand: #1183e1;
  --brand-text: #0077d3;
  --bg: #f0f4f8;
  --bg-2: #ffffff;
  --bg-3: #eef1f5;
  --bg-inset: #f7f9fb;
  --line: #e3e7ed;
  --line-2: #d0d7e0;
  --text: #1f2329;
  --text-2: #50565d;
  --text-3: #7b8188;
  --accent: #0077d3;
  --accent-ink: #ffffff;
  --accent-text: #0068bb;
  --go: #01923a;
  --siren: #d42b3f;
  --beacon: #005bcb;
  --caution: #a35f00;
  --fam-zombi: #4f8a0e;
  --fam-rol: #8446d0;
  --fam-combate: #cc4e16;
  --fam-motor: #09849f;
  --fam-evento: #a86400;
  --rank-founder: #a86400;
  --rank-admin: #d42b3f;
  --rank-mod: #1d68cc;
  --rank-helper: #01923a;
  --header-bg: #1183e1;
  --header-line: #0f74c7;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-pop: 0 18px 40px -18px rgb(16 32 64 / 0.35), 0 0 0 1px var(--line-2);
  --focus: 0 0 0 2px var(--bg-2), 0 0 0 4px #0077d3;
  --featured: #6f9d26;

  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --display-weight: 600;
  --display-case: none;
  --display-tracking: 0;
  --display-leading: 1.2;
  --fs-m: 0.875rem;
  --fs-s: 0.8125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.9rem;
  --r-s: 4px;
  --r-m: 4px;
  --r-l: 8px;
}
:root[data-skin="biz"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #14171c;
  --bg-2: #1d2128;
  --bg-3: #262b33;
  --bg-inset: #181b21;
  --line: #2a3039;
  --line-2: #39414c;
  --text: #e9edf2;
  --text-2: #b3bcc7;
  --text-3: #8a939e;
  --accent: #2b8ff0;
  --accent-text: #63aef5;
  --go: #3ccf7a;
  --siren: #ff6b7a;
  --beacon: #5aa2ff;
  --caution: #f0b44c;
  --fam-zombi: #a7e35a;
  --fam-rol: #c890ff;
  --fam-combate: #ff8b5c;
  --fam-motor: #3fd4f0;
  --fam-evento: #ffb23f;
  --rank-founder: #f5b642;
  --rank-admin: #ff6b7a;
  --rank-mod: #5fb8ff;
  --rank-helper: #3ccf7a;
  --prog-track: #343b45;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-skin="biz"][data-theme="system"] {
    color-scheme: dark;
    --bg: #14171c;
    --bg-2: #1d2128;
    --bg-3: #262b33;
    --bg-inset: #181b21;
    --line: #2a3039;
    --line-2: #39414c;
    --text: #e9edf2;
    --text-2: #b3bcc7;
    --text-3: #8a939e;
    --accent: #2b8ff0;
    --accent-text: #63aef5;
    --go: #3ccf7a;
    --siren: #ff6b7a;
    --beacon: #5aa2ff;
    --caution: #f0b44c;
    --fam-zombi: #a7e35a;
    --fam-rol: #c890ff;
    --fam-combate: #ff8b5c;
    --fam-motor: #3fd4f0;
    --fam-evento: #ffb23f;
    --rank-founder: #f5b642;
    --rank-admin: #ff6b7a;
    --rank-mod: #5fb8ff;
    --rank-helper: #3ccf7a;
    --prog-track: #343b45;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  }
}
@media (prefers-color-scheme: light) {
  :root[data-skin="biz"][data-theme="system"] { color-scheme: light; }
}

/* ─── PLAYER: tienda (siempre oscura) ─── */
:root[data-skin="player"],
:root[data-skin="player"][data-theme] {
  color-scheme: dark;
  --theme-color: #0d0a18;
  --shop-outer: #412726;
  --shop-bg: #0d0a18;
  --shop-side: #07060e;
  --shop-card: #171522;
  --shop-row: #16121d;
  --shop-input: #181421;
  --shop-accent: #ff5b15;
  --shop-btn: #b6431e;
  --shop-coin: #d4b106;
  --shop-online: #2bb10a;
  --shop-tag: #292129;
  --shop-text: #ead5d5;
  --shop-text-2: #d6cccd;
  --shop-text-3: #8d8796;

  --brand: #ff5b15;
  --brand-text: #ff7a3d;
  --bg: #0d0a18;
  --bg-2: #171522;
  --bg-3: #221d30;
  --bg-inset: #181421;
  --line: #262033;
  --line-2: #352d44;
  --text: #ead5d5;
  --text-2: #d6cccd;
  --text-3: #8d8796;
  --accent: #b6431e;
  --accent-ink: #ffffff;
  --accent-text: #ff7a3d;
  --go: #2bb10a;
  --siren: #ff5a6e;
  --beacon: #5fb8ff;
  --caution: #ffc53d;
  --header-bg: #07060e;
  --header-line: #262033;
  --shadow: 0 18px 40px -24px rgb(0 0 0 / 0.9);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px #ff5b15;

  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --display-weight: 500;
  --display-case: none;
  --display-tracking: 0;
  --display-leading: 1.2;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
}
