:root {
  color-scheme: dark;
  --bg: #141116;
  --panel: #201a24;
  --panel-strong: #2b2130;
  --text: #fff7fb;
  --muted: #cdbfc9;
  --line: rgba(255, 247, 251, 0.14);
  --red: #ff4f70;
  --gold: #f0c85a;
  --aqua: #43d9c8;
  --green: #8bd67a;
  --ink: #0d0b0f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 79, 112, 0.22), transparent 28rem),
    radial-gradient(circle at 78% 8%, rgba(67, 217, 200, 0.16), transparent 30rem),
    linear-gradient(180deg, #141116 0%, #171219 48%, #100d12 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
a.button {
  min-height: 44px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--red);
  background: #120f14;
  box-shadow: inset 0 0 0 4px rgba(255, 79, 112, 0.14);
  color: var(--gold);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  border: 1px solid transparent;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 6vw, 88px) clamp(18px, 4vw, 56px) 34px;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5.8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy > p:not(.kicker),
.section-copy p,
.notice-band,
.card p,
.game-card p,
details p,
footer p {
  color: var(--muted);
}

.hero-copy > p:not(.kicker) {
  max-width: 650px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions,
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button,
button,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  border-color: transparent;
  background: var(--red);
  color: #fff;
}

.primary:hover,
.primary:focus-visible {
  background: #ff6b85;
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--aqua);
  color: var(--aqua);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.fact-strip div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.fact-strip div:last-child {
  border-right: 0;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.game-visual {
  width: min(100%, 520px);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0f0d12;
  box-shadow: var(--shadow);
}

.screen-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #1e1822;
}

.screen-top span {
  width: 12px;
  height: 12px;
  background: var(--red);
}

.screen-top span:nth-child(2) {
  background: var(--gold);
}

.screen-top span:nth-child(3) {
  background: var(--aqua);
}

.battle-window {
  position: relative;
  aspect-ratio: 1.45;
  margin: 22px;
  border: 4px solid #f9edf5;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #120f14;
  background-size: 28px 28px;
  overflow: hidden;
}

.pixel-heart {
  position: absolute;
  left: 48%;
  top: 48%;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  background: var(--red);
  animation: pulse 1.4s infinite;
}

.pixel-heart::before,
.pixel-heart::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--red);
}

.pixel-heart::before {
  left: -14px;
}

.pixel-heart::after {
  top: -14px;
}

.bullet {
  position: absolute;
  width: 34px;
  height: 8px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(240, 200, 90, 0.5);
}

.bullet-a {
  left: 12%;
  top: 22%;
}

.bullet-b {
  right: 14%;
  top: 34%;
  transform: rotate(90deg);
}

.bullet-c {
  left: 22%;
  bottom: 20%;
  transform: rotate(20deg);
}

.bullet-d {
  right: 28%;
  bottom: 18%;
  transform: rotate(-22deg);
}

.dialogue {
  display: flex;
  align-items: center;
  min-height: 78px;
  margin: 0 22px 22px;
  border: 3px solid #f9edf5;
  padding: 16px;
  color: #f9edf5;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  margin-left: 6px;
  background: var(--text);
  animation: blink 0.9s steps(2) infinite;
}

.battle-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 22px 22px;
}

.battle-menu span {
  min-width: 0;
  border: 2px solid var(--gold);
  padding: 10px 4px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.notice-band,
.content-grid,
.versions,
.similar,
.faq,
footer {
  padding-inline: clamp(18px, 4vw, 56px);
}

.notice-band {
  border-block: 1px solid var(--line);
  padding-block: 18px;
  background: rgba(240, 200, 90, 0.08);
}

.ad-slot {
  min-height: 102px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.ad-slot > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 8vw, 112px);
}

.content-grid.reverse {
  grid-template-columns: 1fr 0.85fr;
}

.content-grid.reverse .section-copy {
  order: 2;
}

.section-copy {
  max-width: 640px;
}

.section-copy.narrow {
  max-width: 760px;
}

.cards,
.keyword-list,
.game-row {
  display: grid;
  gap: 14px;
}

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

.card,
.game-card,
details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.card {
  min-height: 210px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--aqua);
  font-size: 0.9rem;
  font-weight: 850;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.article-page {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.article-page h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.article-page h2 {
  margin-top: 54px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.article-page h3 {
  margin-top: 24px;
}

.article-page p,
.article-page li {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
}

.article-page li + li {
  margin-top: 10px;
}

.article-lead {
  font-size: clamp(1.1rem, 2vw, 1.32rem) !important;
}

.article-callout {
  max-width: 760px;
  margin: 34px 0;
  border-left: 3px solid var(--aqua);
  padding: 16px 18px;
  background: rgba(67, 217, 200, 0.1);
  color: var(--text);
}

.article-callout a {
  color: var(--aqua);
  font-weight: 850;
}

.article-footer-note {
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.9rem !important;
}

.version-list {
  display: grid;
  gap: 1px;
  max-width: 760px;
  border: 1px solid var(--line);
  background: var(--line);
}

.version-list article {
  padding: 20px;
  background: var(--panel);
}

.version-list time {
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 850;
}

.versions {
  padding-block: clamp(52px, 7vw, 96px);
  background: #f4eee9;
  color: #201719;
}

.versions .kicker,
.versions .section-copy p,
.timeline p {
  color: #675b60;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(32, 23, 25, 0.18);
  border: 1px solid rgba(32, 23, 25, 0.18);
}

.timeline article {
  min-height: 230px;
  padding: 22px;
  background: #fffaf5;
}

.timeline time {
  color: #8f293d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.keyword-list a {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(67, 217, 200, 0.08);
  color: var(--text);
  font-weight: 850;
}

.keyword-list a:hover,
.keyword-list a:focus-visible {
  border-color: var(--aqua);
  color: var(--aqua);
}

.similar,
.faq {
  padding-block: clamp(56px, 8vw, 104px);
}

.game-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.game-card {
  min-height: 230px;
}

.swatch {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%) 0 0 / 32px 32px,
    var(--red);
}

.swatch.blue {
  background-color: var(--aqua);
}

.swatch.green {
  background-color: var(--green);
}

.faq {
  background: #0f0d12;
}

.faq details {
  max-width: 940px;
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  background: #141116;
}

footer p {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--aqua);
  font-weight: 800;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 8, 11, 0.92);
}

.age-gate.is-hidden {
  display: none;
}

.age-panel {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 42px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.age-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100vh;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 56px);
}

.not-found > p:not(.kicker) {
  color: var(--muted);
  font-size: 1.1rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }

  50% {
    transform: rotate(45deg) scale(1.16);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse .section-copy {
    order: 0;
  }

  .cards,
  .timeline,
  .game-row {
    grid-template-columns: 1fr;
  }

  .card,
  .timeline article,
  .game-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .fact-strip,
  .keyword-list,
  footer {
    grid-template-columns: 1fr;
  }

  .fact-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-strip div:last-child {
    border-bottom: 0;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
