/* =========================================================
   ETK: Shattered Kingdom — site styles
   Asset set:
     bg.png · logo.png · etkicon.png
     border_left.png · border_right.png
     title.png · content_box_wide.png · news_row_bg.png
     button_normal.png · button_hover.png · button_pressed.png
     label.png · separator.png
   ========================================================= */

:root {
  --bg-deep:    #07181a;
  --bg:         #0a2421;
  --bg-card:    #133329;

  --jade:       #6cb39a;
  --jade-bri:   #88d4b6;
  --jade-deep:  #2d6750;

  --gold:       #d4ae5c;
  --gold-bri:   #f0d080;
  --gold-deep:  #9a7a3a;
  --gold-dark:  #6b5224;
  --gold-glow:  rgba(212, 174, 92, 0.5);

  --parchment:      #d9c89b;
  --parchment-deep: #b59f6b;
  --ink:        #2a1f10;
  --ink-soft:   #4a3820;

  --crimson:    #b94a3a;

  --text:       #ece4cc;
  --text-mut:   #9eb3a8;

  /* layout */
  --border-w: 110px;   /* width of left/right dragon page borders */
  --nav-h:     72px;   /* height of the title_blank.png header bar */

  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-ui);
  color: var(--text);
  /* on the home page the darkening ramps in only AFTER the hero so the CTAs
     sit on a clean bg.png; the per-page overrides below tint content pages
     (news/download/register) more heavily for legibility */
  background:
    linear-gradient(180deg,
      rgba(7,17,18,0)    0,
      rgba(7,17,18,0)    60vh,
      rgba(7,17,18,0.6)  90vh,
      rgba(7,17,18,0.85) 130vh),
    url("assets/bg.webp") center top / cover no-repeat fixed,
    var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* content-only pages need a uniformly darker backdrop — there's no hero to
   absorb the bright bg.png at the top of the viewport */
.page-news,
.page-download,
.page-register {
  background:
    linear-gradient(180deg, rgba(7,17,18,0.78) 0%, rgba(7,17,18,0.88) 100%),
    url("assets/bg.webp") center top / cover no-repeat fixed,
    var(--bg-deep);
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }

/* ---------- dragon page borders (sticky to viewport, always visible) ---------- */
.page-border {
  position: fixed;
  top: 0;
  height: 100vh;
  width: var(--border-w);
  pointer-events: none;
  z-index: 60;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% 100%;   /* stretch to viewport height — dragon always visible */
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.6));
}
.page-border--left  { left: 0;  background-image: url("assets/border_left.webp"); }
.page-border--right { right: 0; background-image: url("assets/border_right.webp"); }

