/* ============================================================
   EllesmereUI — site design system
   Dark teal-black surfaces, mint (#0cd29d) accent, glass panels.
   Modeled on the in-game EllesmereUI options panel.
   ============================================================ */

:root {
  /* Neutral night surfaces. These carry the vast majority of the page -
     keep them genuinely neutral so the accent can actually stand out. */
  --bg-0: #111111;
  --bg-1: #161617;
  --bg-2: #1a1a1c;

  --panel: #19191b;
  --panel-2: #1e1e21;
  --panel-3: #242427;

  /* Chrome borders are neutral. Only --line-accent is green, and it is
     reserved for things that are deliberately highlighted. */
  --line-soft: rgba(255, 255, 255, 0.055);   /* resting card edge */
  --line: rgba(255, 255, 255, 0.11);         /* hover / emphasis    */
  --line-strong: rgba(255, 255, 255, 0.20);  /* strongest neutral   */
  --line-accent: rgba(12, 210, 157, 0.40);   /* deliberate accent   */

  --accent: #0cd29d;
  --accent-bright: #35eebb;
  --accent-deep: #08a67b;
  --accent-glow: rgba(12, 210, 157, 0.35);
  --accent-soft: rgba(12, 210, 157, 0.10);

  --ink: #f3f4f5;
  --ink-dim: #c7cacd;
  --muted: #8c9197;
  --muted-2: #5d6167;

  --danger: #ff5c6c;
  --warn: #ffcf5c;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px var(--line), 0 10px 40px rgba(0, 0, 0, 0.5);

  --nav-h: 72px;
  --container: 1180px;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }

