:root {
  --bg: #f5f3ee;
  --bg-elev: #ffffff;
  --bg-soft: #ebe8e0;
  --bg-glass: rgba(245, 243, 238, 0.78);
  --ink: #141412;
  --ink-2: #4a4740;
  --muted: #78746b;
  --line: rgba(20, 20, 18, 0.09);
  --line-strong: rgba(20, 20, 18, 0.16);
  --accent-game: #d94e2a;
  --accent-game-soft: rgba(217, 78, 42, 0.10);
  --accent-ai: #0e6e61;
  --accent-ai-soft: rgba(14, 110, 97, 0.10);
  --accent-gold: #b87822;
  --accent-gold-soft: rgba(184, 120, 34, 0.12);
  --shadow-sm: 0 2px 10px rgba(18, 17, 14, 0.04);
  --shadow-md: 0 14px 36px -14px rgba(18, 17, 14, 0.12), 0 2px 6px rgba(18, 17, 14, 0.04);
  --shadow-lg: 0 32px 72px -20px rgba(18, 17, 14, 0.22);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-elev: #15181e;
  --bg-soft: #1d212a;
  --bg-glass: rgba(13, 15, 18, 0.78);
  --ink: #f3f1ec;
  --ink-2: #c5c1b8;
  --muted: #8a877f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent-game: #f97352;
  --accent-game-soft: rgba(249, 115, 82, 0.14);
  --accent-ai: #34d399;
  --accent-ai-soft: rgba(52, 211, 153, 0.14);
  --accent-gold: #f5b942;
  --accent-gold-soft: rgba(245, 185, 66, 0.14);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 42px -14px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 36px 90px -16px rgba(0, 0, 0, 0.72);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
img { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; }
a { text-decoration: none; }

/* Subtle architectural grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 8%, var(--accent-ai-soft), transparent 36%),
    radial-gradient(circle at 88% 12%, var(--accent-game-soft), transparent 34%);
  opacity: 0.7;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 40;
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-ai), var(--accent-game));
  box-shadow: 0 0 0 4px var(--accent-ai-soft);
}
.brand-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn-primary-sm {
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s;
  white-space: nowrap;
}
.btn-primary-sm:hover { transform: translateY(-1px); opacity: 0.9; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 58px 0 42px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4.6vw, 56px);
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-ai);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-ai-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.65vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .h1-line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero h1 .h1-line {
    white-space: normal;
  }
}
.hero h1 .serif-accent {
  font-family: var(--font-serif);
  font-weight: 700;
  background: linear-gradient(110deg, var(--accent-ai), var(--accent-game));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  margin: 18px 0 26px;
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  color: var(--ink-2);
  max-width: 620px;
}

/* Role Lens Switcher */
.lens-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.lens-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  padding: 0 8px 0 10px;
  letter-spacing: 0.04em;
}
.lens-btn {
  padding: 8px 15px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.lens-btn:hover { color: var(--ink); }
.lens-btn.active {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.lens-btn[data-lens="game"].active { color: var(--accent-game); }
.lens-btn[data-lens="ai"].active { color: var(--accent-ai); }

/* Right Hero Panel: Live Identity & Quick Actions */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.id-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.id-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.id-sub { font-size: 12px; font-family: var(--font-mono); color: var(--muted); }
.id-meta {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
}
.id-meta div { display: flex; justify-content: space-between; gap: 12px; }
.id-meta span { color: var(--muted); flex-shrink: 0; }
.id-meta strong { font-weight: 600; text-align: right; color: var(--ink); }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.chip-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip-action:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.chip-action.dark {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

/* Hero Stats Strip */
.stats-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.stat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-tile[data-accent="ai"] .stat-num { color: var(--accent-ai); }
.stat-tile[data-accent="game"] .stat-num { color: var(--accent-game); }
.stat-tile[data-accent="gold"] .stat-num { color: var(--accent-gold); }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.stat-sub { font-size: 11.5px; color: var(--muted); }

/* ---------- Section Common ---------- */
.sections-stack {
  display: flex;
  flex-direction: column;
}
.section {
  padding: 46px 0;
  scroll-margin-top: 86px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.section-kicker .idx {
  color: var(--accent-game);
}
.section-kicker.ai .idx { color: var(--accent-ai); }
.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.section-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

/* ---------- 01. Flagship Bento ---------- */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.flagship-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
  --mx: 50%;
  --my: 50%;
}
.flagship-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.flagship-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.flagship-card:hover::after { opacity: 1; }
.flagship-card.hero-span {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.flagship-card.half-span {
  grid-column: span 6;
}
.flagship-media {
  position: relative;
  background: #101318;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.flagship-card.hero-span .flagship-media {
  aspect-ratio: auto;
  min-height: 330px;
}
.flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.flagship-card:hover .flagship-media img { transform: scale(1.03); }
.media-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.media-badge.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.media-badge.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.flagship-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
}
.flagship-card.hero-span .flagship-body {
  padding: 32px 34px;
  justify-content: center;
  gap: 18px;
}
.flagship-highlights {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.flagship-highlights li {
  position: relative;
  padding-left: 16px;
}
.flagship-highlights li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-ai);
  font-weight: 700;
}
.flagship-card[data-kind="game"] .flagship-highlights li::before {
  color: var(--accent-game);
}
.flagship-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ai);
  margin-bottom: 4px;
}
.flagship-card[data-kind="game"] .flagship-tag { color: var(--accent-game); }
.flagship-title {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.flagship-summary {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.metric-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.link-ghost:hover { color: var(--accent-game); }
.flagship-card[data-kind="ai"] .link-ghost:hover { color: var(--accent-ai); }
.repo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s;
}
.repo-pill:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 02. Playable Game Arcade Grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
  cursor: pointer;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
}
.game-card:hover .game-thumb img {
  transform: scale(1.05);
}
.game-level-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 16, 20, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.game-genre-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-game-soft);
  color: var(--accent-game);
  font-size: 11px;
  font-weight: 700;
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 13, 16, 0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.game-card:hover .play-overlay { opacity: 1; }
.play-fab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #141412;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translateY(6px);
  transition: transform 0.28s var(--ease), background 0.2s;
}
.game-card:hover .play-fab { transform: translateY(0); }
.play-fab:hover { background: var(--accent-game); color: #fff; }

.game-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.game-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.game-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.game-tag {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.game-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}
.game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.btn-play:hover { background: var(--accent-game); color: #fff; transform: translateY(-1px); }
.btn-case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-case:hover { border-color: var(--line-strong); background: var(--bg-soft); }

/* ---------- 03. AI Products & Systems Grid ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ai-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s;
}
.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.ai-thumb {
  position: relative;
  background: #10141a;
  min-height: 210px;
  overflow: hidden;
}
.ai-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.ai-card:hover .ai-thumb img { transform: scale(1.04); }
.ai-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.ai-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-ai-soft);
  color: var(--accent-ai);
  font-size: 11px;
  font-weight: 700;
}
.ai-title {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
}
.ai-summary {
  margin: 6px 0 0;
  font-size: 12.8px;
  color: var(--ink-2);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 04. Interactive Postage-Stamp Sticker Canvas ---------- */
.visual-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.desk-actions {
  display: flex;
  gap: 8px;
}
.stamp-desk {
  position: relative;
  width: 100%;
  min-height: 640px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0) 0 0 / 26px 26px,
    var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.03), var(--shadow-sm);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: min-height 0.4s var(--ease);
}
.stamp-desk.grid-mode {
  touch-action: pan-y;
}
.stamp-desk-hint {
  position: absolute;
  left: 20px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--muted);
  pointer-events: none;
}

