/* Self-hosted fonts (Google Fonts' exact files, woff2, font-display swap) */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anton-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("/fonts/anton-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 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-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 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-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;
}

/* Leonida Loop - GTA VI fan forum. Brand-first, mobile-first. */

:root {
  /* Vice City sunset, OKLCH */
  --night: oklch(0.16 0.03 275);          /* page base, dark plum-navy */
  --deep: oklch(0.21 0.035 278);          /* raised dark panels */
  --deeper: oklch(0.12 0.025 275);        /* footer base */
  --line-dark: oklch(0.35 0.035 278);     /* hairlines on dark */
  --paper: oklch(0.96 0.014 85);          /* warm cream, content sections */
  --paper-2: oklch(0.92 0.016 82);        /* cream, slightly pressed */
  --ink: oklch(0.23 0.03 275);            /* text on paper */
  --ink-soft: oklch(0.42 0.03 275);       /* secondary text on paper */
  --cream: oklch(0.96 0.014 85);          /* text on dark */
  --cream-dim: oklch(0.78 0.02 80);       /* secondary text on dark */
  --sun: oklch(0.87 0.14 90);             /* sun yellow */
  --orange: oklch(0.74 0.17 55);          /* horizon orange */
  --coral: oklch(0.66 0.19 22);           /* hot coral pink */
  --coral-deep: oklch(0.5 0.16 25);       /* coral, AA on paper */
  --teal: oklch(0.74 0.11 200);           /* ocean teal */
  --teal-deep: oklch(0.44 0.09 210);      /* teal, AA on paper */

  --font-display: "Anton", "Arial Black", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

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

::selection { background: var(--coral); color: var(--night); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--coral { background: var(--coral); color: var(--night); }
.btn--coral:hover { background: var(--sun); }
.btn--sun { background: var(--sun); color: var(--night); }
.btn--sun:hover { background: var(--cream); }
.btn--ghost {
  background: oklch(0.12 0.025 275 / 0.55);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px oklch(0.96 0.014 85 / 0.55);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sun); color: var(--sun); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.14 0.028 275 / 0.96);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}
.brand__mark { flex-shrink: 0; }
.brand__type { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun);
}
.nav__links {
  display: none;
  gap: 1.75rem;
}
.nav__links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease-out);
}
.nav__links a:hover { color: var(--sun); }
.nav__cta { white-space: nowrap; }

@media (max-width: 34rem) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.05rem; }
  .brand__mark { width: 32px; height: 32px; }
  .nav__cta { padding: 0.45rem 0.9rem; font-size: 0.78rem; }
  .nav__inner { gap: 0.5rem; }
}

@media (min-width: 48rem) {
  .nav__links { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      oklch(0.13 0.035 285) 0%,
      oklch(0.19 0.05 315) 26%,
      oklch(0.3 0.09 345) 44%,
      oklch(0.47 0.15 25) 60%,
      oklch(0.65 0.17 48) 75%,
      oklch(0.8 0.15 70) 88%,
      oklch(0.9 0.12 90) 100%);
}
.hero__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: min(40vh, 27rem);
  min-height: 10rem;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-top: clamp(3rem, 7vh, 4.5rem);
  padding-bottom: clamp(1rem, 3vh, 2.5rem);
  align-items: center;
}
.hero__copy { max-width: 40rem; }
.kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker--sun { color: var(--sun); }
.kicker--ink { color: var(--coral-deep); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 13.5vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--cream);
  text-shadow: 0 4px 40px oklch(0.1 0.03 275 / 0.6);
}
.hero__title-accent { color: var(--sun); }

