@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_a/space-grotesk-700-latin.2492847386.woff2) format('woff2');
}

:root {
  --bg: #eef4fc;
  --bg-bar: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --surface-soft: #f5f8fd;
  --surface-hover: #e7f0fb;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #6d4aff;
  --brand-glow: rgba(109, 74, 255, 0.3);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --link: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.24);
  --accent: #059669;
  --accent-bright: #10b981;
  --hot: #e11d48;
  --white: #ffffff;
  --stage-bg: #0f172a;
  --tile-border: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --scrim: rgba(15, 23, 42, 0.14);
  --radius: 16px;
  --shadow-sm: 0 3px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0e1017;
  --bg-bar: rgba(14, 16, 23, 0.94);
  --surface: #171923;
  --surface-soft: #1f2230;
  --surface-hover: #272b3c;
  --ink: #eef4fc;
  --muted: rgba(238, 244, 252, 0.72);
  --primary: #6d4aff;
  --primary-hover: #2563eb;
  --link: #10b981;
  --primary-glow: rgba(109, 74, 255, 0.34);
  --accent: #10b981;
  --stage-bg: #0e1017;
  --tile-border: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.09);
  --scrim: rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.48);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  padding-top: 62px;
  background:
    radial-gradient(circle at 8% 4%, rgba(37, 99, 235, 0.09), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(16, 185, 129, 0.09), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
html[data-theme="dark"] body {
  background: var(--bg);
}
body.is-bare { background: transparent; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; touch-action: manipulation; }
button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 120;
}
.skip-link:focus { left: 12px; top: 12px; }

.gd-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Bright Frosted Portal Top Bar */
.gd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--bg-bar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.gd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.gd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.gd-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand);
  box-shadow: 0 4px 12px var(--brand-glow);
}
.gd-brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Header Instant Search */
.gd-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.gd-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.gd-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.gd-search input::placeholder { color: var(--muted); }
.gd-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}
.gd-search-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 95;
}
.gd-search-pop[hidden] { display: none; }
.gd-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.gd-search-item:hover { background: var(--surface-hover); }
.gd-search-item img {
  width: 56px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-soft);
}
.gd-search-meta { display: flex; flex-direction: column; min-width: 0; }
.gd-search-meta strong { font-family: var(--font-display); font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-search-meta small { font-size: 12px; color: var(--muted); }
.gd-search-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); text-align: center; }

.gd-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gd-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.gd-nav a:hover { background: var(--surface-hover); color: var(--ink); }
.gd-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gd-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.14s;
}
.gd-theme-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.gd-theme-btn svg { width: 17px; height: 17px; }
.gd-theme-btn .gd-ico-sun { display: none; }
html[data-theme="dark"] .gd-theme-btn .gd-ico-moon { display: none; }
html[data-theme="dark"] .gd-theme-btn .gd-ico-sun { display: block; }

.gd-mobile-nav { display: none; position: relative; }
.gd-mobile-nav summary {
  list-style: none;
  cursor: pointer;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 10px;
}
.gd-mobile-nav summary::-webkit-details-marker { display: none; }
.gd-mobile-drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 224px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  gap: 4px;
}
.gd-mobile-drawer a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
}
.gd-mobile-drawer a:hover { background: var(--surface-hover); }