/* ---------- nav (title_blank.png bar + title_logo seal) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  overflow: visible;   /* let title_logo pop above the bar */
}
.nav__bar {
  position: absolute;
  inset: 0;
  background-image: url("assets/title_blank.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;     /* asset is 28.2:1 — minor stretch only */
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.nav__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: auto;
  transform: translate(-50%, -52%);  /* center, with the seal popping slightly above the bar */
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
.nav__inner {
  position: relative;
  height: 100%;
  /* dark panel zones in title_blank.png start past the corner ornaments;
     pad in past the gold rivets and dragon borders. */
  padding: 0 calc(var(--border-w) + 40px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  /* nudge whole row up so links land on the optical middle of the dark panel */
  transform: translateY(-8px);
}
.nav__seal {
  width: 200px;
  height: calc(var(--nav-h) + 24px);
  display: grid;
  place-items: center;
  /* invisible click target sized to match the title_logo image overlay */
  position: relative;
  z-index: 4;
  cursor: pointer;
}

.nav__side {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  /* center the link cluster within each half of the bar */
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0e7c8;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.4);
  padding: 6px 4px;
  position: relative;
}
.nav__link svg {
  width: 18px;
  height: 18px;
  color: var(--gold-bri);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
  transition: color .2s ease, transform .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 32px; right: 0; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { color: #fff5dc; }
.nav__link:hover svg { color: var(--gold-bri); transform: translateY(-1px); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  position: absolute;
  right: calc(var(--border-w) - 8px);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--gold-bri);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- jade button (real assets) ----------
   button_normal.png is 1117x287 — the gold dragon ornaments on each side
   take ~22% of the width; the green inner text plate sits between ~22%–78%.
   Center the label inside that inner plate via percentage padding. */
.cta-btn {
  --cb-w: 320px;
  --cb-h: 70px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--cb-w);
  height: var(--cb-h);
  background: url("assets/button_normal.webp") center/100% 100% no-repeat;
  border: 0;
  /* keep contents within the inner green plate (22–78% horizontal) */
  padding: 0 22%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0e7c8;
  text-shadow: 0 1px 0 #2a1f10, 0 0 8px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform .12s ease, filter .25s ease;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));
  white-space: nowrap;
}
.cta-btn svg {
  width: 18px; height: 18px;
  color: var(--gold-bri);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
  flex: 0 0 auto;
}
.cta-btn span {
  position: relative;
  top: 4%;
}
.cta-btn svg { position: relative; top: 4%; }
.cta-btn:hover {
  background-image: url("assets/button_hover.webp");
  filter: drop-shadow(0 8px 16px rgba(212, 174, 92, 0.45));
}
.cta-btn:active {
  background-image: url("assets/button_pressed.webp");
  transform: translateY(1px);
}
.cta-btn--sm { --cb-w: 240px; --cb-h: 56px; font-size: 0.8rem; letter-spacing: 0.12em; }
.cta-btn--block { display: flex; width: 100%; }

/* ---------- content gutters: only sections that need to clear the dragon borders ----------
   The hero stays edge-to-edge (bg.png runs UNDER the dragons).  Panels, highlights
   and footer respect the border so their content doesn't sit on top of the dragons. */
.panels, .highlights, .footer {
  padding-left: var(--border-w);
  padding-right: var(--border-w);
}

/* ---------- hero (bg.png is on <body>; hero is fully transparent) ---------- */
.hero {
  position: relative;
  min-height: 480px;
  padding: calc(var(--nav-h) + 40px) 24px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  padding: 50px 60px 40px;
  /* soft radial darkening so the title/tagline read clearly without a hard panel */
  isolation: isolate;
}
.hero__content::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(7,17,18,0.62) 0%, rgba(7,17,18,0.35) 45%, rgba(7,17,18,0) 80%);
  pointer-events: none;
}
.hero__title {
  margin: 0 0 8px;
  font-family: "Cinzel", "Trajan Pro", var(--font-display);
  font-weight: 900;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero__title-line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero__title-etk {
  font-size: clamp(3rem, 7vw, 5.6rem);
  letter-spacing: 0.06em;
  font-weight: 900;
  background: linear-gradient(180deg, #fff5dc 0%, var(--gold-bri) 40%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.55)) drop-shadow(0 0 22px rgba(212, 174, 92, 0.4));
}
.hero__title-flourish {
  font-family: "Cinzel Decorative", var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  filter: drop-shadow(0 0 10px var(--gold-glow));
  line-height: 1;
}
.hero__title-sub {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff5dc 0%, var(--gold-bri) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.45)) drop-shadow(0 0 18px rgba(212, 174, 92, 0.35));
  font-weight: 700;
}
.hero__alpha {
  display: inline-block;
  margin: 12px auto 0;
  padding: 4px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bri);
  background: rgba(7, 17, 18, 0.55);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  box-shadow: 0 0 18px rgba(212, 174, 92, 0.15), inset 0 0 0 1px rgba(212, 174, 92, 0.18);
}
.hero__tagline {
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ece4cc;
  margin: 22px auto 36px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__ctas {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
/* falling petals */
.hero__petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__petals span {
  position: absolute; top: -20px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #f5d0e0 0%, #c97aa3 80%);
  border-radius: 80% 0 80% 0;
  opacity: 0.6;
  animation: petalFall linear infinite;
}
.hero__petals span:nth-child(1)  { left:  6%; animation-duration: 14s; animation-delay:  0s; }
.hero__petals span:nth-child(2)  { left: 16%; animation-duration: 18s; animation-delay:  3s; }
.hero__petals span:nth-child(3)  { left: 26%; animation-duration: 12s; animation-delay:  6s; }
.hero__petals span:nth-child(4)  { left: 38%; animation-duration: 20s; animation-delay:  1s; }
.hero__petals span:nth-child(5)  { left: 50%; animation-duration: 16s; animation-delay:  9s; }
.hero__petals span:nth-child(6)  { left: 62%; animation-duration: 13s; animation-delay:  4s; }
.hero__petals span:nth-child(7)  { left: 72%; animation-duration: 22s; animation-delay:  7s; }
.hero__petals span:nth-child(8)  { left: 82%; animation-duration: 15s; animation-delay:  2s; }
.hero__petals span:nth-child(9)  { left: 92%; animation-duration: 19s; animation-delay: 11s; }
.hero__petals span:nth-child(10) { left: 45%; animation-duration: 24s; animation-delay: 13s; }
@keyframes petalFall {
  0%   { transform: translateY(-20px) translateX(0) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translateY(110vh) translateX(80px) rotate(540deg); opacity: 0; }
}

/* ornate gold separator between hero and the 3-panel row */
.rule {
  display: block;
  width: min(72%, 980px);
  height: auto;
  margin: -8px auto 0;
  padding: 0 var(--border-w);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  position: relative;
  z-index: 4;
  pointer-events: none;
}

/* ---------- panels grid (Classes / News / Screenshots) ----------
   content_box_wide.png is 1162×981 — preserve that aspect.
   Panel = aspect-locked frame. Title text sits in the jade plate;
   body content sits over the parchment middle. */
.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 4px 16px 30px;
  max-width: 1520px;
  margin: 0 auto;
  align-items: start;
}
.panel {
  position: relative;
  aspect-ratio: 1162 / 981;
  background: url("assets/content_box_wide.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.55));
  /* container queries — child fonts/sizes scale with the panel, not the viewport */
  container-type: inline-size;
  container-name: panel;
}
/* jade title text band in content_box_wide.png:
   x: 377–791 / 1162  →  32.44% .. 68.07%
   y: 134–170 / 981   →  13.66% .. 17.33%   */
.panel__title {
  position: absolute;
  top: 13.66%;
  left: 32.44%;
  right: 31.93%;
  height: 3.67%;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2cqi;             /* scales with panel width */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0e7c8;
  text-shadow: 0 1px 0 rgba(0,0,0,0.7), 0 0 6px rgba(0,0,0,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  line-height: 1;
}
/* parchment content area in content_box_wide.png:
   x: 110–1039 / 1162  →  9.47% .. 89.41%   (right gutter 10.59%)
   y: 317–817  / 981   →  32.31% .. 83.28%  (bottom gutter 16.72%) */
.panel__body {
  position: absolute;
  top: 32.31%;
  left: 9.47%;
  right: 10.59%;
  bottom: 16.72%;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.panel__body > :first-child {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.panel__cta {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- classes carousel (one slide at a time) ---------- */
.carousel {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.carousel__track {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.class-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 4px 36px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.class-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.class-slide__sigil {
  width: 14cqi; height: 14cqi;
  min-width: 36px; min-height: 36px;
  max-width: 80px; max-height: 80px;
  display: grid; place-items: center;
  border: 1px solid rgba(122, 94, 42, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 174, 92, 0.45), transparent 70%),
    rgba(42, 31, 16, 0.10);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.4), 0 2px 5px rgba(0,0,0,0.18);
}
.class-slide__sigil svg { width: 60%; height: 60%; color: var(--ink-soft); }
.class-slide h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 4cqi;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}
.class-slide p {
  margin: 0;
  font-size: 2.8cqi;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 100%;
}

/* prev/next arrows */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 7cqi; height: 7cqi;
  min-width: 24px; min-height: 24px;
  max-width: 40px; max-height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(212, 174, 92, 0.18), rgba(122, 94, 42, 0.10));
  border: 1px solid rgba(122, 94, 42, 0.5);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 4cqi;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .15s ease, color .2s ease;
  line-height: 1;
  padding-bottom: 2px;
}
.carousel__nav:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-60%) scale(1.08);
}
.carousel__nav--prev { left: 0; }
.carousel__nav--next { right: 0; }

/* dots indicator */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 4px;
}
.carousel__dots .dot {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(122, 94, 42, 0.6);
  background: rgba(212, 174, 92, 0.15);
  cursor: pointer;
  transition: all .2s ease;
}
.carousel__dots .dot:hover { background: rgba(212, 174, 92, 0.4); }
.carousel__dots .dot.is-active {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: scale(1.15);
}

