/* ============================================================================
   MH Reborn — site stylesheet
   Lives on the server at /opt/mhportal/public/css/home-redesign.css
   ----------------------------------------------------------------------------
   Originally a homepage-only redesign, now used by every public page (home,
   connect, events, updates, faq, guide, dashboard, auth/*) via the partials
   at views/partials/header-redesign.ejs + footer-redesign.ejs.

   Sections, in order:
     1. CSS variables — colours, fonts, the rainbow gradient
     2. Reset + body shell (background scene, fog, grain, the `.app` flex column)
     3. Top nav (brand + skewed-active-tab links + server pill + auth buttons)
     4. Marquee strip (auto-scrolling feature list under the nav)
     5. Homepage dashboard (3-column grid: events / hero stage / server info)
     6. Hero stage (the kneeling figure, arrow nav, play card, Deadpool quote)
     7. Side panels (event tiles, server info grid, reset rows, bonus cards)
     8. Interior pages (.content-panel, .step-card, .faq-item, .news-item …)
     9. Forms (auth pages, dashboard) and account banner
    10. Footer + disclaimers
    11. Animations (fade-up, rainbow-flow, particles, pulse-dot)
    12. Responsive breakpoints — 1280 / 1100 / 760 / 480

   Tweaks vs the original mock-up index.html in
   C:\Users\antho\Downloads\mhrebornremadeui web\mhreborn\:
   - Bigger text in event banner / bonus cards / reset rows for readability
   - Brighter --text-dim / --text-faint so side-panel labels don't blend in
   - Tightened mobile breakpoints + bigger touch targets
   - Hero stage shrinks more aggressively under 480px so the play card never
     overlaps the kneeling figure
   ============================================================================ */


/* === 1. Variables ========================================================= */

:root {
  /* Backgrounds — three shades of deep purple from darkest (top) to lightest. */
  --bg-0: #0a0612;
  --bg-1: #120820;
  --bg-2: #1a0d2e;

  /* Brand palette — eight rainbow stops we lean on for accents and gradients.
     Variable names use a `c-` prefix so they don't collide with generic colour
     names on pages that bridge old → new vars (events.ejs does this). */
  --c-red:    #ff4757;
  --c-orange: #ff7a3d;
  --c-yellow: #ffd23f;
  --c-green:  #2dd573;
  --c-cyan:   #2dd5cf;
  --c-blue:   #4a8fff;
  --c-purple: #b148ff;
  --c-magenta:#ff48b1;

  /* Surface tokens. */
  --panel: rgba(20, 12, 36, 0.78);
  --panel-edge-soft: rgba(255, 255, 255, 0.06);

  /* Text greys.
     --text-dim and --text-faint were brightened on 2026-05-03 after side panel
     labels (STATUS / 10:00 UTC / ACTIVE THIS WEEK) were reported as too faint. */
  --text: #f0e8ff;
  --text-dim: #c0b3d8;
  --text-faint: #8a7db0;

  /* Type system — display = headlines, ui-display = caps labels, ui = body,
     mono = numbers / pills / code. All loaded from Google Fonts in the partial. */
  --display: 'Bangers', 'Impact', sans-serif;
  --ui-display: 'Oswald', sans-serif;
  --ui: 'Rajdhani', 'Trebuchet MS', sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;

  /* The rainbow border / shimmer used on the play card, brand ribbon, and
     the account banner top stripe. Eight stops, evenly distributed. */
  --rainbow: linear-gradient(90deg,
    var(--c-red) 0%,
    var(--c-orange) 14%,
    var(--c-yellow) 28%,
    var(--c-green) 42%,
    var(--c-cyan) 56%,
    var(--c-blue) 70%,
    var(--c-purple) 84%,
    var(--c-magenta) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* === Accessibility primitives ============================================
   Keyboard focus ring (yellow, matches the brand --c-yellow).
   :focus-visible only paints the outline for keyboard nav, not mouse clicks. */
:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Visually-hidden but available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to main content" — first interactive element on every page so
   keyboard / screen-reader users can bypass the nav + marquee. Hidden
   off-screen until focused, then springs into the top-left corner. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #ffd23f;
  color: #0a0612;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-family: var(--ui-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(255,210,63,0.5);
}

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 500;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(177, 72, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 70%, rgba(74, 143, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 71, 87, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 213, 207, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a0612 0%, #120820 50%, #1a0d2e 100%);
}

.stars { position: absolute; inset: 0; }

.skyline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 60%;
  opacity: 0.5;
}

.fog {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 6, 18, 0.6) 50%, rgba(10, 6, 18, 0.95) 100%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; }

