:root {
  color-scheme: dark;
  --bg: #02090c;
  --panel: rgba(8, 14, 17, 0.86);
  --panel-strong: #101416;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f6f2ea;
  --muted: #b8b5ad;
  --accent: #d02217;
  --accent-2: #c79848;
  --glow: rgba(208, 34, 23, 0.35);
}

* { box-sizing: border-box; }

body {
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 70% 0%, rgba(60, 87, 96, 0.26), transparent 34%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="christmas"] {
  --bg: #03100f;
  --panel: rgba(6, 19, 17, 0.88);
  --accent: #bd1e2d;
  --accent-2: #d6b36a;
  --glow: rgba(214, 179, 106, 0.28);
}

body[data-theme="halloween"] {
  --bg: #08060b;
  --panel: rgba(16, 12, 19, 0.9);
  --accent: #ec6b1d;
  --accent-2: #8f5cff;
  --glow: rgba(236, 107, 29, 0.28);
}

body[data-theme="backToSchool"] {
  --bg: #04100f;
  --panel: rgba(8, 20, 18, 0.9);
  --accent: #bd2f23;
  --accent-2: #e0b95f;
  --glow: rgba(224, 185, 95, 0.24);
}

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

main, .site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(2, 7, 10, 0.86);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 152, 72, 0.2) 18%, rgba(235, 203, 142, 0.72) 50%, rgba(199, 152, 72, 0.2) 82%, transparent);
  box-shadow: 0 8px 24px rgba(199, 152, 72, 0.2);
}

.brand img, .site-footer img {
  display: block;
  width: 190px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 4vw, 58px);
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a:hover, .section-heading a:hover { color: var(--accent-2); }

.menu-button { display: none; }