/* Buttons */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.14s, background 0.15s, filter 0.15s;
}
.gd-btn:active { transform: scale(0.98); }
.gd-btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px var(--primary-glow);
}
.gd-btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Compact Playground Top Strip (Light, Zero PPT Hero Bloat) */
.gd-portal-top { padding: 14px 0 4px; }
.gd-portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.gd-portal-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.gd-portal-head h1 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.gd-today-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.gd-portal-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Tactile White Category Pills */
.gd-genre-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.gd-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.gd-ico-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.42), 0 2px 5px rgba(15, 23, 42, 0.14);
}
.gd-ico-badge svg { width: 15px; height: 15px; display: block; }
.gd-ico-all { background: rgba(255, 255, 255, 0.22); box-shadow: none; }
.gd-ico-puz { background: linear-gradient(135deg, rgb(16, 185, 129) 0%, rgb(5, 150, 105) 100%); }
.gd-ico-tri { background: linear-gradient(135deg, rgb(244, 63, 94) 0%, rgb(225, 29, 72) 100%); }
.gd-ico-log { background: linear-gradient(135deg, rgb(245, 158, 11) 0%, rgb(234, 88, 12) 100%); }
.gd-ico-arc { background: linear-gradient(135deg, rgb(139, 92, 246) 0%, rgb(109, 74, 255) 100%); }
.gd-ico-pop { background: linear-gradient(135deg, rgb(251, 191, 36) 0%, rgb(217, 119, 6) 100%); }
.gd-ico-new { background: linear-gradient(135deg, rgb(236, 72, 153) 0%, rgb(147, 51, 234) 100%); }
.gd-genre-pill:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.gd-genre-pill.is-hot {
  background: linear-gradient(135deg, var(--brand) 0%, var(--primary) 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 16px var(--brand-glow);
}

/* Sections */
.gd-section { padding: 26px 0; }
.gd-section-compact { padding: 12px 0 14px; }
.gd-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.gd-sec-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.gd-more-link {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.gd-more-link:hover { text-decoration: underline; }

/* ================= CLEAN SPLIT-CARD BENTO GAME WALL ================= */
.gd-bento-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 166px;
  gap: 14px;
}
/* 18 games -> #1(2x2) + #2(2x2) + #3..#6(1x1) [rows 1-2] + #7..#12 [row 3] + #13..#18 [row 4] = exact 6x4 zero-gap rectangle! */
.gd-bento-grid > .gd-tile:nth-child(1),
.gd-bento-grid > .gd-tile:nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
}

.gd-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gd-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}
html[data-theme="dark"] .gd-tile {
  border-color: var(--tile-border);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.38);
}
.gd-tile-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--stage-bg);
}
.gd-tile-card .gd-tile-media {
  aspect-ratio: 16 / 9;
}
.gd-tile:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: var(--primary);
  box-shadow: 0 12px 26px var(--primary-glow);
  z-index: 2;
}
.gd-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.26s ease;
}
.gd-tile:hover img { transform: scale(1.05); }

.gd-tile-bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.gd-tile-title {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-tile-sub {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-bento-grid > .gd-tile:nth-child(1) .gd-tile-bar,
.gd-bento-grid > .gd-tile:nth-child(2) .gd-tile-bar {
  padding: 10px 14px;
  gap: 3px;
}
.gd-bento-grid > .gd-tile:nth-child(1) .gd-tile-title,
.gd-bento-grid > .gd-tile:nth-child(2) .gd-tile-title {
  font-size: 17px;
}
.gd-tile:hover .gd-tile-title {
  color: var(--primary);
}
.gd-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 46%, rgba(15, 23, 42, 0.84) 100%);
  pointer-events: none;
}

/* Crisp Corner Badges (HOT / NEW) */
.gd-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  transition: opacity 0.16s ease;
}
.gd-badge-hot {
  background: var(--hot);
  color: var(--white);
}
.gd-badge-new {
  background: var(--accent-bright);
  color: var(--ink);
}
.gd-badge-sm {
  top: 5px;
  left: 5px;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 5px;
}