/* ========== TOP NAV ========== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.95) 0%, rgba(10, 6, 18, 0.6) 100%);
  backdrop-filter: blur(8px);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rainbow-ribbon {
  height: 3px;
  background: var(--rainbow);
  position: relative;
  z-index: 11;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-name {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name .word-1 { color: var(--c-red); text-shadow: 0 0 12px rgba(255,71,87,0.5); }
.brand-name .word-2 { color: var(--c-yellow); text-shadow: 0 0 12px rgba(255,210,63,0.5); }
.brand-name .word-3 {
  background: linear-gradient(180deg, var(--c-cyan), var(--c-blue), var(--c-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-name .dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
}

.server-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(45, 213, 115, 0.08);
  border: 1px solid var(--c-green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-green);
  border-radius: 4px;
}

/* Compact server status box on the right side of nav */
.server-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(45, 213, 115, 0.06);
  border: 1px solid rgba(45, 213, 115, 0.5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.server-box.is-offline {
  background: rgba(255, 71, 87, 0.06);
  border-color: rgba(255, 71, 87, 0.5);
}
.server-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
}
.server-box.is-offline::before {
  background: var(--c-red);
  box-shadow: 0 0 8px var(--c-red);
}

.server-box-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-green);
  font-weight: 700;
}
.server-box.is-offline .server-box-label { color: var(--c-red); }

.server-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.server-box.is-offline .server-dot {
  background: var(--c-red);
  box-shadow: 0 0 8px var(--c-red);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.nav-links { display: flex; gap: 4px; list-style: none; }

.nav-link {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text);
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  position: relative;
  background: transparent;
  border: 0;
}

.nav-link:hover {
  color: var(--c-yellow);
}

/* Active tab: skewed parallelogram with rainbow gradient fill */
.nav-link.active {
  background: linear-gradient(90deg, var(--c-red), var(--c-magenta));
  color: #fff;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 0 24px rgba(255, 71, 87, 0.5), inset 0 0 16px rgba(255, 255, 255, 0.1);
  padding: 12px 28px;
}

.nav-link.active:hover {
  color: #fff;
  filter: brightness(1.1);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-ghost {
  font-family: var(--ui-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--c-cyan);
  box-shadow: 0 0 12px rgba(45,213,207,0.4);
}

/* Primary signup CTA — rainbow accent */
.btn-signup {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #1a0d2e;
  padding: 9px 16px;
  background: linear-gradient(90deg, var(--c-orange), var(--c-yellow), var(--c-green));
  background-size: 200% 100%;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 14px rgba(255, 122, 61, 0.4);
  animation: rainbow-flow 5s linear infinite;
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 122, 61, 0.6);
}

/* ========== MARQUEE ========== */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(10,6,18,0.6), rgba(20,12,36,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  position: relative;
}

.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }

.marquee-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 50px;
  white-space: nowrap;
}

.marquee-item:nth-child(8n+1) { color: var(--c-red); }
.marquee-item:nth-child(8n+2) { color: var(--c-orange); }
.marquee-item:nth-child(8n+3) { color: var(--c-yellow); }
.marquee-item:nth-child(8n+4) { color: var(--c-green); }
.marquee-item:nth-child(8n+5) { color: var(--c-cyan); }
.marquee-item:nth-child(8n+6) { color: var(--c-blue); }
.marquee-item:nth-child(8n+7) { color: var(--c-purple); }
.marquee-item:nth-child(8n+8) { color: var(--c-magenta); }

.marquee-star { color: rgba(255,255,255,0.3); font-size: 12px; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== DASHBOARD ========== */
.dashboard {
  flex: 1;
  display: grid;
  grid-template-columns: 360px 1fr 360px;
  gap: 22px;
  padding: 26px 32px;
  align-items: start;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,71,87,0.4),
    rgba(255,210,63,0.4),
    rgba(45,213,115,0.4),
    rgba(74,143,255,0.4),
    rgba(177,72,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(177, 72, 255, 0.15);
}

.panel:hover::before {
  background: linear-gradient(135deg,
    rgba(255,71,87,0.8),
    rgba(255,210,63,0.8),
    rgba(45,213,115,0.8),
    rgba(74,143,255,0.8),
    rgba(177,72,255,0.8));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-edge-soft);
}