/* ---------- news rows (inside panel — compact) ---------- */
.news-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  /* leave space above row 1 so its hanging badge isn't clipped by panel__body */
  padding-top: 6px;
}
.news-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5cqi;
  /* news_row_bg has decorative gold corner trim — pad inward so text
     stays safely within the parchment region of the asset */
  padding: 1.5cqi 4cqi 1.5cqi 4cqi;
  background: url("assets/news_row_bg.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  min-height: 0;
}
.news-row__thumb {
  width: 8cqi;
  aspect-ratio: 5 / 4;
  background:
    repeating-linear-gradient(135deg, rgba(74, 56, 32, 0.08) 0 4px, transparent 4px 10px),
    linear-gradient(180deg, #efdfb0 0%, #c9b07f 100%);
  border: 1px solid rgba(122, 94, 42, 0.55);
  border-radius: 2px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.5cqi;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.4);
  flex-shrink: 0;
}
.news-row__badge {
  position: absolute;
  top: -5px;
  left: 6px;
  font-family: var(--font-display);
  font-size: 1.8cqi;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff5dc;
  background: linear-gradient(180deg, var(--jade-deep), #1d4f3c);
  border: 1px solid var(--gold-deep);
  padding: 1px 5px;
  border-radius: 3px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  line-height: 1.1;
  z-index: 1;
}
.news-row__body { min-width: 0; }
.news-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.8cqi;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.news-row__desc {
  margin: 1px 0 0;
  font-size: 2.4cqi;
  color: var(--ink-soft);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-row__date {
  font-family: var(--font-display);
  font-size: 2.2cqi;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
  align-self: center;
}
.news-rows.is-collapsed .news-row:nth-child(n+4) { display: none; }

/* container queries — collapse details when the panel is narrow */
@container panel (max-width: 520px) {
  .news-row__desc { display: none; }
  .news-row__date { font-size: 2cqi; }
  .news-row { padding: 2cqi 4.5cqi; }
}
@container panel (max-width: 380px) {
  /* on tiny panels, hide the date too and show only badge + thumb + title */
  .news-row__date { display: none; }
  .news-rows .news-row:nth-child(n+3) { display: none; }   /* keep only 2 entries */
  .news-row__title { font-size: 3.4cqi; }
}

/* ---------- screenshots (inside panel — three square thumbs) ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  align-content: center;
  height: 100%;
}
.shots__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid rgba(122, 94, 42, 0.6);
  background: rgba(42, 31, 16, 0.2);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.35), 0 2px 5px rgba(0,0,0,0.25);
}
.shots__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .25s ease;
  filter: saturate(95%) brightness(0.96);
}
.shots__thumb:hover {
  border-color: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--gold-deep);
}
.shots__thumb:hover img {
  transform: scale(1.05);
  filter: saturate(110%) brightness(1.05);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 17, 18, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox__img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 1;
  background: rgba(7, 24, 26, 0.7);
  border: 1px solid var(--gold-deep);
  color: var(--gold-bri);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 18px var(--gold-glow);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- highlights row ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 60px;
}
.hl {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  padding: 6px 4px;
  min-width: 0;
}
.hl__icon {
  grid-area: icon;
  width: 44px; height: 44px;
  color: var(--gold-bri);
  filter: drop-shadow(0 0 8px rgba(212, 174, 92, 0.35));
  align-self: start;
}
.hl h4 { grid-area: title; }
.hl p  { grid-area: desc; min-width: 0; }
.hl h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bri);
  white-space: nowrap;
}
.hl p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-mut);
  line-height: 1.45;
}

/* ---------- footer ---------- */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(7, 24, 26, 0.85) 60%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(212, 174, 92, 0.25);
  padding-top: 22px;
  padding-bottom: 22px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: var(--border-w); right: var(--border-w);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bri);
}
.footer__brand img {
  width: 38px; height: 38px;
  filter: drop-shadow(0 0 8px rgba(212, 174, 92, 0.35));
}
.footer__social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(212, 174, 92, 0.35);
  border-radius: 50%;
  color: var(--gold-bri);
  background: rgba(7, 24, 26, 0.6);
  transition: all .2s ease;
}
.footer__social a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.footer__social svg { width: 18px; height: 18px; }