.stamp-sticker {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(208px, 19.5vw, 258px);
  cursor: grab;
  will-change: transform;
  transform-origin: center center;
  filter: drop-shadow(0 12px 20px rgba(18, 17, 14, 0.20)) drop-shadow(0 2px 4px rgba(18, 17, 14, 0.10));
  transition: filter 0.22s var(--ease), opacity 0.28s var(--ease);
}
[data-theme="dark"] .stamp-sticker {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.62)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.stamp-sticker.smooth-move {
  transition: transform 0.58s var(--ease), filter 0.25s var(--ease), opacity 0.28s var(--ease);
}
.stamp-sticker:hover {
  filter: drop-shadow(0 18px 30px rgba(18, 17, 14, 0.28)) drop-shadow(0 4px 8px rgba(18, 17, 14, 0.14));
}
.stamp-sticker.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 28px 44px rgba(18, 17, 14, 0.34)) drop-shadow(0 8px 14px rgba(18, 17, 14, 0.18));
}
.stamp-sticker.dimmed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* True perforated postage-stamp paper cutout (2-layer exact wrap math) */
.stamp-paper {
  position: relative;
  padding: 13px 13px 10px;
  background: #fdfbf6;
  color: #1c1b18;
  --r: 4.5px;
  --pitch: 15px;
  -webkit-mask:
    radial-gradient(var(--r) at var(--r) 50%, transparent 94%, #000 100%) calc(-1 * var(--r)) 0 / 100% var(--pitch) repeat,
    radial-gradient(var(--r) at 50% var(--r), transparent 94%, #000 100%) 0 calc(-1 * var(--r)) / var(--pitch) 100% repeat;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(var(--r) at var(--r) 50%, transparent 94%, #000 100%) calc(-1 * var(--r)) 0 / 100% var(--pitch) repeat,
    radial-gradient(var(--r) at 50% var(--r), transparent 94%, #000 100%) 0 calc(-1 * var(--r)) / var(--pitch) 100% repeat;
  mask-composite: intersect;
}
[data-theme="dark"] .stamp-paper {
  background: #ece9e1;
  color: #161614;
}
.stamp-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #14161a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.stamp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.stamp-zoom-btn {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 16, 20, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.stamp-sticker:hover .stamp-zoom-btn { opacity: 1; }
.stamp-zoom-btn:hover { transform: scale(1.1); background: var(--accent-game); border-color: transparent; }

.stamp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 2px 1px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #635f56;
}
.stamp-theme-pill {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: #201f1c;
}
.stamp-postmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.72;
}
.stamp-postmark::before {
  content: "◎";
  color: #c84b2c;
}

/* ---------- 05. Resume & Toolkit Band ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}
.about-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.timeline {
  display: grid;
  gap: 18px;
}
.tl-item {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-ai);
  border: 2px solid var(--bg-elev);
}
.tl-item.game::before { background: var(--accent-game); }
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-org { font-weight: 800; font-size: 15px; }
.tl-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tl-role { font-size: 13px; font-weight: 600; color: var(--accent-ai); margin: 2px 0 6px; }
.tl-item.game .tl-role { color: var(--accent-game); }
.tl-desc { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.tl-bullets {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 12.8px;
  color: var(--ink-2);
  line-height: 1.62;
}
.tl-bullets li {
  position: relative;
  padding-left: 14px;
}
.tl-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}
.tl-bullets strong {
  color: var(--ink);
  font-weight: 700;
}

.skill-group { margin-bottom: 16px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group-label {
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-tag {
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- 06. Apsis-Inspired Horizon Globe Footer (Dark = Video, Light = Crisp Opposite) ---------- */
.studio-footer {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  background: #faf9f6;
  color: #111214;
  border-top: 1px solid rgba(17, 18, 20, 0.10);
  overflow: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
[data-theme="dark"] .studio-footer {
  background: #060709;
  color: #f4f4f2;
  border-top-color: rgba(255, 255, 255, 0.09);
}
.footer-inner {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(3, minmax(120px, 0.55fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer-brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.footer-lead {
  margin: 14px 0 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5e5c56;
  max-width: 340px;
}
[data-theme="dark"] .footer-lead { color: #8c9099; }

.footer-micro-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d7a72;
  margin-bottom: 10px;
}
[data-theme="dark"] .footer-micro-label { color: #676b74; }

.footer-contact-box {
  display: flex;
  align-items: center;
  max-width: 330px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(17, 18, 20, 0.18);
  background: rgba(17, 18, 20, 0.025);
  overflow: hidden;
}
[data-theme="dark"] .footer-contact-box {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
.footer-contact-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 13px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: inherit;
  outline: none;
}
.footer-contact-submit {
  width: 42px;
  height: 100%;
  border: 0;
  background: #111214;
  color: #faf9f6;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s;
}
[data-theme="dark"] .footer-contact-submit {
  background: #f4f4f2;
  color: #060709;
}
.footer-contact-submit:hover { opacity: 0.85; }

.footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-sq-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(17, 18, 20, 0.18);
  background: transparent;
  color: #111214;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
[data-theme="dark"] .footer-sq-btn {
  border-color: rgba(255, 255, 255, 0.20);
  color: #f4f4f2;
}
.footer-sq-btn:hover {
  background: #111214;
  color: #faf9f6;
  border-color: transparent;
}
[data-theme="dark"] .footer-sq-btn:hover {
  background: #f4f4f2;
  color: #060709;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #848078;
}
[data-theme="dark"] .footer-col h4 { color: #676b74; }
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.footer-col a,
.footer-col button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  color: #2e2d2a;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.18s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-col button { color: #d5d7dd; }
.footer-col a:hover,
.footer-col button:hover { opacity: 0.62; transform: translateX(2px); }
.footer-pill-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid currentColor;
  opacity: 0.65;
}

/* Precision Instrument Ruler Divider */
.footer-ruler {
  position: relative;
  height: 16px;
  margin: 48px 0 20px;
  border-bottom: 1px solid rgba(17, 18, 20, 0.14);
  background-image:
    repeating-linear-gradient(90deg, rgba(17, 18, 20, 0.34) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(17, 18, 20, 0.14) 0 1px, transparent 1px 16px);
  background-size: 100% 10px, 100% 5px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
}
[data-theme="dark"] .footer-ruler {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 16px);
}

.footer-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: #7d7a72;
}
[data-theme="dark"] .footer-meta-bar { color: #676b74; }

.back-top-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(17, 18, 20, 0.18);
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
[data-theme="dark"] .back-top-btn { border-color: rgba(255, 255, 255, 0.18); }
.back-top-btn:hover { transform: translateY(-2px); background: rgba(127, 127, 127, 0.12); }

/* Rotating 3D Wireframe Horizon Globe */
.footer-globe-stage {
  position: relative;
  width: 100%;
  height: 270px;
  margin-top: 8px;
  overflow: hidden;
  pointer-events: auto;
}
#footerGlobe {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-globe-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #faf9f6 0%, transparent 26%, transparent 72%, #faf9f6 100%),
    linear-gradient(90deg, #faf9f6 0%, transparent 16%, transparent 84%, #faf9f6 100%);
}
[data-theme="dark"] .footer-globe-fade {
  background:
    linear-gradient(180deg, #060709 0%, transparent 26%, transparent 72%, #060709 100%),
    linear-gradient(90deg, #060709 0%, transparent 16%, transparent 84%, #060709 100%);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-globe-stage { height: 200px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-inner { width: calc(100% - 28px); }
}

/* ---------- Modal: Live Game Console ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 13, 17, 0.72);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.game-console {
  width: min(1120px, 100%);
  height: min(88vh, 840px);
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s var(--ease);
}
.modal-backdrop.open .game-console { transform: scale(1) translateY(0); }

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  flex-wrap: wrap;
}
.console-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.console-title { font-weight: 800; font-size: 15.5px; }
.console-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.console-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.console-btn:hover { border-color: var(--line-strong); }
.console-btn.active { background: var(--ink); color: var(--bg); border-color: transparent; }

.console-stage {
  flex: 1;
  background: #14161b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.console-frame-wrap {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: width 0.35s var(--ease), max-width 0.35s var(--ease);
}
.console-frame-wrap.mobile {
  max-width: 430px;
  border-radius: 28px;
  border: 6px solid #2a2d35;
}
.console-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Editorial Case Study Drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(14, 15, 19, 0.58);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.case-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(760px, calc(100vw - 24px));
  z-index: 96;
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.38s var(--ease);
}
.case-drawer.open { transform: translateX(0); }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
}
.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 26px 28px 36px;
}
.drawer-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.drawer-role {
  margin: 8px 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-ai);
}
.drawer-summary {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}
.drawer-hero {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101318;
  margin-bottom: 24px;
  cursor: zoom-in;
}
.drawer-hero img { width: 100%; max-height: 380px; object-fit: cover; }
.drawer-caption {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.bubble-list { display: grid; gap: 22px; }
.bubble-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bubble-head h4 { margin: 0; font-size: 16px; font-weight: 800; }
.bubble-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
}
.bubble-body {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.75;
}
.bubble-img-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.bubble-img-grid .bubble-img-wrap { margin-top: 0; }
.bubble-img-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
}
.bubble-img-wrap img {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
  background: var(--bg-soft);
  flex: 1;
}
@media (max-width: 640px) {
  .bubble-img-grid { grid-template-columns: 1fr; }
}

.stages-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.stage-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
}
.stage-row strong { color: var(--accent-game); font-family: var(--font-mono); font-size: 12px; }

.comp-list { display: grid; gap: 10px; margin-top: 14px; }
.comp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 12.8px;
}
.comp-col span {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.comp-col.before span { background: rgba(217, 78, 42, 0.12); color: var(--accent-game); }
.comp-col.after span { background: var(--accent-ai-soft); color: var(--accent-ai); }
.comp-col p { margin: 0; color: var(--ink-2); line-height: 1.55; }

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.lightbox-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f1ec;
  font-size: 13px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 150;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .flagship-card.hero-span { grid-template-columns: 1fr; }
  .flagship-card.half-span { grid-column: span 12; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-grid { grid-template-columns: 1fr; }
  .visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .nav-links { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .game-grid, .visual-grid { grid-template-columns: 1fr; }
  .ai-card { grid-template-columns: 1fr; }
  .comp-card { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: 1fr; gap: 4px; }
  .drawer-scroll { padding: 20px 18px 28px; }
}
