/* fonts.css */
/* Fonturile site-ului (aceleași ca streamzone.ro), served from our server (no Google request for visitors).
   Anton, Archivo, Cinzel, Cormorant Garamond, Sedgwick Ave Display și Rubik Spray Paint: SIL Open Font License 1.1.
   Fonturile paginilor cu design propriu (Cinzel, Cormorant: Sindicat; Sedgwick, Rubik Spray: Ballas)
   se descarcă doar pe paginile care le folosesc. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cinzel-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cinzel-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ballas: Sedgwick Ave Display (titlul graffiti) și Rubik Spray Paint (spray), SIL OFL */
@font-face {
  font-family: "Sedgwick Ave Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sedgwick-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sedgwick Ave Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sedgwick-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik Spray Paint";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rubik-spray-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik Spray Paint";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rubik-spray-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Garda Veche: Playfair Display (titluri, citate), SIL OFL */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Gitanos Cartel: Abril Fatface (titlu, citate), SIL OFL */
@font-face {
  font-family: "Abril Fatface";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/abril-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Abril Fatface";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/abril-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ombra Nocta: Julius Sans One (titlu, etichete), SIL OFL */
@font-face {
  font-family: "Julius Sans One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/julius-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Julius Sans One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/julius-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The Wanted: Russo One (titlu, etichete), SIL OFL */
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/russo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/russo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* tokens.css */
/* Paleta site-ului: singurul loc pentru culorile comune. Celelalte fișiere folosesc doar var(--p-...).
   Culorile fiecărei facțiuni stau în css/teme/<slug>.css și setează doar variabilele --t-... */
:root {
  /* Fundaluri, de la cel mai adânc la cel ridicat */
  --p-ink: #0b0d12;
  --p-ink-2: #12151d;
  --p-ink-3: #1a1e29;

  /* Linii */
  --p-line: #262b38;
  --p-line-strong: #363c4d;

  /* Text (tonurile deschise sunt doar pentru text, nu pentru fundal) */
  --p-paper: #f4f6fb;
  --p-text: #e4e7ef;
  --p-muted: #a4abbd;
  --p-faint: #7d8497;
  --p-black: #000000;

  /* Accentul site-ului (auriu GeminiRP) */
  --p-accent: #e8b84a;
  --p-on-accent: #17130a;

  /* Stări și mărci */
  --p-online: #40c057;
  --p-discord: #5865f2;

  /* Portocaliul de apus: stare indisponibilă, capătul barei de jucători */
  --p-apus: #c4572e;

  /* Tema implicită; o facțiune o schimbă prin [data-tema="<slug>"] în css/teme/<slug>.css */
  --t-accent: var(--p-accent);
  --t-accent-2: var(--p-ink-3);
  --t-on-accent: var(--p-on-accent);
  /* Pentru paginile cu design propriu (css/pagini/<slug>.css): textul și culoarea de evidențiere */
  --t-os: var(--p-text);
  --t-auriu: var(--p-accent);

  /* Litere */
  --p-font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --p-font-body: "Archivo", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  /* Pentru paginile cu design propriu: litere romane, săpate (titluri) și literă de carte veche (text) */
  --p-font-regal: "Cinzel", Georgia, serif;
  --p-font-carte: "Cormorant Garamond", Georgia, serif;
  --p-font-dosar: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Consolas, monospace;
  --p-font-graffiti: "Sedgwick Ave Display", "Comic Sans MS", cursive;
  --p-font-spray: "Rubik Spray Paint", "Arial Black", sans-serif;
  --p-font-clasic: "Playfair Display", Georgia, serif;
  --p-font-afis: "Abril Fatface", Georgia, serif;
  --p-font-noapte: "Julius Sans One", Arial, sans-serif;
  --p-font-viteza: "Russo One", "Arial Black", sans-serif;

  /* Forme */
  --p-radius: 0.875rem;
  --p-radius-sm: 0.5rem;
  --p-shadow: 0 1.125rem 2.5rem color-mix(in srgb, var(--p-black) 45%, transparent);
  /* Marginea paginii, stânga-dreapta (pe calculator e mai mare, vezi base.css) */
  --p-margin: 1.25rem;
}

/* base.css */
/* Baza: fundal, text, linkuri. Componentele sunt în components.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--p-ink);
  -webkit-text-size-adjust: 100%;
}
/* Pe calculator pagina ocupă tot ecranul și totul crește odată cu el: toate mărimile sunt în rem,
   iar 1rem = 16px la 1440×780 (spațiul din browser al unui ecran 1440×900). Contează și înălțimea, ca prima pagină să încapă fără scroll.
   Pe telefon și tabletă 1rem rămâne 16px. */
@media (min-width: 1200px) {
  html {
    --p-margin: 1.75rem;
    font-size: max(12px, min(100vw / 90, 100vh / 48.5));
  }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--p-ink);
  color: var(--p-text);
  font-family: var(--p-font-body);
  font-size: 1rem;
  line-height: 1.5;
}
a {
  color: var(--t-accent);
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--p-paper);
  font-family: var(--p-font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--t-accent);
  outline-offset: 2px;
}

/* components.css */
/* Componente comune tuturor paginilor: navbar, subsol, emblemă, etichetă, mesaje goale, link înapoi. */

/* Navbar (markup în lib/layout.js). Rămâne sus la scroll; public/js/nav.js adaugă .is-scrolled
   (fundal plin pe toată lățimea) și, pe ecrane mici, .is-hidden la scroll în jos. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: calc(100% - 2 * var(--p-margin));
  min-height: 4.5rem;
  margin: 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 35%, transparent);
  transition: transform 0.25s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: color-mix(in srgb, var(--p-ink) 70%, transparent);
  transition: background 0.2s;
}
.nav.is-scrolled::before {
  border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 45%, transparent);
  background: var(--p-ink);
  box-shadow: var(--p-shadow);
}
.nav.is-hidden {
  transform: translateY(calc(-100% - 1rem));
}
.nav-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.625rem;
  color: var(--p-paper);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo {
  width: 2.625rem;
  height: 2.625rem;
}
.nav-brand b {
  font-family: var(--p-font-display);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.nav-brand b span {
  color: var(--p-accent);
}
.nav-linkuri {
  display: flex;
  gap: 0.375rem;
  margin-right: auto;
}
.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--p-radius-sm);
  color: var(--p-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--p-accent);
}
.nav-link.activ {
  background: color-mix(in srgb, var(--p-accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p-accent) 40%, transparent);
  color: var(--p-paper);
}
.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: var(--p-radius-sm);
  background: var(--p-accent);
  color: var(--p-on-accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nav-login:hover {
  background: color-mix(in srgb, var(--p-accent) 85%, var(--p-paper));
}
.nav-meniu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.625rem;
  height: 2.625rem;
  margin-left: auto;
  padding: 0 0.625rem;
  border: 1px solid var(--p-line-strong);
  border-radius: var(--p-radius-sm);
  background: var(--p-ink-2);
  cursor: pointer;
}
.nav-meniu span {
  height: 2px;
  border-radius: 2px;
  background: var(--p-paper);
}
@media (max-width: 899px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.625rem;
    min-height: 3.875rem;
  }
  .nav-brand b {
    font-size: 1.3125rem;
  }
  .nav-logo {
    width: 2.25rem;
    height: 2.25rem;
  }
  .nav-meniu {
    display: flex;
  }
  .nav:not(.menu-open) > :is(.nav-linkuri, .nav-login) {
    display: none;
  }
  .nav.menu-open {
    padding-bottom: 0.75rem;
  }
  .nav.menu-open > .nav-linkuri {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 3;
    width: 100%;
  }
  .nav.menu-open .nav-link {
    background: var(--p-ink-3);
    text-align: center;
  }
  .nav.menu-open > .nav-login {
    justify-content: center;
    order: 4;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

.site-main {
  flex: 1;
  width: 100%;
  padding: 2rem var(--p-margin) 3.5rem;
}
/* Subsol */
.site-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--p-line);
  color: var(--p-faint);
  font-size: 0.875rem;
  text-align: center;
}