/* ---------- modal (login) ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 17, 18, 0.75);
  backdrop-filter: blur(8px);
}
.modal__inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1162 / 981;
  /* match the panels: bg + locked aspect, title goes in the jade plate */
  background: url("assets/content_box_wide.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
  container-type: inline-size;
  container-name: modal;
}
/* title sits in the jade plate (same coords as .panel__title) */
.modal__title {
  position: absolute;
  top: 13.66%;
  left: 32.44%;
  right: 31.93%;
  height: 3.67%;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2cqi;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0e7c8;
  text-shadow: 0 1px 0 rgba(0,0,0,0.7), 0 0 6px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 2;
  line-height: 1;
}
/* body content fits inside the parchment — top pushed well below the title plate */
.modal__body {
  position: absolute;
  top: 31%;
  left: 9.47%;
  right: 10.59%;
  bottom: 13%;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal__x {
  position: absolute;
  top: 5%; right: 6%;
  width: 6cqi; max-width: 32px; height: 6cqi; max-height: 32px;
  min-width: 24px; min-height: 24px;
  border: 1px solid var(--gold-deep);
  background: rgba(42, 31, 16, 0.45);
  color: var(--gold-bri);
  border-radius: 50%;
  font-size: 4cqi;
  display: grid; place-items: center;
  z-index: 3;
  cursor: pointer;
  line-height: 1;
  padding-bottom: 2px;
}
.modal__x:hover { background: var(--gold); color: var(--ink); }

/* ---------- auth (inside modal) ---------- */
.auth { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.auth__panel { display: flex; flex-direction: column; gap: 6px; }
/* register form: 2-col grid for the 4 fields */
.auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
@container modal (max-width: 480px) {
  .auth__grid { grid-template-columns: 1fr; }
}

.auth__tabs {
  display: flex;
  gap: 4px;
  background: rgba(42, 31, 16, 0.18);
  padding: 3px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid rgba(122, 94, 42, 0.4);
  flex: 0 0 auto;
}
.auth__tab {
  flex: 1;
  background: none;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(74, 56, 28, 0.7);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 2.2cqi;
  font-family: var(--font-display);
  cursor: pointer;
  white-space: nowrap;
}
.auth__tab.is-active {
  background: linear-gradient(180deg, var(--jade-deep), #1d4f3c);
  color: #fff5dc;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  box-shadow: inset 0 0 0 1px rgba(212, 174, 92, 0.7);
}
.field {
  display: block;
}
.field span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8cqi;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74, 56, 28, 0.85);
  margin-bottom: 2px;
  font-weight: 700;
}
.field input {
  width: 100%;
  padding: 4px 12px;
  background: rgba(255, 248, 220, 0.65);
  border: 1px solid rgba(122, 94, 42, 0.55);
  border-radius: 4px;
  color: var(--ink);
  font-family: inherit;
  font-size: 2.3cqi;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  height: 4.6cqi;
  min-height: 28px;
}
.field input::placeholder { color: rgba(74, 56, 28, 0.4); }
.field input:focus {
  outline: 0;
  border-color: var(--gold-deep);
  background: rgba(255, 250, 230, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 174, 92, 0.25), inset 0 1px 2px rgba(0,0,0,0.1);
}
.auth__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 2.1cqi;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(74, 56, 28, 0.85);
  cursor: pointer;
  font-weight: 500;
}
.check input { accent-color: var(--gold-deep); }
.auth__link { color: var(--jade-deep); font-weight: 600; }
.auth__link:hover { color: var(--gold-deep); }

