/* =========================================================
   Base
   ========================================================= */
:root {
  /* Dark mode (the default). --black is the page color, --white the text color */
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --bg-rgb: 0, 0, 0;
  --fg-rgb: 255, 255, 255;
  --panel-rgb: 12, 12, 12;
  --surface: #070707;
  --surface-2: #0e0e0e;
  --grey-1: #a3a3a3;
  --grey-2: #6b6b6b;
  --text-soft: #d4d4d4;
  --placeholder: #111;
  --code-bg: #161616;
  --spoiler: #2b2b2b;
  --scroll-thumb: #2a2a2a;
  --locked-bg: #2a2a2a;
  --locked-fg: #777;
  --shadow: rgba(0, 0, 0, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --discord: #5865f2;
  --discord-dark: #4752c4;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --font-display: 'Pixelify Sans', 'Montserrat', sans-serif;
  /* Content width plus side gutters, shared by the nav and hero */
  --page-width: calc(1160px + 2 * var(--gutter));
}

/* Light mode, turned on by the toggle in the nav (saved in localStorage) */
:root[data-theme="light"] {
  color-scheme: light;
  --black: #fff;
  --white: #0a0a0a;
  --bg-rgb: 255, 255, 255;
  --fg-rgb: 0, 0, 0;
  --panel-rgb: 255, 255, 255;
  --surface: #f6f6f6;
  --surface-2: #ebebeb;
  --grey-1: #5c5c5c;
  --grey-2: #8f8f8f;
  --text-soft: #333;
  --placeholder: #e6e6e6;
  --code-bg: #eeeeee;
  --spoiler: #cfcfcf;
  --scroll-thumb: #c8c8c8;
  --locked-bg: #e4e4e4;
  --locked-fg: #999;
  --shadow: rgba(0, 0, 0, 0.12);
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Stops the fixed nav from covering section titles when jumping to them */
  scroll-padding-top: 90px;
  background: var(--black);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', system-ui, sans-serif;
  /* Medium by default, so body text isn't too thin (nav sets its own weights) */
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  /* Stops phones from resizing text on their own, and removes the blue tap flash */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ol {
  list-style: none;
}

::selection {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Thin dark scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--black);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 2px solid var(--black);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

/* Added by script.js once the page is scrolled */
.nav--scrolled {
  background: rgba(var(--bg-rgb), 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  position: relative;
  display: grid;
  /* Equal side columns keep the links centered */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.logo {
  justify-self: start;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-1);
  padding: 6px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark / light mode switch */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: rotate(-20deg);
}

/* Sun in dark mode (switch to light), moon in light mode */
.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Menu button, only shown on small screens */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.menu-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 30px 14px 24px;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .material-symbols-rounded {
  transform: scale(1.15) rotate(-8deg);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}

.btn-outline {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.4);
  background: rgba(var(--bg-rgb), 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 0 0 1px var(--white);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--discord);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn-discord svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-discord:hover {
  background: var(--discord-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.btn-discord-lg {
  font-size: 1.05rem;
  padding: 18px 34px;
  gap: 12px;
}

.btn-discord-lg svg {
  width: 26px;
  height: 26px;
}

/* =========================================================
   Landing
   ========================================================= */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* Darker page behind the grid */
  background: radial-gradient(ellipse at 20% 40%, rgba(var(--fg-rgb), 0.035), transparent 60%), var(--black);
}

/* Diagonal row of thumbnails across the bottom-right corner */
.corner-marquee {
  position: absolute;
  z-index: 0;
  right: -12vw;
  /* The second row hangs below the screen edge; that's fine, it gets cut off */
  bottom: calc(12% - 220px);
  width: 78vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transform: rotate(-14deg);
  opacity: 0;
  pointer-events: none;
  /* Fades out toward the text on the left */
  mask-image: linear-gradient(to right, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
  transition: opacity 1.6s var(--ease-out) 1.1s;
}

.is-loaded .corner-marquee {
  opacity: 0.55;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 70s linear infinite;
}

/* Second row slides the other way */
.marquee-track.reverse {
  animation-name: marquee-right;
  animation-duration: 85s;
}

.marquee-tile {
  flex-shrink: 0;
  width: 360px;
  aspect-ratio: 16 / 9;
  /* margin instead of gap, so the loop has no jump */
  margin-right: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--placeholder);
}

.marquee-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Hero */
/* Left-aligned, lined up with the logo */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  /* Top padding leaves room for the fixed nav */
  padding: 120px var(--gutter) 96px;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px clamp(24px, 4vw, 56px);
  position: relative;
}

.stat:first-child {
  padding-left: 0;
}

/* Vertical dividers between stats */
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: rgba(var(--fg-rgb), 0.16);
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  /* Keeps digits the same width so numbers don't wobble while counting */
  font-variant-numeric: tabular-nums;
}

.suffix {
  margin-left: 2px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--grey-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 36px;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  position: relative;
  z-index: 1;
  padding: 120px var(--gutter);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 56px;
}

.section-title.align-left {
  text-align: left;
  margin-bottom: 24px;
}

/* Soft light that follows the cursor on cards (position set by script.js) */
.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--fg-rgb), 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

/* =========================================================
   Games
   ========================================================= */
/* Two compact game cards side by side */
.games-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-feature {
  display: grid;
  /* Screenshot on top, info underneath */
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: border-color 0.4s;
}

.game-feature:hover {
  border-color: var(--line-strong);
}

/* Thumbnails stack and crossfade (cycled by script.js) */
.game-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--placeholder);
}

