/* Ezy's Games: black by default, white mode via the header toggle. Tokens first, components after. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0a0a0a;
  --card: #111111;
  --card-2: #1a1a1a;
  --line: #262626;
  --line-2: #3d3d3d;
  --fg: #ffffff;
  --fg-2: #b3b3b3;     /* 10:1 on --bg */
  --fg-3: #8a8a8a;     /* 6:1 on --bg */
  --accent: #ffffff;   /* primary button: white, black text */
  --on-accent: #000000;
  --accent-hover: #e6e6e6;
  --accent-edge: #9a9a9a;
  --edge: #000;
  --live: #4ade80;
  --live-fg: #4ade80;
  --tint-1: rgba(255,255,255,.04);
  --tint-2: rgba(255,255,255,.08);
  --tint-3: rgba(255,255,255,.12);
  --nav-bg: rgba(0,0,0,.72);
  --menu-bg: rgba(0,0,0,.97);
  --glass: rgba(18,18,18,.62);
  --glass-line: rgba(255,255,255,.12);
  --hero-shade: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 45%, #000 100%);
  --hit-glow: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,255,255,.08), transparent 70%);
  --well: #000;
  --footer-bg: #000;
  --avatar-bg: radial-gradient(circle at 50% 35%, #2a2a2a, #0a0a0a);
  /* inverted block (CTA): white card on black page, black card on white page */
  --inv-bg: #ffffff;
  --inv-fg: #000000;
  --inv-p: #3a3a3a;
  --inv-btn: #000;
  --inv-btn-fg: #fff;
  --inv-btn-hover: #1f1f1f;
  --inv-btn-edge: #444;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 12px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -20px rgba(0,0,0,.7);

  --font-display: "Russo One", system-ui, sans-serif;
  --font: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms;
  --t: 260ms;
  --wrap: 1180px;
  --gutter: 16px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --card: #ffffff;
  --card-2: #f1f1f1;
  --line: #e5e5e5;
  --line-2: #cfcfcf;
  --fg: #0a0a0a;
  --fg-2: #4d4d4d;     /* 8.4:1 on white */
  --fg-3: #6b6b6b;     /* 5.3:1 on white */
  --accent: #000000;
  --on-accent: #ffffff;
  --accent-hover: #262626;
  --accent-edge: #5a5a5a;
  --edge: #d4d4d4;
  --live: #22c55e;
  --live-fg: #15803d;
  --tint-1: rgba(0,0,0,.03);
  --tint-2: rgba(0,0,0,.06);
  --tint-3: rgba(0,0,0,.1);
  --nav-bg: rgba(255,255,255,.8);
  --menu-bg: rgba(255,255,255,.98);
  --glass: rgba(255,255,255,.72);
  --glass-line: rgba(0,0,0,.08);
  --hero-shade: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.45) 45%, #fff 100%);
  --hit-glow: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0,0,0,.06), transparent 70%);
  --well: #f6f6f6;
  --footer-bg: #fafafa;
  --avatar-bg: radial-gradient(circle at 50% 35%, #ffffff, #e5e5e5);
  --inv-bg: #000000;
  --inv-fg: #ffffff;
  --inv-p: #c4c4c4;
  --inv-btn: #ffffff;
  --inv-btn-fg: #000000;
  --inv-btn-hover: #e6e6e6;
  --inv-btn-edge: #8a8a8a;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 30px -18px rgba(0,0,0,.2);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.05), 0 30px 60px -28px rgba(0,0,0,.3);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t) ease, color var(--t) ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 16px; height: 16px; }
.ico--fill { fill: currentColor; stroke: none; }
.ico--brand { fill: currentColor; stroke: none; }
.ico--flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--card-2); --b-fg: var(--fg); --b-edge: var(--edge);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 14px;
  background: var(--b-bg); color: var(--b-fg);
  font: 700 1rem/1 var(--font); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--b-edge), 0 10px 24px -10px rgba(0,0,0,.6);
  cursor: pointer; touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--b-edge), 0 16px 30px -12px rgba(0,0,0,.6); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--b-edge), 0 6px 14px -8px rgba(0,0,0,.6); }