/* submit button — sized naturally, centered (no stretch) */
.auth__submit {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  width: 100%;
}
.auth .cta-btn {
  --cb-w: 34cqi;
  --cb-h: 7cqi;
  width: var(--cb-w);
  height: var(--cb-h);
  font-size: 2.1cqi;
  letter-spacing: 0.12em;
  flex: 0 0 auto;
  padding: 0 18%;       /* center inside the green plate of the button asset */
  min-width: 160px;
  min-height: 38px;
}

/* divider with "or continue with" label */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 1.9cqi;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 56, 28, 0.7);
  font-weight: 600;
  white-space: nowrap;
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 94, 42, 0.5), transparent);
}

/* SSO row — small icon-only chips, centered (no stretch) */
.auth__sso {
  display: flex;
  justify-content: center;
  gap: 2cqi;
}
.sso-btn {
  position: relative;
  width: 4.6cqi;
  height: 4.6cqi;
  min-width: 28px;
  min-height: 28px;
  max-width: 34px;
  max-height: 34px;
  background: linear-gradient(180deg, #fff8dc, #d9c89b);
  border: 1px solid rgba(122, 94, 42, 0.6);
  border-radius: 5px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, 0.6), 0 2px 4px rgba(0,0,0,0.2);
  transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
}
.sso-btn svg { width: 68%; height: 68%; }
.sso-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-deep);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, 0.8), 0 4px 10px rgba(0,0,0,0.3);
}
.sso-btn:active { transform: translateY(0); }