.game-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease-out;
}

.game-media img.is-active {
  opacity: 1;
  transform: scale(1);
}

.game-feature:hover .game-media img.is-active {
  transform: scale(1.04);
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 2px 10px 10px;
}

/* Keeps the Play buttons lined up at the bottom of both cards */
.game-info .btn {
  margin-top: auto;
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.game-name {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Visits, Peak CCU and Managed by on one line */
.game-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 32px;
}

.game-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-stat-value {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.game-stat-label {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--grey-1);
}

/* Who runs each game: label on top, profile pictures with names underneath */
.managed-by {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.managed-label {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--grey-1);
}

.managed-people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.managed-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
}

.managed-person img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong);
}

/* =========================================================
   Acquisitions
   ========================================================= */
.section-sub {
  max-width: 52ch;
  margin: -32px auto 48px;
  text-align: center;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--grey-1);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.deal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.deal-card:hover {
  border-color: var(--line-strong);
}

.deal-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  font-size: 30px;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}

.deal-card:hover .deal-icon {
  background: var(--white);
  color: var(--black);
  transform: rotate(-6deg) scale(1.05);
}

.deal-title {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.deal-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--grey-1);
}

.deal-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* =========================================================
   About
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-text p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--grey-1);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 32px;
}

/* The vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line) 80%, transparent);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The dot */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--white);
}

.timeline-item:last-child::before {
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(var(--fg-rgb), 0.08);
}

.timeline-date {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--grey-1);
}

.timeline-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* =========================================================
   Members
   ========================================================= */
/* Four cards in a 2 x 2 grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 auto;
}

.member-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.member-card:hover {
  border-color: var(--line-strong);
}

/* Discord profile banner, cropped a bit shorter to keep the cards low */
.member-banner {
  aspect-ratio: 4 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}

.member-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.member-card:hover .member-banner img {
  transform: scale(1.06);
}

.member-body {
  padding: 0 26px 22px;
}

.member-pfp {
  --pfp-size: 96px;
  position: relative;
  width: var(--pfp-size);
  height: var(--pfp-size);
  margin-top: calc(var(--pfp-size) / -2);
  margin-bottom: 12px;
  border-radius: 50%;
  /* Ring that cuts the picture out of the banner */
  box-shadow: 0 0 0 7px var(--surface);
  background: var(--surface-2);
  transition: transform 0.5s var(--ease-out);
}

/* First letter shown until the profile picture file is added */
.member-pfp::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--grey-1);
}

.member-pfp img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.member-card:hover .member-pfp {
  transform: translateY(-4px);
}

/* Discord-style "online" dot */
.status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #23a55a;
  border: 5px solid var(--surface);
}

.member-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* "@username • pronouns" line, like on Discord */
.member-handle {
  font-size: 0.9rem;
  color: var(--grey-1);
  margin-top: 4px;
}

.member-handle span {
  color: var(--grey-2);
  margin: 0 4px;
}

.member-role {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--white);
  margin-top: 8px;
}

.member-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.member-link .material-symbols-rounded {
  font-size: 20px;
  transition: transform 0.3s var(--ease-out);
}

/* Makes the whole card clickable through this one link.
   (Don't transform .member-link itself, or this shrinks to the button.) */
.member-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.member-card:hover .member-link {
  background: var(--white);
  color: var(--black);
}

.member-card:hover .member-link .material-symbols-rounded {
  transform: rotate(45deg);
}

