/*
 * Game Devs – public website styles
 * Design language derived from the logo: deep navy, cyan/teal, a warm
 * orange accent, pixel blocks and the portal arch.
 * No framework, no build step. Mobile first.
 */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400 500;
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #04121f;
  --navy-900: #071b2c;
  --navy-800: #0a253a;
  --navy-700: #113451;
  --navy-600: #1a4566;
  --cyan-500: #02b1c2;
  --cyan-400: #1fd1db;
  --cyan-300: #7fe6ec;
  --teal-700: #06717f;
  --teal-800: #055866;
  --orange-500: #fcac2a;
  --orange-400: #ffc25c;
  --paper: #f4f8fa;
  --paper-2: #eaf1f5;
  --white: #ffffff;
  --ink: #0a253a;
  --ink-muted: #46607a;
  --line: #d9e4eb;
  --on-dark: #e9f2f7;
  --on-dark-muted: #a3b8c8;
  --line-dark: rgba(127, 230, 236, 0.14);

  --font-sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 27, 44, 0.06);
  --shadow: 0 1px 2px rgba(7, 27, 44, 0.05), 0 10px 30px -10px rgba(7, 27, 44, 0.18);
  --shadow-lg: 0 2px 4px rgba(7, 27, 44, 0.05), 0 24px 48px -16px rgba(7, 27, 44, 0.28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button { font: inherit; }
::selection { background: var(--cyan-300); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--cyan-500);
  box-shadow: 14px 0 0 -2px var(--orange-500);
  margin-right: 12px;
}
.on-dark .eyebrow { color: var(--cyan-400); }

.display {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 750; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-muted); }
.on-dark .lead { color: var(--on-dark-muted); }
.text-accent { color: var(--cyan-400); }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--btn-border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(2, 177, 194, 0.65); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg.icon-arrow-right { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--cyan-400); --btn-fg: var(--navy-900); }
.btn--primary:hover { --btn-bg: var(--cyan-300); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(233, 242, 247, 0.32); }
.btn--ghost:hover { --btn-border: var(--cyan-400); box-shadow: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-border: var(--line); }
.btn--outline:hover { --btn-border: var(--navy-800); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; border-radius: 10px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); color: var(--teal-700); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--white); }
.on-dark .link-arrow svg { color: var(--cyan-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.brand__mark { height: 44px; width: auto; }
.brand__word { height: 17px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy-800);
  font-weight: 550;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--paper-2); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--cyan-500);
}