::selection { background: rgba(12, 210, 157, 0.30); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: #2f2f32; border-radius: 8px; border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: #404046; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 31px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  user-select: none;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #04120d;
  box-shadow: 0 4px 20px rgba(12, 210, 157, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #4bf7c8, var(--accent-bright));
  color: #04120d;
  box-shadow: 0 6px 28px rgba(12, 210, 157, 0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(12, 210, 157, 0.06);
  border-color: var(--line-accent);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(12, 210, 157, 0.13);
  border-color: var(--accent);
  color: #fff;
}

.btn-dark {
  background: var(--panel-2);
  border-color: var(--line-soft);
  color: var(--ink-dim);
}
.btn-dark:hover { border-color: var(--line-strong); color: #fff; }

.btn-danger {
  background: rgba(255, 92, 108, 0.10);
  border-color: rgba(255, 92, 108, 0.45);
  color: #ff8b97;
}
.btn-danger:hover { background: rgba(255, 92, 108, 0.2); color: #ffb3ba; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn[disabled], .btn.disabled { opacity: 0.45; pointer-events: none; }

.btn-discord {
  background: #5865f2; color: #fff;
}
.btn-discord:hover { background: #6b76ff; color: #fff; transform: translateY(-1px); }

/* ---------- Nav ---------- */

/* The header is ALWAYS visible. It never hides, slides away, or waits for
   a scroll direction - it only changes how solid it looks. */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-nav.scrolled { background: rgba(17, 17, 17, 0.9); border-bottom-color: var(--line); }

.nav-inner {
  height: var(--nav-h);
  /* Matches the gap inside .nav-links / .nav-actions so the whole row
     reads as one evenly spaced set of links. */
  display: flex; align-items: center; gap: 30px;
}

.nav-logo {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.16rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.nav-logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(12, 210, 157, 0.28)); }
.nav-logo b { color: var(--accent); font-weight: 800; }
.nav-logo:hover { color: #fff; }

/* Logo owns the left edge; everything else rides the right. */
.nav-logo { margin-right: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }

/* Every item in the bar is the same plain text link. */
.nav-links a,
.nav-link-btn {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.88rem; letter-spacing: 0.01em;
  color: var(--muted);
  padding: 5px 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  transition: color 0.2s ease;
}

/* Colour only. Nothing moves, nothing resizes - text that shifts under
   the cursor is the thing that reads as cheap. */
.nav-links a:hover,
.nav-link-btn:hover { color: var(--ink); }

/* Current page: simply lit in the accent. */
.nav-links a.active { color: var(--accent); }

.nav-links a svg { width: 11px; height: 11px; opacity: 0.45; transition: opacity 0.22s ease; }
.nav-links a:hover svg { opacity: 0.75; }

.nav-actions { display: flex; align-items: center; gap: 30px; }

/* Signed out, #authArea renders nothing. Collapse it (and the whole
   actions group on desktop, where the burger is hidden) so the row does
   not carry a phantom gap after the last link. */
#authArea:empty { display: none; }
@media (min-width: 761px) {
  .nav-actions:has(#authArea:empty) { display: none; }
}

.nav-burger {
  display: none;
  background: none; border: 1px solid var(--line-soft); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 20px; height: 20px; }

/* auth area */
.auth-user { position: relative; }
.auth-avatar-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer;
  color: var(--ink); font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  transition: border-color 0.15s;
}
.auth-avatar-btn:hover { border-color: var(--line-strong); }
.auth-avatar-btn img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.auth-avatar-btn .chev { width: 12px; height: 12px; opacity: 0.55; }

.auth-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 190px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 6px;
  display: none;
  z-index: 95;
}
.auth-menu.open { display: block; }
.auth-menu a, .auth-menu button {
  display: flex; width: 100%; align-items: center; gap: 10px;
  background: none; border: none; text-align: left; cursor: pointer;
  color: var(--ink-dim); font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  padding: 10px 12px; border-radius: 8px;
}
.auth-menu a:hover, .auth-menu button:hover { background: var(--accent-soft); color: #fff; }
.auth-menu .menu-sep { height: 1px; background: var(--line-soft); margin: 5px 8px; }
.auth-menu svg { width: 15px; height: 15px; opacity: 0.7; }
/* Moderator-only entry point - tinted so it reads as privileged. */
.auth-menu .menu-staff { color: var(--accent); font-weight: 600; }
.auth-menu .menu-staff svg { opacity: 1; }

/* ---------- Page shells ---------- */

main { padding-top: var(--nav-h); }

/* Inner-page hero. Same vocabulary as the home hero: no glow, a fine
   grid that fades out, left aligned, two-tone heading. */
.page-hero {
  padding: 64px 0 38px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-0);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: var(--muted);
  margin: 0 0 9px;
  max-width: 740px;
}
/* Same weight as the rest of the line - colour alone carries the
   emphasis, which is what keeps the two-tone heading from shouting. */
.page-hero h1 b { color: var(--ink); font-weight: 600; }
.page-hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 560px; margin-bottom: 0; }

/* Hero call-to-action buttons: no accent glow, and 10% smaller than the
   site-wide button. The hero already has the page's attention, so the
   button does not need to shout to be found. */
.page-hero .btn,
.hero-lite .btn {
  padding: 12px 28px;
  font-size: 0.86rem;
  box-shadow: none;
}
.page-hero .btn:hover,
.hero-lite .btn:hover { box-shadow: none; }
.page-hero .btn svg,
.hero-lite .btn svg { width: 16px; height: 16px; }

/* The fine grid, reusable on any section that wants texture. */
.fine-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}

/* ---------- Shared card surface ----------
   Single-element version of the .gcard look: the inset top highlight is
   what reads as a light source above the card, without needing the
   two-layer gradient-border markup. */
.preset-card,
.video-card,
.form-card,
.side-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.preset-card:hover,
.video-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   HOME HERO - compact and type-led. Deliberately NOT full screen:
   the showcase below it should be partly visible on load so the
   product is on screen immediately.
   ============================================================ */

.hero-lite {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 154px) 0 84px;
  /* No overflow clip: the grid below deliberately spills past the hero
     so its fade can run over a taller area than the section itself. */
  background: var(--bg-0);
}

/* Headline and buttons on the left, the explanation in its own column on
   the right. Reads as a statement with a footnote rather than a stack of
   centred marketing copy. */
.hero-stage {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px 56px;
  align-items: start;
  text-align: left;
  max-width: var(--container);
}

/* ---------- Confirmation panel (after a form succeeds) ----------
   Pairs with EUI.swapPanels(): the form collapses, this expands in its
   place. The mark and text arrive slightly after the panel finishes
   opening so the sequence reads as one motion, not three. */

.done-card { text-align: center; max-width: 560px; }

.done-mark {
  width: 62px; height: 62px; margin: 4px auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line-accent);
  color: var(--accent);
  animation: done-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
.done-mark svg { width: 27px; height: 27px; }

.done-card h2 {
  font-size: 1.5rem; margin-bottom: 10px;
  animation: done-rise 0.5s ease 0.38s both;
}
.done-card p {
  font-size: 0.97rem; line-height: 1.65; margin: 0 auto 26px; max-width: 420px;
  animation: done-rise 0.5s ease 0.46s both;
}
.done-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: done-rise 0.5s ease 0.54s both;
}

@keyframes done-pop {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: none; }
}
@keyframes done-rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .done-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .done-mark, .done-card h2, .done-card p, .done-actions { animation: none; }
}

/* ============================================================
   HOME PAGE SYSTEM
   Three patterns carry the whole page:
     1. .h-duo    - two-tone heading, bright lead clause + muted rest
     2. .gcard    - gradient hairline border, lit from the top edge
     3. .sec      - one rhythm, separated by hairlines not by alternating
                    background colours (which read as stripes)
   ============================================================ */

