:root {
  color-scheme: dark;
  --ink: #f7f5ed;
  --muted: #aaaec0;
  --night: #0d1020;
  --panel: #171a2c;
  --line: rgba(255, 255, 255, 0.14);
  --yellow: #ffcc4d;
  --pink: #f4508b;
  --mint: #69e3b1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 80, 139, 0.18), transparent 28rem),
    radial-gradient(circle at 12% 40%, rgba(105, 227, 177, 0.11), transparent 24rem),
    var(--night);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; text-decoration: none; letter-spacing: -0.03em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; color: var(--night); background: var(--yellow);
  font-weight: 950; transform: rotate(-4deg);
}
.header-link, .card-link { font-weight: 750; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.intro { padding: 104px 0 96px; max-width: 920px; }
.eyebrow { margin: 0 0 14px; color: var(--yellow); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(4rem, 10vw, 8.7rem); line-height: 0.82; letter-spacing: -0.075em; font-weight: 950; }
h1 span { display: block; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.intro-copy { max-width: 630px; margin-bottom: 32px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.primary-button {
  display: inline-flex; align-items: center; gap: 32px; padding: 18px 22px;
  background: var(--yellow); color: var(--night); border: 2px solid var(--yellow);
  font-weight: 900; text-decoration: none; box-shadow: 8px 8px 0 var(--pink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-button:hover, .primary-button:focus-visible { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--pink); }
.game-shelf { padding: 28px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.055em; line-height: 0.95; }
.section-heading > p { color: var(--muted); }
.section-heading strong { color: var(--ink); }
.game-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr); border: 1px solid var(--line); background: var(--panel); }
.game-card + .game-card { margin-top: 24px; }
.game-art { position: relative; min-height: 440px; overflow: hidden; background: #284823; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.game-art:hover img, .game-art:focus-visible img { transform: scale(1.035); }
.echo-art {
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 440px;
  text-decoration: none;
  background:
    linear-gradient(rgba(125, 249, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 249, 255, .1) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, #253450, #070912 64%);
  background-size: 42px 42px, 42px 42px, auto;
}
.echo-art::before, .echo-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 0;
  height: 0;
  border-left: 78px solid transparent;
  border-right: 78px solid transparent;
  border-bottom: 132px solid rgba(236, 255, 102, .22);
  filter: drop-shadow(0 0 22px rgba(236, 255, 102, .35));
}
.echo-art::after { transform: translateY(34px) scale(.72); border-bottom-color: rgba(125, 249, 255, .24); }
.echo-orbit { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(125,249,255,.34); border-radius: 50%; box-shadow: 0 0 36px rgba(125,249,255,.12); }
.echo-title { z-index: 1; text-align: center; font-size: clamp(3.2rem, 7vw, 6.2rem); font-weight: 950; line-height: .78; letter-spacing: -.06em; color: var(--ink); text-shadow: 5px 5px 0 rgba(244,80,139,.7); }
.play-badge { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; color: var(--night); background: var(--yellow); font-size: 0.8rem; font-weight: 950; letter-spacing: 0.12em; box-shadow: 6px 6px 0 var(--pink); }
.game-details { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 54px); }
.game-meta { color: var(--mint); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.13em; }
.game-details h3 { margin: 12px 0 18px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 0.9; letter-spacing: -0.06em; }
.game-details p:not(.game-meta), .next-card p:last-child { color: var(--muted); line-height: 1.65; }
.next-card { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: center; margin-top: 24px; padding: 36px; border: 1px dashed rgba(255, 255, 255, 0.25); }
.next-number { color: rgba(255,255,255,.16); font-size: 5.5rem; font-weight: 950; line-height: 1; }
.next-card h3 { margin-bottom: 9px; font-size: 1.6rem; }
.next-card p:last-child { margin-bottom: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer span:first-child { color: var(--ink); font-weight: 850; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .header-link { display: none; }
  .intro { padding: 74px 0 70px; }
  h1 { max-width: 100%; font-size: clamp(2.25rem, 11vw, 5.25rem); line-height: 0.88; letter-spacing: -0.06em; }
  h1 span { white-space: nowrap; }
  .section-heading { align-items: start; flex-direction: column; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 300px; }
  .game-details { min-height: 370px; }
  .next-card { grid-template-columns: 1fr; }
  .next-number { font-size: 4rem; }
  footer { flex-direction: column; }
}

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