.btn--primary { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-edge: var(--accent-edge); }
.btn--primary:hover { --b-bg: var(--accent-hover); }
.btn--ghost { --b-bg: var(--tint-1); --b-edge: var(--edge); box-shadow: inset 0 0 0 2px var(--line-2), 0 4px 0 var(--b-edge); }
.btn--ghost:hover { --b-bg: var(--tint-2); box-shadow: inset 0 0 0 2px var(--fg), 0 6px 0 var(--b-edge); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--pill { border-radius: 999px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: #fff center/cover no-repeat;
  box-shadow: 0 0 0 1px var(--line-2);
}
.brand__name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .01em; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) {
  position: relative; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--fg-2); font-weight: 600;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__links a:not(.btn):hover { color: var(--fg); background: var(--tint-2); }
.nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--fg);
}
.nav__links .btn { margin-left: 8px; }
.nav__toggle, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--tint-1); color: var(--fg); cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.nav__toggle:hover, .theme-toggle:hover { background: var(--tint-2); border-color: var(--line-2); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--menu-bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out), visibility 0s linear var(--t-fast);
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__links a:not(.btn) { padding: 14px 12px; font-size: 1.0625rem; }
  .nav__links a[aria-current="page"]::after { left: 12px; right: auto; width: 24px; bottom: 8px; }
  .nav__links .btn { margin: 8px 0 0; min-height: 48px; }
}
@media (max-width: 380px) { .brand__name { font-size: 1.0625rem; } }