/* ---------- X (Twitter) button ---------- */
.x-link {
  /* Sits above the card-wide Discord link so it opens X instead */
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.x-link:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Name with the X button beside it (wraps under on narrow cards) */
.member-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.x-logo {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* X's blue verified checkmark */
.x-verified {
  width: 16px;
  height: 16px;
  fill: #1d9bf0;
  margin-left: -2px;
}

/* ---------- Member quote ---------- */
.member-quote {
  position: relative;
  margin-top: 16px;
  padding: 12px 18px 12px 44px;
  background: rgba(var(--fg-rgb), 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}

/* Big pixel quote mark */
.member-quote::before {
  content: '\201C';
  position: absolute;
  left: 14px;
  top: 6px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--grey-2);
}

/* ---------- Bios (Discord markdown, rendered by script.js) ---------- */
.member-bio {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.member-bio:empty {
  display: none;
}

.member-bio > * + * {
  margin-top: 6px;
}

.member-bio h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

.member-bio .md-h1 { font-size: 1.4rem; }
.member-bio .md-h2 { font-size: 1.2rem; }
.member-bio .md-h3 { font-size: 1.05rem; }

.member-bio .md-subtext {
  font-size: 0.78rem;
  color: var(--grey-2);
}

.member-bio strong {
  color: var(--white);
}

.member-bio blockquote {
  border-left: 3px solid var(--line-strong);
  padding-left: 12px;
}

.member-bio ul {
  padding-left: 20px;
  list-style: disc;
}

.member-bio code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.member-bio pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  overflow-x: auto;
}

.member-bio pre code {
  background: none;
  border: 0;
  padding: 0;
}

.member-bio .emoji {
  display: inline-block;
  width: 1.375em;
  height: 1.375em;
  vertical-align: -0.35em;
}

/* Links and spoilers sit above the card-wide link so they stay clickable */
.member-bio a,
.member-bio .spoiler {
  position: relative;
  z-index: 2;
}

.member-bio a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.member-bio .spoiler {
  background: var(--spoiler);
  color: transparent;
  border-radius: 4px;
  padding: 0 2px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.member-bio .spoiler.is-revealed {
  background: var(--surface-2);
  color: inherit;
  cursor: auto;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.22), transparent 60%),
    var(--surface);
}

.contact-panel .section-title {
  margin-bottom: 16px;
}

.contact-text {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--grey-1);
  margin-bottom: 32px;
}

/* "I'm at Least 13 Years Old" checkbox */
.age-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

/* Hide the real checkbox but keep it usable with the keyboard */
.age-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.age-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  transition: background 0.25s, border-color 0.25s;
}

/* Checkmark */
.age-box::after {
  content: '';
  width: 6px;
  height: 12px;
  margin-top: -3px;
  border: solid var(--black);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease-out);
}

.age-check:hover .age-box {
  border-color: var(--white);
}

.age-check input:checked + .age-box {
  background: var(--white);
  border-color: var(--white);
}

.age-check input:checked + .age-box::after {
  transform: rotate(45deg) scale(1);
}

