/* ==========================================================================
   MrK Wardogs
   Palette is sampled straight from the emblem: hue 268, near-full saturation,
   sitting on near-black. Layout is a single 1200px shell with full-bleed
   section backgrounds.
   Contents: 1 tokens - 2 base - 3 layout - 4 buttons - 5 header - 6 hero
             7 page head - 8 servers - 9 rules - 10 donate - 11 media
             12 cta - 13 footer - 14 lightbox - 15 motion
   ========================================================================== */

/* 1 -------------------------------------------------------------- tokens */
:root {
  --violet: #8a02ff;
  --violet-hi: #a855ff;
  --violet-soft: #c3a0ff;
  --violet-mid: #6402ca;
  --violet-deep: #4e02a6;
  --violet-ink: #200045;

  --bg: #07060a;
  --bg-alt: #0a0810;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(168, 85, 247, 0.16);
  --line-strong: rgba(168, 85, 247, 0.38);

  --text: #eeebf5;
  --muted: #a8a2b8;
  --muted-dim: #7d7790;

  --grad: linear-gradient(135deg, var(--violet) 0%, var(--violet-mid) 100%);
  --grad-hi: linear-gradient(135deg, #9d2bff 0%, #7a12e0 100%);
  --glow: 0 0 34px rgba(138, 2, 255, 0.34);

  --font-display: 'Chakra Petch', 'Segoe UI Semibold', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 72px;

  --notch: 11px;
  --cut: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)),
                 calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));

  /* One set of curves for the whole site, so nothing moves in a way that
     feels like it belongs to a different page. */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);        /* general purpose */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* entrances - fast then settle */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* slight overshoot */
  --t-fast: 0.16s;
  --t-mid: 0.28s;
  --t-slow: 0.55s;
}

/* Cross-page transitions. Chromium honours this today; everywhere else the
   navigation is simply instant, as it was before. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 0.22s var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-in 0.34s var(--ease-out) both;
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* The header is the one thing that should not slide between pages. */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* The closed mobile nav drawer is position: fixed, parked one viewport to
     the right. `overflow-x: hidden` on body does not clip a fixed element,
     so the page grows a phantom second screen of scroll width - harmless in
     Chromium, a real sideways scroll on iOS Safari. `clip` on the root does
     clip it, and unlike `hidden` it does not make html a scroll container,
     so smooth scrolling and scroll-padding still work. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll, body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-soft); text-decoration: none; }
a:hover { color: #ddc7ff; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* Native <select> menus. The open list is drawn by the browser from the
   colour scheme, not from the select's own styling, so without this it
   comes up white on a dark page. Solid colours on purpose: a translucent
   token over the browser's own popup background looks wrong. */
:root { color-scheme: dark; }
select { color-scheme: dark; }
option, optgroup { background: #100c18; color: var(--text); }

svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

::selection { background: var(--violet); color: #fff; }

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--violet-soft);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -110%);
  z-index: 200;
  padding: 0.7rem 1.4rem;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  padding: 1rem var(--gutter);
  background: var(--violet-deep);
  color: #fff;
  text-align: center;
}

/* 3 -------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: 820px; }

.section { position: relative; padding-block: var(--section-y); }

.section-alt { background: var(--bg-alt); }
.section-alt::before,
.section-alt::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); text-transform: uppercase; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad);
}

.muted-note {
  margin-top: 1.6rem;
  color: var(--muted-dim);
  font-size: 0.88rem;
}

/* Shared card surface. */
.card-base {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background:
    linear-gradient(160deg, var(--surface-2), var(--surface) 55%),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease);
}
/* Corner bracket that lights up on hover - the angular accent, no clip-path. */
.card-base::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
  opacity: 0.45;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.card-base:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -28px rgba(138, 2, 255, 0.9);
}
.card-base:hover::after { opacity: 1; width: 38px; height: 38px; }

/* 4 ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  clip-path: var(--cut);
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--grad-hi); color: #fff; box-shadow: 0 0 44px rgba(138, 2, 255, 0.55); }

.btn-ghost {
  background: rgba(138, 2, 255, 0.07);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(138, 2, 255, 0.16);
  border-color: var(--violet);
  color: #fff;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

.btn.is-unset { opacity: 0.62; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.text-link svg { transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* 5 -------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 6, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), backdrop-filter var(--t-mid) var(--ease);
}
.site-header.is-stuck {
  background: rgba(7, 6, 10, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 0 12px rgba(138, 2, 255, 0.55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; align-items: center; gap: 1.4rem; }
.nav-list a {
  position: relative;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* 6 ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92svh, 900px);
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(5rem, 10vw, 7rem);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
  overflow: hidden;
  text-align: center;
}
/* The banner art is blurred and scaled up so its own emblem dissolves into a
   soft glow instead of ghosting through behind the hero type. */
