:root {
  --bg: #0b0f1a;
  --surface: #111726;
  --card: #151b2b;
  --card-hover: #1c243a;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --primary: #6267e5;
  --primary-hover: #5156d6;
  --accent: #22d3ee;
  --border: rgba(232, 236, 245, 0.1);
  --border-strong: rgba(232, 236, 245, 0.18);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(900px 420px at 50% -120px, rgba(98, 103, 229, 0.14), transparent 70%), var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.narrow-page { max-width: 820px; }
.site-main { flex: 1; padding-block: 32px 64px; }
.page-stack { display: flex; flex-direction: column; gap: 48px; }
.section-block { display: flex; flex-direction: column; gap: 16px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
}
.section-head h2::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-link, .text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.section-link:hover, .text-link:hover { text-decoration: underline; }
.section-blurb, .page-subtitle, .muted-note { color: var(--muted); font-size: 16px; max-width: 70ch; }
.page-head { display: flex; flex-direction: column; gap: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(232, 236, 245, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--primary); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 26, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand-icon { border-radius: 8px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(232, 236, 245, 0.06); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav-inner { display: flex; flex-direction: column; padding-block: 8px; }
.mobile-nav-link { padding: 12px 0; font-size: 16px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav-link:last-child { border-bottom: 0; }


.hero-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 8px;
}
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}
.hero-copy h1 { font-size: 48px; line-height: 1.12; letter-spacing: -0.03em; }
.hero-lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-spotlight {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hero-spotlight:hover { border-color: var(--primary); transform: translateY(-3px); }
.hero-spotlight-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.hero-spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.hero-spotlight:hover .hero-spotlight-media img { transform: scale(1.04); }
.spotlight-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.28);
}
.hero-spotlight-info { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.spotlight-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spotlight-genre { font-size: 12px; font-weight: 600; color: var(--accent); }
.spotlight-cta { font-size: 13px; font-weight: 600; color: var(--text); opacity: 0.8; transition: color 0.15s ease; }
.hero-spotlight:hover .spotlight-cta { color: var(--accent); opacity: 1; }
.hero-spotlight-info h2 { font-size: 22px; }
.hero-spotlight-info p {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.genre-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.genre-pill:hover { background: var(--card-hover); border-color: var(--border-strong); color: var(--text); }
.genre-pill.is-active { background: var(--primary); border-color: var(--primary); color: #ffffff; }

.game-grid { display: grid; gap: 20px; }
.game-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.game-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  border-color: var(--primary);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.game-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.3s ease;
}
.game-card:hover .game-card-thumb img { transform: scale(1.06); filter: brightness(0.72); }
.card-play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(98, 103, 229, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.2s ease, transform 0.22s ease;
  box-shadow: var(--shadow-md);
}
.game-card:hover .card-play-badge { opacity: 1; transform: scale(1); }

.game-card-body {
  padding: 10px 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}
.game-card-title {
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.16s ease;
}
.game-card:hover .game-card-title { color: #ffffff; }
.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.game-card-genre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 236, 245, 0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.genre-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.85; flex-shrink: 0; }
.game-card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.game-card:hover .game-card-go {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  transform: translateX(2px);
}

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: var(--border-strong); }
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.feature-card p { color: var(--muted); font-size: 15px; max-width: 60ch; }

.ports-callout {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(98, 103, 229, 0.35);
  background: linear-gradient(135deg, rgba(98, 103, 229, 0.1), rgba(21, 27, 43, 0.96) 55%);
}
.ports-callout-body { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.ports-callout-body h2 { font-size: 22px; }
.ports-callout-body p { color: var(--muted); font-size: 15px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; transition: border-color 0.18s ease; }
.faq-item[open] { border-color: rgba(98, 103, 229, 0.4); }
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; font-weight: 400; }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 70ch; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(98, 103, 229, 0.16);
  border: 1px solid rgba(98, 103, 229, 0.3);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.game-page { display: flex; flex-direction: column; gap: 20px; }
.game-header { display: flex; flex-direction: column; gap: 10px; }
.game-header h1 { font-size: 32px; }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.game-primary { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.game-sidebar { position: sticky; top: 84px; }

.player-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
}
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  background: var(--bg);
}
.stage-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage[data-gf-state="loading"] .stage-cover,
.stage[data-gf-state="playing"] .stage-cover {
  display: none !important;
}
.stage-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.32) saturate(1.15);
  transform: scale(1.12);
}
.stage-cover-scrim {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.stage-thumb-frame {
  width: 200px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.stage-thumb { width: 100%; height: 100%; object-fit: cover; }
.play-trigger {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.stage-hint { font-size: 13px; color: var(--muted); }

.stage-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
}
.stage[data-gf-state="loading"] .stage-loader { display: flex; }
.stage[data-gf-state="playing"] .stage-loader { display: none !important; }
.arcade-bars { display: flex; align-items: flex-end; gap: 8px; height: 36px; }
.arcade-bars span { width: 8px; height: 16px; border-radius: 4px; background: var(--primary); animation: bar-pulse 0.85s ease-in-out infinite; }
.arcade-bars span:nth-child(2) { background: var(--accent); animation-delay: 0.15s; }
.arcade-bars span:nth-child(3) { animation-delay: 0.3s; }
.arcade-bars span:nth-child(4) { background: var(--accent); animation-delay: 0.45s; }
@keyframes bar-pulse { 0%, 100% { height: 12px; opacity: 0.45; } 50% { height: 36px; opacity: 1; } }
.loader-label { font-family: var(--font-heading); font-size: 16px; color: var(--text); }

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tool-btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.tool-icon { flex-shrink: 0; }
.tool-btn[data-gf-liked], .tool-btn[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.tool-btn[data-gf-liked] .tool-icon, .tool-btn[aria-pressed="true"] .tool-icon { fill: currentColor; }
.tool-btn-accent { border-color: rgba(34, 211, 238, 0.35); color: var(--accent); }
.tool-btn-accent:hover { background: rgba(34, 211, 238, 0.1); border-color: var(--accent); }
.tool-count {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.share-msg { font-size: 13px; font-weight: 600; color: var(--accent); }

.sidebar-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sidebar-title { font-size: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-game {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar-game:hover { background: var(--card-hover); border-color: var(--border); }
.sidebar-game img {
  width: 84px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.sidebar-game-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-game-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-game-genre { font-size: 12px; color: var(--muted); }


.game-article, .article-card { padding: 28px 32px; }
.prose { font-size: 16px; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-size: 22px;
  margin-top: 28px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 20px; color: var(--text); }
.prose p, .prose li { max-width: 70ch; color: var(--text); opacity: 0.9; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #ffffff; }

.comments-section { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.comments-header h2 { font-size: 20px; }
.comments-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 236, 245, 0.06);
}
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form[data-gf-replying] {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(98, 103, 229, 0.08);
  border: 1px solid rgba(98, 103, 229, 0.35);
}
.reply-banner { font-size: 13px; font-weight: 600; color: var(--accent); }
.comment-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.comment-msg { font-size: 14px; font-weight: 600; color: var(--accent); }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comments-empty {
  display: none;
  color: var(--muted);
  font-size: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  text-align: center;
}
.comment-list[data-gf-empty] .comments-empty { display: block; }
.comment-list[data-gf-off] { display: none; }
.comment-item {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-item[data-gf-owner], .comment-reply-item[data-gf-owner] {
  border-color: rgba(98, 103, 229, 0.55);
  background: rgba(98, 103, 229, 0.1);
}
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.comment-author { color: var(--text); font-weight: 600; }
.comment-owner-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
.comment-to { color: var(--accent); font-size: 13px; font-weight: 600; }
.comment-time { color: var(--muted); font-size: 12px; margin-left: auto; }
.comment-text { color: var(--text); opacity: 0.92; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.comment-reply-btn {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.comment-reply-btn:hover { text-decoration: underline; }
.comment-replies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}
.comment-reply-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.input:hover { border-color: rgba(232, 236, 245, 0.28); }
.input:focus { outline: none; border-color: var(--primary); background: var(--bg); }
.textarea { min-height: 108px; resize: vertical; }
.search-bar { display: flex; gap: 10px; max-width: 640px; }
.search-input { flex: 1; }
.search-status { font-size: 14px; color: var(--accent); font-weight: 600; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pagination-meta { font-size: 14px; color: var(--muted); }

.jump-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.checked-date { font-size: 13px; color: var(--muted); }
.port-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.port-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.port-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.port-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.port-host { font-size: 12px; color: var(--muted); word-break: break-all; }
.port-note { font-size: 14px; color: var(--muted); flex: 1; line-height: 1.55; }
.port-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.port-link-primary { color: var(--accent); }
.port-link-ext { color: var(--muted); }
.port-link-ext:hover, .port-link-primary:hover { text-decoration: underline; }
.narrow-prose { max-width: 70ch; }
.bullet-list, .number-list, .link-list { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text); opacity: 0.9; }
.link-list { list-style: none; padding-left: 0; }
.controls-table { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.controls-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.controls-row:last-child { padding-bottom: 0; border-bottom: 0; }
.controls-row dt { font-weight: 600; color: var(--text); }
.controls-row dd { margin: 0; color: var(--muted); }

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.18s ease; }
.post-card:hover { border-color: var(--primary); }
.post-card h2 { font-size: 22px; }
.post-card p { color: var(--muted); }
.post-date { font-size: 13px; font-weight: 600; color: var(--accent); }
.article-cover { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.article-footer { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.contact-info, .contact-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 0; }
.contact-details dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.contact-details dd { margin: 4px 0 0; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #f87171; }
.not-found-box { padding: 40px 28px; display: flex; flex-direction: column; gap: 16px; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 48px 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-tagline { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer-heading { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-list a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-band, .game-layout, .contact-grid { grid-template-columns: 1fr; }
  .game-sidebar { position: static; }
  .game-grid-5, .game-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .port-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .site-main { padding-block: 24px 48px; }
  .site-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  h1, .hero-copy h1 { font-size: 28px; }
  .game-header h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .genre-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .stage-thumb-frame { width: 140px; }
  .play-trigger { min-height: 44px; padding: 0 20px; font-size: 15px; }
  .game-grid-5, .game-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-grid, .port-grid, .footer-grid { grid-template-columns: 1fr; }
  .ports-callout { flex-direction: column; align-items: stretch; padding: 20px; }
  .search-bar { flex-direction: column; }
  .btn, .ports-callout .btn, .hero-actions .btn { width: 100%; }
  .game-article, .article-card, .comments-section { padding: 20px; }
  .controls-row { grid-template-columns: 1fr; gap: 4px; }
}