.age-check input:focus-visible + .age-box {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Gray, unclickable Discord button until the box is checked */
.btn-discord.is-locked,
.btn-discord.is-locked:hover {
  background: var(--locked-bg);
  color: var(--locked-fg);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-links a,
.footer-copy {
  font-size: 0.9rem;
  color: var(--grey-1);
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-cookie:hover {
  color: var(--white);
}

/* Looks like the other footer links */
.footer-cookie {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  color: var(--grey-1);
  transition: color 0.3s;
}

/* =========================================================
   Legal pages (privacy.html)
   ========================================================= */
.legal {
  position: relative;
  z-index: 1;
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 150px var(--gutter) 100px;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.legal-updated {
  font-style: italic;
  color: var(--grey-1);
  margin-bottom: 48px;
}

.legal section + section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
  list-style: disc;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--white);
}

.legal a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* "Cookie Settings" button inside the policy text, styled like a link */
.legal-inline-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

/* =========================================================
   Cookie popup
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: clamp(16px, 3vw, 24px);
  bottom: clamp(16px, 3vw, 24px);
  z-index: 200;
  width: min(480px, calc(100vw - 32px));
  padding: 28px;
  background: rgba(var(--panel-rgb), 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 24px 60px var(--shadow);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-head .material-symbols-rounded {
  font-size: 32px;
}

.cookie-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
}

.cookie-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-1);
  margin-bottom: 22px;
}

.cookie-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

/* Same size buttons, so neither choice is pushed */
.btn-sm {
  flex: 1;
  padding: 14px 22px;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* =========================================================
   Fade in
   ========================================================= */
.fade-in,
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out),
    border-color 0.4s;
  transition-delay: var(--delay, 0ms);
}

.is-loaded .fade-in,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Once revealed, drop the delay so hover effects respond instantly */
.reveal.is-done {
  transition-delay: 0ms;
}

/* =========================================================
   Tablet: nav links fold into a menu
   ========================================================= */
@media (max-width: 1040px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(var(--panel-rgb), 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    background: rgba(var(--fg-rgb), 0.06);
  }

  .about {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 80px;
  }

  .nav-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 72px;
  }

  .headline {
    font-size: clamp(2.3rem, 10.5vw, 3.5rem);
    margin-bottom: 28px;
  }

  /* Stats sit in one compact row on phones; sizes follow the screen width so
     "43.45M+" still fits on a 320px screen */
  .stat {
    padding: 10px clamp(12px, 4vw, 18px);
    gap: 6px;
  }

  .stat + .stat::before {
    top: 14px;
    bottom: 14px;
  }

  .stat-value {
    font-size: clamp(1.3rem, 6.6vw, 2.5rem);
  }

  .stat-label {
    font-size: clamp(0.72rem, 3.3vw, 0.85rem);
    white-space: nowrap;
  }

  .hero-actions {
    width: 100%;
    max-width: 440px;
    margin-top: 28px;
    gap: 12px;
  }

  /* Buttons share the row, or stack full width when there's no room */
  .hero-actions .btn {
    flex: 1 1 190px;
  }

  /* Smaller and fainter on phones, so it stays behind the text */
  .corner-marquee {
    width: 130vw;
    right: -45vw;
    bottom: calc(3% - 136px);
    gap: 12px;
  }

  .is-loaded .corner-marquee {
    opacity: 0.3;
  }

  .marquee-tile {
    width: 220px;
    margin-right: 12px;
    border-radius: 12px;
  }

  .section {
    padding: 88px var(--gutter);
  }

  .section-title {
    margin-bottom: 40px;
  }

  .games-list {
    grid-template-columns: 1fr;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .section-sub {
    margin-top: -20px;
  }

  .members-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .member-body {
    padding: 0 20px 22px;
  }

  .member-pfp {
    --pfp-size: 84px;
  }

  /* Bigger X button, easier to tap */
  .x-link {
    padding: 7px 12px;
  }

  .game-info {
    padding: 2px 6px 8px;
  }

  /* Full-width Play button on phones */
  .game-info .btn {
    align-self: stretch;
  }

  .deal-cta .btn {
    width: 100%;
    max-width: 360px;
  }

  .contact-panel {
    border-radius: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-panel .btn-discord-lg {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  /* Bigger tap area for the checkbox */
  .age-check {
    padding: 8px 4px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 4px 22px;
  }

  /* Taller footer links, easier to tap */
  .footer-links a,
  .footer-cookie {
    padding: 8px 0;
  }

  .legal {
    padding-top: 116px;
    padding-bottom: 72px;
  }

  .legal p,
  .legal li {
    overflow-wrap: anywhere;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 22px;
  }

  .cookie-title {
    font-size: 1.45rem;
  }

  .cookie-text {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
}

/* Small phones: icon-only Discord button in the nav */
@media (max-width: 420px) {
  .nav .btn-discord {
    padding: 11px;
  }

  .nav .btn-discord span {
    display: none;
  }

  /* Logo + mode switch + Discord + menu all fit on a 320px screen */
  .nav-inner {
    gap: 12px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .nav-right {
    gap: 6px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .game-stats {
    gap: 16px 28px;
  }

  .game-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
}

/* =========================================================
   Touch screens: no hover effects
   (a tap would otherwise leave cards and buttons stuck lifted)
   ========================================================= */
@media (hover: none) {
  .btn:hover,
  .btn-discord:hover,
  .x-link:hover,
  .theme-toggle:hover,
  .member-card:hover .member-pfp {
    transform: none;
  }

  .theme-toggle:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--line-strong);
  }

  .btn:hover .material-symbols-rounded,
  .member-card:hover .member-link .material-symbols-rounded {
    transform: none;
  }

  .btn-primary:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: none;
  }

  .btn-outline:hover {
    background: rgba(var(--bg-rgb), 0.35);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.4);
  }

  .btn-discord:hover {
    background: var(--discord);
    box-shadow: none;
  }

  .x-link:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--line-strong);
  }

  .member-card:hover .member-link {
    background: transparent;
    color: inherit;
  }

  .member-card:hover .member-banner img,
  .game-feature:hover .game-media img.is-active {
    transform: scale(1);
  }

  .deal-card:hover .deal-icon {
    background: transparent;
    color: inherit;
    transform: none;
  }

  .spotlight:hover::before {
    opacity: 0;
  }

  /* Quick press feedback instead */
  .btn:active,
  .btn-discord:active {
    transform: scale(0.97);
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .cookie-banner {
    transition: none;
  }

  .fade-in,
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .game-media img {
    transition: opacity 0.3s;
    transform: none !important;
  }
}