.panel-title {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.panel-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== EVENT (bigger text vs source) ========== */
.event-banner {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(177,72,255,0.4) 0%, rgba(20,8,40,0.95) 70%);
}

/* Real event banner image — rendered as a <div> with background-image so
   Microsoft Edge's hover-triggered Visual Search lens doesn't appear on it
   (the lens only attaches to <img> tags). Fills the 16:9 box; the parent
   .event-banner adds a darken-at-the-bottom gradient via ::after for legibility. */
.event-banner-img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.event-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,6,18,0) 50%, rgba(10,6,18,0.55) 100%);
  pointer-events: none;
}
.panel:hover .event-banner-img { transform: scale(1.04); }

.event-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #fff;
  /* Darker pink (#d61f8c) for white-on-pink — original --c-magenta only
     reaches 3.08:1 contrast which fails WCAG AA. This shade hits ~5:1. */
  background: #d61f8c;
  padding: 5px 10px;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255,72,177,0.5);
  font-weight: 700;
}

.event-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.event-dot {
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.event-dot.active {
  background: var(--c-cyan);
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 8px var(--c-cyan);
}

.event-info { padding: 16px 20px; }

.event-title {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.2;
}

.event-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--c-cyan);
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.event-blurb {
  margin-top: 8px;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========== STAGE ========== */
.stage {
  position: relative;
  height: calc(100vh - 250px);
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero figure — rendered as a <div> with background-image, NOT an <img>
   element. This prevents Microsoft Edge's "Visual Search" hover lens from
   appearing on the kneeling figure (the lens only attaches to <img> tags).
   Real PNGs preload via JS so swap-on-cycle is still instant. */
.hero-img {
  height: 88%;
  max-height: 640px;
  width: 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter:
    drop-shadow(0 0 30px rgba(177, 72, 255, 0.4))
    drop-shadow(0 0 60px rgba(255, 71, 87, 0.25))
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6))
    contrast(1.05);
  animation: hero-breathe 4s ease-in-out infinite;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.005) translateY(-2px); }
}

.hero-disc {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 100px;
  pointer-events: none;
}

.arrow-nav {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(20, 12, 36, 0.6);
  border: 1px solid var(--c-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  border-radius: 6px;
}

.arrow-nav:hover {
  background: var(--c-cyan);
  box-shadow: 0 0 30px rgba(45, 213, 207, 0.6);
}

/* Pull arrows in toward the hero so they sit just outside the figure
   instead of pinning to the stage edges on wide layouts */
.arrow-nav.left  { left:  max(20px, calc(50% - 240px)); }
.arrow-nav.right { right: max(20px, calc(50% - 240px)); border-color: var(--c-magenta); }
.arrow-nav.right:hover {
  background: var(--c-magenta);
  box-shadow: 0 0 30px rgba(255, 72, 177, 0.6);
}

.arrow-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 18px; height: 18px;
  color: var(--c-cyan);
  transition: color 0.2s ease;
}

.arrow-nav.right .arrow-icon { color: var(--c-magenta); }
.arrow-nav:hover .arrow-icon { color: #fff; }

.play-card {
  position: relative;
  z-index: 5;
  width: 380px;
  background: rgba(10, 6, 18, 0.92);
  border-radius: 10px;
  padding: 12px 18px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  overflow: hidden;
}

.play-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: var(--rainbow);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: rainbow-flow 6s linear infinite;
}

.play-mode { text-align: center; margin-bottom: 8px; }

.play-mode-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,210,63,0.3);
  line-height: 1.05;
}

.play-mode-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--c-cyan);
  letter-spacing: 0.3em;
  margin-top: 3px;
}