.auth__msg {
  margin: 0;
  font-size: 2.1cqi;
  text-align: center;
  font-weight: 500;
  min-height: 0;
}
.auth__msg:empty { display: none; }
.auth__msg.is-success { color: var(--jade-deep); }
.auth__msg.is-error   { color: var(--crimson); }

.auth__signup {
  margin: -2px 0 0;
  text-align: center;
  font-size: 2.1cqi;
  color: rgba(74, 56, 28, 0.8);
}
.auth__signup a {
  color: var(--jade-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth__signup a:hover { color: var(--gold-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  :root { --border-w: 80px; }
  .nav__inner { padding: 0 calc(var(--border-w) + 12px); gap: 10px; }
  .nav__side { gap: 16px; }
  .nav__link { font-size: 0.7rem; letter-spacing: 0.1em; gap: 6px; }
  .nav__link svg { width: 16px; height: 16px; }
  .nav__logo { width: 160px; }
  .panels { gap: 12px; padding-left: calc(var(--border-w) + 8px); padding-right: calc(var(--border-w) + 8px); }
}
@media (max-width: 1100px) {
  /* tighten the nav even more — links risk overflowing here */
  .nav__inner { padding: 0 18px; }
  .nav__side { gap: 12px; }
  .nav__link { font-size: 0.66rem; letter-spacing: 0.08em; gap: 5px; }
  .nav__link svg { width: 14px; height: 14px; }
  .nav__logo { width: 130px; }
  /* panels stack vertically — cap total width so they stay readable */
  .panels {
    grid-template-columns: 1fr;
    max-width: 560px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .highlights { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 980px) {
  :root { --border-w: 0px; --nav-h: 76px; }
  .page-border { display: none; }
  /* keep the title_blank.png bar at its native aspect — sides simply
     overflow off-screen and get clipped by the nav (no horizontal squish) */
  .nav { overflow: hidden; }
  .nav__bar {
    background-size: auto 100%;   /* fix height, let width run wide and clip */
    background-position: center center;
  }
  /* hide the hamburger — the seal is now the menu trigger */
  .nav__toggle { display: none; }
  .nav__inner {
    padding: 0;
    transform: none;
    grid-template-columns: 1fr auto 1fr;
  }
  .nav__side { display: none; }
  .nav__seal {
    grid-column: 2;
    cursor: pointer;
    transition: filter .25s ease, transform .15s ease;
  }
  .nav.is-open .nav__logo { filter: drop-shadow(0 0 22px var(--gold-glow)); }
  .nav__seal:active { transform: scale(0.96); }

  /* drawer slides down below the seal */
  .nav.is-open .nav__side {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 24, 26, 0.97);
    border-top: 1px solid var(--gold-deep);
    border-bottom: 1px solid var(--gold-deep);
    padding: 16px 24px;
    gap: 14px;
    align-items: center;
    box-shadow: 0 14px 30px rgba(0,0,0,0.5);
  }
  .nav.is-open .nav__side--left  { top: var(--nav-h); }
  /* right drawer's top is set dynamically in JS to sit flush against the left */
  .nav.is-open .nav__side--right { border-top: 0; padding-top: 0; }
  .nav__link { font-size: 0.92rem; letter-spacing: 0.18em; gap: 10px; }
  .nav__link svg { width: 20px; height: 20px; }
}
@media (max-width: 720px) {
  .footer__inner { flex-direction: column; text-align: center; gap: 18px; }
  .footer__social { justify-content: center; }
  .footer__brand { justify-content: center; }
  .highlights { grid-template-columns: 1fr; }
  .modal__inner { max-width: 92vw; }
  .cookies { flex-direction: column; align-items: stretch; text-align: center; }
  .cookies__actions { justify-content: center; }
}

/* ---------- news page (full patch notes) ---------- */
.news-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) calc(var(--border-w) + 24px) 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-areas:
    "head head"
    "idx  feed";
  gap: 32px;
}
.news-page__head {
  grid-area: head;
  text-align: center;
  margin-bottom: 12px;
}
.news-page__title {
  margin: 0;
  font-family: "Cinzel", var(--font-display);
  font-weight: 900;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.news-page__title .hero__title-etk { font-size: clamp(2.6rem, 5.6vw, 3.8rem); }
.news-page__title .hero__title-sub { font-size: clamp(1.05rem, 2vw, 1.4rem); }

.news-page__index {
  grid-area: idx;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.news-page__index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border-soft);
}
.news-page__index button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 9px 16px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--text-mut);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  cursor: pointer;
}
.news-page__index button:hover { color: var(--text); }
.news-page__index button.is-active {
  color: var(--gold-bri);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(212, 174, 92, 0.10), transparent);
}