.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--navy-800);
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 16px; height: 16px; }
.lang-switch summary:hover { border-color: var(--navy-800); }
.lang-switch__list {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 180px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.lang-switch__list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--navy-800);
  text-decoration: none;
  font-size: 0.95rem;
}
.lang-switch__list a:hover { background: var(--paper-2); }
.lang-switch__list a[aria-current="true"] { font-weight: 650; }
.lang-switch__list span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); text-transform: uppercase; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
.menu-open .menu-toggle .icon-menu { display: none; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  padding: 24px var(--gutter) 40px;
  background: var(--white);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  text-decoration: none;
}
.mobile-nav__links a[aria-current="page"] { color: var(--teal-700); }
.mobile-nav__links svg { width: 22px; height: 22px; color: var(--cyan-500); }
.mobile-nav__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mobile-nav__langs a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 550;
}
.mobile-nav__langs a[aria-current="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-nav { display: none; }
  .brand__mark { height: 48px; }
  .brand__word { height: 19px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--white { background: var(--white); }
.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section__head > div { max-width: 680px; }
.section__head h2 { margin-bottom: 0; }

/* Pixel-step edge (echoes the stepped pixels of the logo) */
.pixel-edge {
  position: absolute;
  left: 0; right: 0;
  height: 24px;
  pointer-events: none;
  color: var(--paper);
}
.pixel-edge svg { width: 100%; height: 100%; }
.pixel-edge--bottom { bottom: -1px; }
.pixel-edge--top { top: -1px; transform: scaleY(-1); }
.pixel-edge--white { color: var(--white); }
.pixel-edge--dark { color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(31, 209, 219, 0.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(6, 113, 127, 0.28), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(56px, 8vw, 112px) clamp(88px, 10vw, 140px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(127, 230, 236, 0.14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .text-accent { display: block; }
.hero__text { max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; background: var(--cyan-400); }
.hero__meta li:nth-child(3n+2)::before { background: var(--orange-500); }

.hero__art { position: relative; justify-self: center; width: min(100%, 460px); }
.portal {
  position: relative;
  aspect-ratio: 0.84;
  border-radius: 999px 999px 18px 18px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800) 60%);
  box-shadow: 0 0 0 1px rgba(127, 230, 236, 0.18), 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.portal__window {
  position: relative;
  height: 100%;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fbfc 0%, #d9f6f8 55%, #9fe9ee 100%);
}
.portal__window svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(31, 209, 219, 0.35), 0 0 60px rgba(31, 209, 219, 0.25);
  opacity: 0.6;
}
.pixels { position: absolute; inset: 0; pointer-events: none; }
.pixels span {
  position: absolute;
  width: var(--s, 18px);
  height: var(--s, 18px);
  border-radius: 3px;
  background: var(--c, var(--cyan-500));
}
/* Pixel positions are classes (no inline styles: strict CSP). */
.px-1 { --s: 26px; --c: var(--cyan-500); left: -14%; top: 12%; }
.px-2 { --s: 20px; --c: var(--navy-600); left: -22%; top: 26%; }
.px-3 { --s: 30px; --c: var(--cyan-400); left: -8%; top: 34%; }
.px-4 { --s: 16px; --c: var(--orange-500); left: -26%; top: 48%; }
.px-5 { --s: 22px; --c: var(--teal-700); left: -15%; top: 58%; }
.px-6 { --s: 14px; --c: var(--cyan-300); left: -6%; top: 6%; }
.px-7 { --s: 18px; --c: var(--navy-600); right: -10%; top: 70%; }
.px-8 { --s: 12px; --c: var(--orange-500); right: -16%; top: 22%; }

/* ---------- Cards: games ---------- */
.game-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c4d6e0; }
.game-card:focus-within { box-shadow: var(--shadow-lg); }
.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
  overflow: hidden;
}
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.045); }
.game-card__media .badge { position: absolute; left: 14px; top: 14px; }
.game-card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 22px 24px; }
.game-card__title { font-size: 1.35rem; margin: 0; }
.game-card__title a { color: var(--navy-900); text-decoration: none; }
.game-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.game-card__text { margin: 0; color: var(--ink-muted); font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.game-card__footer { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--teal-700); }
.game-card__cta svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.game-card:hover .game-card__cta svg { transform: translateX(4px); }

@media (min-width: 1040px) {
  .game-card--lead { grid-column: span 2; flex-direction: row; }
  .game-card--lead .game-card__media { aspect-ratio: auto; flex: 0 0 58%; min-height: 380px; }
  .game-card--lead .game-card__body { padding: 36px; justify-content: center; }
  .game-card--lead .game-card__title { font-size: 2rem; }
}

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.meta-row li { display: inline-flex; align-items: center; gap: 6px; }
.meta-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.platform-icons { display: inline-flex; gap: 6px; }
.platform-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--navy-800);
}
.platform-icons svg { width: 16px; height: 16px; }

/* Placeholder art for content without an image */
.placeholder-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(31, 209, 219, 0.35), transparent 70%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.placeholder-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(127, 230, 236, 0.18) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.placeholder-art img { position: relative; width: 26%; max-width: 120px; opacity: 0.95; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  background: var(--white);
  color: var(--navy-800);
  box-shadow: 0 2px 10px rgba(7, 27, 44, 0.18);
  z-index: 2;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.badge--live::before { background: var(--cyan-500); }
.badge--soon::before { background: var(--orange-500); }
.badge--dev::before { background: var(--navy-600); }
.badge--muted { color: var(--ink-muted); }
.badge--muted::before { background: #9aaab6; }
.badge--outline { box-shadow: none; border: 1px solid var(--line); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 550;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--navy-800); color: var(--navy-800); }
.chip[aria-current="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }

/* ---------- Studio / engines ---------- */
.studio-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .studio-grid { grid-template-columns: 1.05fr 1fr; } }
.studio-copy { max-width: 600px; }
.studio-copy p { color: var(--on-dark-muted); font-size: 1.08rem; }
.engine-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.engine {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 52, 81, 0.75), rgba(10, 37, 58, 0.75));
  border: 1px solid var(--line-dark);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.engine:hover { transform: translateX(6px); border-color: rgba(31, 209, 219, 0.45); }
