:root {
  --ink: #f5f7fb;
  --muted: #9da4b7;
  --page: #090b12;
  --panel: #111520;
  --panel-soft: #171c29;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #8f63ff;
  --violet-bright: #a987ff;
  --coral: #ff6f61;
  --mint: #7fffc4;
  --yellow: #ffd66b;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}
.ambient-one { width: 520px; height: 520px; background: var(--violet); top: -260px; right: -140px; }
.ambient-two { width: 420px; height: 420px; background: var(--coral); top: 620px; left: -300px; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, var(--violet), #5f34d6);
  box-shadow: 0 12px 30px rgba(143, 99, 255, 0.28);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.brand strong { display: block; font-family: "Space Grotesk", sans-serif; letter-spacing: -0.03em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-link:hover { color: var(--ink); }
.social-link, .primary-button, .light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.social-link { padding: 11px 17px; border: 1px solid var(--line); font-size: 13px; }
.social-link:hover, .primary-button:hover, .light-button:hover { transform: translateY(-2px); }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  min-height: 590px;
  padding: 72px 0 86px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--violet-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span { width: 22px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
h1 em { color: var(--violet-bright); font-style: normal; }
.hero-text {
  max-width: 620px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 24px; }
.hero-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-actions strong { color: var(--ink); font-size: 18px; }
.release-summary { display: grid; gap: 5px; }
#last-verified { font-size: 11px; }
.primary-button {
  min-height: 52px;
  padding: 0 24px;
  background: var(--violet);
  box-shadow: 0 16px 34px rgba(143, 99, 255, 0.28);
}

.hero-panel {
  position: relative;
  min-height: 340px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(143, 99, 255, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 34px solid rgba(255,255,255,0.035);
  border-radius: 50%;
}
.panel-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.next-release { position: relative; z-index: 1; padding-top: 55px; }
.next-release .platform-label { color: var(--violet-bright); }
.next-release h3 { margin: 12px 0 14px; font-size: 36px; line-height: 1.05; letter-spacing: -0.04em; }
.next-release p { color: var(--muted); }
.countdown { display: flex; gap: 10px; margin-top: 28px; }
.countdown span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.04); font-size: 12px; }

.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px;
  border-block: 1px solid var(--line);
  color: #747b8d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker i { width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }

.releases-section { padding: 112px 0 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2, .newsletter h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.055em; }
.updated-label { color: var(--muted); font-size: 13px; }
.verification-note {
  display: flex;
  max-width: 680px;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.verification-note span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(95, 225, 171, 0.35);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(95, 225, 171, 0.08);
  font-size: 11px;
  font-weight: 800;
}
.controls { display: flex; justify-content: space-between; gap: 24px; margin: 42px 0 28px; }
.platform-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.filter:hover, .filter.active { border-color: var(--violet); color: white; background: rgba(143, 99, 255, 0.15); }
.search { display: flex; align-items: center; width: 240px; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.025); }
.date-picker { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.date-picker select { padding: 10px 30px 10px 12px; border: 1px solid var(--line); border-radius: 999px; outline: 0; color: var(--ink); background: var(--panel); }
.search svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search input { width: 100%; padding: 10px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: #686f80; }

.release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.release-card {
  --platform-color: var(--violet);
  --platform-rgb: 143, 99, 255;
  position: relative;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 95% 3%, rgba(var(--platform-rgb), .22), transparent 34%),
    linear-gradient(150deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.release-card:hover { transform: translateY(-5px); border-color: rgba(var(--platform-rgb), .55); }
.maker a { color: inherit; text-decoration-color: var(--platform-color); text-underline-offset: 3px; }
.maker a:hover { color: var(--platform-color); }
.platform-nintendo { --platform-color: #ff5147; --platform-rgb: 255, 81, 71; }
.platform-playstation { --platform-color: #4285ff; --platform-rgb: 66, 133, 255; }
.platform-xbox { --platform-color: #43c463; --platform-rgb: 67, 196, 99; }
.platform-pc { --platform-color: #a987ff; --platform-rgb: 169, 135, 255; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category, .date-badge { display: inline-flex; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.category { color: var(--platform-color); }
.category::before { content: ""; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.category.dlc { color: var(--coral); }
.category.update { color: var(--mint); }
.date-badge { padding: 7px 9px; color: var(--yellow); background: rgba(255, 214, 107, 0.09); }
.date-badge.releases_today { color: #11151f; background: var(--yellow); }
.date-badge.out_now { color: #101a15; background: var(--mint); }
.date-badge.date_changed { color: #1f1310; background: var(--coral); }
.date-badge.coming_soon { color: var(--violet-bright); background: rgba(143, 99, 255, 0.14); }
.release-card h3 { margin: 38px 0 13px; font-size: 26px; line-height: 1.08; letter-spacing: -0.04em; }
.maker { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.game-art {
  position: relative;
  height: 132px;
  margin: 18px -8px 4px;
  overflow: hidden;
  border: 1px solid rgba(var(--platform-rgb), .26);
  border-radius: 14px;
  background: rgba(var(--platform-rgb), .08);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -35px 45px rgba(9,11,18,.25); pointer-events: none; }
.art-fallback { display: flex; height: 100%; align-items: center; justify-content: space-between; padding: 22px; background: linear-gradient(135deg, rgba(var(--platform-rgb), .28), rgba(var(--platform-rgb), .05)); }
.art-fallback span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.art-fallback strong { color: rgba(255,255,255,.16); font-family: "Space Grotesk", sans-serif; font-size: 58px; }
.meta-list { display: grid; gap: 9px; margin: auto 0 20px; padding-top: 20px; }
.meta-row { display: flex; align-items: flex-start; gap: 9px; color: #c2c7d3; font-size: 12px; line-height: 1.4; }
.meta-icon { width: 17px; color: var(--platform-color); text-align: center; }
.card-actions { display: flex; align-items: flex-end; gap: 9px; }
.official-links { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; }
.official-link, .copy-button {
  min-height: 40px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}
.official-link { display: inline-flex; width: 116px; min-width: 116px; flex: 0 0 116px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; background: var(--ink); color: #11131a; text-align: center; }
.store-icon { width: 15px; height: 15px; flex: 0 0 15px; overflow: visible; fill: none; stroke: #7657d6; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.store-icon path:first-child, .store-icon rect, .store-icon circle { vector-effect: non-scaling-stroke; }
.store-icon-xbox { stroke: #107c10; }
.store-icon-steam { stroke: #1387c9; }
.store-icon-nintendo { stroke: #e60012; }
.store-icon-playstation { stroke: #006fcd; }
.official-link .store-icon-playstation path { fill: #006fcd; stroke: none; }
.store-icon-microsoft { stroke: none; }
.store-icon-microsoft .ms-red { fill: #f25022; }
.store-icon-microsoft .ms-green { fill: #7fba00; }
.store-icon-microsoft .ms-blue { fill: #00a4ef; }
.store-icon-microsoft .ms-yellow { fill: #ffb900; }
.copy-button { width: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.copy-button:hover { border-color: var(--violet); background: rgba(143,99,255,0.12); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state span { font-size: 50px; color: var(--violet); }
.empty-state h3 { margin-bottom: 6px; color: var(--ink); }

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  padding: 58px;
  border-radius: var(--radius-lg);
  color: #11131a;
  background: linear-gradient(135deg, var(--violet-bright), #d5c4ff);
}
.newsletter .eyebrow { color: #352062; }
.newsletter p { max-width: 570px; margin-bottom: 0; color: rgba(17,19,26,0.7); }
.light-button { flex: 0 0 auto; padding: 15px 20px; color: white; background: #11131a; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; padding: 12px 17px; border: 1px solid var(--line); border-radius: 12px; background: #202638; box-shadow: 0 16px 40px rgba(0,0,0,.35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.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; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-panel { min-height: 300px; }
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { padding: 42px; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .brand small, .nav-link { display: none; }
  .site-header { padding-top: 16px; }
  .hero { min-height: auto; gap: 38px; padding: 70px 0 64px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-text { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .ticker { margin-inline: -12px; overflow: hidden; white-space: nowrap; }
  .ticker span:nth-of-type(2), .ticker i:nth-of-type(2) { display: none; }
  .releases-section { padding: 82px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .controls { flex-direction: column; }
  .date-picker { width: 100%; margin-left: 0; }
  .platform-filters { flex-wrap: nowrap; margin-inline: -12px; padding-inline: 12px; overflow-x: auto; }
  .search { width: 100%; }
  .release-grid { grid-template-columns: 1fr; }
  .release-card { min-height: 330px; }
  .newsletter { align-items: flex-start; flex-direction: column; margin-inline: -4px; padding: 34px 26px; }
  footer { align-items: flex-start; flex-direction: column; }
}

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