.sec {
  padding: 92px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.sec:last-of-type { border-bottom: none; }
.sec-tight { padding: 64px 0; }

/* Two-tone heading. Put the important clause in <b>. */
.h-duo {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.1vw, 2.45rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 780px;
}
/* Same weight as the rest of the line - colour alone carries the
   emphasis, matching .page-hero h1 b. */
.h-duo b { color: var(--ink); font-weight: 600; }
.sec-head { margin-bottom: 40px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.center .h-duo { margin-left: auto; margin-right: auto; }
.sec-head p {
  color: var(--muted); font-size: 1rem; line-height: 1.65;
  max-width: 620px; margin: 0;
}
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* Gradient hairline card. The 1px outer gradient reads as a light
   source above the card, which is most of the "expensive" look. */
.gcard {
  position: relative;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.028));
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.3s ease;
  display: block;
  color: var(--ink);
}
.gcard:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--ink);
}
.gcard-in {
  border-radius: 13px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  height: 100%;
  padding: 26px 26px 28px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Bento grid: 12 columns, cards claim different widths so the page
   does not read as a uniform tile wall. */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento > * { grid-column: span 12; }
@media (min-width: 680px) {
  .bento > *      { grid-column: span 6; }
  .bento .b-wide  { grid-column: span 12; }
}
@media (min-width: 1040px) {
  .bento .b-4    { grid-column: span 4; }
  .bento .b-6    { grid-column: span 6; }
  .bento .b-8    { grid-column: span 8; }
  .bento .b-wide { grid-column: span 12; }
}

.gcard h3 {
  font-size: 1.06rem; margin: 0 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.gcard p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.gcard .g-icon {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line-accent);
  color: var(--accent);
}
.gcard .g-icon svg { width: 17px; height: 17px; }

/* A card that leads with a picture. */
.gcard-media {
  margin: -26px -26px 20px;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gcard:hover .gcard-media img { transform: scale(1.04); }

/* Small stat row used under headings. */
.fact-row {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 34px;
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1;
  letter-spacing: -0.02em;
}
.fact span { font-size: 0.82rem; color: var(--muted-2); }

/* ---------- Showcase: tabbed autoplay demos ---------- */

.showcase-section { padding: 0 0 92px; border-bottom: 1px solid var(--line-soft); }

.show-tabs {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 9px;
  margin-bottom: 26px;
}
.show-tab {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 30px;
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.show-tab:hover { color: var(--ink-dim); border-color: var(--line); transform: translateY(-1px); }
/* Active tab is neutral, not accent: a lifted white fill with a white
   outline. Keeps the green reserved for actions rather than state. */
.show-tab.on {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
  color: #fff;
}

/* The media is the point. No side column competing with it - just a
   large panel sat on a gradient hairline, exactly like the reference. */
.show-stage {
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
}

.show-media {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-2);
}
.show-slot { aspect-ratio: 16 / 9; }
.show-slot video,
.show-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  animation: show-in 0.5s ease both;
}
/* A tab whose clip does not exist yet shows its still instead. */
.show-slot.is-still img { object-fit: cover; }

@keyframes show-in {
  from { opacity: 0; transform: scale(1.012); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  /* Scaled to match the desktop bump rather than adding a flat 50px -
     vertical space is scarcer on a phone. */
  .hero-lite { padding: calc(var(--nav-h) + 94px) 0 52px; }
  /* Stack: headline, explanation, then buttons - so the copy still reads
     before the call to action on a phone. */
  .hero-stage { grid-template-columns: 1fr; gap: 18px; }
  .hero-line { padding-top: 0; max-width: 620px; order: 2; }
  .hero-copy { display: contents; }
  .hero-head { order: 1; }
  .hero-act { order: 3; margin-top: 8px; }
  .sec { padding: 64px 0; }
  .fact-row { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .show-slot video, .show-slot img, .show-copy h3, .show-copy p { animation: none; }
}

/* The only texture in the hero now that the glow is gone: a faint grid,
   evenly present rather than pooled, so it reads as paper rather than as
   a light source. */
/* Runs 300px past the bottom of the hero and fades from 40% down, so the
   dissolve happens over a much taller area than the section itself and
   never reads as a hard edge where the hero ends. */
.hero-grid {
  position: absolute; inset: 0 0 -300px 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.0195) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.0195) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}

.hero-copy { min-width: 0; }

/* Sized so "Your entire interface." holds one line in the left column.
   Going much above 2.85rem wraps it at the container's max width. */
.hero-head {
  font-size: clamp(1.9rem, 3.9vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-head .grad {
  background: linear-gradient(100deg, var(--accent-bright) 0%, var(--accent) 52%, #0a9e77 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Nudged down so its first line sits optically with the headline rather
   than flush to its cap height. */
.hero-line {
  margin: 0;
  padding-top: 12px;
  max-width: 460px;
  font-size: clamp(0.96rem, 1.35vw, 1.05rem);
  color: var(--muted);
  line-height: 1.7;
}

.hero-act {
  margin-top: 32px;
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
}

/* Staggered entrance - each element carries its own --d delay. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-lite .rise {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}

@media (max-width: 640px) {
  .hero-act { gap: 10px; }
  .hero-act .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lite .rise { animation: none; }
}

/* ---------- Background flourishes ---------- */

.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
}


/* .hero-ctas survives the old hero: the download CTA band still uses it. */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

/* ---------- Feature grid ---------- */






/* ---------- Split feature section ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.split-media img { width: 100%; }

.split-copy .eyebrow { margin-bottom: 10px; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { color: var(--muted); font-size: 1.03rem; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-dim); font-size: 0.98rem; }
.check-list li b { color: var(--ink); }
.check-list .chk {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
}
.check-list .chk svg { width: 12px; height: 12px; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative; cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
  aspect-ratio: 16 / 9;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(17, 17, 17, 0.72); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); opacity: 0; transition: opacity 0.2s ease;
}
.gallery-item:hover .zoom { opacity: 1; }
.gallery-item .zoom svg { width: 16px; height: 16px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30, 30, 33, 0.85); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox-btn:hover { background: var(--panel-3); border-color: var(--accent); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close { top: 22px; right: 22px; transform: none; }

/* ---------- Video cards ---------- */

.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.videos-grid.guides { grid-template-columns: repeat(3, 1fr); }

.video-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--line); }

.video-thumb {
  position: relative; cursor: pointer; aspect-ratio: 16 / 9;
  background: #000; overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s, transform 0.3s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.03); }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(12, 210, 157, 0.92);
  display: flex; align-items: center; justify-content: center;
  color: #04120d;
  box-shadow: 0 0 0 8px rgba(12, 210, 157, 0.2), 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  pointer-events: none;
}
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 12px rgba(12, 210, 157, 0.16), 0 8px 30px rgba(0, 0, 0, 0.5); }
.video-play svg { width: 24px; height: 24px; margin-left: 3px; }

.video-meta { padding: 16px 18px 18px; }
.video-tag {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.video-meta h3 { font-size: 1.02rem; margin: 0; }

/* ---------- Preset cards ---------- */

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.preset-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  color: var(--ink);
}
.preset-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--ink);
}