.hero__lede {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
  color: oklch(0.94 0.02 80);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  text-shadow: 0 2px 18px oklch(0.1 0.03 275 / 0.65);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__poster {
  margin: 0;
  justify-self: center;
  width: min(19rem, 74vw);
  transform: rotate(-2deg);
  background: var(--paper);
  padding: 0.65rem 0.65rem 0.5rem;
  box-shadow: 0 30px 60px oklch(0.08 0.03 275 / 0.55), 0 4px 0 oklch(0.08 0.03 275 / 0.25);
}
.hero__poster img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--night);
}
.hero__poster figcaption {
  padding: 0.45rem 0.25rem 0.15rem;
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.hero__poster figcaption a { color: var(--coral-deep); font-weight: 700; }

@media (min-width: 56rem) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    min-height: min(66vh, 40rem);
  }
  .hero__poster { width: min(23rem, 30vw); }
}

/* ============ Countdown ============ */
.countdown {
  position: relative;
  border-top: 1px solid oklch(0.96 0.014 85 / 0.35);
  background: oklch(0.1 0.025 275 / 0.72);
}
.countdown__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.1rem 1.35rem;
}
.countdown__label { display: flex; flex-direction: column; }
.countdown__game {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  color: var(--cream);
  text-transform: uppercase;
}
.countdown__date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sun);
  letter-spacing: 0.03em;
}
.countdown__date em {
  font-style: normal;
  font-weight: 500;
  color: var(--cream-dim);
}
.countdown__units {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.4rem, 2.5vw, 1.1rem);
}
.unit { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.unit__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 9.5vw, 4.6rem);
  line-height: 1;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
}
.unit__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.unit__colon {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--coral);
}

@media (min-width: 48rem) {
  .countdown__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* ============ Shared section bits ============ */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
}
.section-title--light { color: var(--cream); }

/* ============ Forum board (paper) ============ */
.board {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.board .section-title { color: var(--ink); }
.board__sub {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  max-width: 32rem;
}
.board__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--coral-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--coral-deep);
  padding-bottom: 0.2rem;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.board__all:hover { color: var(--ink); border-color: var(--ink); }