/* ---------- shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-2); font-weight: 700; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase;
}
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding-top: 24px; }
.section--flush { padding-top: 8px; }
@media (min-width: 1024px) { .section { padding: 96px 0; } .section--tight { padding-top: 32px; } .section--flush { padding-top: 8px; } }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 4.4vw, 3rem); margin-top: 8px; }

.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; }
.center-head .section__title { margin: 0; }
.center-head__bar { width: 72px; height: 4px; border-radius: 4px; background: var(--fg); }
.center-head p { color: var(--fg-2); font-size: 1.0625rem; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

.live-dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--live); flex: none;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- hero (landing) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 68px); display: flex; align-items: center;
  padding: 48px 0 56px;
}
.hero__bg { position: absolute; inset: -40px; z-index: -2; }
.hero__bg .slide {
  position: absolute; inset: 0; background: center/cover no-repeat;
  filter: blur(3px) saturate(115%); transform: scale(1.08);
  opacity: 0; transition: opacity 1.4s ease, transform 8s linear;
}
.hero__bg .slide.on { opacity: 1; transform: scale(1.14); }
.hero__bg--soft .slide { filter: blur(18px) saturate(110%); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); }
.hero__in { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.hero-card {
  width: 100%; max-width: 640px;
  padding: 28px 24px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .hero-card { padding: 36px 40px; } }
.hero-card__brand { display: flex; align-items: center; gap: 18px; }
.hero-card__logo {
  width: 72px; height: 72px; border-radius: 18px; flex: none;
  background: #fff center/cover no-repeat; box-shadow: 0 0 0 1px var(--glass-line), 0 10px 24px -10px rgba(0,0,0,.6);
}
@media (min-width: 640px) { .hero-card__logo { width: 88px; height: 88px; border-radius: 22px; } }
.hero-card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 8vw, 4rem); line-height: 1; letter-spacing: -.01em; }
.hero-card__lead { color: var(--fg-2); font-size: 1.0625rem; margin-top: 16px; }
.hero-card__cta { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
@media (min-width: 520px) { .hero-card__cta { grid-template-columns: 1fr 1fr; gap: 16px; } }
.hero-card__cta .btn { width: 100%; }
.hero-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.hstat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.hstat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hstat__num--live { color: var(--live-fg); }
.hstat__label { display: block; color: var(--fg-2); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.hstat__label .live-dot, .hstat__label .ico { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.hstat__label .live-dot { width: 8px; height: 8px; vertical-align: 0; }

.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.ticker li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg-2); font-size: .9375rem; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ticker strong { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- top hits (landing) ---------- */
#top-hits-section { position: relative; }
#top-hits-section::before { content: ""; position: absolute; inset: 0; background: var(--hit-glow); pointer-events: none; }
.hits { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 56px); flex-wrap: wrap; }
.hit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; width: var(--w); order: var(--pos, 0); }
.hit--1 { --w: 260px; --img: 240px; }
.hit--2, .hit--3 { --w: 200px; --img: 176px; margin-top: 32px; }
.hit--4, .hit--5 { --w: 170px; --img: 136px; margin-top: 64px; }
.hit__img {
  position: relative; width: var(--img); aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--card-2);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -18px rgba(0,0,0,.7);
  transition: transform var(--t) var(--ease-out);
}
.hit__img img { width: 100%; height: 100%; object-fit: cover; }
.hit:hover .hit__img { transform: translateY(-6px) rotate(-1.5deg); }
.hit__rank {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.78); color: #fff; font-weight: 700; font-size: .8125rem; border: 1px solid rgba(255,255,255,.15);
}
.hit--1 .hit__rank { background: #fff; color: #000; border-color: transparent; }
.hit__name { font-weight: 700; font-size: 1.125rem; line-height: 1.25; overflow-wrap: anywhere; }
.hit--1 .hit__name { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg-2); font-size: .9375rem; font-weight: 600;
}
.pill strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.pill--live strong { color: var(--live-fg); }
.pill .live-dot { width: 8px; height: 8px; }
.hit__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.skel-hit { min-height: 340px; border-radius: 26px; }
@media (max-width: 719px) {
  .hits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .hit { width: auto; margin-top: 0 !important; order: var(--rank, 0); }
  .hit--1 { grid-column: 1 / -1; }
  .hit--1 .hit__img { width: min(240px, 70vw); }
  .hit:not(.hit--1) .hit__img { width: 100%; max-width: 170px; }
  .hit .btn { width: 100%; max-width: 220px; }
}

/* ---------- about ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.about__copy p { color: var(--fg-2); font-size: 1.0625rem; margin-top: 16px; max-width: 60ch; }
.about__copy strong { color: var(--fg); }
.pillars { display: grid; gap: 16px; }
@media (min-width: 640px) and (max-width: 959px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px;
  padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.pillar__icon {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
}
.pillar h3 { font-size: 1.125rem; font-weight: 700; align-self: end; }
.pillar p { color: var(--fg-2); font-size: .9375rem; }
@media (min-width: 640px) and (max-width: 959px) { .pillar { grid-template-columns: 1fr; } .pillar__icon { grid-row: auto; margin-bottom: 8px; } }

/* ---------- community ---------- */
.community { display: grid; gap: 32px; }
@media (min-width: 960px) { .community { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; } }
.sub { font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-3); margin-bottom: 14px; font-weight: 700; }
.team { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .person { padding: 22px 12px; } .person__avatar { width: 88px; height: 88px; } .person__name { font-size: 1.0625rem; } }
.person {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 28px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease-out), border-color var(--t);
}
.person:hover { transform: translateY(-4px); border-color: var(--line-2); }
.person__avatar {
  width: 112px; height: 112px; border-radius: 50%; margin-bottom: 10px; object-fit: cover;
  background: var(--avatar-bg); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--fg);
}
.person__name { font-family: var(--font-display); font-size: 1.25rem; overflow-wrap: anywhere; }
.person__role { color: var(--fg-2); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; }
.person__user { color: var(--fg-3); font-size: .9375rem; }
.groups { display: grid; gap: 12px; }
.group {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.group__icon { width: 64px; height: 64px; border-radius: 16px; flex: none; object-fit: cover; background: var(--card-2); }
.group__info { flex: 1; min-width: 0; }
.group__name { font-weight: 700; font-size: 1.0625rem; overflow-wrap: anywhere; }
.group__members { display: flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: .9375rem; }
.group--discord .group__icon { display: grid; place-items: center; background: #5865f2; color: #fff; }
.group--discord .group__icon .ico { width: 32px; height: 32px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
  padding: 36px 28px; border-radius: 28px;
  background: var(--inv-bg); color: var(--inv-fg);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px 56px; } }
.cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 3.6vw, 2.5rem); color: var(--inv-fg); }
.cta p { color: var(--inv-p); margin-top: 10px; max-width: 52ch; font-size: 1.0625rem; }
.cta .btn--primary { --b-bg: var(--inv-btn); --b-fg: var(--inv-btn-fg); --b-edge: var(--inv-btn-edge); position: relative; z-index: 1; }
.cta .btn--primary:hover { --b-bg: var(--inv-btn-hover); }
.cta :focus-visible { outline-color: var(--inv-fg); }