.preset-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--panel-3), var(--panel));
}
.preset-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.preset-card:hover .preset-cover img { transform: scale(1.05); }
.preset-cover .cover-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.preset-cover .cover-fallback img {
  width: 74px; height: 74px; object-fit: contain;
  opacity: 0.3; filter: drop-shadow(0 0 20px rgba(12, 210, 157, 0.2));
}

.preset-body { padding: 16px 18px 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.preset-body h3 {
  font-size: 1.03rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}
/* Role chips and tag chips are one neutral style. */
.chip.role-chip { color: var(--ink-dim); }
.chip.tag-chip { color: var(--ink-dim); }
.chip.demo-chip { color: var(--warn); border-color: rgba(255, 207, 92, 0.4); }

.preset-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.83rem; color: var(--muted);
}
.preset-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.preset-author img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.preset-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-foot .counts { margin-left: auto; display: flex; gap: 12px; align-items: center; flex: none; }
.preset-foot .counts span { display: inline-flex; align-items: center; gap: 5px; }
.preset-foot .counts svg { width: 14px; height: 14px; }
.preset-foot .liked { color: var(--accent); }

/* ---------- Filter bar ---------- */

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 30px;
  align-items: center;
}

.input, .select, textarea.input {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 210, 157, 0.14);
}
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393aaa1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.select option { background: var(--panel-2); color: var(--ink); }

.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap .input { width: 100%; padding-left: 42px; }
.search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted-2); pointer-events: none;
}

/* ---------- Preset detail ---------- */

.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px; align-items: start;
}

.detail-main { min-width: 0; }

.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background: #000;
}
.detail-cover img { width: 100%; max-height: 560px; object-fit: contain; background: #11111120; }

.detail-thumbs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.detail-thumbs button {
  width: 108px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: var(--panel); cursor: pointer; padding: 0;
  opacity: 0.65; transition: opacity 0.15s, border-color 0.15s;
}
.detail-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs button.active, .detail-thumbs button:hover { opacity: 1; border-color: var(--accent); }

.side-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.side-card h3 { font-size: 0.95rem; margin-bottom: 14px; color: var(--ink-dim); }

.export-box {
  position: relative;
  background: #141416;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  max-height: 130px; overflow: hidden;
  word-break: break-all;
  line-height: 1.5;
}
.export-box::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(transparent, #141416);
}

.like-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-dim);
  border-radius: 999px; padding: 10px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.like-btn svg { width: 18px; height: 18px; }
.like-btn:hover { border-color: var(--accent); color: #fff; }
.like-btn.liked { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- Comments ---------- */

.comment-form { display: flex; gap: 14px; margin-bottom: 28px; }
.comment-form img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.comment-form .cf-main { flex: 1; }
.comment-form textarea { width: 100%; min-height: 84px; resize: vertical; }
.comment-form .cf-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.comment {
  display: flex; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment:last-child { border-bottom: none; }
.comment > img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment-head b { font-size: 0.94rem; }
.comment-head time { font-size: 0.78rem; color: var(--muted-2); }
.comment-head .mod-badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-accent);
  padding: 1px 7px; border-radius: 999px;
}
.comment-body { color: var(--ink-dim); font-size: 0.95rem; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment-actions { margin-top: 7px; display: flex; gap: 14px; }
.comment-actions button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted-2); font-size: 0.78rem; font-weight: 600; font-family: var(--font-body);
}
.comment-actions button:hover { color: var(--danger); }

/* ---------- Forms (submit page) ---------- */

.form-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 780px;
}