/* Featured thread */
.thread--feature {
  display: grid;
  gap: 0;
  background: var(--night);
  color: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 48px oklch(0.23 0.03 275 / 0.25);
}
.thread__media { position: relative; margin: 0; }
.thread__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.thread__credit {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  font-size: 0.6rem;
  color: oklch(0.96 0.014 85 / 0.85);
  background: oklch(0.1 0.025 275 / 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.thread__credit a { color: inherit; }
.thread__body {
  padding: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}
.thread__topline { display: flex; align-items: center; gap: 0.6rem; }
.hot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.thread__title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.thread__title--lg { font-size: clamp(1.35rem, 3.5vw, 1.9rem); line-height: 1.18; }
.thread__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-size: 0% 0.12em;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease-out);
}
.thread__title a:hover { background-size: 100% 0.12em; }
.thread__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.board .thread__meta,
.thread:not(.thread--feature) .thread__meta { color: var(--ink-soft); }
.thread--feature .thread__meta { color: var(--cream-dim); }
.dot { opacity: 0.6; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.avatar--sm { width: 1.6rem; height: 1.6rem; font-size: 0.56rem; }
.thread__stats { display: flex; gap: 1.25rem; font-size: 0.85rem; color: var(--cream-dim); }
.thread__stats span { display: inline-flex; align-items: center; gap: 0.4rem; }

@media (min-width: 56rem) {
  .thread--feature { grid-template-columns: 1fr 1.1fr; }
  .thread__media img { aspect-ratio: auto; height: 100%; }
}

/* Thread list rows */
.threads {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid oklch(0.23 0.03 275 / 0.18);
}
.thread { display: grid; align-items: center; }
.threads .thread {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid oklch(0.23 0.03 275 / 0.18);
  transition: background-color 0.2s var(--ease-out);
}
.thread:not(.thread--feature):hover { background: oklch(0.23 0.03 275 / 0.05); }
.thread__rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--coral-deep);
  min-width: 2ch;
  opacity: 0.9;
}
.thread__main { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; min-width: 0; }
.thread__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding-left: 0.5rem;
}
.thread__replies {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.thread__replies-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tag--coral { background: oklch(0.45 0.15 25); color: var(--paper); }
.tag--orange { background: oklch(0.68 0.15 60); color: oklch(0.2 0.04 40); }
.tag--sun { background: var(--sun); color: oklch(0.25 0.05 70); }
.tag--pink { background: oklch(0.42 0.16 355); color: var(--paper); }
.tag--teal { background: var(--teal-deep); color: var(--paper); }
.tag--paper { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px oklch(0.23 0.03 275 / 0.2); }

/* ============ Wire / news (night) ============ */
.wire {
  background: var(--night);
  padding-block: clamp(3.5rem, 9vw, 6rem);
  border-top: 1px solid var(--line-dark);
}
.wire__head { margin-bottom: 2.5rem; }
.wire .section-title { margin-top: 0.5rem; }

.wire__grid { display: grid; gap: 2rem; }

.news__img {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.news__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.news__img:hover img { transform: scale(1.03); }
.news__credit {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  font-size: 0.6rem;
  color: var(--cream);
  background: oklch(0.1 0.025 275 / 0.65);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.news__meta {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.news__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.news__title--lg { font-size: clamp(1.5rem, 4.5vw, 2.2rem); line-height: 1.15; }
.news__title a {
  color: var(--cream);
  text-decoration: none;
  display: inline;
  transition: color 0.2s var(--ease-out);
}
.news__title a svg { vertical-align: -0.1em; margin-left: 0.25rem; }
.news__title a:hover { color: var(--sun); }
.news__summary {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 52ch;
}

.wire__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}
.wire__list .news {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 64rem) {
  .wire__grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
}

/* ============ Closing CTA ============ */
.cta {
  background: var(--coral);
  color: var(--night);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.cta__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}
.cta__side p {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  max-width: 28rem;
}
.cta .btn--sun { box-shadow: 0 4px 0 oklch(0.25 0.06 40 / 0.35); }

@media (min-width: 56rem) {
  .cta__inner { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

/* ============ Footer ============ */
.footer {
  background: var(--deeper);
  border-top: 1px solid var(--line-dark);
  padding-block: 3rem 1.5rem;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  color: var(--cream);
}
.footer__blurb { color: var(--cream-dim); margin: 0; max-width: 34rem; line-height: 1.55; }
.footer__heading {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun);
}
.footer__col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer__col a {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.footer__col a:hover { color: var(--cream); text-decoration: underline; }
.footer__credits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--cream-dim);
}
.footer__credits a { color: var(--cream); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: oklch(0.6 0.02 280);
}
.footer__bottom p { margin: 0; max-width: 46rem; }

@media (min-width: 64rem) {
  .footer__grid { grid-template-columns: 1.4fr 0.6fr 0.7fr 1fr; gap: 3rem; }
}

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

/* ============ Nav session ============ */
.nav__session { display: flex; align-items: center; gap: 0.6rem; }
.nav__user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.nav__user:hover .nav__username { color: var(--sun); }
.nav__avatar { border-radius: 50%; border: 1.5px solid var(--line-dark); }
.nav__username { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__signin {
  color: var(--cream-dim);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
}
.nav__signin:hover { color: var(--cream); }
@media (max-width: 34rem) {
  .nav__username { display: none; }
  .nav__signout { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
}

/* ============ Flash ============ */
.flash { padding: 0.6rem 0; font-size: 0.9rem; font-weight: 600; }
.flash--notice { background: oklch(0.87 0.14 90); color: oklch(0.25 0.05 70); }
.flash--alert { background: oklch(0.45 0.15 25); color: var(--paper); }
.flash .wrap { display: flex; align-items: center; gap: 0.5rem; }

/* ============ Auth pages ============ */
.auth-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem) var(--pad);
  background:
    radial-gradient(120% 90% at 50% 115%, oklch(0.8 0.15 70) 0%, oklch(0.6 0.17 45) 18%, oklch(0.35 0.11 340) 42%, oklch(0.19 0.05 310) 66%, oklch(0.14 0.035 285) 100%);
}
.auth-card {
  width: min(30rem, 100%);
  background: var(--deep);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 30px 60px oklch(0.05 0.02 275 / 0.6);
}
.auth-card--admin { border-color: oklch(0.87 0.14 90 / 0.35); }
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.auth-brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--cream);
}
.auth-sub { color: var(--cream-dim); margin: 0 0 1.5rem; font-size: 0.95rem; line-height: 1.55; }
.auth-foot { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--cream-dim); text-align: center; }
.auth-foot a { color: var(--sun); font-weight: 700; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  background: var(--night);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--cream);
  font: inherit;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-dim) 50%), linear-gradient(135deg, var(--cream-dim) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.75rem) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px oklch(0.87 0.14 90 / 0.25);
}
.field__hint { margin: 0.3rem 0 0.4rem; font-size: 0.8rem; color: var(--cream-dim); }
.field__hint--center { text-align: center; margin-top: 0.75rem; }
.field--checkbox { display: flex; align-items: center; gap: 0.55rem; }
.field--checkbox label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--cream-dim); font-weight: 600; }
.field--checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--coral); }