.hero-bg {
  position: absolute;
  inset: -6%;
  background: url('../img/banner.jpg') center / cover no-repeat;
  filter: blur(26px) saturate(1.25);
  opacity: 0.55;
  transform: scale(1.12);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 46% at 50% 44%, rgba(7, 6, 10, 0.72), transparent 72%),
    radial-gradient(62% 58% at 50% 42%, rgba(138, 2, 255, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.68) 0%, rgba(7, 6, 10, 0.34) 38%, var(--bg) 96%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 78%);
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: clamp(120px, 17vw, 190px);
  height: auto;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  filter: drop-shadow(0 0 40px rgba(138, 2, 255, 0.6));
  animation: float 7s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.9rem, 11vw, 6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
.hero-title span {
  display: block;
  background: linear-gradient(180deg, #fff 8%, var(--violet-hi) 65%, var(--violet-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--violet-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 22px; height: 22px; }
.hero-scroll:hover { border-color: var(--violet); color: #fff; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* 7 ----------------------------------------------------------- page head
   The compact banner the three subpages use in place of the landing hero. */
.page-head {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head-bg {
  position: absolute;
  inset: -20% -6% auto -6%;
  height: 200%;
  background: url('../img/banner.jpg') center / cover no-repeat;
  filter: blur(34px) saturate(1.2);
  opacity: 0.4;
}
.page-head-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 30% 40%, rgba(138, 2, 255, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.7), var(--bg) 92%);
}
.page-head .shell { position: relative; }
.page-head h1 {
  font-size: clamp(2.3rem, 7vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.page-head h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 1.1rem;
  background: var(--grad);
}
/* The page head already gives the content air; a full section gap on top of
   it just leaves a hole. */
.page-head + .section { padding-top: clamp(2.25rem, 4.5vw, 3.5rem); }

/* 8 ------------------------------------------------------------- servers */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}

.server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background:
    linear-gradient(160deg, rgba(138, 2, 255, 0.09), rgba(255, 255, 255, 0.02) 60%),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease);
}
.server-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.server-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -30px rgba(138, 2, 255, 0.95);
}

.server-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.region-flag { font-size: 1rem; line-height: 1; }
/* Drawn rather than emoji: Windows has no glyph for a flag emoji and
   renders the two letters instead. 2:1 is the shape of both flags. */