.form-row { margin-bottom: 22px; }
.form-row label.frm-label {
  display: block; font-family: var(--font-display);
  font-weight: 600; font-size: 0.9rem; margin-bottom: 8px;
}
.form-row .hint { font-size: 0.8rem; color: var(--muted-2); margin-top: 6px; }
.form-row .req { color: var(--accent); }
.form-row .input, .form-row .select, .form-row textarea { width: 100%; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-picker button {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  color: var(--muted); border-radius: 999px; padding: 7px 16px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s ease;
}
.tag-picker button:hover { border-color: var(--line-strong); color: var(--ink); }
.tag-picker button.on {
  background: rgba(255, 255, 255, 0.10); border-color: #fff; color: #fff;
}

.img-drop {
  border: 2px dashed var(--line-soft);
  border-radius: var(--radius);
  padding: 30px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}
.img-drop:hover, .img-drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.img-drop svg { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 10px; display: block; }

.img-previews { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.img-preview {
  position: relative; width: 150px; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview button {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(17, 17, 17, 0.85); border: 1px solid var(--line-soft);
  color: var(--danger); cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- News ---------- */

.news-filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }

/* Each entry is a card on a gradient hairline, matching the module cards
   on the home page. The old treatment was a borderless two-column row
   separated by rules, which read as a changelog dump rather than a page. */
.news-list { display: flex; flex-direction: column; gap: 14px; }

.news-item {
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.028));
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.3s ease;
}
.news-item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}
.news-inner {
  border-radius: 13px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 24px 26px 26px;
}

/* Date and category sit on one line above the headline instead of in a
   fixed 150px gutter, which was wasting a sixth of the width on phones. */
.news-date {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 0.82rem;
  margin-bottom: 10px;
}
.news-date .cat {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-dim);
}
.news-content h3 { font-size: 1.18rem; margin-bottom: 8px; }
.news-content .news-body { color: var(--muted); font-size: 0.97rem; }
.news-content .news-body ul { margin: 10px 0 0; padding-left: 20px; }
.news-content .news-body li { margin-bottom: 5px; }
.news-content .news-body b { color: var(--ink-dim); }
.news-video { margin-top: 16px; max-width: 560px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 260px at 50% -80px, rgba(12, 210, 157, 0.08), transparent 65%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 66px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Support strip ---------- */


/* ---------- Notices / banners ---------- */

.notice {
  display: flex; gap: 13px; align-items: flex-start;
  background: rgba(255, 207, 92, 0.06);
  border: 1px solid rgba(255, 207, 92, 0.3);
  border-radius: var(--radius);
  padding: 15px 18px;
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.notice svg { width: 19px; height: 19px; flex: none; color: var(--warn); margin-top: 2px; }
.notice.accent {
  background: var(--accent-soft);
  border-color: var(--line-accent);
}
.notice.accent svg { color: var(--accent); }
.notice b { color: var(--ink); }
.notice p { margin: 0; }

.empty-state {
  text-align: center; padding: 70px 20px; color: var(--muted);
}
.empty-state img { width: 64px; margin: 0 auto 18px; opacity: 0.4; }
.empty-state h3 { color: var(--ink-dim); }

.load-more-wrap { text-align: center; margin-top: 36px; }

/* ---------- Toast ---------- */

.toast-host {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.92rem; font-weight: 500;
  box-shadow: var(--shadow-1);
  animation: toast-in 0.25s ease;
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.err { border-color: rgba(255, 92, 108, 0.55); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(9, 9, 9, 0.8);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  width: 100%; max-width: 440px;
  padding: 28px;
  animation: toast-in 0.2s ease;
}
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--muted); font-size: 0.95rem; }
.modal textarea { width: 100%; min-height: 80px; margin-top: 6px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-1);
  padding: 64px 0 34px;
  margin-top: 90px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 44px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 300px; }