.actions { margin-top: 1.25rem; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.btn--xs { padding: 0.35rem 0.8rem; font-size: 0.75rem; }
.btn--danger { background: oklch(0.45 0.15 25); color: var(--paper); }
.btn--danger:hover { background: oklch(0.55 0.17 28); }

.form-errors {
  background: oklch(0.45 0.15 25 / 0.25);
  border: 1px solid oklch(0.6 0.17 25 / 0.6);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  color: oklch(0.85 0.08 30);
}
.form-errors__title { font-weight: 800; margin: 0 0 0.35rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}
.auth-links a { color: var(--teal); text-decoration: none; font-weight: 700; }
.auth-links a:hover { text-decoration: underline; }

.danger-zone {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}
.danger-zone__title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.75 0.13 30); margin: 0 0 0.4rem; }

/* ============ Discussion pages ============ */
.board--standalone { min-height: 60vh; padding-top: clamp(2rem, 6vw, 4rem); }
.wrap--narrow { max-width: 52rem; }
.post__back { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 0.88rem; display: inline-block; margin-bottom: 1rem; }
.post__back:hover { color: var(--ink); }
.post__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0.75rem 0 1rem;
}
.post__meta { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-block: 1px solid oklch(0.23 0.03 275 / 0.18); margin-bottom: 1.25rem; }
.post__author { display: flex; flex-direction: column; line-height: 1.25; }
.post__author-name { font-weight: 800; color: var(--ink); }
.post__author-sub { font-size: 0.8rem; color: var(--ink-soft); }
.post__delete { margin-left: auto; }
.post__body { color: var(--ink); font-size: 1.05rem; line-height: 1.65; max-width: 68ch; }
.post__body p { margin: 0 0 1em; }
.avatar--md { width: 2.75rem; height: 2.75rem; }

.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 1rem;
  border: 1px dashed oklch(0.23 0.03 275 / 0.3);
  border-radius: 18px;
}
.empty-state__title { font-family: var(--font-display); font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--ink); margin: 0 0 0.5rem; text-transform: uppercase; }
.empty-state__sub { color: var(--ink-soft); max-width: 36rem; margin: 0 auto 1.5rem; }