.news-page__feed {
  grid-area: feed;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.news-page__loading {
  text-align: center;
  font-style: italic;
  color: var(--text-mut);
  padding: 50px 0;
}

.news-article {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  position: relative;
}
.news-article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.55;
}
.news-article__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.news-article__date {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-bri);
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}
.news-article__badge {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade-bri);
  padding: 3px 12px;
  border: 1px solid rgba(108, 179, 154, 0.4);
  border-radius: 999px;
  background: rgba(108, 179, 154, 0.10);
}
.news-article__intro {
  margin: 0 0 16px;
  color: var(--text-mut);
  font-style: italic;
}
.news-article__group { margin-top: 18px; }
.news-article__group:first-child { margin-top: 0; }
.news-article__group-title {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 700;
  margin: 0 0 10px;
  padding-left: 18px;
  position: relative;
}
.news-article__group-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}
.news-article__sub {
  margin: 12px 0 6px;
  font-weight: 700;
  color: var(--gold-bri);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.news-article__list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.news-article__list li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.news-article__list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 0.62rem;
  color: var(--gold);
}

@media (max-width: 980px) {
  .news-main {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "idx" "feed";
    padding: calc(var(--nav-h) + 30px) 20px 60px;
    gap: 24px;
  }
  .news-page__index { position: static; }
  .news-page__index ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-left: 0;
  }
  .news-page__index button {
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0;
  }
  .news-page__index button.is-active {
    border-color: var(--gold);
    background: rgba(212, 174, 92, 0.10);
  }
  .news-article { padding: 22px 20px; }
}