.engine__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(31, 209, 219, 0.1);
  color: var(--cyan-400);
}
.engine__icon svg { width: 26px; height: 26px; }
.engine:nth-child(2) .engine__icon { color: var(--orange-400); background: rgba(252, 172, 42, 0.1); }
.engine h3 { margin: 0 0 4px; font-size: 1.15rem; }
.engine p { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- News cards ---------- */
.news-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-800); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.045); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.news-card__title { font-size: 1.22rem; margin: 0; }
.news-card__title a { color: var(--navy-900); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card__text { margin: 0; color: var(--ink-muted); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__cta { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; color: var(--teal-700); display: inline-flex; gap: 6px; align-items: center; }
.news-card__cta svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.news-card:hover .news-card__cta svg { transform: translateX(4px); }
.category-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.date { font-size: 0.86rem; color: var(--ink-muted); }

/* ---------- Platforms ---------- */
.platforms {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(31, 209, 219, 0.14), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.platform-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0; padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .platform-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .platform-grid { grid-template-columns: repeat(4, 1fr); } }
.platform-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(10, 37, 58, 0.6);
  color: var(--white);
  font-weight: 600;
  transition: border-color 0.3s, transform 0.3s var(--ease), background-color 0.3s;
}
.platform-tile:hover { border-color: rgba(31, 209, 219, 0.5); transform: translateY(-3px); background: rgba(17, 52, 81, 0.8); }
.platform-tile svg { width: 22px; height: 22px; color: var(--cyan-400); flex-shrink: 0; }
.platform-tile:nth-child(4n+3) svg { color: var(--orange-400); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(31, 209, 219, 0.28), transparent 60%),
    var(--navy-800);
  color: var(--on-dark);
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: var(--on-dark-muted); }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(55% 90% at 100% 0%, rgba(31, 209, 219, 0.16), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(127, 230, 236, 0.12) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; max-width: 900px; }
.page-hero .lead { max-width: 680px; margin: 0; }

.breadcrumb { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(163, 184, 200, 0.5); }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Game detail ---------- */
.game-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-dark);
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
}
.game-hero__bg { position: absolute; inset: 0; }
.game-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.game-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 18, 31, 0.15) 0%, rgba(4, 18, 31, 0.55) 45%, rgba(4, 18, 31, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 18, 31, 0.7) 0%, transparent 70%);
}
.game-hero__content { position: relative; width: 100%; padding-block: 120px clamp(56px, 7vw, 96px); }
.game-hero__logo { max-height: 120px; width: auto; margin-bottom: 20px; }
.game-hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.game-hero .lead { color: #cfdde6; max-width: 640px; }
.game-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.detail-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.facts {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.facts h2 { font-size: 1.05rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; gap: 0; }
.facts dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 550; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.facts .platform-link { display: inline-flex; align-items: center; gap: 8px; }
.facts .platform-link svg { width: 16px; height: 16px; color: var(--teal-700); }

.prose { font-size: 1.07rem; line-height: 1.75; color: #1c3549; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 0.6em; color: var(--navy-900); }
.prose h3 { font-size: 1.3rem; margin: 1.5em 0 0.5em; color: var(--navy-900); }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose ul li::marker { color: var(--cyan-500); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--cyan-500);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.12rem;
  color: var(--navy-800);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { color: var(--teal-700); font-weight: 550; }
.prose strong { color: var(--navy-900); }

.block-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 20px; }
.stack > * + * { margin-top: clamp(40px, 5vw, 64px); }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s; }
.gallery a:hover img { transform: scale(1.05); opacity: 0.92; }
.gallery li:first-child { grid-column: span 2; }
.gallery li:first-child a { aspect-ratio: 16 / 9; }

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(4, 18, 31, 0.94);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(4, 18, 31, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 12px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--on-dark-muted); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__caption { padding: 12px 18px 22px; text-align: center; color: var(--on-dark-muted); font-size: 0.95rem; min-height: 48px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(233, 242, 247, 0.22);
  background: rgba(10, 37, 58, 0.7);
  color: var(--white);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--cyan-400); }