.hero {
  position: relative;
  --hero-art-size: cover;
  --hero-art-position: 58% 48%;
  --hero-overlay-side: linear-gradient(90deg, rgba(2, 4, 6, 0.96), rgba(2, 4, 6, 0.52) 38%, rgba(2, 4, 6, 0.18) 70%, rgba(2, 4, 6, 0.68));
  --hero-overlay-depth: linear-gradient(180deg, rgba(2, 4, 6, 0.08), rgba(2, 4, 6, 0.78));
  min-height: min(560px, 72vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-content { animation: slideVertical 9s ease-in-out infinite; }

.hero-art {
  position: absolute;
  inset: 0;
  background:
    var(--hero-overlay-side),
    var(--hero-overlay-depth),
    url("assets/quiet-pawse-hero.png");
  background-size: var(--hero-art-size);
  background-position: var(--hero-art-position);
  background-repeat: no-repeat;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-art::after {
  content: none;
  position: absolute;
  right: clamp(20px, 7vw, 112px);
  bottom: -26px;
  width: min(520px, 44vw);
  height: min(360px, 44vw);
  background:
    radial-gradient(circle at 65% 34%, rgba(255, 94, 45, 0.72), transparent 9%),
    radial-gradient(circle at 46% 54%, rgba(80, 190, 225, 0.32), transparent 18%),
    linear-gradient(145deg, rgba(18, 45, 54, 0.92), rgba(8, 10, 13, 0.96) 56%, rgba(95, 24, 18, 0.82));
  clip-path: polygon(0 34%, 34% 4%, 100% 18%, 86% 100%, 11% 92%);
  filter: drop-shadow(-44px 38px 34px rgba(0, 0, 0, 0.72));
  opacity: 0.86;
}

.hero-showcase {
  position: absolute;
  right: clamp(22px, 6vw, 84px);
  bottom: clamp(28px, 5vw, 76px);
  z-index: 1;
  width: min(420px, 38vw);
  min-height: 330px;
  pointer-events: none;
  display: none;
}

.hero-cover,
.hero-mini {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 12, 15, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.hero-cover {
  right: 64px;
  bottom: 0;
  width: min(280px, 27vw);
  aspect-ratio: 0.72;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 64% 24%, rgba(255, 103, 54, 0.88), transparent 14%),
    radial-gradient(circle at 26% 40%, rgba(88, 190, 221, 0.28), transparent 18%),
    linear-gradient(135deg, #182d33, #070a0e 52%, #3a1714);
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 14% 22% 28% 32%;
  background: linear-gradient(#162127, #050607);
  clip-path: polygon(34% 0, 66% 0, 76% 100%, 18% 100%);
  opacity: 0.72;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.12) 49%, transparent 56%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.1), transparent 13%);
}

.hero-cover strong,
.hero-cover span,
.hero-mini strong,
.hero-mini span {
  position: relative;
  z-index: 1;
}

.cover-kicker {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-cover strong {
  max-width: 8ch;
  margin-top: 5px;
  font-family: "Bebas Neue", "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", "Liberation Sans Narrow", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-cover span:last-child,
.hero-mini span {
  color: var(--muted);
  font-size: 12px;
}

.hero-mini {
  width: 152px;
  min-height: 78px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-mini-a {
  right: 0;
  top: 28px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)),
    radial-gradient(circle at 68% 28%, rgba(208, 34, 180, 0.58), transparent 18%),
    linear-gradient(135deg, #12324b, #090a11 62%);
}

.hero-mini-b {
  left: 0;
  bottom: 58px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 38% 26%, rgba(88, 180, 255, 0.6), transparent 17%),
    linear-gradient(135deg, #26345d, #070a12 62%);
}

.hero-mini strong {
  font-size: 14px;
  line-height: 1.05;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  margin-left: clamp(18px, 4vw, 54px);
  padding: 70px 0;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: "Bebas Neue", "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 400;
}

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(54px, 8.5vw, 104px);
  font-stretch: condensed;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.hero-content p:not(.kicker) {
  max-width: 330px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.actions, .platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary { background: var(--accent); border-color: var(--accent); }
.button.ghost { background: rgba(0, 0, 0, 0.34); }

.platforms {
  margin-top: 28px;
  color: #f5f2ec;
  font-size: 13px;
  font-weight: 800;
  gap: 18px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #f5f2ec;
}

.platform-logo {
  display: block;
  width: 108px;
  height: 28px;
  object-fit: contain;
}

.platform-pill.steam .platform-logo {
  width: 92px;
  height: 28px;
  object-fit: contain;
}

.platform-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #f5f2ec;
  font-size: 13px;
  font-weight: 900;
}

.content-band, .cms-panel {
  padding: 26px clamp(18px, 4vw, 54px);
}

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

.section-heading h2, .cms-panel h2 {
  margin-bottom: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-heading p { margin: 4px 0 0; color: var(--muted); }
.section-heading a { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }

.feature-grid, .game-grid, .steam-grid, .news-grid {
  display: grid;
  gap: 18px;
}

.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steam-grid { grid-template-columns: 2fr 1fr 1fr; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--art), linear-gradient(135deg, #102126, #0a0c0e);
  background-size: cover;
  background-position: center;
  opacity: 0.94;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.86));
}

.featured-card::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44) 46%, transparent 78%),
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.92));
}

.card-content {
  position: absolute;
  inset: auto 18px 16px;
  z-index: 1;
}

.featured-card .card-content {
  left: 16px;
  bottom: 14px;
  max-width: min(330px, calc(100% - 32px));
  padding: 8px 10px 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.86);
}

.featured-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.featured-platforms .platform-pill {
  min-height: 24px;
}

.featured-platforms .platform-logo {
  width: 92px;
  height: 24px;
}

.featured-platforms .platform-pill.steam .platform-logo {
  width: 78px;
  height: 24px;
}