/* ================= GAME PAGE THEATER LAYOUT ================= */
.gd-game-hero { padding: 14px 0 8px; }
.gd-theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 20px;
  align-items: start;
}
.gd-theater-main { min-width: 0; }
.gd-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.gd-crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.gd-crumbs a:hover { color: var(--primary); }
.gd-game-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.gd-game-head h1 {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.gd-game-tagline { font-size: 13px; color: var(--muted); margin: 0; }

.gd-player-shell {
  background: var(--surface);
  border: 2px solid var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.gd-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 400px;
  max-height: calc(100svh - 210px);
  background: var(--stage-bg);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: manipulation;
}
.gd-stage:fullscreen, .gd-stage:-webkit-full-screen {
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
  border-radius: 0;
}
.gd-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.gd-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gd-stage[data-gf-state="loading"] .gd-cover,
.gd-stage[data-gf-state="playing"] .gd-cover,
.gd-stage[data-gd-revealed="1"] .gd-cover,
.gd-stage[data-gd-revealed="1"] .gd-loader { display: none; }
.gd-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.18) brightness(0.76);
  transform: scale(1.06);
  pointer-events: none;
}
.gd-cover-veil {
  position: absolute;
  inset: 0;
  background: var(--stage-bg);
  opacity: 0.28;
  pointer-events: none;
}
.gd-cover-band {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px;
  text-align: center;
}
.gd-cover-card {
  width: 256px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--stage-bg);
  border: 3px solid var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.42);
  transition: transform 0.2s ease;
}
.gd-cover-card img { width: 100%; height: 100%; object-fit: cover; }
.gd-cover:hover .gd-cover-card { transform: translateY(-2px) scale(1.03); }
.gd-cover-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.65);
}
.gd-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 34px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
  transition: transform 0.16s ease, filter 0.15s ease;
}
.gd-play-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.gd-play-btn:hover { filter: brightness(1.08); transform: scale(1.04) translateY(-1px); }
.gd-play-btn:active { transform: scale(0.98); }

/* Custom Game Loader */
.gd-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  background: var(--stage-bg);
  color: var(--white);
  padding: 24px;
  text-align: center;
}
.gd-stage[data-gf-state="loading"] .gd-loader { display: grid; }
.gd-loader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gd-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--accent-bright);
  animation: gdSpin 0.8s linear infinite;
}
@keyframes gdSpin { to { transform: rotate(360deg); } }
.gd-loader-title { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; margin: 0; color: var(--white); }
.gd-loader-sub { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin: 0; }