.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: var(--muted); font-size: 0.92rem;
  padding: 5px 0; transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  color: var(--muted-2); font-size: 0.8rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.15s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--line-strong); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Skeletons ---------- */

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel-3) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--line-soft);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 320px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
}

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .videos-grid, .videos-grid.guides { grid-template-columns: 1fr 1fr; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 18px; gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 14px; font-size: 1rem; border-radius: 8px; }
  /* Stacked rows get a fill so the whole row responds, not just the text. */
  .nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, 0.05); }
  .nav-links a.active { color: var(--accent); }
  .nav-burger { display: flex; }
  .nav-actions .btn { display: none; }

  .section { padding: 60px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .videos-grid, .videos-grid.guides { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .form-2col { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 22px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}


/* ============================================================
   STAFF TOOLS  (staff.html)
   Moderation queue. Same design language as the public site:
   dark panels, accent hairlines, quiet motion.
   ============================================================ */

/* ---------- Access gates ---------- */

.staff-gate { max-width: 620px; margin: 0 auto; }
.staff-gate .notice { margin-bottom: 0; }

/* ---------- Stat tiles ---------- */

.staff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.stat-tile {
  position: relative;
  display: flex; align-items: center; gap: 15px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.stat-tile:hover { border-color: var(--line); transform: translateY(-2px); }

.stat-tile .st-icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.stat-tile .st-icon svg { width: 19px; height: 19px; }

.stat-tile .st-num {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-tile .st-label {
  font-size: 0.78rem; color: var(--muted-2);
  margin-top: 5px; letter-spacing: 0.02em;
}

/* A tile with work waiting lights up. */
.stat-tile.live { border-color: var(--line-accent); }
.stat-tile.live .st-icon {
  background: var(--accent-soft);
  border-color: var(--line-accent);
  color: var(--accent);
}
.stat-tile.live .st-num { color: var(--accent); }
.stat-tile.live::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120px 60px at 12% 0%, rgba(12, 210, 157, 0.10), transparent 70%);
  pointer-events: none;
}

/* ---------- Segmented tab control ---------- */

.seg-wrap { display: flex; justify-content: center; margin-bottom: 26px; }

.seg {
  position: relative;
  display: inline-flex;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }

/* Sliding indicator - position comes from JS as --seg-x / --seg-w. */
.seg::before {
  content: "";
  position: absolute;
  top: 5px; bottom: 5px;
  left: var(--seg-x, 5px);
  width: var(--seg-w, 0);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid #fff;
  box-shadow: none;
  transition: left 0.36s cubic-bezier(0.22, 1, 0.36, 1), width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.seg.no-anim::before { transition: none; }

.seg button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color 0.22s ease;
}
.seg button:hover { color: var(--ink-dim); }
.seg button.on { color: #fff; }

.seg .seg-count {
  font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px; padding: 1px 7px;
  color: var(--muted-2);
  transition: background 0.22s ease, color 0.22s ease;
}
.seg button.on .seg-count { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Report card ---------- */

.report-list { display: flex; flex-direction: column; gap: 14px; }

.report-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px 16px 24px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.report-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* Type stripe down the left edge. */
.report-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.75;
}
.report-card.t-comment::before { background: #5cb8ff; }
.report-card.is-hidden::before { background: var(--muted-2); }
.report-card.is-hidden { background: var(--bg-1); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Leaving: collapse + slide out. JS pins max-height first. */
.report-card.leaving {
  animation: none;
  overflow: hidden;
  opacity: 0;
  transform: translateX(24px);
  max-height: 0 !important;
  margin-bottom: -14px;
  padding-top: 0; padding-bottom: 0;
  border-color: transparent;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.38s ease 0.06s,
              padding 0.38s ease 0.06s, margin 0.38s ease 0.06s, border-color 0.3s ease;
}

/* Head row */
.report-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 13px;
}
.rep-type {
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-accent);
  color: var(--accent); background: var(--accent-soft);
}
.rep-type.t-comment {
  color: #5cb8ff; background: rgba(92, 184, 255, 0.10); border-color: rgba(92, 184, 255, 0.35);
}
.rep-flag {
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 207, 92, 0.10);
  border: 1px solid rgba(255, 207, 92, 0.32);
  color: var(--warn);
}
.rep-flag.hid {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-soft);
  color: var(--muted-2);
}
.report-head time { margin-left: auto; font-size: 0.76rem; color: var(--muted-2); }

/* Target: thumbnail + title/body */
.report-target { display: flex; gap: 14px; align-items: flex-start; }

.rep-thumb {
  width: 84px; height: 56px; flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
}
.rep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-thumb .ph { width: 26px; opacity: 0.25; }

.rep-title {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.rep-gone { color: var(--muted-2); font-style: italic; font-size: 0.92rem; }

.rep-quote {
  display: block;
  color: var(--ink-dim); font-size: 0.93rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  max-height: 5.2em; overflow: hidden;
}

.report-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 10px;
  font-size: 0.79rem; color: var(--muted-2);
}
.rep-person {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-dim); font-weight: 600;
}
.rep-person img { width: 19px; height: 19px; border-radius: 50%; }
.rep-person .mod-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-accent);
  padding: 0 6px; border-radius: 999px;
}

/* Reason quote block */
.report-reason {
  position: relative;
  margin-top: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line-accent);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--ink-dim);
  font-size: 0.88rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.report-reason.empty { color: var(--muted-2); font-style: italic; }

/* Actions */
.report-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 15px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.report-actions .ra-right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.report-actions .ra-left  { display: flex; gap: 10px; flex-wrap: wrap; }

/* Quiet neutral button for secondary staff actions. */
.btn-quiet {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-soft);
  color: var(--ink-dim);
}
.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--ink);
}

/* ---------- Team management (owners only) ---------- */

.team-tools { margin-bottom: 18px; }
.team-tools .search-wrap { width: 100%; }

.team-section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
  margin: 24px 0 12px;
}
.team-section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line-soft);
}
.team-section-label:first-child { margin-top: 0; }

.user-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 9px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.user-row:hover { border-color: var(--line); transform: translateY(-1px); }
.user-row.is-mod { border-color: var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }

.user-row > img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.user-row .ur-main { flex: 1; min-width: 0; }
.user-row .ur-name {
  font-weight: 600; color: var(--ink); font-size: 0.94rem;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.user-row .ur-sub { font-size: 0.76rem; color: var(--muted-2); margin-top: 3px; }
.user-row .ur-you {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warn); border: 1px solid rgba(255, 207, 92, 0.32);
  padding: 0 6px; border-radius: 999px;
}

/* Toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input {
  position: absolute; inset: 0; opacity: 0; margin: 0;
  width: 100%; height: 100%; cursor: pointer; z-index: 2;
}
.switch .track {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.switch .knob {
  position: absolute; top: 4px; left: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted-2);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
  pointer-events: none;
}
.switch input:checked ~ .track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked ~ .knob { transform: translateX(20px); background: var(--accent); }
.switch input:focus-visible ~ .track { box-shadow: 0 0 0 3px rgba(12, 210, 157, 0.22); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled ~ .track { opacity: 0.4; }
.switch input:disabled ~ .knob { opacity: 0.4; }

/* Owner bootstrap hint on the "not on the team" gate */
.id-reveal {
  margin-top: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.id-reveal .idr-label {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 8px;
}
.id-reveal .idr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.id-reveal code {
  flex: 1; min-width: 160px;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent);
  background: none; word-break: break-all;
}

/* ---------- Triage: toolbar ---------- */

.staff-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.staff-toolbar .search-wrap { flex: 1; min-width: 200px; }
.staff-toolbar .select, .staff-toolbar .input { padding: 9px 14px; font-size: 0.86rem; }
.staff-toolbar .select { padding-right: 34px; }

/* Small pill filters (status chips) */
.chip-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-filters button {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  color: var(--muted); border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chip-filters button:hover { color: var(--ink-dim); border-color: var(--line); }
.chip-filters button.on {
  background: rgba(255, 255, 255, 0.10); border-color: #fff; color: #fff;
}

/* ---------- Triage: severity ---------- */

.sev {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.sev-critical { color: #ff5c6c; background: rgba(255, 92, 108, 0.10); }
.sev-high     { color: #ff9f45; background: rgba(255, 159, 69, 0.10); }
.sev-medium   { color: #ffcf5c; background: rgba(255, 207, 92, 0.10); }
.sev-low      { color: var(--muted-2); background: rgba(255, 255, 255, 0.04); }

/* A manual override is worth seeing at a glance. */
.sev-manual {
  display: inline-flex; align-items: center; gap: 5px;
}
.sev-manual::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.85;
}

.dup-count {
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--ink-dim);
}

.mod-tag {
  font-size: 0.68rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(92, 184, 255, 0.09);
  border: 1px solid rgba(92, 184, 255, 0.28);
  color: #5cb8ff;
}
.mod-tag.none {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-soft); color: var(--muted-2);
  border-style: dashed;
}

/* Left stripe reflects severity so a wall of bugs is scannable. */
.report-card.sv-critical::before { background: #ff5c6c; }
.report-card.sv-high::before     { background: #ff9f45; }
.report-card.sv-medium::before   { background: #ffcf5c; }
.report-card.sv-low::before      { background: var(--muted-2); opacity: 0.5; }
.report-card.pinned { border-color: var(--line); }

.ticket-title {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
  line-height: 1.35; word-break: break-word;
  margin-bottom: 6px;
}
.ticket-body {
  color: var(--muted); font-size: 0.88rem; line-height: 1.55;
  max-height: 3.2em; overflow: hidden;
  margin-top: 8px;
}
.ticket-note {
  margin-top: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line-accent);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--ink-dim); font-size: 0.84rem;
}

/* Inline selects inside a ticket's action row */
.ticket-controls {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.ticket-controls .select {
  padding: 7px 30px 7px 12px; font-size: 0.8rem;
  background-color: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  font-family: var(--font-body);
}
.ticket-controls .select:hover { border-color: var(--line); color: var(--ink); }

/* ---------- Triage: duplicate suggestions ---------- */

.dup-suggest {
  margin-top: 12px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.012);
}
.dup-suggest-head {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 9px;
}
.dup-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; color: var(--ink-dim);
}
.dup-row:first-of-type { border-top: none; }
.dup-row .dup-sim {
  font-size: 0.7rem; font-weight: 700; color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px; padding: 2px 8px; flex: none;
}
.dup-row .dup-name { flex: 1; min-width: 0; word-break: break-word; }

/* ---------- Triage: feature rows (ranked by reactions) ---------- */

.feat-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 15px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.feat-row:hover { border-color: var(--line); transform: translateY(-2px); }

.feat-score {
  flex: none; width: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}
.feat-score .fs-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); line-height: 1;
}
.feat-score .fs-lbl {
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2);
}
/* The most-wanted few earn the accent. */
.feat-row.top .feat-score {
  background: var(--accent-soft); border-color: var(--line-accent);
}
.feat-row.top .feat-score .fs-num { color: var(--accent); }

.feat-main { flex: 1; min-width: 0; }
.feat-main .ticket-title { margin-bottom: 4px; font-size: 0.98rem; }
.feat-meta { font-size: 0.78rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }

.status-pill {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill.done     { color: var(--accent); background: var(--accent-soft); border-color: var(--line-accent); }
.status-pill.progress { color: #5cb8ff; background: rgba(92, 184, 255, 0.10); border-color: rgba(92, 184, 255, 0.3); }
.status-pill.dead     { color: var(--muted-2); border-style: dashed; }

@media (max-width: 720px) {
  .feat-row { gap: 13px; padding: 13px 15px; }
  .feat-score { width: 52px; }
  .ticket-controls { width: 100%; }
  .ticket-controls .select { flex: 1; }
}

/* ---------- Skeletons ---------- */

.report-skeleton {
  height: 168px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel-3) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--line-soft);
}