/* ============ Admin dashboard ============ */
.admin-shell { background: var(--deeper); min-height: 100svh; padding-block: clamp(2rem, 6vw, 4rem); }
.admin-head { margin-bottom: 2rem; }
.admin-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  text-transform: uppercase;
  margin: 0.4rem 0;
  color: var(--cream);
}
.admin-sub { color: var(--cream-dim); margin: 0; }
.admin-sub strong { color: var(--sun); }
.admin-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: var(--deep);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.admin-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--sun);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.admin-stat__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.admin-columns { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .admin-columns { grid-template-columns: 1fr 1fr; } }
.admin-panel { background: var(--deep); border: 1px solid var(--line-dark); border-radius: 14px; padding: 1.25rem; }
.admin-panel__title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.75rem; }
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.admin-list__item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid oklch(0.35 0.035 278 / 0.5); }
.admin-list__item:last-child { border-bottom: 0; }
.admin-list__item--stack { justify-content: space-between; gap: 1rem; }
.admin-list__main { display: flex; flex-direction: column; min-width: 0; gap: 0.15rem; }
.admin-list__name { font-weight: 700; color: var(--cream); font-size: 0.95rem; }
.admin-link { text-decoration: none; }
.admin-link:hover { color: var(--sun); text-decoration: underline; }
.admin-list__meta { font-size: 0.78rem; color: var(--cream-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-badge {
  display: inline-block;
  vertical-align: 0.1em;
  margin-left: 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.admin-empty { color: var(--cream-dim); }
.admin-foot { margin-top: 2rem; }
@media (max-width: 34rem) {
  .admin-stats { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; }
}

/* ============ Announcement bar ============ */
.announce {
  background: var(--sun);
  color: oklch(0.25 0.05 70);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem 0;
}
.announce .wrap { display: flex; justify-content: center; }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--deeper);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.cookie-banner--visible { transform: translateY(0); opacity: 1; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; font-size: 0.85rem; color: var(--cream-dim); max-width: 62ch; }
.cookie-banner__text a { color: var(--sun); font-weight: 700; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ============ Flag images ============ */
.flag-icon { display: inline-block; vertical-align: -0.1em; border-radius: 2px; }

/* ============ Country flag preview (registration) ============ */
.field--country .country-flag__row { display: flex; align-items: center; gap: 0.6rem; }
.country-flag__img { border-radius: 3px; border: 1px solid var(--line-dark); }
.field--country select { flex: 1; }

/* ============ Tag filter chips (forum index) ============ */
.tag-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-out);
}
.tag-chip:hover { border-color: var(--ink); color: var(--ink); }
.tag-chip--active { background: var(--ink); color: var(--paper); }
.tag--link { text-decoration: none; }
.tag--link:hover { filter: brightness(1.15); }

/* ============ Admin nav + tag/settings management ============ */
.admin-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 1.5rem;
}
.admin-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-nav a:hover { color: var(--cream); }
.admin-nav .admin-nav__active { color: var(--sun); border-bottom-color: var(--sun); }
.admin-panel--flush { margin-bottom: 1.25rem; }
.admin-inline-form__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .admin-inline-form__row {
    grid-template-columns: 2fr 1.5fr auto;
    align-items: end;
  }
  .admin-inline-form__row .actions { margin: 0 0 1.1rem; }
}
.admin-tag-edit {
  display: grid;
  grid-template-columns: 2fr 1.4fr auto;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}
.admin-tag-edit input {
  background: var(--night);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--cream);
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.88rem;
  min-width: 0;
}
.admin-list__item--tag { flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 40rem) {
  .admin-tag-edit { grid-template-columns: 1fr; }
}

/* ============ Cookie policy page ============ */
.cookies__table {
  border: 1px solid oklch(0.23 0.03 275 / 0.18);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.cookies__row {
  display: grid;
  grid-template-columns: 1.1fr 2.2fr 0.8fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid oklch(0.23 0.03 275 / 0.12);
  font-size: 0.92rem;
  color: var(--ink);
}
.cookies__row:last-child { border-bottom: 0; }
.cookies__row code { font-size: 0.82em; background: var(--paper-2); border-radius: 4px; padding: 0.1em 0.35em; }
.cookies__row--head {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cookies__note { color: var(--ink-soft); font-size: 0.92rem; }
.cookies__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.75rem 0; }
.cookies__status { color: var(--ink); }
@media (max-width: 40rem) {
  .cookies__row { grid-template-columns: 1fr; gap: 0.25rem; }
  .cookies__row--head { display: none; }
}

/* ============ Utility spacing / inline helpers ============ */
.u-mt-0 { margin-top: 0 !important; }
.u-mt-sm { margin-top: 0.5rem; }
.u-mt-lg { margin-top: 1rem; }
.admin-panel__title--spaced { margin-top: 1.5rem; }
.post__back--inline { display: inline; margin-bottom: 0; }
.admin-panel--spaced { margin-top: 1.5rem; }
.u-mb-sm { margin-bottom: 0.75rem; }
.admin-panel__title--spaced-sm { margin-top: 1rem; }

/* ============ News admin review queue ============ */
.admin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--deep);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
}
.admin-strip__stats { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.admin-badge-count {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid currentColor;
}
.admin-badge-count--draft { color: var(--sun); }
.admin-badge-count--ok { color: var(--teal); }
.admin-badge-count--off { color: var(--cream-dim); }
.admin-ok-text { color: oklch(0.75 0.12 160); }
.admin-warn-text { color: var(--orange); }

.admin-tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line-dark); margin-bottom: 1.25rem; }
.admin-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--cream-dim); text-decoration: none; font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 0.9rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tab:hover { color: var(--cream); }
.admin-tab--active { color: var(--sun); border-bottom-color: var(--sun); }
.admin-tab__count { font-variant-numeric: tabular-nums; opacity: 0.85; }