/* Crisp White Action Bar Beneath Stage */
.gd-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}
.gd-action-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gd-action-id {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.gd-action-thumb {
  width: 44px;
  height: 25px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.gd-action-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-share-msg { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.gd-action-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.gd-bar-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}
.gd-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.gd-icon-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.gd-icon-btn:hover { background: var(--surface-hover); color: var(--ink); }
.gd-icon-btn[data-gf-liked],
.gd-icon-like[aria-pressed="true"] {
  background: var(--primary);
  color: var(--white);
}
.gd-icon-btn[data-gd-dislike][aria-pressed="true"] {
  background: var(--hot);
  color: var(--white);
}
.gd-icon-fs:hover { background: var(--primary); color: var(--white); }
.gd-count:empty { display: none; }

@media (hover: hover) {
  .gd-icon-btn[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 60;
    box-shadow: var(--shadow-sm);
  }
  .gd-icon-btn[data-tip]:hover::after,
  .gd-icon-btn[data-tip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Right-Side Play Next Full-Bleed Tile Wall */
.gd-play-next {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.gd-next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gd-next-head h2 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0;
  color: var(--ink);
}
.gd-next-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.gd-next-head a:hover { text-decoration: underline; }
.gd-next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.gd-next-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  color: var(--white);
  border-radius: 11px;
  overflow: hidden;
  background: var(--stage-bg);
  border: 2px solid var(--tile-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.gd-next-card[hidden] { display: none; }
.gd-next-card:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 8px 18px var(--primary-glow);
}
.gd-next-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.22s; }
.gd-next-card:hover img { transform: scale(1.06); }
.gd-next-title {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 5px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Light Magazine Editorial Surface Cards & Sidebar */
.gd-prose-layout, .gd-article-grid {
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 22px;
  align-items: start;
}
.gd-prose-layout > *, .gd-article-grid > * { min-width: 0; }
.gd-surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.gd-prose { max-width: 100%; }
.gd-prose p, .gd-prose li { max-width: 72ch; }
.gd-prose h2 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; margin: 24px 0 10px; color: var(--ink); }
.gd-prose h2:first-child { margin-top: 0; }
.gd-prose h3 { font-family: var(--font-display); font-size: 17px; line-height: 1.3; margin: 18px 0 8px; color: var(--ink); }
.gd-prose p { margin: 0 0 14px; color: var(--muted); }
.gd-prose strong { color: var(--ink); }
.gd-prose ul, .gd-prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.gd-prose li { margin-bottom: 7px; }
.gd-prose hr { display: none; }
.gd-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 16px 0 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.gd-prose th, .gd-prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.gd-prose th { background: var(--surface-soft); color: var(--ink); font-weight: 700; }
.gd-prose tr:nth-child(even) td { background: var(--surface-soft); }

.gd-sidebar { display: grid; gap: 16px; }
.gd-info-card, .gd-faq-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.gd-info-card h2, .gd-faq-box h2 { font-family: var(--font-display); font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.gd-facts { margin: 0; display: grid; gap: 10px; }
.gd-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.gd-facts dd { margin: 2px 0 0; font-size: 13px; color: var(--ink); }
.gd-fact-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.gd-side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.gd-side-links a {
  display: block;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.14s, color 0.14s;
}
.gd-side-links a:hover { background: var(--surface-hover); color: var(--link); }

/* FAQ */
.gd-inline-faq { margin-top: 26px; }
.gd-faq-list { display: grid; gap: 10px; }
.gd-faq-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
}
.gd-faq-item summary { font-weight: 700; cursor: pointer; font-size: 15px; color: var(--ink); }
.gd-faq-item p { margin: 9px 0 0; font-size: 14px; color: var(--muted); }

/* Comments */
.gd-comments-sec { padding: 8px 0 40px; }
.gd-comments-wrap {
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.gd-comments-head h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.gd-comments-head p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.gd-comment-form {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}
.gd-form-row { margin-bottom: 12px; }
.gd-form-row label span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.gd-form-row input, .gd-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.gd-form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gd-comment-msg { font-size: 13px; font-weight: 700; color: var(--accent); }
.gd-reply-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-hover);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.gd-reply-banner[hidden] { display: none; }
.gd-comments-list { display: grid; gap: 12px; }
.gd-comments-empty { display: none; font-size: 14px; color: var(--muted); }
.gd-comments-list[data-gf-empty] .gd-comments-empty { display: block; }
.gd-comments-list[data-gf-off] { display: none; }
.gd-comment-item { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.gd-comment-item[data-gf-owner] { background: var(--surface-hover); }
.gd-comment-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.gd-comment-meta time { color: var(--muted); font-size: 12px; }
.gd-owner-tag {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.gd-comment-item[data-gf-owner] .gd-owner-tag { display: inline-block; }
.gd-comment-body { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.gd-reply-mention { color: var(--primary); font-weight: 700; margin-right: 6px; }
.gd-reply-btn { background: none; border: 0; color: var(--primary); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.gd-comment-replies { margin-top: 10px; padding-left: 16px; display: grid; gap: 8px; }

/* List & Single Pages */
.gd-list-hero { padding: 16px 0 6px; }
.gd-list-hero h1 { font-family: var(--font-display); font-size: 26px; line-height: 1.18; margin: 0 0 6px; color: var(--ink); }
.gd-list-lead { font-size: 15px; color: var(--muted); margin: 0; max-width: 66ch; }
.gd-list-prose { margin-top: 26px; }
.gd-page-wrap { padding: 22px 0 48px; }
.gd-single-page { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.gd-single-page h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.18; margin: 0 0 12px; }
.gd-page-lead, .gd-legal-meta { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.gd-404 { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 28px; max-width: 620px; box-shadow: var(--shadow-lg); }

/* Clean Light Footer */
.gd-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 36px 0 24px;
  margin-top: 16px;
}
.gd-footer a { color: var(--ink); text-decoration: none; }
.gd-footer a:hover { color: var(--primary); }
.gd-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 22px;
}
.gd-footer-about p { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: 40ch; }
.gd-footer-col h2 { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin: 0 0 10px; }
.gd-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.gd-footer-col a { font-size: 14px; }
.gd-footer-bottom { padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Off-screen rendering containment for fast mobile TBT & smooth scroll */
.gd-editorial-sec, .gd-comments-sec, .gd-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

/* Responsive */
@media (max-width: 1080px) {
  .gd-theater-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gd-play-next { min-width: 0; max-width: 100%; overflow: hidden; padding: 12px 14px; }
  .gd-next-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .gd-next-grid::-webkit-scrollbar { display: none; }
  .gd-next-card { flex: 0 0 148px; scroll-snap-align: start; }

  .gd-bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 164px;
  }
  .gd-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .gd-prose-layout, .gd-article-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { padding-top: 56px; }
  .gd-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .gd-header-inner { height: 56px; gap: 10px; }
  .gd-wrap { padding: 0 12px; }
  .gd-brand-text { font-size: 17px; }
  .gd-logo-box { width: 30px; height: 30px; border-radius: 9px; }
  .gd-search { max-width: none; }
  .gd-search input { height: 34px; font-size: 13px; padding: 0 10px 0 32px; }
  .gd-search-ico { left: 10px; width: 14px; height: 14px; }
  .gd-nav { display: none; }
  .gd-mobile-nav { display: block; }

  .gd-portal-top { padding: 10px 0 4px; }
  .gd-portal-head h1 { font-size: 19px; }
  .gd-today-pill { font-size: 12px; padding: 3px 9px; }
  .gd-portal-sub { font-size: 12px; }
  .gd-genre-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 7px;
    margin-top: 9px;
    padding-bottom: 2px;
  }
  .gd-genre-bar::-webkit-scrollbar { display: none; }
  .gd-genre-pill { flex: 0 0 auto; padding: 5px 11px 5px 7px; font-size: 12px; gap: 6px; }
  .gd-ico-badge { width: 20px; height: 20px; border-radius: 6px; }
  .gd-ico-badge svg { width: 13px; height: 13px; }

  .gd-section-compact { padding: 10px 0 12px; }
  .gd-sec-head { margin-bottom: 9px; }
  .gd-sec-head h2 { font-size: 16px; }

  /* Mobile 2-col Bento: #1 BYON & #2 Krillion span full width as top heroes; #3..#18 form 8 clean pairs -> ZERO overlap & ZERO orphan! */
  .gd-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
  }
  .gd-bento-grid > .gd-tile .gd-tile-media {
    aspect-ratio: 16 / 10;
  }
  .gd-bento-grid > .gd-tile:nth-child(1),
  .gd-bento-grid > .gd-tile:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gd-bento-grid > .gd-tile:nth-child(1) .gd-tile-media,
  .gd-bento-grid > .gd-tile:nth-child(2) .gd-tile-media {
    aspect-ratio: 16 / 9;
  }
  .gd-bento-grid > .gd-tile:nth-child(1) .gd-tile-bar,
  .gd-bento-grid > .gd-tile:nth-child(2) .gd-tile-bar { padding: 8px 11px; }
  .gd-bento-grid > .gd-tile:nth-child(1) .gd-tile-title,
  .gd-bento-grid > .gd-tile:nth-child(2) .gd-tile-title { font-size: 15px; }

  .gd-recent-grid,
  .gd-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gd-tile { border-radius: 12px; }
  .gd-tile-bar { padding: 6px 8px; }
  .gd-tile-title { font-size: 12.5px; }

  .gd-game-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .gd-game-head h1, .gd-list-hero h1, .gd-single-page h1 { font-size: 21px; }
  .gd-game-tagline { font-size: 12px; }
  .gd-surface-card, .gd-single-page, .gd-comments-wrap { padding: 18px 15px; }
  .gd-footer-grid { grid-template-columns: 1fr; gap: 20px; }

  .gd-stage {
    aspect-ratio: auto;
    height: clamp(360px, 60svh, 540px);
    min-height: 360px;
    max-height: 72svh;
  }
  .gd-cover-bg { filter: blur(4px) brightness(0.78); transform: scale(1.03); }
  .gd-cover-band { padding: 14px 10px; gap: 10px; }
  .gd-cover-card { width: 196px; border-radius: 12px; }
  .gd-play-btn { min-height: 46px; padding: 10px 26px; font-size: 15px; }
  .gd-action-bar { padding: 8px 10px; gap: 6px; }
  .gd-action-left { flex: 1; min-width: 0; }
  .gd-action-thumb { display: none; }
  .gd-action-name { font-size: 13px; max-width: 104px; }
  .gd-action-right { gap: 2px; }
  .gd-icon-btn { min-width: 34px; height: 36px; padding: 0 5px; }
  .gd-bar-sep { margin: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
