:root {
  --bg: #263a52;
  --surface: #1a2d40;
  --surface-2: #223850;
  --surface-deep: #132638;
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --text: #f3fff9;
  --muted: #b8cad7;
  --line: rgba(243, 255, 249, .14);
  --shadow: 0 24px 70px rgba(2, 10, 19, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 197, 94, .14), transparent 28rem),
    linear-gradient(135deg, #21364d 0%, #263a52 42%, #15283a 100%);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(19, 38, 56, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Outfit, Manrope, sans-serif;
  font-weight: 800;
}

.brand img, .footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span { font-size: 21px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 15px;
}

.site-nav a:hover, .site-nav a.active {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
  color: var(--text);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
  min-height: 0;
  padding: clamp(54px, 8vw, 96px) 0 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(34, 197, 94, .34);
  border-radius: 999px;
  background: rgba(34, 197, 94, .1);
  color: #c7f9d7;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

h1, h2, h3 {
  font-family: Outfit, Manrope, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .95;
}

.hero-copy p, .section-head p, .detail-copy p, .site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy > p {
  max-width: 690px;
  font-size: 18px;
}

.hero-actions, .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  padding: 0 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #06140b;
  box-shadow: 0 14px 34px rgba(34, 197, 94, .26);
}

.btn-ghost { background: rgba(243, 255, 249, .06); color: var(--text); }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 45, 64, .94), rgba(19, 38, 56, .96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, .12);
}

.hero-game {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 18px;
}

.hero-game img {
  width: 128px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 255, 249, .05);
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 24px;
  font-family: Outfit, Manrope, sans-serif;
}

.stat-card span { color: var(--muted); font-size: 13px; font-weight: 800; }

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head h2, .page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

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

.game-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 45, 64, .86);
  box-shadow: 0 16px 36px rgba(2, 10, 19, .2);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, .46);
}

.cover-link {
  position: relative;
  display: block;
  background: var(--surface-deep);
}

.cover-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #06140b;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.game-card-body { padding: 14px; }
.emu-chip {
  display: inline-flex;
  border: 1px solid rgba(34, 197, 94, .32);
  border-radius: 999px;
  color: #c7f9d7;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.game-card h3 {
  min-height: 48px;
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.35;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: #7df3a7;
  font-weight: 900;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 38, 56, .72);
  padding: 22px;
}

.feature strong {
  display: block;
  font-family: Outfit, Manrope, sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.page-shell { padding: 34px 0 56px; }
.page-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.page-title p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 150px auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 38, 56, .72);
  padding: 14px;
  margin-bottom: 20px;
}

.filter-field input, .filter-field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 255, 249, .06);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 14px;
}

.filter-field option { color: #102033; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination a {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #06140b;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-cover {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 38, 56, .78);
  padding: clamp(22px, 4vw, 36px);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  margin: 12px 0 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 11px;
}

.game-detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #c7f9d7;
}

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

.game-profile {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.game-cover-card,
.game-main-panel,
.info-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 45, 64, .92), rgba(19, 38, 56, .92));
  box-shadow: 0 20px 54px rgba(2, 10, 19, .22);
}

.game-cover-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.game-cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(243, 255, 249, .2);
  border-radius: 8px;
  background: var(--surface-deep);
}

.detail-premium {
  position: absolute;
  top: 24px;
  right: 24px;
}

.btn.full {
  width: 100%;
}

.game-main-panel {
  padding: clamp(22px, 4vw, 36px);
}

.game-main-panel h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  margin: 14px 0;
}

.game-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 22px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.quick-stats div {
  min-width: 0;
  border: 1px solid rgba(243, 255, 249, .12);
  border-radius: 8px;
  background: rgba(243, 255, 249, .055);
  padding: 15px;
}

.quick-stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Outfit, Manrope, sans-serif;
  font-size: 24px;
}

.quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-top: 4px;
  text-transform: uppercase;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 8px;
  background: rgba(34, 197, 94, .09);
  margin: 22px 0;
  padding: 18px;
}

.download-panel h2,
.info-card h2,
.side-card h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
}

.download-panel p,
.info-card p,
.side-card li {
  color: var(--muted);
  line-height: 1.7;
}

.download-panel p {
  margin: 0;
}

.info-card {
  padding: clamp(18px, 3vw, 24px);
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.info-table div {
  min-width: 0;
  border: 1px solid rgba(243, 255, 249, .1);
  border-radius: 8px;
  background: rgba(243, 255, 249, .045);
  padding: 13px 14px;
}

.info-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.info-table strong {
  display: block;
  overflow-wrap: anywhere;
}

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

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-deep);
  box-shadow: 0 14px 34px rgba(2, 10, 19, .18);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.side-card {
  padding: clamp(18px, 3vw, 24px);
}

.side-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding-left: 20px;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 38, 56, .72);
  padding: 32px;
  text-align: center;
}

.seo-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 38, 56, .72);
  margin-bottom: 20px;
  padding: 18px;
}

.seo-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.seo-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer p { max-width: 720px; margin: 10px 0 0; }
.legal { font-size: 13px; }
.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
  font-weight: 900;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero, .detail-grid, .game-profile, .content-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-band { grid-template-columns: 1fr; }
  .detail-cover, .game-cover-card { position: static; max-width: 380px; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-deep);
    padding: 12px;
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { display: flex; }
  .brand span { font-size: 18px; }
  h1 { font-size: 42px; }
  .hero-game { grid-template-columns: 92px 1fr; }
  .hero-game img { width: 92px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: 1fr; }
  .section-head, .page-title, .site-footer { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .quick-stats, .info-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-panel { align-items: stretch; flex-direction: column; }
}

@media (max-width: 460px) {
  .stats-grid, .quick-stats, .info-table, .screenshot-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 16px; }
  .hero, .section, .page-shell, .site-footer { width: min(1180px, calc(100% - 24px)); }
  .game-detail-shell { width: min(1180px, calc(100% - 24px)); }
}