.play-button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(90deg, var(--c-red), var(--c-orange), var(--c-yellow));
  background-size: 200% 100%;
  border: 0;
  color: #1a0d2e;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.28em;
  line-height: 1.1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(255,122,61,0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: play-pulse 2.4s ease-in-out infinite, rainbow-flow 4s linear infinite;
  text-decoration: none;
  text-align: center;
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255,122,61,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 6px 36px rgba(255,210,63,0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.play-button:hover { transform: translateY(-1px); }

/* Deadpool one-liner — replaces "CHANGE HERO" button */
.deadpool-quote {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 2px 8px 0;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-family: var(--ui);
  font-style: italic;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
  min-height: 28px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.deadpool-quote::before {
  content: '"';
  color: var(--c-red);
  font-family: var(--display);
  font-style: normal;
  margin-right: 4px;
  font-size: 16px;
}

.deadpool-quote::after {
  content: '"';
  color: var(--c-red);
  font-family: var(--display);
  font-style: normal;
  margin-left: 4px;
  font-size: 16px;
}

.hero-name-badge {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
}

.hero-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--c-yellow) 50%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255,210,63,0.4));
}

.hero-class {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--c-cyan);
  margin-top: 8px;
}

/* ========== SERVER INFO GRID ========== */
.server-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-edge-soft);
  padding: 1px;
}

.server-info-cell {
  background: rgba(20, 12, 36, 0.6);
  padding: 14px 12px;
  text-align: center;
  transition: background 0.2s ease;
}

.server-info-cell:hover {
  background: rgba(20, 12, 36, 0.9);
}

.server-info-icon {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 12px currentColor;
}

.server-info-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.server-info-value {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #fff;
}

/* ========== RESETS & BONUSES (bigger text vs source) ========== */
.resets-body { padding: 16px 20px; }

.reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-edge-soft);
}

.reset-row:last-of-type { border-bottom: 0; padding-bottom: 14px; }

.reset-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
}

.reset-sublabel {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 400;
}

.reset-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.reset-time {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.bonus-section {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-edge-soft);
}

.bonus-header {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 700;
}

.bonus-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  margin-bottom: 9px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.bonus-card:last-child { margin-bottom: 0; }

.bonus-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.bonus-main { border-left-color: var(--c-yellow); }
.bonus-main .bonus-tag { color: var(--c-yellow); border-color: var(--c-yellow); }

.bonus-secondary { border-left-color: var(--c-magenta); }
.bonus-secondary .bonus-tag { color: var(--c-magenta); border-color: var(--c-magenta); }

.bonus-bonus { border-left-color: var(--c-cyan); }
.bonus-bonus .bonus-tag { color: var(--c-cyan); border-color: var(--c-cyan); }

.bonus-tag {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1;
  flex-shrink: 0;
  border: 1px solid;
  padding: 6px 8px;
  border-radius: 3px;
  min-width: 42px;
  text-align: center;
  text-shadow: 0 0 8px currentColor;
}

.bonus-info { flex: 1; min-width: 0; }

.bonus-name {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gift-marker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: #1a0d2e;
  background: linear-gradient(90deg, var(--c-orange), var(--c-yellow));
  padding: 3px 6px;
  border-radius: 2px;
  font-weight: 700;
}

.bonus-meta {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  line-height: 1.5;
  font-weight: 500;
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

@keyframes rainbow-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(-20px) scale(1); }
  90% { opacity: 1; }
  100% { transform: translateY(-400px) scale(0); opacity: 0; }
}

/* ========== BUTTONS / CTA ========== */
.patch-cta {
  display: block;
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

.patch-cta:hover {
  background: var(--c-cyan);
  color: #1a0d2e;
  box-shadow: 0 0 16px rgba(45, 213, 207, 0.5);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 10;
  padding: 18px 32px;
  background: rgba(10, 6, 18, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-domain {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 18px;
  color: var(--text);
}

.footer-domain .dot {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links { display: flex; gap: 22px; list-style: none; }

.footer-links a {
  font-family: var(--ui-display);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  font-weight: 600;
  /* Tap-target expansion — visual size unchanged, hit area now 24px+ tall
     for WCAG 2.2 (negative margin offsets the padding so layout doesn't shift). */
  display: inline-block;
  padding: 6px 10px;
  margin: -6px -10px;
}

.footer-links a:hover {
  color: var(--c-yellow);
  text-shadow: 0 0 10px rgba(255,210,63,0.5);
}

.disclaimer {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 1100px;
}

/* ========== INTERIOR PAGES (connect / faq / updates / guide / news) ========== */
.page-body {
  flex: 1;
  padding: 40px 32px 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.page-hero {
  text-align: center;
  padding: 30px 20px 50px;
  position: relative;
}
.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--c-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(45,213,207,0.4);
}
.page-hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--c-yellow) 50%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,210,63,0.3));
}
.page-hero-sub {
  font-family: var(--ui);
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* Content panel — same as homepage .panel but with body padding for prose */
.content-panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  padding: 28px 32px;
  margin-bottom: 22px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.content-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,71,87,0.4),
    rgba(255,210,63,0.4),
    rgba(45,213,115,0.4),
    rgba(74,143,255,0.4),
    rgba(177,72,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.content-panel:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(177, 72, 255, 0.15); }