/* Emblema facțiunii: cerc în culorile temei, cu inițialele */
.emblema {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
  color: var(--t-on-accent);
  font-family: var(--p-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

/* Eticheta categoriei */
.eticheta {
  display: inline-block;
  padding: 2px 0.625rem;
  border: 1px solid color-mix(in srgb, var(--t-accent) 55%, transparent);
  border-radius: var(--p-radius-sm);
  color: var(--p-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Eticheta-simbol: doar coroana Sindicatului, fără chenar */
.eticheta-simbol {
  display: block;
  color: var(--p-accent);
  font-size: 1.875rem;
  line-height: 1;
  text-shadow: 0 0 1.125rem color-mix(in srgb, var(--p-accent) 45%, transparent);
}

/* Mesaj când o secțiune nu are încă conținut */
.gol {
  margin: 0;
  color: var(--p-faint);
  font-style: italic;
}

/* Link înapoi la prima pagină */
.inapoi {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--p-muted);
  font-weight: 600;
  text-decoration: none;
}
.inapoi:hover {
  color: var(--t-accent);
}

/* Text doar pentru cititoarele de ecran și motoarele de căutare (de ex. titlul primei pagini) */
.ascuns {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* pagini/acasa.css */
/* Prima pagină „ca un perete cu afișe”: banda de stare sub meniu, titlul și Sindicatul (cu The Shadows) sus,
   afișele facțiunilor jos. Markup în lib/pagini/acasa.js; imaginile afișelor în lib/fundaluri.js.
   Fiecare afiș are clasa afis-<slug> și își ia culorile din tema facțiunii (data-tema): --t-accent pentru linia de jos, --t-auriu pentru eticheta mică. */

body:has(.acasa) {
  background:
    radial-gradient(60rem 30rem at 70% 20%, color-mix(in srgb, var(--p-accent) 5%, transparent), transparent 70%),
    var(--p-ink);
}
.acasa {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Banda de stare: serverul, Discord-ul, anunțurile și butonul, pe un rând */
.stare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-muted);
  font-size: 0.92rem;
}
.stare-bucata {
  margin: 0;
}
.stare-bucata b {
  color: var(--p-paper);
  font-weight: 800;
}
.stare-bucata + .stare-bucata {
  padding-left: 2.2rem;
  border-left: 1px solid var(--p-line);
}
.stare-stiri {
  font-style: italic;
}
.stare-stiri a {
  color: var(--p-text);
  text-decoration: none;
}
.stare-stiri a:hover b {
  color: var(--t-accent);
}
.stare-stiri time {
  margin-left: 0.4rem;
  color: var(--p-muted);
}
.punct {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--p-muted);
}
.punct-verde {
  background: var(--p-online);
  box-shadow: 0 0 0.6rem var(--p-online);
}
.punct-portocaliu {
  background: var(--p-apus);
  box-shadow: 0 0 0.6rem var(--p-apus);
}
.stare-discord {
  margin-left: auto;
  padding: 0.45rem 1rem;
  border-radius: 0.4rem;
  background: var(--p-discord);
  color: var(--p-paper);
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.2s;
}
.stare-discord:hover {
  filter: brightness(1.12);
}

/* Sus: titlul în stânga, Sindicatul cu The Shadows în dreapta */
.sus {
  display: grid;
  grid-template-columns: 30rem minmax(0, 1fr);
  gap: 2.4rem;
}
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-sus {
  margin: 0;
  color: var(--p-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.intro-titlu {
  margin: 0.4rem 0 0.8rem;
  font-size: 4.4rem;
  line-height: 1.08;
  text-transform: uppercase;
}
.intro-titlu em {
  color: var(--p-accent);
  font-style: normal;
}
.intro-text {
  max-width: 26rem;
  margin: 0;
  color: var(--p-text);
  font-size: 1.1rem;
  line-height: 1.55;
}
.intro-numar {
  margin: 1.1rem 0 0;
  color: var(--p-muted);
  font-size: 0.9rem;
}

.sageata {
  color: var(--t-auriu);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s;
}
.varf {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.7rem;
}
/* Colțul care leagă The Shadows de Sindicat, în culoarea Sindicatului (.varf are tema lui) */
.varf::before {
  position: absolute;
  bottom: 1.65rem;
  left: 1rem;
  width: 2rem;
  height: 2.4rem;
  border-bottom: 2px solid var(--t-accent);
  border-left: 2px solid var(--t-accent);
  content: "";
}
/* Sindicatul: banner cu imaginea biroului, care se pierde spre stânga sub nume */
.conducere {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
  min-height: 12rem;
  padding: 1.5rem 2rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--t-accent) 55%, transparent);
  border-radius: 0.7rem;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--p-black) 85%, transparent), transparent 55%),
    linear-gradient(90deg, color-mix(in srgb, var(--p-black) 35%, transparent), transparent 40%),
    var(--poza, none) var(--poza-pozitie, center) / cover no-repeat,
    var(--t-accent-2);
  box-shadow: 0 0 2.4rem color-mix(in srgb, var(--t-accent) 20%, transparent);
  color: var(--t-os);
  text-decoration: none;
}
.conducere:hover .sageata,
.acasa-umbra:hover .sageata,
.afis:hover .sageata {
  transform: translateX(0.3rem);
}
.conducere-semn {
  position: absolute;
  top: 1.1rem;
  left: 2rem;
  color: var(--t-auriu);
  font-size: 1.5rem;
}
.conducere-nume {
  color: var(--p-paper);
  font-family: var(--p-font-regal);
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0.3rem 1rem var(--p-black);
  text-transform: uppercase;
}
.conducere-rol {
  padding-bottom: 0.4rem;
  color: var(--t-auriu);
  font-family: var(--p-font-carte);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
}
.conducere .sageata {
  margin-left: auto;
  padding-bottom: 0.4rem;
  font-size: 2rem;
}
/* The Shadows: sub Sindicat, legat de el prin colțul de mai sus; imaginea paginii lui (lib/fundaluri.js) în dreapta */
.acasa-umbra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--t-accent) 40%, transparent);
  border-radius: 0.6rem;
  background:
    linear-gradient(90deg, var(--p-ink-2) 30%, color-mix(in srgb, var(--p-ink) 40%, transparent) 70%, transparent),
    var(--poza, none) var(--poza-pozitie, center) / cover no-repeat,
    var(--p-ink);
  color: var(--t-os);
  text-decoration: none;
}
.acasa-umbra-nume {
  color: var(--t-auriu);
  font-family: var(--p-font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.acasa-umbra-rol {
  color: var(--t-accent);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.acasa-umbra .sageata {
  margin-left: auto;
}

/* Jos: afișele, pe categorii; fiecare categorie ia lățime după câte afișe are */
.jos {
  display: flex;
  flex: 1;
  gap: 1.6rem;
  min-height: 0;
}
.grupa {
  display: flex;
  flex: var(--afise) 1 0;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.grupa-titlu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--p-muted);
  font-family: var(--p-font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.grupa-titlu::after {
  flex: 1;
  height: 1px;
  background: var(--p-line);
  content: "";
}
.afise {
  display: grid;
  flex: 1;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0.8rem;
  min-height: 0;
}
.afise li {
  display: flex;
}
.afis {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 14rem;
  padding: 1rem 1.1rem 1.1rem;
  overflow: hidden;
  border-bottom: 3px solid var(--t-accent);
  border-radius: 0.6rem;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--p-black) 95%, transparent) 8%, color-mix(in srgb, var(--p-black) 40%, transparent) 45%, transparent 70%),
    var(--poza, none) var(--poza-pozitie, center) / cover no-repeat,
    var(--t-accent-2);
  color: var(--p-paper);
  text-decoration: none;
  transition: transform 0.2s;
}
.afis:hover {
  transform: translateY(-0.3rem);
}
.afis .sageata {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: color-mix(in srgb, var(--p-paper) 70%, transparent);
}
.afis small {
  color: var(--t-auriu);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Numele: în fontul site-ului, iar mai jos fiecare facțiune cu pagină proprie în fontul paginii ei */
.afis-nume {
  margin-top: 0.25rem;
  color: var(--p-paper);
  font-family: var(--p-font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  text-shadow: 0 0.2rem 0.8rem var(--p-black);
  text-transform: uppercase;
}
.afis-politie .afis-nume {
  font-family: var(--p-font-body);
  font-style: italic;
  font-weight: 800;
}
.afis-medici .afis-nume {
  font-family: var(--p-font-body);
  font-weight: 800;
}
.afis-ballas .afis-nume {
  color: var(--t-auriu);
  font-family: var(--p-font-graffiti);
  font-weight: 400;
  text-transform: none;
}
.afis-garda-veche .afis-nume,
.afis-ombra-nocta .afis-nume {
  font-family: var(--p-font-regal);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.afis-gitanos-cartel .afis-nume {
  color: var(--t-auriu);
  font-family: var(--p-font-regal);
  font-size: 1.55rem;
  font-weight: 700;
}
.afis-the-wanted .afis-nume {
  color: var(--t-auriu);
  font-family: var(--p-font-viteza);
  font-weight: 400;
  transform: skewX(-10deg);
  transform-origin: left bottom;
}
/* Calculator: totul pe un ecran, fără scroll (pagina crește cu ecranul, vezi base.css) */
@media (min-width: 1200px) {
  .site-main:has(> .acasa) {
    display: flex;
    flex-direction: column;
    padding-top: 0.6rem;
    padding-bottom: 1.2rem;
  }
  .acasa {
    flex: 1;
  }
  body:has(.acasa) .site-footer {
    padding: 0.75rem;
  }
}

/* Telefon și tabletă: o singură coloană; afișele câte două pe rând */
@media (max-width: 1199px) {
  .stare-bucata + .stare-bucata {
    padding-left: 0;
    border-left: 0;
  }
  .stare-discord {
    margin-left: 0;
  }
  .sus {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .intro-titlu {
    font-size: min(4.4rem, 15vw);
  }
  .jos {
    flex-direction: column;
  }
  .afise {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .afis {
    min-height: 15rem;
  }
}
@media (max-width: 760px) {
  .stare {
    flex-direction: column;
    align-items: flex-start;
  }
  .conducere {
    min-height: 10rem;
    padding: 1.2rem;
  }
  .conducere-semn {
    left: 1.2rem;
  }
  .conducere-nume {
    font-size: 2.4rem;
  }
  .conducere-rol {
    display: none;
  }
  .acasa-umbra {
    margin-left: 1.6rem;
  }
  .varf::before {
    left: 0.4rem;
    width: 1.2rem;
  }
  .acasa-umbra-rol {
    display: none;
  }
  .afis {
    min-height: 13rem;
  }
  .afis-nume {
    font-size: 1.5rem;
  }
  .afis-garda-veche .afis-nume,
  .afis-ombra-nocta .afis-nume,
  .afis-gitanos-cartel .afis-nume {
    font-size: 1.2rem;
  }
}

/* teme/politie.css */
/* Tema Poliție: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="politie"] {
  --t-accent: #3b5bdb;
  --t-accent-2: #14206b;
  --t-on-accent: #ffffff;
  --t-os: #dde4f3;
  --t-auriu: #8fb0ff;
  --t-girofar: #e03131;
}

/* teme/sindicat.css */
/* Tema Sindicat: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="sindicat"] {
  --t-accent: #c0392b;
  --t-accent-2: #1c0606;
  --t-on-accent: #ffffff;
  --t-os: #efe6d8;
  --t-auriu: #c9a96e;
}

/* teme/medici.css */
/* Tema Medici: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="medici"] {
  --t-accent: #e03131;
  --t-accent-2: #7a1414;
  --t-on-accent: #ffffff;
  --t-os: #1f2633;
  --t-auriu: #ff6b6b;
  --t-salon: #eef2f6;
  --t-bleumarin: #102238;
}

/* teme/the-shadows.css */
/* Tema The Shadows: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="the-shadows"] {
  --t-accent: #8e96a8;
  --t-accent-2: #0c0d11;
  --t-on-accent: #0b0c10;
  --t-os: #c9ced8;
  --t-auriu: #e9ecf2;
  --t-rosu: #d6212c;
  --t-rosu-2: #6e0d12;
}

/* teme/ballas.css */
/* Tema Ballas: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="ballas"] {
  --t-accent: #8e44d6;
  --t-accent-2: #2f1452;
  --t-on-accent: #ffffff;
  --t-os: #f2eef6;
  --t-auriu: #c77dff;
}

/* teme/garda-veche.css */
/* Tema Garda Veche: doar culorile facțiunii (argint pentru site, auriu pentru ornamentele paginii ei). Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="garda-veche"] {
  --t-accent: #a5abb6;
  --t-accent-2: #3a3e46;
  --t-on-accent: #121318;
  --t-os: #d4d8de;
  --t-auriu: #d4b47a;
}

/* teme/gitanos-cartel.css */
/* Tema Gitanos Cartel: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="gitanos-cartel"] {
  --t-accent: #c9a440;
  --t-accent-2: #4d3b10;
  --t-on-accent: #17130a;
  --t-os: #efe4cc;
  --t-auriu: #e8c25a;
  --t-teracota: #b4532a;
  --t-visiniu: #6e1624;
  --t-faianta: #23477d;
}

/* teme/the-wanted.css */
/* Tema The Wanted: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="the-wanted"] {
  --t-accent: #4caf50;
  --t-accent-2: #1b5e20;
  --t-on-accent: #ffffff;
  --t-os: #e3eee4;
  --t-auriu: #39ff6a;
}