.icon-btn svg { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -60px; transform: none; }
}

/* Two-click video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(4, 18, 31, 0.2), rgba(4, 18, 31, 0.85));
}
.video__consent p { max-width: 520px; margin: 0; font-size: 0.88rem; color: #d3e0e8; }
.video__consent a { color: var(--cyan-300); }
.video__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan-400);
  color: var(--navy-900);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.video__play:hover { transform: scale(1.04); background: var(--cyan-300); }
.video__play span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900); color: var(--cyan-400); }
.video__play svg { width: 16px; height: 16px; margin-left: 2px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fff6e6;
  border: 1px solid #f5d79c;
  color: #6b4a0b;
  font-size: 0.95rem;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice--success { background: #e6f8f9; border-color: #9fe0e6; color: var(--teal-800); }
.notice--error { background: #fdecec; border-color: #f2b8b8; color: #8a1c1c; }

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--orange-500);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.preview-bar a { color: var(--navy-900); }

/* ---------- Article ---------- */
.article-header { padding-top: clamp(40px, 6vw, 80px); }
.article-header h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; color: var(--ink-muted); font-size: 0.92rem; }
.article-cover { margin: clamp(28px, 4vw, 48px) auto 0; max-width: calc(1080px + 2 * var(--gutter)); padding-inline: var(--gutter); }
.article-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-800); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 12px; border-radius: 999px; background: var(--paper-2); font-size: 0.85rem; color: var(--navy-800); }
.related-game {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .related-game { grid-template-columns: 220px 1fr; } }
.related-game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--navy-800); }
.related-game h3 { margin: 4px 0 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy-900);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
a.contact-card:hover { border-color: var(--cyan-500); transform: translateY(-3px); color: var(--navy-900); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: var(--cyan-400); flex-shrink: 0; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card strong { display: block; font-size: 1.1rem; word-break: break-word; }
.channel-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.form-card {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.93rem; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #c8d6df;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #9fb4c2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(2, 177, 194, 0.2); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field__error { color: #b42318; font-size: 0.88rem; font-weight: 550; }
.form-note { font-size: 0.86rem; color: var(--ink-muted); margin: 0; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Security check (self-hosted CAPTCHA) ---------- */
.captcha__box {
  margin: 0;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-width: 0;
}
.captcha[aria-busy="true"] .captcha__box { opacity: 0.6; }
.captcha__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-weight: 700;
  color: var(--navy-800);
}
.captcha__title svg { width: 20px; height: 20px; color: var(--teal-700); }
.captcha__intro, .captcha__hint { margin: 4px 0 12px; font-size: 0.86rem; color: var(--ink-muted); }
.captcha__hint { margin: 12px 0 0; }
.captcha__prompt {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
}
.captcha__prompt:focus { outline: none; }
.captcha__prompt:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; }
.captcha__error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #8a1c1c;
  font-size: 0.9rem;
  font-weight: 600;
}
.captcha__error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.captcha__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) { .captcha__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 960px) { .form-card .captcha__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .form-card .captcha__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.captcha__tile { position: relative; display: block; cursor: pointer; }
.captcha__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.captcha__face {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid var(--navy-700);
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, var(--navy-700), var(--navy-900) 70%);
  transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s;
}
.captcha__face img { width: 82%; height: auto; pointer-events: none; user-select: none; }
.captcha__tile:hover .captcha__face { border-color: var(--cyan-400); }
.captcha__input:focus-visible + .captcha__face { outline: 3px solid var(--orange-500); outline-offset: 3px; }
.captcha__input:checked + .captcha__face {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(252, 172, 42, 0.45);
  transform: scale(0.96);
}
/* Selected = checkmark badge (not colour alone); ordered tasks show 1, 2 … */
.captcha__mark {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}
.captcha__mark::after { content: "\2713"; }
.captcha__mark[data-order]::after { content: attr(data-order); }
.captcha__input:checked + .captcha__face .captcha__mark { display: block; }
.captcha__question { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.captcha__question legend { margin-bottom: 8px; font-weight: 700; color: var(--navy-900); }
.captcha__options { display: flex; flex-wrap: wrap; gap: 8px; }
.captcha__option { position: relative; cursor: pointer; }
.captcha__option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.captcha__option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid #c8d6df;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.captcha__option:hover span { border-color: var(--teal-700); }
.captcha__option input:focus-visible + span { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.captcha__option input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: var(--white); }
.captcha__option input:checked + span::before { content: "\2713"; margin-right: 8px; color: var(--orange-400); }
.captcha__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.captcha__actions .btn svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .captcha__face { transition: none; }
  .captcha__input:checked + .captcha__face { transform: none; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span[aria-current], .pagination .is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--navy-800); }