.content-panel h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 0 18px rgba(255,210,63,0.25);
}
.content-panel h3 {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 18px 0 10px;
}
.content-panel p {
  font-family: var(--ui);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}
.content-panel p:last-child { margin-bottom: 0; }
.content-panel a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(45,213,207,0.4);
  transition: all 0.2s ease;
}
.content-panel a:hover {
  color: var(--c-yellow);
  border-bottom-color: var(--c-yellow);
}
.content-panel ul, .content-panel ol {
  font-family: var(--ui);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  padding-left: 22px;
  margin-bottom: 12px;
}
.content-panel ul li::marker { color: var(--c-magenta); }
.content-panel strong { color: #fff; font-weight: 700; }
.content-panel code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255, 210, 63, 0.08);
  border: 1px solid rgba(255, 210, 63, 0.2);
  color: var(--c-yellow);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Code block (e.g. Steam launch option in connect page) */
.code-block {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(10, 6, 18, 0.6);
  border: 1px solid var(--panel-edge-soft);
  border-left: 3px solid var(--c-cyan);
  color: var(--c-cyan);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
/* Right-edge fade hints that the code scrolls off-screen on narrow phones
   (without it the cut-off is invisible against the dark panel). */
.code-block::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 26px;
  background: linear-gradient(to right, transparent, rgba(10, 6, 18, 0.95));
  pointer-events: none;
  border-radius: 0 4px 4px 0;
}

/* Code-row pairs the .code-block with a one-tap COPY button so users can
   grab the launch option without highlighting+ctrl+c on a phone. */