.label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 8px 4px;
  border: 1px solid rgba(199, 152, 72, 0.28);
  border-radius: 4px;
  background: rgba(4, 8, 10, 0.72);
  color: var(--accent-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.card h3 { margin-bottom: 2px; font-size: 24px; line-height: 1; }
.card p { margin-bottom: 0; color: var(--muted); }

select {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-card {
  display: block;
  gap: 14px;
  min-height: 258px;
  padding: 14px;
}

.game-card::after { background: rgba(0, 0, 0, 0.16); }

.game-card::before { opacity: 0; }

.game-topline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
}

.game-icon {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: var(--icon-image, none), var(--icon, transparent);
  background-size: var(--icon-scale, 88%), cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 14px rgba(255, 255, 255, 0.12);
}

.game-card h3 { font-size: 24px; }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.new { background: #d02217; }
.badge.update { background: #2d8a62; }

.game-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.74fr 0.74fr;
  gap: 8px;
  margin-top: 14px;
  height: 84px;
}

.game-preview span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background:
    radial-gradient(circle at 38% 42%, rgba(255, 195, 65, 0.7), transparent 9%),
    var(--art);
  box-shadow: inset 0 -24px 30px rgba(0, 0, 0, 0.34);
}

.game-preview.single {
  grid-template-columns: 1fr;
  height: auto;
  aspect-ratio: 9 / 16;
}

.game-preview.single span {
  background: var(--shot-portrait);
  background-size: cover;
  background-position: center;
}

.game-preview span + span { filter: saturate(1.25) hue-rotate(18deg); }
.game-preview span + span + span { filter: saturate(0.9) hue-rotate(-28deg); }

.store-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.store-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #030303;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.store-badge::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.store-badge img {
  display: block;
  width: calc(100% - 18px);
  height: calc(100% - 8px);
  object-fit: contain;
}

.steam-card:first-child { min-height: 172px; }
.steam-card:first-child h3 { font-size: 28px; }
.steam-body {
  max-width: 360px;
  margin-top: 8px;
  margin-bottom: 12px !important;
  line-height: 1.4;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f2ea;
  color: #121212;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card { min-height: 150px; }
.news-card .card-content { inset: auto 18px 18px 132px; }
.news-card::before { width: 118px; right: auto; }
.news-card::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9) 42%); }
.news-cta {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 14px;
  color: #8ed8ff;
  font-size: 13px;
  font-weight: 800;
}
.news-cta.trailer { color: #f0c66f; }

.cms-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.1fr);
  gap: 24px;
  margin: 18px clamp(18px, 4vw, 54px) 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--panel);
}

.cms-panel p { color: var(--muted); }
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.check input { accent-color: var(--accent); }

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid rgba(199, 152, 72, 0.38);
  background: rgba(0, 4, 7, 0.86);
}

.site-footer p, .site-footer a { display: block; color: var(--muted); line-height: 1.65; }
.site-footer h3 { margin-bottom: 8px; font-size: 13px; text-transform: uppercase; }
.site-footer img { width: 210px; margin-bottom: 8px; }
.site-footer .legal-attribution {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: -10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(238, 233, 222, 0.48);
}

.footer-stars span {
  position: absolute;
  right: 52px;
  bottom: 60px;
  width: 96px;
  height: 2px;
  background: #22282b;
  transform: rotate(-44deg);
  opacity: 0.5;
}

.footer-stars span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -6px;
  width: 13px;
  height: 13px;
  background: #242a2d;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 67% 56%, 79% 91%, 50% 69%, 21% 91%, 33% 56%, 2% 35%, 39% 35%);
}

.footer-stars span + span {
  right: 18px;
  bottom: 98px;
  width: 56px;
  opacity: 0.35;
}

.seasonal-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

body[data-theme="christmas"] .seasonal-layer {
  opacity: 0.58;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 58%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.7px),
    radial-gradient(circle at 46% 74%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px);
  background-size: 320px 250px, 470px 380px, 760px 620px;
  background-position: 0 0, 130px 80px, 340px 180px;
  animation: snow 34s linear infinite;
}

