:root {
  --bg: #060b14;
  --bg-strong: #0d1424;
  --panel: rgba(15, 25, 38, 0.9);
  --panel-soft: rgba(22, 33, 48, 0.8);
  --panel-alt: rgba(10, 18, 28, 0.9);
  --line: rgba(162, 185, 212, 0.15);
  --text: #ebf2ff;
  --muted: #9fb0cb;
  --primary: #6ec8ff;
  --primary-strong: #5f7cff;
  --accent: #7bf7d6;
  --warning: #ffcf70;
  --shadow: 0 28px 60px rgba(4, 8, 17, 0.5);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(20, 39, 67, 0.85), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 19, 0.72);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #07131d;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav .category-nav-link[aria-current='page'] {
  color: var(--primary-strong);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #081320;
  box-shadow: 0 18px 28px rgba(95, 124, 255, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead {
  margin: 20px 0 0;
  max-width: 670px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.lead strong {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mini-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--muted);
}

.mini-list li::before {
  content: '•';
  margin-right: 8px;
  color: var(--accent);
}

.hero-card {
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 31, 47, 0.9), rgba(11, 19, 29, 0.84));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(123, 247, 214, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(123, 247, 214, 0.8);
}

.hero-card h2 {
  margin: 22px 0 18px;
  font-size: 1.6rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-grid div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.status-grid strong {
  font-size: 1.8rem;
  color: var(--primary);
}

.status-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.status-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.status-note span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-note strong {
  font-size: 1.25rem;
}

.section {
  padding: 90px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-title-wrap {
  margin-bottom: 24px;
}

.section-title-wrap h2,
.about-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.portal-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
}

.game-sidebar,
.game-player-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-sidebar {
  padding: 22px 18px;
}

.game-sidebar h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.game-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  padding: 14px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.game-button:hover,
.game-button:focus-visible {
  border-color: rgba(110, 200, 255, 0.7);
  background: rgba(110, 200, 255, 0.04);
  transform: translateY(-1px);
}

.game-button.is-active {
  border-color: rgba(123, 247, 214, 0.8);
  background: rgba(123, 247, 214, 0.07);
}

.game-title,
.game-genre {
  display: block;
}

.game-title {
  font-weight: 700;
}

.game-genre {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.game-player-panel {
  padding: 18px;
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.meta-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.player-meta h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(98, 133, 255, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.player-description {
  margin: 16px 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.dos-player {
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #070d14;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.03rem;
}

.footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 17, 0.9);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-tag.alt {
  color: var(--primary);
}

.copyright {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 920px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 12px;
  }

  .main-nav {
    display: flex;
    order: 2;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .main-nav > a:not(.category-nav-link),
  .nav-wrap > a.button {
    display: none;
  }

  .category-nav-link {
    flex: 0 0 auto;
  }

  .hero-grid,
  .portal-shell,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .dos-player {
    min-height: 420px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.feature-kicker,
.art-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feature-art,
.game-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 28%, rgba(123, 247, 214, 0.28), transparent 25%),
    linear-gradient(140deg, #193354, #10182a 60%, #261e43);
}

.feature-art {
  min-height: 225px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.feature-art::before,
.game-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, black, transparent 80%);
}

.feature-art > span,
.art-mark {
  color: rgba(235, 242, 255, 0.9);
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 48px rgba(110, 200, 255, 0.5);
  transform: rotate(-8deg);
}

.feature-copy .game-genre {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.feature-copy h2 {
  margin: 8px 0;
  font-size: 1.8rem;
}

.feature-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link,
.card-link,
.back-link {
  color: var(--primary);
  font-weight: 700;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.result-count {
  margin: 0;
  color: var(--muted);
}

.library-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.category-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.category-link:hover,
.category-link:focus-visible,
.category-link.is-active {
  background: rgba(110, 200, 255, 0.1);
  color: var(--text);
}

.category-link.is-active {
  box-shadow: inset 3px 0 var(--primary);
}

.category-count {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 200, 255, 0.38);
}

.game-art {
  min-height: 205px;
  justify-content: flex-start;
  padding: 22px;
}

.game-art .art-label {
  position: absolute;
  top: 18px;
  left: 20px;
}

.game-art .art-title {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.game-art .art-mark {
  margin-left: auto;
  margin-right: 12px;
  font-size: 7rem;
}

.game-card-body {
  padding: 20px;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(123, 247, 214, 0.22);
  border-radius: 999px;
  background: rgba(123, 247, 214, 0.07);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-year {
  color: var(--muted);
  font-size: 0.82rem;
}

.game-card-body h3 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}

.game-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(110, 200, 255, 0.1);
  color: var(--primary);
  font-size: 1.8rem;
}

.empty-state h3,
.empty-state h1 {
  margin: 0 0 10px;
}

.empty-state p:not(.section-tag) {
  max-width: 480px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-main {
  min-height: calc(100vh - 190px);
  padding: 34px 0 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs [aria-current='page'] {
  color: var(--text);
}

.game-detail {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.detail-info {
  padding: 28px 4px;
}

.detail-info .eyebrow {
  margin: 22px 0 10px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
}

.detail-description {
  margin: 18px 0 26px;
  color: var(--muted);
  line-height: 1.85;
}

.game-facts {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.game-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.game-facts dt {
  color: var(--muted);
}

.game-facts dd {
  margin: 0;
  text-align: right;
}

.player-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.player-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 16px;
}

.player-panel-heading .meta-label {
  margin: 0 0 7px;
}

.player-panel-heading h2 {
  margin: 0;
  font-size: 1.5rem;
}

.player-stage {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(42, 72, 110, 0.35), transparent 35%),
    #070d14;
}

.player-start-card {
  max-width: 430px;
  padding: 28px;
  text-align: center;
}

.player-start-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding-left: 4px;
  border: 1px solid rgba(110, 200, 255, 0.3);
  border-radius: 50%;
  background: rgba(110, 200, 255, 0.1);
  color: var(--primary);
  font-size: 1.35rem;
}

.player-start-card h3 {
  margin: 0 0 8px;
}

.player-start-card > p:not(.player-status) {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.launch-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.player-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--warning);
  font-size: 0.88rem;
}

.dos-player {
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}

.dos-player[hidden],
.player-start-card[hidden] {
  display: none;
}

.dos-emulator {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.player-help {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.game-resource-links,
.playable-game-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.game-resource-links {
  margin: 14px 2px 0;
}

.game-license-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.not-found {
  margin: 60px auto;
  max-width: 720px;
}

@media (max-width: 920px) {
  .library-layout,
  .game-detail {
    grid-template-columns: 1fr;
  }

  .category-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-link {
    padding: 10px;
    font-size: 0.9rem;
  }

  .detail-info {
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-menu,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .category-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-art {
    min-height: 175px;
  }

  .player-panel {
    padding: 12px;
  }

  .player-stage,
  .dos-player,
  .dos-emulator {
    min-height: 340px;
  }
}

:root {
  --bg: #f7f8fa;
  --bg-strong: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --panel-alt: #ffffff;
  --line: #e5e7eb;
  --text: #17212f;
  --muted: #667085;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #15803d;
  --warning: #b45309;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body {
  background: #fff;
  color: var(--text);
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
}

.brand-mark {
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-strong);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.hero-card,
.game-sidebar,
.game-player-panel,
.category-menu,
.game-card,
.empty-state,
.player-panel {
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 20px;
}

.status-pill {
  background: #ecfdf3;
  color: #15803d;
}

.status-dot {
  box-shadow: none;
}

.feature-art,
.game-art {
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
}

.feature-art::before,
.game-art::before {
  opacity: 0.16;
  background-image: linear-gradient(#94a3b8 1px, transparent 1px), linear-gradient(90deg, #94a3b8 1px, transparent 1px);
}

.feature-art > span,
.art-mark {
  color: rgba(37, 99, 235, 0.78);
  text-shadow: none;
}

.feature-copy .game-genre,
.feature-kicker,
.art-label {
  color: #2563eb;
}

.section.alt {
  background: #f8fafc;
}

.category-link {
  color: #475467;
}

.category-link:hover,
.category-link:focus-visible,
.category-link.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.category-link.is-active {
  box-shadow: inset 3px 0 #2563eb;
}

.category-chip {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.game-card:hover {
  border-color: #bfdbfe;
}

.footer {
  background: #f8fafc;
}

.player-stage {
  background: #f3f5f8;
}

.player-start-icon,
.empty-icon {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.meta-badge {
  background: #eff6ff;
  color: #2563eb;
}

.detail-info .eyebrow,
.section-tag,
.eyebrow {
  color: #2563eb;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.brand-game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-game-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.arcade-visual {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.arcade-caption {
  position: absolute;
  top: 22px;
  left: 22px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.arcade-machine {
  position: relative;
  z-index: 1;
  width: min(380px, 82%);
  padding: 15px;
  border: 1px solid #d8dee8;
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(145deg, #fff, #e8edf5);
  box-shadow: 0 20px 36px rgba(27, 44, 75, 0.15);
  transform: perspective(900px) rotateY(-7deg);
  animation: arcade-float 4s ease-in-out infinite;
}

.arcade-machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 10px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.machine-top-mark {
  display: block;
  width: 30px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 1.14rem;
  letter-spacing: 0;
}

.brand-copy small {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
}

.machine-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: led-pulse 1.7s ease-in-out infinite;
}

.arcade-screen {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 5px solid #29364a;
  border-radius: 9px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #102136;
  background-size: 8px 8px;
  box-shadow: inset 0 0 28px rgba(4, 12, 24, 0.7);
}

.screen-label,
.screen-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  color: #a7f3d0;
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 0 8px rgba(167, 243, 208, 0.6);
}

.screen-label {
  top: 17px;
}

.screen-bottom {
  bottom: 14px;
  animation: text-blink 1.3s steps(2, start) infinite;
}

.pixel-ship {
  position: absolute;
  left: 18%;
  top: 48%;
  width: 18px;
  height: 8px;
  background: #7dd3fc;
  box-shadow:
    6px -6px 0 -2px #7dd3fc,
    6px 6px 0 -2px #7dd3fc,
    -6px 0 0 -2px #bae6fd,
    21px 0 0 -3px #fbbf24;
  animation: ship-flight 4.5s ease-in-out infinite alternate;
}

.pixel-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fde68a;
  animation: star-twinkle 1.8s ease-in-out infinite alternate;
}

.star-one {
  top: 35%;
  right: 24%;
}

.star-two {
  top: 61%;
  right: 15%;
  animation-delay: 0.6s;
}

.star-three {
  top: 46%;
  right: 38%;
  animation-delay: 1s;
}

.arcade-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 62px;
}

.arcade-stick {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #334155;
  box-shadow: 0 10px 0 5px #cbd5e1;
  transform: translateY(-4px);
}

.arcade-action-button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 3px 0 #1d4ed8;
}

.arcade-action-button.secondary {
  width: 11px;
  height: 11px;
  background: #34d399;
  box-shadow: 0 3px 0 #059669;
  transform: translateY(8px);
}

.floating-pixel {
  position: absolute;
  width: 11px;
  height: 11px;
  background: #60a5fa;
  opacity: 0.65;
  animation: pixel-drift 5s ease-in-out infinite;
}

.pixel-a {
  top: 24%;
  right: 16%;
}

.pixel-b {
  bottom: 20%;
  left: 16%;
  width: 7px;
  height: 7px;
  background: #34d399;
  animation-delay: -2.2s;
}

.popular-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.popular-row {
  display: grid;
  grid-template-columns: 38px 112px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.popular-row:hover {
  background: #f8fafc;
}

.popular-rank {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.game-thumbnail {
  width: 112px;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.game-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.external-game-art {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  text-align: center;
}

.external-game-art svg {
  width: 92px;
  height: 92px;
  fill: currentColor;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.external-game-art .icon-cutout {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.external-game-art .icon-cutout-fill {
  fill: #fff;
}

.external-game-art span {
  max-width: 32ch;
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.external-player-note {
  margin: 18px 4px 12px;
  color: var(--muted);
  line-height: 1.7;
}

.external-play-button {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.popular-game-info {
  min-width: 0;
}

.popular-game-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.popular-game-title h3 {
  margin: 0;
  font-size: 1rem;
}

.popular-game-title h3 a:hover {
  color: var(--primary);
}

.popular-game-info > p {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-play-link {
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
}

.list-play-link:hover {
  background: #eff6ff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 22px;
  color: var(--muted);
}

.pagination a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
}

.related-sites {
  padding-top: 38px;
}

.related-heading h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-site-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.related-site-card:hover,
.related-site-card:focus-visible {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.related-site-cover {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  overflow: hidden;
  color: #fff;
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
  text-shadow: 0 1px 5px rgba(15, 23, 42, 0.35);
}

.related-site-cover > span,
.related-site-cover > small {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.related-site-cover > strong {
  font-size: clamp(0.82rem, 1vw, 1.08rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.site-cover-zone { background: linear-gradient(135deg, #155eef, #7f56d9); }
.site-cover-dosgames { background: linear-gradient(135deg, #7a2ebd, #d44484); }
.site-cover-archive { background: linear-gradient(135deg, #087e8b, #10b981); }
.site-cover-reload { background: linear-gradient(135deg, #244c70, #7c3aed); }
.site-cover-abandonware { background: linear-gradient(135deg, #a34a24, #d58b39); }
.site-cover-archiveorg { background: linear-gradient(135deg, #263d78, #315db5); }
.site-cover-dosgames2 { background: linear-gradient(135deg, #126b77, #0ea5e9); }
.site-cover-world { background: linear-gradient(135deg, #176b48, #63a843); }
.site-cover-download { background: linear-gradient(135deg, #4b5563, #a16207); }
.site-cover-retro { background: linear-gradient(135deg, #7e2a72, #e34f89); }

.related-site-copy {
  display: grid;
  flex: 1;
  gap: 7px;
  padding: 13px 14px 15px;
}

.related-site-copy > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #17212f;
  font-size: 0.88rem;
}

.related-site-copy > strong span {
  color: #667085;
  font-size: 0.85rem;
}

.related-site-copy > span {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.55;
}

.external-notice {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer .copyright {
  padding: 20px 0 8px;
  color: #667085;
}

@keyframes arcade-float {
  0%, 100% { transform: perspective(900px) rotateY(-7deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-4deg) translateY(-8px); }
}

@keyframes ship-flight {
  from { transform: translateX(0); }
  to { transform: translateX(105px); }
}

@keyframes pixel-drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(45deg); }
}

@keyframes star-twinkle {
  from { opacity: 0.35; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1.25); }
}

@keyframes led-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes text-blink {
  to { visibility: hidden; }
}

@media (max-width: 920px) {
  .related-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .arcade-visual {
    min-height: 400px;
  }

  .arcade-screen {
    height: 220px;
  }

  .popular-row {
    grid-template-columns: 30px 42px minmax(0, 1fr) 72px;
    gap: 9px;
    padding: 12px 4px;
  }

  .popular-row > .game-year {
    display: none;
  }

  .game-thumbnail {
    width: 68px;
  }

  .popular-game-info > p {
    max-width: 42vw;
  }

  .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
  }
}

.popular-page-heading {
  max-width: 780px;
  margin: 0 0 32px;
}

.popular-page-heading h1,
.popular-detail-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.popular-page-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.popular-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-catalog-card {
  display: grid;
  min-height: 112px;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.popular-catalog-image {
  display: block;
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101827;
}

.popular-catalog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.popular-catalog-card:hover,
.popular-catalog-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(110, 200, 255, 0.65);
}

.popular-catalog-card:hover .popular-catalog-image img,
.popular-catalog-card:focus-visible .popular-catalog-image img {
  transform: scale(1.025);
}

.popular-catalog-rank {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(110, 200, 255, 0.1);
  color: var(--primary);
  font-weight: 800;
}

.popular-catalog-copy {
  display: grid;
  gap: 6px;
}

.popular-catalog-copy strong {
  font-size: 1.03rem;
}

.popular-catalog-copy > span,
.popular-catalog-copy small {
  color: var(--muted);
  line-height: 1.55;
}

.popular-catalog-copy > span {
  font-size: 0.82rem;
}

.popular-catalog-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.84rem;
}

.popular-catalog-arrow {
  align-self: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.popular-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: start;
}

.popular-detail-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  position: sticky;
  top: 108px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.popular-detail-copy {
  padding: 10px 0;
}

.popular-detail-copy .section-tag {
  margin-bottom: 12px;
}

.popular-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.popular-game-meta span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
}

.popular-detail-description,
.popular-history p,
.popular-availability p {
  color: var(--muted);
  line-height: 1.8;
}

.popular-detail-description {
  margin: 24px 0;
  font-size: 1.1rem;
}

.popular-history {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.popular-history h2 {
  margin: 0;
  font-size: 1.2rem;
}

.popular-history p {
  margin: 10px 0 0;
}

.popular-availability {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 207, 112, 0.22);
  border-radius: 14px;
  background: rgba(255, 207, 112, 0.06);
}

.popular-availability strong {
  color: var(--warning);
}

.popular-availability p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.popular-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.popular-actions .back-link {
  flex-basis: 100%;
}

@media (max-width: 920px) {
  .popular-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-detail {
    grid-template-columns: 1fr;
  }

  .popular-detail-image {
    position: static;
  }
}

@media (max-width: 600px) {
  .popular-catalog {
    grid-template-columns: 1fr;
  }

  .popular-catalog-card {
    min-height: 100px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 14px;
  }

  .popular-catalog-rank {
    width: 36px;
    height: 36px;
  }

  .popular-actions .button {
    width: 100%;
  }
}

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

.demo-strip {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.demo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-strip h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.demo-strip .section-tag {
  margin-bottom: 7px;
}

.demo-strip p:not(.section-tag) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.demo-strip .button {
  flex: 0 0 auto;
}

.playable-game-links {
  flex: 0 0 auto;
}

.demo-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .demo-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

.music-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 20px;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.music-toggle:hover,
.music-toggle[aria-pressed='true'] {
  border-color: #93c5fd;
  background: #dbeafe;
}

.music-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.music-note {
  font-size: 1.15rem;
  line-height: 1;
}

.music-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-main {
  min-height: calc(100vh - 190px);
  padding: 48px 0 80px;
}

.admin-container {
  max-width: 1160px;
}

.admin-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-card > h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.admin-intro,
.admin-safety-note {
  color: var(--muted);
  line-height: 1.7;
}

.admin-safety-note {
  margin: 24px 0 0;
  font-size: 0.86rem;
}

.admin-form {
  display: grid;
  max-width: 560px;
  gap: 16px;
  margin-top: 24px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 650;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: #60a5fa;
  outline: 3px solid rgba(59, 130, 246, 0.14);
}

.admin-form label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.admin-form .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.admin-form .checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.admin-form .button {
  justify-self: start;
}

.form-message {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 10px;
  line-height: 1.6;
}

.form-message-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.form-message-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.admin-tools {
  margin: 0 0 22px;
}

.admin-tools a,
.admin-row-actions a {
  color: #1d4ed8;
  font-weight: 650;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
}

.admin-columns h2 {
  margin: 0;
  font-size: 1.15rem;
}

.game-editor {
  max-width: none;
  margin-top: 0;
}

.admin-form-actions,
.admin-row-actions,
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-wrap {
  max-height: 900px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #475467;
  font-size: 0.78rem;
}

.admin-table td:first-child {
  min-width: 180px;
}

.admin-table td:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.admin-row-actions {
  gap: 12px;
  white-space: nowrap;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #b42318;
  cursor: pointer;
  font: inherit;
}

.text-button:hover {
  text-decoration: underline;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.copyright a {
  color: #667085;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
}

.popular-row {
  grid-template-columns: 38px 112px minmax(0, 1fr) 120px;
}

.popular-game-info > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-instructions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-top: 28px;
}

.instruction-card,
.guide-section,
.guide-explainer {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.instruction-card .section-tag {
  margin-bottom: 10px;
}

.instruction-card h2,
.guide-section h2,
.guide-explainer h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.instruction-card > p:last-child,
.instruction-card li,
.guide-explainer p,
.guide-section-heading > p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.instruction-card ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  margin: 18px 0 0;
}

.instruction-card li {
  padding-left: 4px;
}

.game-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.game-provenance a {
  color: var(--primary);
  font-weight: 700;
}

.game-provenance a:hover {
  text-decoration: underline;
}

.guide-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 22px 26px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
}

.guide-callout strong {
  display: block;
  margin-bottom: 5px;
}

.guide-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.guide-subnav a {
  padding: 9px 14px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
}

.guide-subnav a:hover,
.guide-subnav a:focus-visible,
.guide-subnav a[aria-current='page'] {
  background: #eff6ff;
  color: var(--primary-strong);
}

.guide-subnav a[aria-current='page'] {
  font-weight: 700;
}

.guide-hero {
  max-width: 850px;
  padding: 30px 0 42px;
}

.guide-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.guide-hero > p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.guide-section {
  margin-top: 22px;
}

.guide-section-heading {
  margin-bottom: 20px;
}

.guide-section-heading .section-tag {
  margin-bottom: 8px;
}

.guide-section-heading > p:last-child {
  margin: 8px 0 0;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-steps li,
.guide-help-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.guide-step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
}

.guide-steps h3,
.guide-help-list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.guide-steps p,
.guide-help-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-explainer {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  margin-top: 22px;
  background: #f8fafc;
}

.guide-explainer .section-tag {
  margin-bottom: 10px;
}

.guide-explainer p:first-child {
  margin-top: 0;
}

.guide-explainer p:last-child {
  margin-bottom: 0;
}

.guide-explainer code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #1e293b;
}

.guide-help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-game-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-game-list li {
  display: grid;
  grid-template-columns: 88px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-game-list img {
  display: block;
  width: 88px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.guide-game-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.guide-game-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .guide-steps,
  .guide-help-list {
    grid-template-columns: 1fr;
  }

  .game-instructions,
  .guide-explainer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .popular-row {
    grid-template-columns: 28px 68px minmax(0, 1fr) 88px;
    gap: 9px;
    padding: 12px 4px;
  }

  .list-play-link {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .popular-game-info > p {
    max-width: 48vw;
    font-size: 0.82rem;
  }

  .instruction-card,
  .guide-section,
  .guide-explainer {
    padding: 22px 18px;
  }

  .guide-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-game-list li {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .guide-game-list img {
    width: 72px;
  }

  .guide-game-list .category-chip {
    display: none;
  }

  .guide-game-list .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.83rem;
  }
}