/* ---------- register page (centers the parchment card) ---------- */
.register-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 30px) calc(var(--border-w) + 24px) 40px;
}
.register-main .modal__inner { max-width: 720px; }

/* ---------- download page ---------- */
.dl-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) calc(var(--border-w) + 24px) 80px;
}
.dl-hero {
  text-align: center;
  margin-bottom: 56px;
}
.dl-hero__title {
  margin: 0 0 8px;
  font-family: "Cinzel", var(--font-display);
  font-weight: 900;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dl-hero__title .hero__title-etk {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}
.dl-hero__title .hero__title-sub {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}
.dl-hero__lead {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--text-mut);
  font-size: 1rem;
  line-height: 1.6;
}
.dl-hero .hero__alpha { margin: 14px auto 0; }

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 52px;
}
.dl-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 57, 48, 0.55) 0%, rgba(7, 24, 26, 0.55) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 30px 32px 30px;
  box-shadow: inset 0 1px 0 rgba(212, 174, 92, 0.15), 0 16px 30px rgba(0,0,0,0.4);
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 174, 92, 0.18);
  border-radius: 10px;
  pointer-events: none;
}
.dl-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.dl-card__os {
  width: 44px; height: 44px;
  color: var(--gold-bri);
  filter: drop-shadow(0 0 8px rgba(212, 174, 92, 0.4));
  flex: 0 0 auto;
}
.dl-card__os-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}
.dl-card__ver {
  margin: 4px 0 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.dl-card__desc {
  color: var(--text-mut);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 22px;
}
.dl-card__meta {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.dl-card__meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-card__meta span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.dl-card__meta strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.dl-sysreq {
  background: linear-gradient(180deg, rgba(7, 24, 26, 0.55) 0%, rgba(20, 57, 48, 0.40) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 36px 36px 32px;
}
.dl-sysreq__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bri);
  margin: 0 0 24px;
  text-align: center;
}
.dl-sysreq__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.dl-sysreq__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.dl-sysreq__col ul { list-style: none; margin: 0; padding: 0; }
.dl-sysreq__col li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border-soft);
}
.dl-sysreq__col li:last-child { border-bottom: 0; }
.dl-sysreq__col strong {
  font-weight: 600;
  color: var(--gold-bri);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: center;
}
.dl-sysreq__col span { color: var(--text-mut); }

@media (max-width: 900px) {
  .dl-main { padding: calc(var(--nav-h) + 30px) 20px 60px; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-sysreq { padding: 26px 22px; }
  .dl-sysreq__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- cookie banner (EU consent) ---------- */
.cookies {
  position: fixed;
  z-index: 150;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(7, 24, 26, 0.96), rgba(7, 17, 18, 0.96));
  border: 1px solid var(--gold-deep);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  max-width: 880px;
  margin: 0 auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookies.is-visible { transform: translateY(0); opacity: 1; }
.cookies[hidden] { display: none !important; }
.cookies__msg {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-mut);
  flex: 1 1 auto;
}
.cookies__msg strong { color: var(--gold-bri); margin-right: 4px; }
.cookies__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.cookies__more {
  font-size: 0.84rem;
  color: var(--jade-bri);
  font-weight: 500;
}
.cookies__more:hover { color: var(--gold-bri); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__petals span { animation: none; }
  .cookies { transition: none; }
}