/* ---------- Designed empty state ---------- */

.staff-empty {
  text-align: center;
  padding: 66px 24px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.012);
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.staff-empty .se-ring {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line-accent);
  color: var(--accent);
}
.staff-empty .se-ring svg { width: 26px; height: 26px; }
.staff-empty h3 { font-size: 1.05rem; color: var(--ink-dim); margin-bottom: 6px; }
.staff-empty p { font-size: 0.9rem; color: var(--muted-2); margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .staff-stats { grid-template-columns: 1fr; gap: 10px; }
  .stat-tile { padding: 15px 17px; }
  .seg-wrap { justify-content: flex-start; }
  .report-card { padding: 16px 16px 14px 20px; }
  .rep-thumb { width: 64px; height: 44px; }
  .report-actions .ra-right { margin-left: 0; width: 100%; }
  .report-actions .ra-left { width: 100%; }
  .report-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .report-card, .staff-empty { animation: none; }
  .report-card.leaving { transition: opacity 0.2s ease; }
  .seg::before { transition: none; }
}


/* ============================================================
   FLOATING DISCORD BUTTON
   Lifted verbatim from wingsisup.com so both sites carry the same
   affordance in the same place. The brand green there is already
   #0cd29d, so it matches this site's accent with no adjustment.
   ============================================================ */

.fab-wrap {
  position: fixed;
  right: 20px; bottom: 20px;
  padding-top: 15px;
  margin-bottom: 0;
  z-index: 997;
  box-shadow: rgba(0, 0, 0, 0.4) 0 16px 15px -10px, rgba(0, 0, 0, 0.5) 0 8px 5px -10px;
  border-radius: 100%;
}
.fab-wrap .fab {
  display: inline-block;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  vertical-align: middle;
  width: 56px; height: 56px;
  padding: 0;
  line-height: 54px;
  font-size: 15px;
  border-radius: 100%;
  background-color: #0cd29d;
  transition: background-color 0.3s;
}
.fab-wrap .fab img { width: 56px; height: 56px; display: block; }


/* ============================================================
   GUIDES GALLERY
   Each card is a fake player: a high-resolution still with a play
   button, swapped for the real YouTube embed only on click. Styling
   the still like a player is what keeps the page sharp - YouTube's
   own thumbnails top out near 720p and arrive re-compressed.
   ============================================================ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.guide-card {
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.028));
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.3s ease;
}
.guide-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.guide-inner {
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.guide-media { position: relative; }
/* The still fills a true 16:9 box, so a 1920x1080 export lands
   pixel-for-pixel on a wide display with no letterboxing. */
.guide-media .video-thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.guide-media .video-thumb img { opacity: 1; }
.guide-card:hover .video-thumb img { transform: scale(1.03); }

.guide-meta { padding: 16px 20px 20px; }
.guide-meta h3 { font-size: 1.02rem; margin: 0 0 5px; }
.guide-meta p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

@media (max-width: 560px) {
  .guide-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   DOWNLOAD PAGE
   Three routes, equal weight, with the two that self-update marked so
   the choice is obvious without hiding the manual option.
   ============================================================ */

.dl-grid { margin-bottom: 76px; }

.dl-card .gcard-in { position: relative; padding-top: 30px; }
.dl-card .dl-icon { width: 42px; height: 42px; margin-bottom: 16px; }
.dl-card .dl-icon svg { width: 20px; height: 20px; }
.dl-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.dl-card p { flex: 1; margin-bottom: 18px; }

/* Neutral by default; the accent is earned by the recommended routes. */
.dl-card .dl-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-soft);
  color: var(--muted);
}
.dl-card.featured .dl-icon {
  background: var(--accent-soft);
  border-color: var(--line-accent);
  color: var(--accent);
}

.dl-badge {
  position: absolute; top: 0; right: 0;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px;
  border-bottom-left-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
}
.dl-card.featured .dl-badge { background: var(--accent-soft); color: var(--accent); }

.dl-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--ink-dim);
  margin-top: auto;
}
.dl-cta svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.dl-card:hover .dl-cta { color: var(--ink); }
.dl-card:hover .dl-cta svg { transform: translateX(4px); }
/* The unavailable card is a statement, not a button. */
.dl-card:not(.featured):not([href]) .dl-cta { color: var(--muted-2); }
.dl-card:not([href]) { cursor: default; }
.dl-card:not([href]):hover { transform: none; box-shadow: none; }

/* ---- What happens next ---- */

.dl-steps { max-width: 720px; }
.dl-list {
  list-style: none; counter-reset: dl; padding: 0; margin: 32px 0 0;
  display: grid; gap: 20px;
}
.dl-list li {
  counter-increment: dl;
  position: relative; padding-left: 46px;
  color: var(--muted); font-size: 0.97rem; line-height: 1.65;
}
.dl-list li::before {
  content: counter(dl);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  color: var(--ink-dim);
}
.dl-list li b { color: var(--ink); font-weight: 600; }
.dl-list code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 6px; color: var(--ink-dim);
  word-break: break-all;
}
.dl-after { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

@media (max-width: 560px) {
  .dl-after .btn { width: 100%; }
}