/* ---------- contact pill (bottom left) ---------- */
.contact-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px -10px rgba(0,0,0,.6);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t), visibility 0s;
}
.contact-pill:hover { transform: translateY(-2px); }
.contact-pill.away { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t); }
@media (min-width: 768px) { .contact-pill { left: 24px; bottom: 24px; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 88px; background: var(--footer-bg); }
@media (min-width: 768px) { .footer { padding-bottom: 32px; } }
.footer__in { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__in { grid-template-columns: 1.2fr 1fr; } }
.footer__brand p { color: var(--fg-3); margin-top: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint-1); border: 1px solid var(--line); color: var(--fg);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.socials a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-2px); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer__cols h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-3); margin-bottom: 10px; }
.footer__cols a { display: block; padding: 6px 0; color: var(--fg-2); text-decoration: none; }
.footer__cols a:hover { color: var(--fg); }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .875rem; }

/* ---------- games page ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 40px; }
@media (min-width: 1024px) { .page-head { padding: 64px 0 48px; } }
.page-head__in { display: flex; flex-direction: column; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); text-decoration: none; font-weight: 600; width: fit-content; padding: 6px 0; }
.back:hover { color: var(--fg); }
.page-head__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; }
.page-head__lead { color: var(--fg-2); font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 60ch; }
.totals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.totals__item {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg-2); font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.totals__item strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.totals__item--live strong { color: var(--live-fg); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 24px; }
.sort { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sort__btn {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2);
  font: 600 .9375rem/1 var(--font); cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.sort__btn:hover { color: var(--fg); background: var(--tint-2); }
.sort__btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.updated { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: .9375rem; }
.updated.spin .ico { animation: spin .8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

.gcards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gcard {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t);
}
.gcard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.gcard__img { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--card-2); }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out), opacity .25s; }
.gcard:hover .gcard__img img { transform: scale(1.04); }
.gcard__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.gcard__name { font-weight: 700; font-size: 1.1875rem; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.gcard__genre { color: var(--fg-3); font-size: .875rem; text-align: center; margin-top: -8px; }
.gcard__rows { display: grid; gap: 8px; margin-top: auto; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--line);
}
.row__label { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: .9375rem; }
.row__num { font-family: var(--font-display); font-size: 1.0625rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row--live .row__num { color: var(--live-fg); }
.row .live-dot { width: 8px; height: 8px; }

.skel, .skel-card, .skel-hit { background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%) 0 0/300% 100%; animation: shimmer 1.4s linear infinite; }
.skel-card { min-height: 480px; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.num-bump { animation: bump 600ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.1); color: var(--live-fg); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg .slide.on { transform: scale(1.08); }
}