.pagination span[aria-current] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.pagination .is-disabled { opacity: 0.45; }
.pagination svg { width: 16px; height: 16px; }
.pagination__status { width: 100%; text-align: center; font-size: 0.88rem; color: var(--ink-muted); }

/* ---------- Empty states ---------- */
.empty {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: clamp(40px, 6vw, 72px) 24px;
  border: 1.5px dashed #c5d5df;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.6);
}
.empty img { width: 64px; opacity: 0.9; }
.on-dark .empty { border-color: var(--line-dark); background: transparent; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--white); padding-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-muted); max-width: 360px; font-size: 0.96rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--navy-800); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--teal-700); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.footer-langs a { padding: 4px 10px; border-radius: 8px; color: var(--navy-800); text-decoration: none; font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; }
.footer-langs a:hover { background: var(--paper-2); }
.footer-langs a[aria-current="true"] { background: var(--navy-800); color: var(--white); }
.footer-pixel { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.footer-pixel i { width: 7px; height: 7px; background: var(--cyan-500); }
.footer-pixel i:nth-child(2) { background: var(--navy-800); }
.footer-pixel i:nth-child(3) { background: var(--orange-500); }

/* ---------- Error pages ---------- */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding-block: 64px;
  background:
    radial-gradient(50% 60% at 80% 10%, rgba(31, 209, 219, 0.18), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-page__code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 9rem); font-weight: 500; line-height: 1; color: var(--cyan-400); letter-spacing: -0.04em; margin-bottom: 8px; }
.error-page h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.6rem); }
.error-page p { color: var(--on-dark-muted); max-width: 520px; margin-inline: auto; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes portal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.85; } }
@keyframes sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 0.8s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.24s; }
  .hero__text > :nth-child(5) { animation-delay: 0.32s; }
  .hero__art .portal { animation: portal-in 1s var(--ease) 0.15s both; }
  .portal__glow { animation: glow 6s ease-in-out infinite; }
  .pixels span { animation: drift 7s ease-in-out infinite; }
  .pixels span:nth-child(2n) { animation-duration: 9s; animation-delay: -2s; }
  .pixels span:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
  .scene-sun { transform-box: fill-box; transform-origin: center; animation: sun 8s ease-in-out infinite; }

  .reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
}

@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; }
}

/* ---------- Layout breakpoints ---------- */
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__art { justify-self: end; }
}
@media (max-width: 959px) {
  .hero__art { width: min(78%, 360px); margin-top: 8px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .section__head { align-items: start; }
}

@media print {
  .site-header, .site-footer, .hero__art, .preview-bar, .video { display: none !important; }
  body { background: #fff; }
  .page-hero, .hero, .game-hero { background: #fff !important; color: #000 !important; }
}

/* ---------- Utilities & late additions ---------- */
picture { display: contents; }
.m-0 { margin: 0; }
.section--tight { padding-block: 0 clamp(48px, 6vw, 80px); }
.section--article { padding-top: clamp(32px, 4vw, 56px); }
.inline-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.breadcrumb--light { color: var(--ink-muted); }
.breadcrumb--light a { color: var(--ink-muted); }
.breadcrumb--light a:hover { color: var(--navy-900); }
.breadcrumb--light li + li::before { color: #b6c6d1; }
@media (min-width: 1040px) {
  .game-grid--single .game-card--lead { grid-column: 1 / -1; }
  .game-grid--single .game-card--lead .game-card__media { flex-basis: 62%; min-height: 440px; }
}
@media (min-width: 720px) {
  .gallery li:first-child { grid-row: span 2; }
  .gallery li:first-child a { aspect-ratio: auto; height: 100%; min-height: 100%; }
}