body[data-theme="christmas"] .site-header::after {
  background: linear-gradient(90deg, transparent, rgba(214, 179, 106, 0.2) 18%, rgba(248, 230, 177, 0.8) 50%, rgba(214, 179, 106, 0.2) 82%, transparent);
}
body[data-theme="christmas"] .hero-art { filter: saturate(0.85) hue-rotate(10deg); }
body[data-theme="christmas"] .hero::after {
  content: "Holiday Event";
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  z-index: 1;
  padding: 9px 14px;
  border: 1px solid rgba(214, 179, 106, 0.6);
  border-radius: 999px;
  background: rgba(4, 24, 19, 0.72);
  color: #f7e2a3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="halloween"] .hero-art { filter: hue-rotate(25deg) saturate(1.2); }
body[data-theme="halloween"] .seasonal-layer {
  background: radial-gradient(circle at 88% 13%, rgba(143, 92, 255, 0.18), transparent 13%);
}

body[data-theme="backToSchool"] .hero-art {
  filter: saturate(0.92) sepia(0.08);
}

body[data-theme="backToSchool"] .hero-art::before {
  background-image:
    linear-gradient(rgba(224, 185, 95, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 185, 95, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(189, 47, 35, 0.08) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 100% 120px;
  background-position: 0 0, 0 0, 0 24px;
  opacity: 0.34;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.18), black 28%, black 78%, transparent);
}

body[data-theme="backToSchool"] .seasonal-layer {
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 12% 24%, rgba(224, 185, 95, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 16%, rgba(189, 47, 35, 0.14) 0 1px, transparent 1.5px);
  background-size: 220px 180px, 260px 210px;
}

body[data-theme="backToSchool"] .site-header::after {
  background: linear-gradient(90deg, transparent, rgba(224, 185, 95, 0.16) 18%, rgba(224, 185, 95, 0.75) 50%, rgba(189, 47, 35, 0.18) 82%, transparent);
}

body[data-theme="backToSchool"] .hero::after {
  content: "Back to School Event";
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  z-index: 1;
  padding: 9px 14px;
  border: 1px solid rgba(224, 185, 95, 0.64);
  border-radius: 999px;
  background: rgba(9, 27, 24, 0.78);
  color: #f4d58a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="backToSchool"] .footer-stars span {
  background: #d7a23d;
  opacity: 0.24;
}

body[data-theme="backToSchool"] .footer-stars span::after {
  background: #f4d58a;
}

@keyframes snow {
  from { background-position: 0 0, 130px 80px, 340px 180px; }
  to { background-position: 70px 920px, 180px 760px, 300px 640px; }
}

@keyframes slideVertical {
  0%, 78%, 100% { transform: translateY(0); opacity: 1; }
  84% { transform: translateY(-18px); opacity: 0; }
  85% { transform: translateY(22px); opacity: 0; }
  92% { transform: translateY(0); opacity: 1; }
}

[hidden] { display: none !important; }

@media (max-width: 1280px) {
  .hero {
    --hero-art-size: cover;
    --hero-art-position: 60% 50%;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-preview.single {
    aspect-ratio: 16 / 9;
  }
  .game-preview.single span {
    background-image: var(--shot-landscape, var(--shot-portrait));
  }
}

@media (max-width: 980px) {
  .site-header { align-items: flex-start; }
  .hero {
    --hero-art-size: cover;
    --hero-art-position: 56% 48%;
    --hero-overlay-side: linear-gradient(90deg, rgba(2, 4, 6, 0.96), rgba(2, 4, 6, 0.64) 52%, rgba(2, 4, 6, 0.36));
  }
  .hero-showcase {
    right: -42px;
    width: 360px;
    opacity: 0.48;
  }
  .hero-cover { width: 220px; }
  .hero-mini { display: none; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-weight: 800;
    text-transform: uppercase;
  }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(2, 7, 10, 0.96);
  }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px 0; }
  .feature-grid, .game-grid, .steam-grid, .news-grid, .cms-panel, .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .steam-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand img { width: 152px; }
  .hero {
    --hero-art-size: cover;
    --hero-art-position: 47% 48%;
    --hero-overlay-side: linear-gradient(90deg, rgba(2, 4, 6, 0.9), rgba(2, 4, 6, 0.58));
    --hero-overlay-depth: linear-gradient(180deg, rgba(2, 4, 6, 0.08), rgba(2, 4, 6, 0.5) 44%, rgba(2, 4, 6, 0.94));
    min-height: 620px;
    align-items: end;
  }
  .hero-art::after { right: -80px; width: 340px; opacity: 0.42; }
  .hero-showcase { display: none; }
  .hero-content { padding-bottom: 38px; }
  h1 {
    max-width: 100%;
    font-size: clamp(44px, 12vw, 64px);
    line-height: 0.96;
  }
  .actions .button { width: 100%; justify-content: center; }
  .feature-grid, .game-grid, .steam-grid, .news-grid, .cms-panel, .control-grid, .site-footer {
    grid-template-columns: 1fr;
  }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .news-card .card-content { inset: auto 16px 16px; }
  .news-card::before { width: 100%; }
  .news-card::after { background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.9)); }
  .cms-panel { margin-inline: 18px; }
  .footer-stars { display: none; }
}
