:root {
  color-scheme: dark;
  --background: #070a12;
  --surface: #111c29;
  --text: #f5f6f8;
  --muted: #b3bfcd;
  --accent: #a6e1de;
  --line: #ffffff1c;
  --focus: #a6e1de;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 85% 40%, #0d3b4240, transparent 53%),
    linear-gradient(180deg, #06070c 0%, #0b1525 39%, #0b202a 72%, #080d17 100%);
}
::selection { color: #071416; background: var(--accent); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 750; }
[id] { scroll-margin-top: 2rem; }
main:focus { outline: none; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 75rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  color: var(--background);
  background: var(--text);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; gap: 2rem; min-height: 6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.wordmark img { border-radius: 50%; object-fit: cover; }
.wordmark span { font-size: 1.35rem; font-weight: 780; letter-spacing: -.045em; }
.site-header nav { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.site-header nav a { padding: .8rem 1rem; border-radius: 2rem; font-size: .9375rem; font-weight: 600; color: #d8dee6; }
.site-header nav a:hover { color: white; background: #ffffff0e; }
.eyebrow { color: var(--accent); font-size: .75rem; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; font-weight: 700; }

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-top: 2.25rem;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -1rem 12%;
  background: radial-gradient(ellipse at 50% 19%, #732f3e24, transparent 39%),
    radial-gradient(ellipse at 62% 60%, #16404d25, transparent 65%);
  pointer-events: none;
}
.hero-moon { width: 144px; height: 144px; margin: 0 auto 1.75rem; position: relative; }
.hero-moon::before { content: ""; position: absolute; z-index: -1; inset: -2rem; border-radius: 50%; background: radial-gradient(circle, #a3464930 5%, #773b4520 35%, transparent 70%); }
.hero-moon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-eyebrow { margin-bottom: 1.1rem; }
.hero h1 { max-width: 65rem; margin-inline: auto; font-size: clamp(2.6rem, 5.8vw, 5rem); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 span { color: #c5d8e2; }
.hero-bottom { margin-top: 1.6rem; }
.hero-intro { max-width: 37rem; margin-inline: auto; color: var(--muted); font-size: 1.125rem; line-height: 1.75; }
.hero-invitation { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; margin-top: 1.9rem; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 3.25rem; padding: .9rem 1.6rem; border: 1px solid #f5f6f8; border-radius: 2rem; color: #121923; background: var(--text); font-size: .9375rem; font-weight: 700; transition: background-color 150ms ease, border-color 150ms ease; }
.button-link:hover { background: #ccebed; border-color: #ccebed; }
.button-link span { font-size: 1.125rem; }
.button-secondary { color: var(--text); background: #ffffff09; border-color: #ffffff29; }
.button-secondary:hover { background: #ffffff16; border-color: #ffffff52; }
.availability { display: flex; justify-content: center; align-items: baseline; gap: .5rem; margin-top: 1.3rem; color: #98a9bc; font-size: .8125rem; line-height: 1.6; }
.availability > span { width: .375rem; height: .375rem; flex-shrink: 0; border-radius: 50%; background: #89bcb7; }

.games { padding-bottom: clamp(4rem, 7vw, 7rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.section-heading h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -.04em; }
.section-heading > p { color: var(--muted); font-size: .9375rem; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1.5rem; }
.game { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ffffff1c; border-radius: 1.5rem; background: linear-gradient(155deg, #172432, #0e1b28); }
.world-art { position: relative; overflow: hidden; border-radius: calc(1.5rem - 1px) calc(1.5rem - 1px) 0 0; background: var(--surface); }
.world-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.world-art figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: .35rem .65rem; border: 1px solid #ffffff1c; border-radius: 2rem; color: #f0f3f8; background: #080f1be8; font-size: .75rem; line-height: 1.5; }
.game-content { display: flex; flex-direction: column; flex: 1; padding: clamp(1.3rem, 2.5vw, 2rem); }
.game-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; }
.game-heading .eyebrow { font-size: .75rem; letter-spacing: .055em; }
.development-label { padding: .25rem .65rem; border-radius: 2rem; color: #c5d1e0; background: #ffffff08; border: 1px solid #ffffff1c; font-size: .75rem; line-height: 1.5; white-space: nowrap; }
.game h3 { margin-top: 1rem; font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.18; letter-spacing: -.045em; }
.game-description { margin-top: 1rem; margin-bottom: 1.75rem; color: #b8c6d5; font-size: 1rem; line-height: 1.75; }
.game-themes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: auto 0 0; padding: 0; }
.game-themes li { padding: .4rem .75rem; border: 1px solid #ffffff15; border-radius: .55rem; color: #c7d6e1; background: #080f192b; font-size: .8125rem; line-height: 1.5; }

.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #080f176b; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); padding-block: clamp(3.5rem, 6vw, 6rem); }
.about h2 { margin-top: 1rem; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.12; letter-spacing: -.045em; }
.about-copy > p:not(.eyebrow) { max-width: 30rem; margin-top: 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.about-copy .about-note { padding-left: 1rem; border-left: 2px solid #648e98; color: #c7d6e1; }
.questions { align-self: center; min-width: 0; }
.questions h3 { margin-bottom: 1.15rem; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; }
.questions details { margin-top: .625rem; border: 1px solid #ffffff18; border-radius: .875rem; background: #ffffff04; }
.questions details[open] { background: #ffffff07; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.2rem; border-radius: .875rem; list-style: none; font-size: .9375rem; font-weight: 600; line-height: 1.6; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--accent); }
.questions details > p { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.disclosure-mark { flex: 0 0 .875rem; width: .875rem; height: .875rem; position: relative; color: #91a9b8; }
.disclosure-mark::before, .disclosure-mark::after { content: ""; position: absolute; top: calc(50% - 1px); left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px; }
.disclosure-mark::after { transform: rotate(90deg); }
details[open] > summary .disclosure-mark::after { transform: rotate(0); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; }
.site-footer .wordmark span { font-size: 1.125rem; }
.site-footer > p { color: #91a1b5; font-size: .8125rem; }
.back-to-top { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; color: #c2cedb; font-size: .875rem; }
.back-to-top:hover { color: var(--accent); }

@media (max-width: 900px) {
  .game-heading { align-items: flex-start; flex-direction: column; }
  .game-grid { gap: 1.25rem; }
  .section-heading > p { max-width: 13rem; text-align: right; }
  .about-inner { gap: 2.5rem; }
}

@media (max-width: 680px) {
  .site-header { min-height: 5.25rem; gap: 1rem; }
  .site-header .wordmark { gap: .5rem; }
  .site-header .wordmark img { width: 32px; height: 32px; }
  .site-header .wordmark span { font-size: 1.125rem; }
  .site-header nav { gap: .125rem; }
  .site-header nav a { padding: .75rem .6rem; font-size: .8125rem; }
  .hero { padding-top: 1.5rem; padding-bottom: 3.75rem; }
  .hero-moon { width: 116px; height: 116px; margin-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(2.55rem, 8.3vw, 3.4rem); }
  .hero-eyebrow { font-size: .75rem; }
  .hero-intro { max-width: 30rem; font-size: 1rem; line-height: 1.75; }
  .hero-bottom { margin-top: 1.25rem; }
  .hero-invitation { margin-top: 1.5rem; }
  .button-link { min-height: 3rem; padding: .8rem 1.35rem; font-size: .875rem; }
  .availability { font-size: .75rem; }
  .section-heading { display: block; margin-bottom: 1.5rem; }
  .section-heading > p { max-width: none; margin-top: .65rem; text-align: left; }
  .game-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .game-heading { flex-direction: row; align-items: center; }
  .game h3 { font-size: clamp(1.75rem, 5.5vw, 2.1rem); }
  .game-description { margin-top: .8rem; margin-bottom: 1.5rem; }
  .world-art figcaption { right: .75rem; bottom: .75rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .about h2 { font-size: 2.5rem; }
  .site-footer { flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
  .site-footer .wordmark { flex-basis: calc(100% - 8rem); }
  .site-footer > p { order: 3; flex-basis: 100%; margin-left: 2.9rem; }
}

@media (max-width: 380px) {
  .site-header nav a { padding-inline: .4rem; }
  .site-header { gap: .5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-invitation { flex-direction: column; align-items: stretch; }
  .game-heading { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  :root { color-scheme: light; color: #111; background: white; }
  body, .game, .about { background: white; }
  .skip-link, .hero-invitation, .back-to-top, .site-header nav { display: none; }
  .hero { padding-block: 2rem; }
  .hero::before, .hero-moon::before { display: none; }
  .hero h1 { font-size: 3rem; }
  .hero h1 span, .eyebrow, .hero-intro, .game-description, .development-label, .game-themes li, .availability, .about-copy > p:not(.eyebrow), .questions details > p { color: #333; }
  .game { break-inside: avoid; }
}