.news-admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.news-admin-item {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--deep); border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 0.9rem 1rem;
}
@media (max-width: 56rem) {
  .news-admin-item { grid-template-columns: 1fr; }
}
.news-admin-item__title { margin: 0.3rem 0; font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.news-admin-item__actions { display: flex; flex-direction: column; gap: 0.35rem; align-items: stretch; }
@media (max-width: 56rem) { .news-admin-item__actions { flex-direction: row; flex-wrap: wrap; } }
.admin-inline-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.empty-state--admin { background: var(--deep); border-style: solid; color: var(--cream); }
.empty-state--admin .empty-state__title { color: var(--cream); }
.empty-state--admin .empty-state__sub { color: var(--cream-dim); }
.admin-stat__link { text-decoration: none; display: block; }
.admin-stat__link:hover .admin-stat__num { color: var(--teal); }

/* ============ News pages (Leonida Wire) ============ */
.newspage { min-height: 60vh; }
.newspage__sub { color: var(--cream-dim); max-width: 44rem; margin: 0.75rem 0 0; }
.newspage__foot { margin-top: 2rem; border-top: 1px solid var(--line-dark); padding-top: 1.25rem; font-size: 0.82rem; color: var(--cream-dim); }
.newspage__foot a { color: var(--teal); text-decoration: none; font-weight: 700; }
.newspage__foot a:hover { text-decoration: underline; }
.wire__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.board__all--light { color: var(--sun); border-color: var(--sun); }
.board__all--light:hover { color: var(--cream); border-color: var(--cream); }

.newspage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 56rem) { .newspage__grid { grid-template-columns: 1fr; } }

.newscard {
  background: var(--deep);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.newscard:hover { transform: translateY(-3px); border-color: var(--sun); }
.newscard__img { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.newscard__img img { width: 100%; height: 100%; object-fit: cover; }
.newscard__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.newscard__title { margin: 0; font-size: 1.1rem; line-height: 1.3; font-weight: 800; }
.newscard__title a { color: var(--cream); text-decoration: none; }
.newscard__title a:hover { color: var(--sun); }
.newscard__read {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: auto; font-size: 0.82rem; font-weight: 800; color: var(--teal);
  text-decoration: none; letter-spacing: 0.03em;
}
.newscard__read:hover { color: var(--sun); }

.empty-state--dark { background: var(--deep); border-color: var(--line-dark); color: var(--cream); margin-top: 2rem; }
.empty-state--dark .empty-state__title { color: var(--cream); }
.empty-state--dark .empty-state__sub { color: var(--cream-dim); }

.news-article__figure { margin: 1.5rem 0; }
.news-article__figure img { width: 100%; border-radius: 14px; }
.news-article__foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid oklch(0.23 0.03 275 / 0.18); }
.news-article__foot p { color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }
.news-article__foot a:not(.btn) { color: var(--coral-deep); font-weight: 700; }