.region-flag-svg {
  width: 20px;
  height: 10px;
  display: block;
  flex: 0 0 auto;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill[data-status='online'] { color: #46e08a; }
.status-pill[data-status='online'] .status-dot { box-shadow: 0 0 0 0 rgba(70, 224, 138, 0.6); animation: pulse 2.2s infinite; }
.status-pill[data-status='maintenance'] { color: #f5b53d; }
.status-pill[data-status='offline'] { color: #ef5f6b; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(70, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 224, 138, 0); }
}

.server-name {
  margin: 1.1rem 0 0.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  text-transform: uppercase;
}
.server-note { color: var(--muted); font-size: 0.95rem; }

/* ---- live population ---- */
.pop {
  margin-top: 1.2rem;
  padding: 0.95rem 1.1rem;
  background: rgba(138, 2, 255, 0.09);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  animation: pop-in var(--t-mid) var(--ease-out) both;
}
.pop[hidden] { display: none; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.pop-top { display: flex; align-items: baseline; gap: 0.5rem; }
.pop-count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  /* Digits must not jitter as the count animates. */
  font-variant-numeric: tabular-nums;
}
.pop-sep, .pop-max { color: var(--muted); }
.pop-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.pop-bar {
  height: 5px;
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.pop-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(138, 2, 255, 0.7);
  transition: width var(--t-slow) var(--ease-out), background var(--t-mid) var(--ease);
}
.pop.is-full .pop-fill { background: linear-gradient(135deg, #f5b53d, #d98410); }
.pop-map {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.pop-map[hidden] { display: none; }

.server-connect { margin-top: auto; display: grid; gap: 0.9rem; }
.connect-label {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(138, 2, 255, 0.1);
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.94rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.copy-btn svg { width: 17px; height: 17px; color: var(--violet-soft); }
.copy-btn:hover { background: rgba(138, 2, 255, 0.2); border-color: var(--violet); }
.copy-btn.is-copied {
  background: rgba(70, 224, 138, 0.14);
  border-color: #46e08a;
  border-style: solid;
  color: #8bf0b6;
}
.copy-btn.is-copied svg { color: #46e08a; }

/* 10 --------------------------------------------------------------- rules */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
}
.rule-card {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem 3.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.rule-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.rule-num {
  position: absolute;
  top: 1.35rem;
  left: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--violet-hi);
}
.rule-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.rule-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.62; }

.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
  padding: 1.25rem 1.4rem;
  background: rgba(138, 2, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: 3px;
}
.notice svg { width: 24px; height: 24px; margin-top: 2px; color: var(--violet-hi); }
.notice p { color: var(--muted); font-size: 0.95rem; }

/* 10b -------------------------------------------------------------- legal */
/* Terms and privacy: long-form reading, one narrow column. */
.legal-updated {
  margin-bottom: 0.9rem;
  color: var(--muted-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.legal .notice { margin-top: 1.5rem; }
.legal .notice p strong { color: var(--text); }
.legal-toc {
  margin: 2rem 0 0.5rem;
  padding: 1.1rem 1.3rem 1.1rem 2.6rem;
  list-style: decimal;
  columns: 2;
  column-gap: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.legal-toc li {
  break-inside: avoid;
  margin: 0.15rem 0;
  padding-left: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-dim);
}
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--text); }
.legal h2 {
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  text-transform: uppercase;
  scroll-margin-top: 6rem;
}
.legal h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
}
.legal p,
.legal li { color: var(--muted); font-size: 0.97rem; line-height: 1.72; }
.legal p strong,
.legal li strong { color: var(--text); font-weight: 600; }
.legal ul { margin: 0 0 1rem; }
.legal ul li { position: relative; margin: 0.4rem 0; padding-left: 1.4rem; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--violet-hi);
  transform: rotate(45deg);
}
.legal a:not(.btn) {
  text-decoration: underline;
  text-decoration-color: rgba(200, 160, 255, 0.35);
  text-underline-offset: 3px;
}
.legal a:not(.btn):hover { text-decoration-color: currentColor; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9rem; }
.legal th,
.legal td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}
.legal th {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal td:first-child { white-space: nowrap; }
.legal code {
  padding: 0.1em 0.4em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--violet-soft);
  background: rgba(138, 2, 255, 0.12);
  border-radius: 2px;
}
@media (max-width: 640px) {
  .legal-toc { columns: 1; }
  /* The table stacks: name, what it does, how long, one block per row. */
  .legal table { min-width: 0; }
  .legal thead { display: none; }
  .legal tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .legal td { display: block; padding: 0.15rem 0; border: 0; }
  .legal td:first-child { white-space: normal; padding-bottom: 0.35rem; }
  .legal td:last-child { color: var(--muted-dim); font-size: 0.85rem; }
}

/* 11 -------------------------------------------------------------- donate */
/* Ranks on the left, the chip-in panel beside them on the right. The panel
   sticks while the ranks scroll; on narrower screens it drops underneath. */
.donate-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.donate-side {
  position: sticky;
  top: 5.5rem;
}
.donate-side .donate-subhead { margin-top: 0; }
.donate-split .tier-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}
.donate-split .tier-card { padding: clamp(1.2rem, 1.8vw, 1.5rem); }
.donate-split .price-value { font-size: 2rem; }
@media (max-width: 1100px) {
  .donate-split { grid-template-columns: 1fr; }
  .donate-side { position: static; }
  .donate-split .tier-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
}
/* With the chip-in switched off, the ranks have the page to themselves. */
.donate-split.is-solo { grid-template-columns: 1fr; }
.donate-split.is-solo .tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
}
.donate-split.is-solo .tier-card { padding: clamp(1.6rem, 2.6vw, 2.1rem); }
.donate-split.is-solo .price-value { font-size: 2.5rem; }

.donate-subhead {
  margin: 1.75rem 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

/* ---- goal bar ---- */
.goal-card {
  padding: 1.35rem 1.5rem;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(138, 2, 255, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.goal-card[hidden] { display: none; }
.goal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.goal-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.goal-pct {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.goal-bar {
  position: relative;
  height: 9px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.goal-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(138, 2, 255, 0.7);
  transition: width 0.8s var(--ease-out);
}
.goal-figures { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.9rem; }
.goal-figures strong { color: #fff; font-size: 1.02rem; }

/* ---- rank tiers ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
  align-items: stretch;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 60%), var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease);
}
.tier-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.tier-card.is-featured {
  border-color: var(--line-strong);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(138, 2, 255, 0.2), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface) 60%),
    var(--bg);
  box-shadow: 0 28px 60px -38px rgba(138, 2, 255, 1);
}
.tier-card.is-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}

.tier-flag {
  position: absolute;
  top: 0;
  right: -1px;
  padding: 0.3rem 0.9rem;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
}
/* Capped tiers get a scarcity flag rather than a popularity one. */
.tier-flag.is-limited {
  background: linear-gradient(135deg, #f5b53d, #d98410);
  color: #241701;
}

.tier-name {
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Flagged cards drop the title below the ribbon rather than beside it, so a
   long name like "Cleared Pilot" can never collide with it at any width. */
.tier-card.has-flag .tier-name { margin-top: 1rem; }
.tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; margin: 0.7rem 0 0.3rem; }
.price-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.price-period { color: var(--muted-dim); font-size: 0.92rem; }
.tier-blurb { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.2rem; }

/* The headline benefit - queue position - reads as its own strip. */
.tier-queue {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 1.2rem;
  padding: 0.8rem 0.95rem;
  background: rgba(138, 2, 255, 0.11);
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: 3px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.queue-icon { width: 19px; height: 19px; margin-top: 1px; flex: none; color: var(--violet-hi); }

.tier-availability { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.avail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  background: rgba(70, 224, 138, 0.12);
  border: 1px solid rgba(70, 224, 138, 0.35);
  border-radius: 2px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8bf0b6;
}
.avail-chip strong { font-family: var(--font-display); letter-spacing: 0.12em; }
.avail-chip.is-full {
  background: rgba(239, 95, 107, 0.12);
  border-color: rgba(239, 95, 107, 0.35);
  color: #ff92a0;
}

.tier-card .perks { margin: 0 0 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tier-card .btn { margin-top: auto; width: 100%; }
.tier-card .btn:disabled { opacity: 0.6; cursor: wait; }

.tier-status {
  min-height: 1.3em;
  margin: 0.7rem 0 0;
  font-size: 0.83rem;
  text-align: center;
  color: var(--muted);
}
.tier-status.is-error { color: #ff92a0; }
.tier-status.is-busy { color: var(--violet-soft); }
.tier-status:empty { min-height: 0; margin-top: 0; }

.tiers-note {
  max-width: 68ch;
  margin: clamp(1.1rem, 2vw, 1.5rem) 0 0;
  color: var(--muted-dim);
  font-size: 0.86rem;
}

/* ---- perk lists (inside rank cards) ---- */
.perks { display: grid; gap: 0.6rem; }
.perks li {
  display: flex;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.perk-tick { width: 17px; height: 17px; margin-top: 3px; flex: none; color: var(--violet-hi); }

/* ---- the form panel ---- */
.donate-panel {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 2rem);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(138, 2, 255, 0.16), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface) 60%),
    var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: 0 28px 60px -40px rgba(138, 2, 255, 1);
}
.donate-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}

/* ---- one-off / monthly ---- */
.freq-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 1.5rem;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.freq-toggle[hidden] { display: none; }
.freq-toggle button {
  padding: 0.6rem 0.5rem;
  background: none;
  border: 0;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.freq-toggle button:hover { color: var(--text); }
.freq-toggle button.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 2, 255, 0.35);
}

/* ---- amounts ---- */
.amount-field { margin: 0 0 1.5rem; padding: 0; border: 0; }
.amount-field legend {
  padding: 0;
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.amount-btn {
  padding: 0.95rem 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-spring);
}
.amount-btn:hover {
  border-color: var(--line-strong);
  background: rgba(138, 2, 255, 0.12);
  transform: translateY(-2px);
}
.amount-btn.is-active {
  background: var(--grad);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 0 26px rgba(138, 2, 255, 0.45);
}

.custom-amount { margin-top: 1rem; }
.custom-amount[hidden] { display: none; }
.custom-amount > label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.custom-input {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.custom-input:focus-within {
  border-color: var(--violet);
  background: rgba(138, 2, 255, 0.1);
}
.currency-mark {
  padding: 0 0.3rem 0 0.95rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--violet-soft);
}
.custom-input input {
  flex: 1 1 auto;
  width: 100%;
  padding: 0.8rem 0.95rem 0.8rem 0.15rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.custom-input input:focus { outline: none; }
.custom-input input::placeholder { color: var(--muted-dim); font-weight: 600; }
/* Spinners fight the display font; the min/max attributes still apply. */
.custom-input input::-webkit-outer-spin-button,
.custom-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-input input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

.custom-hint { margin: 0.5rem 0 0; color: var(--muted-dim); font-size: 0.82rem; }

/* ---- submit + status ---- */
.donate-submit { width: 100%; }
.donate-submit:disabled { opacity: 0.6; cursor: wait; }
.donate-submit svg { width: 1.05em; height: 1.05em; }

.donate-status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  text-align: center;
  color: var(--muted);
}
.donate-status.is-error { color: #ff92a0; }
.donate-status.is-busy { color: var(--violet-soft); }
.donate-status:empty { margin-top: 0; min-height: 0; }

.donate-smallprint {
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* 12 --------------------------------------------------------------- media */
/* auto-FILL, not auto-fit: auto-fit collapses the empty tracks, so a
   single photo stretched across the whole row while the clips below sat
   in a tidy grid. Keeping the tracks means one tile is the same size as
   six, and the gallery and the clips line up. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.15rem);
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-mid) var(--ease);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 6, 10, 0.9));
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.gallery-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* Same grid and same tile as the photo gallery above, so the two rows
   read as one wall of media rather than two different components that
   happen to be stacked. */
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.15rem);
  margin-top: clamp(0.8rem, 1.8vw, 1.15rem);
}
.clip-card {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.clip-card iframe { width: 100%; height: 100%; border: 0; }
.clip-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.clip-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.clip-poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
/* A clip standing in as its own poster: a still, not a player. */
video.clip-poster { display: block; background: #000; pointer-events: none; }
.clip-poster-fallback {
  display: block;
  background: radial-gradient(70% 70% at 50% 40%, rgba(138, 2, 255, 0.35), var(--bg-alt));
}
.clip-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.clip-play svg {
  width: 64px;
  height: 64px;
  padding: 18px;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: var(--glow);
  transition: transform 0.25s ease;
}
.clip-facade:hover .clip-play svg { transform: scale(1.09); }
.clip-title {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}

/* 15 ----------------------------------------------------------------- cta */
.cta-band {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(70% 140% at 50% 0%, rgba(138, 2, 255, 0.28), transparent 68%),
    var(--bg);
  border-top: 1px solid var(--line-strong);
  overflow: hidden;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.cta-mark {
  width: clamp(64px, 9vw, 92px);
  height: auto;
  flex: none;
  filter: drop-shadow(0 0 26px rgba(138, 2, 255, 0.6));
}
.cta-copy { flex: 1 1 auto; }
.cta-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-transform: uppercase; }
.cta-copy p { margin-top: 0.5rem; color: var(--muted); }
.cta-inner .btn { flex: none; }

/* 16 -------------------------------------------------------------- footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img { width: 48px; height: 48px; }
.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-tag { margin: 0; color: var(--muted-dim); font-size: 0.83rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; }
.footer-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--text); }

.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-out);
}
.socials svg { width: 19px; height: 19px; }
.socials a:hover {
  color: #fff;
  background: var(--violet);
  border-color: var(--violet);
  transform: translateY(-2px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.footer-legal p { margin: 0; color: var(--muted-dim); font-size: 0.8rem; line-height: 1.6; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-legal-links a { color: var(--muted-dim); font-size: 0.8rem; line-height: 1.6; }
.footer-legal-links a:hover,
.footer-legal-links a[aria-current] { color: var(--text); }
.footer-contact { margin-bottom: 0.4rem; }

/* 17 ------------------------------------------------------------ lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 3, 7, 0.94);
  backdrop-filter: blur(8px);
  animation: lb-fade var(--t-mid) var(--ease) both;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  animation: lb-rise var(--t-slow) var(--ease-out) both;
}
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-rise { from { opacity: 0; transform: scale(0.97) translateY(12px); } }
.lightbox-figure img {
  max-height: 78svh;
  width: auto;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.lightbox-figure figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close, .lightbox-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--violet); color: #fff; }
.lightbox-close { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav.prev svg { transform: rotate(90deg); }
.lightbox-nav.next svg { transform: rotate(-90deg); }

/* 18 --------------------------------------------------------- motion/resp */
/* Scroll reveal. --i is the item's index within its grid, set by main.js, so
   a row animates in as a wave instead of a block. The delay is capped so a
   long list never leaves the last card hanging. */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: calc(min(var(--i, 0) * 70ms, 350ms));
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav-list { gap: 1rem; }
  .nav-list a { font-size: 0.8rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem var(--gutter) 3rem;
    background: rgba(7, 6, 10, 0.98);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-mid) var(--ease-out), visibility var(--t-mid);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  /* Drawer items arrive one after another rather than all at once. */
  .nav-list li, .nav-cta {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
  }
  body.nav-open .nav-list li,
  body.nav-open .nav-cta { opacity: 1; transform: none; }
  body.nav-open .nav-list li:nth-child(1) { transition-delay: 0.06s; }
  body.nav-open .nav-list li:nth-child(2) { transition-delay: 0.10s; }
  body.nav-open .nav-list li:nth-child(3) { transition-delay: 0.14s; }
  body.nav-open .nav-list li:nth-child(4) { transition-delay: 0.18s; }
  body.nav-open .nav-list li:nth-child(5) { transition-delay: 0.22s; }
  body.nav-open .nav-cta { transition-delay: 0.26s; }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 1.75rem; width: 100%; }

  .donate-split { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-legal { justify-content: center; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .hero-actions .btn { width: 100%; }
  .lightbox-nav { position: absolute; bottom: clamp(1rem, 4vw, 2rem); }
  .lightbox-nav.prev { left: clamp(1rem, 4vw, 2rem); }
  .lightbox-nav.next { right: clamp(1rem, 4vw, 2rem); }
  .lightbox-figure img { max-height: 62svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Cross-page transitions are motion too - swap them for a plain cut. */
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .nav-list li, .nav-cta { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-scroll, .lightbox, .nav-toggle, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}

/* 17 ----------------------------------------------- in-game earnings
   What players have banked on this machine. Built to read as a sibling of
   the player counter above it - same box, same figure treatment - because
   they are the same kind of thing: a live number off the server. Only
   rendered once a reading arrives; see applyEarned() in main.js. */
.server-earned {
  margin-top: 0.7rem;
  padding: 0.95rem 1.1rem;
  background: rgba(138, 2, 255, 0.09);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  animation: pop-in var(--t-mid) var(--ease-out) both;
}
.server-earned[hidden] { display: none; }
.earned-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.earned-row + .earned-row { margin-top: 0.55rem; }
.earned-v {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  /* Digits must not jitter between polls. */
  font-variant-numeric: tabular-nums;
}
.earned-k {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* 18 --------------------------------------------------- connect button
   One press: opens WARDOGS and puts the address on the clipboard. See the
   note above CONNECT_BUTTON in .env for why it cannot simply join you. */
.connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(138, 2, 255, 0.16);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.connect-btn:hover,
.connect-btn:focus-visible { background: rgba(138, 2, 255, 0.3); }
.connect-btn .icon { width: 1.05em; height: 1.05em; flex: none; }
.connect-btn.is-done { border-color: #8bf0b6; color: #8bf0b6; }
.connect-note {
  margin: -0.35rem 0 0.9rem;
  font-size: 0.75rem;
  color: var(--muted-dim);
  text-align: center;
}

/* 19 ------------------------------------------------------ twitch live
   A card for a channel that is not streaming stays hidden - see
   initTwitchLive() in main.js. These are for the ones that are on air. */
.clip-live {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  background: rgba(10, 6, 14, 0.82);
  backdrop-filter: blur(4px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  pointer-events: none;
}
.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7);
  animation: live-pulse 2s ease-out infinite;
}
.live-text { color: #ff3b5c; }
.live-viewers {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}
@keyframes live-pulse {
  70%  { box-shadow: 0 0 0 0.5rem rgba(255, 59, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* The streamer's logo, set in the admin panel; their Twitch avatar fills
   in when none was given. */
.clip-logo {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  pointer-events: none;
}

/* 20 ---------------------------------------------------- steam id ask
   Shown only when the store is set up to put the rank straight onto the
   donor's account and we do not know whose yet. Deliberately a panel and
   not a prompt() box: a browser dialog on a page about to take money
   looks exactly like the thing people are told to close. */
.steam-ask {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(138, 2, 255, 0.07);
}
.steam-ask-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.steam-ask-note {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.steam-ask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.steam-ask-row input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
}
.steam-ask-row input:focus-visible {
  outline: none;
  border-color: var(--accent);
}
.steam-ask-msg {
  margin: 0.6rem 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted-dim);
}
.steam-ask-msg.is-error { color: #ff6b81; }

/* 21 ---------------------------------------------------------------- cart
   A drawer from the right, a floating button to open it, and on every
   line the choice of whose account it is for - the donor's own, or a gift
   to someone found by Steam ID or profile link. The drawer reuses the
   donate panel's surface so it reads as part of the same page, not a
   bolt-on. See assets/js/cart.js. */
.cart-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  /* Above the sticky header (100): the drawer and its button must win
     the top of the page too, or the header eats the close button. */
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  animation: pop-in var(--t-mid) var(--ease-out) both;
}
.cart-fab[hidden] { display: none; }
.cart-fab svg { width: 1.3rem; height: 1.3rem; }
.cart-fab-count {
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--violet-deep);
  font-size: 0.85rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(4, 2, 8, 0.6);
  backdrop-filter: blur(2px);
}
.cart-scrim[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 170;
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  animation: cart-in var(--t-mid) var(--ease-out) both;
}
.cart-drawer[hidden] { display: none; }
@keyframes cart-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-fab { animation: none; }
}
body.cart-open { overflow: hidden; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cart-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cart-title svg { width: 1.2rem; height: 1.2rem; color: var(--violet-hi); }
.cart-close, .cart-remove {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cart-close:hover, .cart-remove:hover { color: #fff; border-color: var(--line-strong); }
.cart-close svg, .cart-remove svg { width: 1rem; height: 1rem; }

.cart-lines {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.5rem 1.25rem;
}
.cart-empty {
  padding: 2.5rem 0;
  color: var(--muted-dim);
  text-align: center;
}
.cart-line {
  margin: 0.6rem 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.cart-line.is-gift { border-color: rgba(255, 196, 61, 0.35); }
.cart-line-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.cart-line-name { flex: 1 1 auto; min-width: 0; }
.cart-line-name strong { display: block; font-family: var(--font-display); }
.cart-line-period { font-size: 0.8rem; color: var(--muted-dim); }
.cart-line-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-line-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
}
.qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: rgba(138, 2, 255, 0.1);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
.qty-btn:hover { background: rgba(138, 2, 255, 0.25); }
.qty-n {
  min-width: 2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Whose account the line is for - the two-way choice Steam's cart gives
   every item. The gift side lights amber, the same amber as the badge. */
.line-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 196, 61, 0.14);
  color: #ffc43d;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.line-for {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.for-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.for-opt + .for-opt { border-left: 1px solid var(--line-strong); }
.for-opt svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.for-opt:hover { color: #fff; }
.for-opt.is-on { background: rgba(138, 2, 255, 0.28); color: #fff; }
.for-opt.is-on:last-child { background: rgba(255, 196, 61, 0.16); color: #ffc43d; }
.line-note { margin: 0.6rem 0 0; font-size: 0.76rem; color: var(--muted-dim); }

/* The recipient, once found: avatar, name and id, like a friend row. */
.gift-who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 196, 61, 0.35);
  border-radius: 4px;
  background: rgba(255, 196, 61, 0.06);
  animation: pop-in var(--t-fast) var(--ease-out) both;
}
.gift-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 196, 61, 0.5);
  background: var(--bg);
  object-fit: cover;
}
.gift-avatar.is-blank { display: inline-grid; place-items: center; color: var(--muted); }
.gift-avatar.is-blank svg { width: 1.2rem; height: 1.2rem; }
.gift-who-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gift-who-k {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc43d;
}
.gift-who-text strong {
  font-family: var(--font-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gift-who-id { font-family: var(--font-mono, monospace); font-size: 0.72rem; color: var(--muted-dim); }

/* Finding the recipient. */
.gift-find { margin-top: 0.6rem; }
.gift-find-row { display: flex; gap: 0.5rem; }
.gift-find-row input,
.cart-manual input,
.cart-payer input {
  flex: 1 1 8rem;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
}
.gift-find-row input:focus-visible,
.cart-manual input:focus-visible,
.cart-payer input:focus-visible { outline: none; border-color: var(--violet); }
.gift-find .cart-link { margin-top: 0.45rem; }
.gift-hint {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: var(--muted-dim);
}
.gift-msg { margin: 0.4rem 0 0; font-size: 0.8rem; color: #ff6b81; min-height: 1em; }
.gift-msg.is-busy { color: var(--violet-soft); }

/* Currency: the menu above the ranks and in the cart's foot. Hidden by
   money.js until there is more than one currency to choose from. */
.donate-tools { display: flex; justify-content: flex-end; margin: 0 0 0.9rem; }
.currency-pick {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.currency-pick[hidden] { display: none; }
.currency-pick select,
.line-billing {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
}
.currency-note { flex-basis: 100%; font-size: 0.72rem; color: var(--muted-dim); }
.currency-pick.is-compact { margin: -0.4rem 0 0.8rem; }
.currency-pick.is-compact .currency-note { flex-basis: auto; }

.cart-foot {
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(138, 2, 255, 0.05);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cart-total strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }

.cart-payer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}
.cart-payer.is-in { flex-direction: row; align-items: center; }
.cart-payer-k {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.cart-payer-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.cart-payer-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.cart-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--violet-soft);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-manual { display: flex; flex-direction: column; gap: 0.35rem; }
.cart-manual[hidden] { display: none; }

.steam-btn { width: 100%; }
.steam-btn svg { width: 1.2em; height: 1.2em; }

.cart-pay { width: 100%; }
.cart-pay:disabled { opacity: 0.6; cursor: wait; }
.cart-status {
  margin: 0.6rem 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted);
}
.cart-status.is-error { color: #ff6b81; }
.cart-status.is-busy { color: var(--violet-soft); }
.cart-smallprint { margin: 0.5rem 0 0; font-size: 0.72rem; color: var(--muted-dim); text-align: center; }

/* On the rank cards: one Choose button. Gifting is decided in the cart. */
.tier-actions { display: grid; margin-top: auto; }
.tier-card .tier-actions .btn { margin-top: 0; width: auto; }

/* 22 --------------------------------------------------------- leaderboard */
.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.board-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.board-tab {
  padding: 0.6rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.board-tab:hover { color: var(--text); border-color: var(--line-strong); }
.board-tab[aria-selected="true"] { color: #fff; background: var(--violet); border-color: var(--violet); }
.board-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: #fff; background: var(--surface-2); }
.board-region { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.board-region select {
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.board-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.board-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.board-table th,
.board-table td {
  padding: 0.8rem 1rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.board-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.board-table th:nth-child(2),
.board-table td:nth-child(2) { text-align: left; width: 100%; }
.board-table td:nth-child(2) { white-space: normal; }
.board-rank {
  width: 3.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted-dim);
  text-align: center !important;
}
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table tbody tr:hover td { background: rgba(138, 2, 255, 0.06); }
.board-table td { color: var(--muted); }
.board-table td.is-active {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.board-table th.is-active { color: var(--violet-soft); }
.board-player { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
tr.rank-1 .board-rank { color: #f5c542; }
tr.rank-2 .board-rank { color: #c8ccd6; }
tr.rank-3 .board-rank { color: #d08a4a; }
tr.rank-1 .board-player { color: #fff; }
.board-loading td { color: var(--muted-dim); text-align: center !important; }
.board-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
#leaderboard .muted-note { margin-top: 0.9rem; }
@media (max-width: 720px) {
  .board-table .is-secondary { display: none; }
  .board-table th, .board-table td { padding: 0.7rem 0.65rem; }
  .board-table td.is-active { font-size: 1rem; }
}

/* The store paused or closed from the admin panel. */
.store-notice { margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem); }
.store-notice p strong { color: var(--text); }
.btn.is-paused,
.btn.is-paused:disabled,
.tier-card .btn.is-paused:disabled { opacity: 0.55; cursor: not-allowed; }
.amount-field:disabled .amount-btn,
.amount-field:disabled .custom-amount { opacity: 0.5; }