.code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.code-row .code-block {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.code-copy-btn {
  flex-shrink: 0;
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
  background: rgba(45, 213, 207, 0.08);
  border: 1px solid var(--c-cyan);
  border-radius: 4px;
  padding: 0 14px;
  min-height: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.code-copy-btn:hover {
  background: var(--c-cyan);
  color: #1a0d2e;
  box-shadow: 0 0 12px rgba(45, 213, 207, 0.45);
}
.code-copy-btn.is-copied {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #1a0d2e;
  box-shadow: 0 0 12px rgba(45, 213, 115, 0.45);
}

/* Numbered step card (connect page) */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.step-card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 28px 32px 28px 88px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,71,87,0.4),
    rgba(255,210,63,0.4),
    rgba(45,213,115,0.4),
    rgba(74,143,255,0.4),
    rgba(177,72,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.step-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(177, 72, 255, 0.15); }
.step-num {
  position: absolute;
  left: 24px;
  top: 26px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 30px;
  color: #1a0d2e;
  background: linear-gradient(135deg, var(--c-orange), var(--c-yellow));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255,122,61,0.4);
}
.step-card.step-2 .step-num { background: linear-gradient(135deg, var(--c-blue), var(--c-cyan)); color: #fff; box-shadow: 0 0 20px rgba(74,143,255,0.4); }
.step-card.step-3 .step-num { background: linear-gradient(135deg, var(--c-green), var(--c-cyan)); color: #1a0d2e; box-shadow: 0 0 20px rgba(45,213,115,0.4); }
.step-card.step-4 .step-num { background: linear-gradient(135deg, var(--c-magenta), var(--c-purple)); color: #fff; box-shadow: 0 0 20px rgba(255,72,177,0.4); }
.step-title {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.step-text {
  font-family: var(--ui);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}
.step-text:last-child { margin-bottom: 0; }
.step-divider {
  margin: 18px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-edge-soft);
}
.step-sub-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card.step-1 .step-sub-label { color: var(--c-orange); }
.step-card.step-2 .step-sub-label { color: var(--c-cyan); }
.step-card.step-3 .step-sub-label { color: var(--c-green); }
.step-card.step-4 .step-sub-label { color: var(--c-yellow); }
.step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 16px;
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.step-link.lnk-orange { background: linear-gradient(90deg, var(--c-orange), var(--c-yellow)); color: #1a0d2e; box-shadow: 0 0 14px rgba(255,122,61,0.4); }
.step-link.lnk-cyan   { background: linear-gradient(90deg, var(--c-cyan), var(--c-blue)); color: #1a0d2e; box-shadow: 0 0 14px rgba(45,213,207,0.4); }
.step-link.lnk-green  { background: linear-gradient(90deg, var(--c-green), var(--c-cyan)); color: #1a0d2e; box-shadow: 0 0 14px rgba(45,213,115,0.4); }
.step-link.lnk-yellow { background: linear-gradient(90deg, var(--c-yellow), var(--c-orange)); color: #1a0d2e; box-shadow: 0 0 14px rgba(255,210,63,0.4); }
.step-link:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* FAQ accordion */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,71,87,0.3), rgba(177,72,255,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.faq-item:hover::before { background: linear-gradient(135deg, rgba(255,210,63,0.6), rgba(177,72,255,0.6)); }
/* Native <details>/<summary> accordion — keyboard accessible (Enter / Space)
   without any onclick handler. Default disclosure triangle hidden so we can
   provide our own .faq-chevron. The `[open]` attribute selector replaces the
   old `.open` class that was toggled via onclick. */
.faq-q {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;          /* hide default <summary> marker (Firefox) */
}
.faq-q::-webkit-details-marker { display: none; }  /* hide marker (WebKit) */
.faq-q::marker { content: ''; }                     /* hide marker (Standard) */
.faq-chevron {
  color: var(--c-cyan);
  font-size: 12px;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--c-yellow); }
.faq-a {
  padding: 0 22px 18px;
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.faq-a a { color: var(--c-cyan); text-decoration: underline; text-decoration-color: rgba(45,213,207,0.4); }
.faq-a a:hover { color: var(--c-yellow); }

/* News / updates timeline */
.news-list {
  max-width: 980px;
  margin: 0 auto;
}
.news-item {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.news-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74,143,255,0.4), rgba(177,72,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.news-item:hover { transform: translateY(-2px); }
.news-item-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
  font-weight: 700;
}
.news-item-cat.cat-event       { background: #d61f8c; color: #fff; box-shadow: 0 0 8px rgba(255,72,177,0.5); } /* darker pink for AA contrast */
.news-item-cat.cat-announcement{ background: var(--c-cyan);    color: #1a0d2e; box-shadow: 0 0 8px rgba(45,213,207,0.5); }
.news-item-cat.cat-patch       { background: var(--c-green);   color: #1a0d2e; box-shadow: 0 0 8px rgba(45,213,115,0.5); }
.news-item-cat.cat-default     { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.news-item-title {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 6px;
}
.news-item-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.news-item-body {
  font-family: var(--ui);
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
  white-space: pre-wrap;
}
.news-item-body a { color: var(--c-cyan); text-decoration: underline; }

/* Two-column section for guide / news layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Reset card (used on /updates for next reset countdowns) */
.reset-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.reset-card {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  padding: 22px 22px 20px;
  text-align: center;
  overflow: hidden;
}
.reset-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
}
.reset-card.weekly::before { background: linear-gradient(90deg, transparent, var(--c-yellow), transparent); }
.reset-card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 700;
}
.reset-card-timer {
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.reset-card-hint {
  margin-top: 10px;
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Guide stepper / table-of-contents */
.guide-toc {
  max-width: 880px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.guide-toc a {
  display: block;
  padding: 14px 16px;
  background: rgba(20, 12, 36, 0.6);
  border: 1px solid var(--panel-edge-soft);
  border-left: 3px solid var(--c-cyan);
  border-radius: 4px;
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.guide-toc a:hover {
  background: rgba(20, 12, 36, 0.95);
  color: var(--c-yellow);
  border-left-color: var(--c-yellow);
  transform: translateX(3px);
}

/* Form inputs / labels / buttons (dashboard, auth pages) */
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 700;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: rgba(10, 6, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  padding: 10px 14px;
  font-family: var(--ui);
  font-size: 14.5px;
  outline: none;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}
.form-input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 12px rgba(45, 213, 207, 0.25);
  background: rgba(10, 6, 18, 0.7);
}
.form-input::placeholder { color: var(--text-faint); }
.form-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, var(--c-orange), var(--c-yellow));
  background-size: 200% 100%;
  border: 0;
  color: #1a0d2e;
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(255, 122, 61, 0.4);
}
.form-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-btn.btn-cyan {
  background: linear-gradient(90deg, var(--c-cyan), var(--c-blue));
  color: #1a0d2e;
  box-shadow: 0 0 14px rgba(45, 213, 207, 0.4);
}
.form-btn.btn-magenta {
  background: linear-gradient(90deg, var(--c-magenta), var(--c-purple));
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 72, 177, 0.4);
}
.form-msg { margin-top: 10px; font-family: var(--ui); font-size: 13px; }
.form-msg-ok { padding: 9px 14px; border-radius: 4px; background: rgba(45,213,115,0.08); border: 1px solid rgba(45,213,115,0.4); color: var(--c-green); }
.form-msg-err { padding: 9px 14px; border-radius: 4px; background: rgba(255,71,87,0.08); border: 1px solid rgba(255,71,87,0.4); color: #ff8b95; }
.form-help { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin: -8px 0 12px; letter-spacing: 0.05em; }
.form-note {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(255,210,63,0.06);
  border-left: 3px solid var(--c-yellow);
  border-radius: 4px;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form-row-split { grid-template-columns: 1fr; } }

/* Account info readout boxes (dashboard "Overview" card) */
.info-row { display: flex; flex-direction: column; gap: 8px; }
.info-box {
  background: rgba(10, 6, 18, 0.4);
  border: 1px solid var(--panel-edge-soft);
  border-left: 3px solid var(--c-cyan);
  border-radius: 4px;
  padding: 10px 14px;
}
.info-box-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
  font-weight: 700;
}
.info-box-value {
  font-family: var(--ui-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
}
.info-box-value.muted { font-family: var(--mono); font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: 0; word-break: break-all; }
.info-code {
  display: inline-block;
  background: rgba(45, 213, 207, 0.08);
  border: 1px solid rgba(45, 213, 207, 0.25);
  color: var(--c-cyan);
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 4px;
  word-break: break-all;
}

/* Account-page header band (full-width banner with gradient + game email badge) */
.account-banner {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 22px;
  overflow: hidden;
}
.account-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: rainbow-flow 6s linear infinite;
}
.account-banner-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-magenta);
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(255,72,177,0.4);
}
.account-banner-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff, var(--c-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.account-banner-sub {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.account-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 213, 115, 0.08);
  border: 1px solid var(--c-green);
  color: var(--c-green);
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-radius: 20px;
}

/* Tables in interior pages */
.content-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-family: var(--ui);
  font-size: 14px;
}
.content-panel th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(45,213,207,0.3);
  background: rgba(10,6,18,0.3);
}
.content-panel td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-edge-soft);
  color: var(--text-dim);
  vertical-align: top;
}
.content-panel tr:hover td { background: rgba(255,255,255,0.02); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
  .dashboard {
    grid-template-columns: 290px 1fr 290px;
    gap: 16px;
    padding: 20px;
  }
  .nav-link { padding: 10px 14px; font-size: 12px; }
  .nav-link.active { padding: 10px 18px; }
  .brand-name { font-size: 22px; }
}

@media (max-width: 1100px) {
  .dashboard {
    grid-template-columns: 1fr 300px;
    gap: 16px;
  }
  .left-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .left-column > .panel { margin-top: 0 !important; }
  .stage { grid-column: 1; }
  .right-column { grid-column: 2; }
}

@media (max-width: 760px) {
  /* Single column mobile — tight stack */
  .dashboard {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .left-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .stage {
    order: -1;
    height: auto;
    min-height: 460px;
    padding-bottom: 16px;
  }
  .hero-name-badge { top: 1%; }
  .hero-name { font-size: 36px; }
  .hero-class { font-size: 10px; letter-spacing: 0.3em; }
  .hero-img { height: 72%; max-height: 360px; }
  .play-card {
    width: calc(100% - 24px);
    max-width: 380px;
    margin-bottom: 8px;
    padding: 14px;
  }
  .play-mode-name { font-size: 22px; }
  .play-button { font-size: 22px; padding: 14px; }
  .deadpool-quote { font-size: 12px; }
  .arrow-nav { width: 48px; height: 48px; }
  .arrow-nav.left { left: 18px; }
  .arrow-nav.right { right: 18px; }

  /* Nav: stack brand on top, links scroll */
  nav { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .brand { width: 100%; justify-content: center; }
  .brand-name { font-size: 20px; }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    /* Soft right-edge fade hints that the strip scrolls past DISCORD when
       the rightmost items don't fit. Same mask trick on both axes prefixed
       for WebKit. scroll-snap pairs with .nav-link for cleaner stops. */
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
  }
  /* Nav links — 44px hit area for thumbs (WCAG AAA / Apple HIG). Visual size
     unchanged via inline-flex centring. */
  .nav-link {
    padding: 10px 14px;
    font-size: 11.5px;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    scroll-snap-align: start;
  }
  .nav-link.active { padding: 10px 18px; }
  .nav-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .server-box { flex: 0 1 auto; min-height: 40px; }
  /* btn-ghost / always-show — bumped to 40px hit area, padding tuned so
     text size stays visually the same. */
  .btn-ghost,
  .btn-ghost.always-show {
    padding: 10px 14px;
    font-size: 11px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .btn-signup {
    padding: 10px 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Footer nav — 44px tall hit area, negative margin keeps the row's visual
     rhythm so links don't suddenly look chunky. */
  .footer-links a {
    padding: 10px 12px;
    margin: -4px -8px;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  /* Bigger text in event/bonus boxes still — already set above */
  .event-info { padding: 14px 16px; }
  .event-title { font-size: 18px; }
  .resets-body { padding: 14px 16px; }
  .bonus-card { padding: 11px 12px; }

  /* Marquee tighter */
  .marquee-item { font-size: 12px; gap: 30px; }
  .marquee-track { gap: 30px; }

  /* Footer stack */
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 760px) {
  /* Interior pages — tighten padding + stack layouts */
  .page-body { padding: 24px 16px 40px; }
  .page-hero { padding: 16px 16px 28px; }
  .page-hero-title { font-size: clamp(28px, 9vw, 44px); }
  .step-card { padding: 22px 22px 22px 22px; }
  .step-num { position: static; margin-bottom: 12px; width: 42px; height: 42px; font-size: 24px; }
  .content-panel { padding: 22px 20px; }
  .content-panel h2 { font-size: 22px; }
  .content-panel h3 { font-size: 16px; }
  .content-panel table { font-size: 12.5px; }
  .content-panel th, .content-panel td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  /* Phones — make stage shorter so play card sits comfortably */
  .stage { min-height: 400px; }
  .hero-img { height: 64%; max-height: 300px; }
  .hero-name { font-size: 30px; }
  .arrow-nav { width: 42px; height: 42px; }
  .arrow-nav.left { left: 8px; }
  .arrow-nav.right { right: 8px; }
  .play-card { padding: 12px; }
  .play-mode-name { font-size: 19px; }
  .play-mode-sub { font-size: 10px; letter-spacing: 0.25em; }
  .play-button { font-size: 19px; padding: 12px; letter-spacing: 0.25em; }
  .deadpool-quote { font-size: 11.5px; min-height: 32px; }
  .event-title { font-size: 17px; }
  .bonus-name { font-size: 13px; }
  .bonus-meta { font-size: 11px; }
  .reset-time { font-size: 13px; }
  footer { padding: 16px 18px; }
  .disclaimer { font-size: 10px; }

  /* Phone-only readability bumps — nav strip + small badges sit under the
     comfortable mobile reading size at 11px; nudge up so they don't squint
     without breaking the visual hierarchy. */
  .nav-link { font-size: 13px; }
  .btn-ghost, .btn-ghost.always-show { font-size: 11.5px; }
  .btn-signup { font-size: 12px; }
  .event-tag { font-size: 11px; }
  .event-sub { font-size: 12.5px; }
  .news-item-cat { font-size: 10.5px; }
}

/* ============================================================================
   Reduced-motion preference
   Honour the OS-level "Reduce motion" setting (System Preferences on macOS,
   Settings → Ease of Access on Windows) for users with vestibular issues.
   We don't kill animations entirely — set them to a single instant frame so
   any state-toggle still fires, but the motion is imperceptible.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Decorative motion that adds nothing semantically — kill outright. */
  .marquee-track { animation: none !important; }
  .particle { display: none !important; }
  /* Page-load fade-up entries — show their final state instantly. */
  .fade-up { opacity: 1 !important; transform: none !important; }
}
