:root {
  --sky-paper: #F4F8F7;
  --deep-tide: #102A43;
  --lake-blue: #3D7EA6;
  --coral-signal: #F26B5B;
  --sun-note: #F4C95D;
  --white: #FFFFFF;
  --mist: #DCE9E8;
  --ink-muted: #53687A;
  --space: #172A4A;
  --tower: #765A7D;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 1240px;
  --shadow: 0 28px 70px rgb(16 42 67 / 12%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky-paper);
  color: var(--deep-tide);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.age-gate-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(3.3rem, 8.4vw, 7.9rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

h3 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
}

h1 em {
  color: var(--lake-blue);
  font-weight: 400;
}

:focus-visible {
  outline: 3px solid var(--coral-signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--deep-tide);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--page-pad);
  border-bottom: 1px solid rgb(16 42 67 / 13%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50% 50% 44% 56%;
  background: var(--deep-tide);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.hero {
  display: grid;
  min-height: min(800px, calc(100vh - 6rem));
  padding: clamp(5rem, 10vw, 9rem) var(--page-pad) clamp(5rem, 8vw, 7rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 6vw, 7rem);
}

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

.eyebrow,
.game-meta {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.3rem;
  color: var(--coral-signal);
}

.hero-intro {
  max-width: 660px;
  margin-bottom: 2rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 800;
  text-underline-offset: 0.3rem;
}

.hero-orbit {
  position: relative;
  width: min(31vw, 330px);
  aspect-ratio: 1;
  justify-self: end;
}

.orbit {
  position: absolute;
  border: 1px solid rgb(61 126 166 / 50%);
  border-radius: 50%;
  inset: 8%;
}

.orbit-two {
  border-color: rgb(242 107 91 / 40%);
  inset: 22%;
  transform: rotate(42deg) scaleY(1.7);
}

.orbit-dot {
  position: absolute;
  display: block;
  width: 1.25rem;
  aspect-ratio: 1;
  border: 5px solid var(--sky-paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(16 42 67 / 12%);
}

.dot-coral {
  top: 8%;
  left: 48%;
  background: var(--coral-signal);
}

.dot-sun {
  right: 13%;
  bottom: 20%;
  background: var(--sun-note);
}

.orbit-label {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 0.95;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.catalogue {
  padding: clamp(5rem, 9vw, 8rem) var(--page-pad);
  border-top: 1px solid rgb(16 42 67 / 13%);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  grid-template-columns: 0.6fr 1fr;
  column-gap: 3rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading p:last-child {
  max-width: 550px;
  margin-top: 0.2rem;
  color: var(--ink-muted);
  align-self: end;
}

.game-list {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
}

.game-card {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2.2rem, 7vw, 7rem);
}

.game-card:nth-child(even) .game-art {
  grid-column: 2;
}

.game-card:nth-child(even) .game-copy {
  grid-row: 1;
  grid-column: 1;
}

.game-art {
  min-width: 0;
  margin: 0;
  padding-bottom: 1rem;
}

.game-art-stage {
  position: relative;
  isolation: isolate;
}

.game-art-landscape .game-art-stage {
  aspect-ratio: 1.28;
}

.game-art-primary,
.game-art-secondary,
.game-art-icon {
  position: absolute;
  border: 7px solid var(--white);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.game-art-primary {
  top: 3%;
  left: 0;
  width: 88%;
  border-radius: 1.4rem;
  aspect-ratio: 900 / 506;
  transform: rotate(-1.4deg);
}

.game-art-secondary {
  right: 0;
  bottom: 3%;
  z-index: 2;
  width: 52%;
  border-radius: 1rem;
  aspect-ratio: 900 / 506;
  transform: rotate(3deg);
}

.game-art-icon {
  bottom: 0;
  left: 6%;
  z-index: 3;
  width: clamp(64px, 8vw, 92px);
  height: auto;
  border-width: 5px;
  border-radius: 24%;
}

.game-card:nth-child(even) .game-art-primary {
  right: 0;
  left: auto;
  transform: rotate(1.4deg);
}

.game-card:nth-child(even) .game-art-secondary {
  right: auto;
  left: 0;
  transform: rotate(-3deg);
}

.game-card:nth-child(even) .game-art-icon {
  right: 6%;
  left: auto;
}

.game-art-portrait .game-art-stage {
  aspect-ratio: 1.24;
}

.game-art-portrait .game-art-primary,
.game-art-portrait .game-art-secondary {
  top: 5%;
  width: 45%;
  height: 92%;
  border-radius: 1.25rem;
  aspect-ratio: 506 / 900;
}

.game-art-portrait .game-art-primary {
  left: 4%;
  transform: rotate(-2deg);
}

.game-art-portrait .game-art-secondary {
  right: 4%;
  bottom: auto;
  transform: rotate(2deg);
}

.game-art-portrait .game-art-icon {
  bottom: -1%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
}

.art-source {
  margin-top: 0.8rem;
  color: var(--ink-muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-copy {
  max-width: 580px;
}

.game-meta {
  display: flex;
  margin-bottom: 1.15rem;
  color: var(--lake-blue);
  gap: 1.5rem;
}

.game-meta span + span {
  position: relative;
}

.game-meta span + span::before {
  position: absolute;
  left: -0.9rem;
  content: "·";
}

.game-copy > p {
  max-width: 520px;
  margin-bottom: 1.8rem;
  color: var(--ink-muted);
  font-size: 1.04rem;
}

.cta,
.quiet-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.cta {
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  background: var(--coral-signal);
  box-shadow: 0 8px 0 #C84E43;
  color: var(--deep-tide);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.cta:hover {
  box-shadow: 0 5px 0 #C84E43;
  transform: translateY(3px);
}

.cta:active {
  box-shadow: 0 2px 0 #C84E43;
  transform: translateY(6px);
}

.disclosure {
  display: grid;
  margin: clamp(2rem, 6vw, 5rem) var(--page-pad) clamp(6rem, 10vw, 10rem);
  padding: clamp(2.2rem, 5vw, 4.5rem);
  border: 1px solid rgb(16 42 67 / 13%);
  border-radius: 1.8rem;
  background: var(--white);
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: clamp(2rem, 7vw, 7rem);
  box-shadow: var(--shadow);
}

.disclosure .eyebrow {
  grid-column: 1 / -1;
}

.disclosure h2 {
  max-width: 480px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.disclosure > p:last-child {
  max-width: 550px;
  margin: 0;
  color: var(--ink-muted);
  align-self: end;
}

.faq {
  display: grid;
  padding: 0 var(--page-pad) clamp(6rem, 10vw, 10rem);
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 7vw, 7rem);
}

.faq h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.faq-list {
  border-top: 1px solid rgb(16 42 67 / 18%);
}

.faq details {
  border-bottom: 1px solid rgb(16 42 67 / 18%);
}

.faq summary {
  min-height: 64px;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  max-width: 650px;
  padding-right: 2rem;
  color: var(--ink-muted);
}

.site-footer {
  display: grid;
  padding: clamp(3rem, 6vw, 5rem) var(--page-pad);
  border-top: 1px solid rgb(16 42 67 / 13%);
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.site-footer > div > p {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  align-items: start;
  gap: 1.5rem;
}

.site-footer nav a {
  min-height: 44px;
  font-weight: 750;
  text-underline-offset: 0.25rem;
}

.fine-print {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  grid-column: 1 / -1;
}

.age-gate {
  position: fixed;
  z-index: 100;
  display: grid;
  padding: 1rem;
  background-color: var(--deep-tide);
  background-image:
    linear-gradient(115deg, rgb(16 42 67 / 84%), rgb(16 42 67 / 56%)),
    url("assets/age-gate-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  overflow-y: auto;
  place-items: center;
}

.age-gate[hidden] {
  display: none;
}

.age-card {
  width: min(100%, 590px);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 2rem;
  background: rgb(244 248 247 / 96%);
  backdrop-filter: blur(8px);
  box-shadow: 0 32px 90px rgb(0 0 0 / 28%);
  text-align: center;
}

.age-card h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
}

.age-card > p:not(.eyebrow, .age-privacy, .noscript-note) {
  max-width: 430px;
  margin-inline: auto;
  color: var(--ink-muted);
}

.age-seal {
  display: inline-flex;
  width: 5.4rem;
  height: 5.4rem;
  margin-bottom: 1.4rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--deep-tide);
  border-radius: 52% 48% 45% 55%;
  background: var(--sun-note);
  font-family: var(--display);
  transform: rotate(-5deg);
}

.age-seal span {
  font-size: 2.7rem;
  line-height: 1;
}

.age-seal small {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 800;
}

.age-actions {
  display: grid;
  margin-top: 2rem;
  gap: 1rem;
}

.age-confirm {
  width: 100%;
  padding-block: 1rem;
}

.quiet-button {
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--deep-tide);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.age-privacy,
.noscript-note {
  margin: 1.4rem 0 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

/* Shared interior-page shell */
.legal-main {
  min-height: 65vh;
  padding: clamp(4rem, 9vw, 8rem) var(--page-pad);
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.legal-aside {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin-bottom: 2rem;
  font-size: clamp(3rem, 7vw, 6rem);
}

.legal-content h2 {
  margin: 3rem 0 1rem;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.3;
}

.legal-content p,
.legal-content li {
  color: var(--ink-muted);
}

.legal-content a {
  font-weight: 750;
  text-underline-offset: 0.25rem;
}

.notice-box {
  margin-top: 2.5rem;
  padding: 1.4rem;
  border-left: 4px solid var(--coral-signal);
  background: var(--white);
}

.notice-box p:last-child {
  margin-bottom: 0;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

body.is-age-confirmed .hero-copy,
body.is-age-confirmed .hero-orbit {
  animation: rise-in 520ms ease both;
}

body.is-age-confirmed .hero-orbit {
  animation-delay: 90ms;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    width: min(65vw, 280px);
    justify-self: center;
  }

  .game-card,
  .section-heading,
  .disclosure,
  .faq,
  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .game-card:nth-child(even) .game-art,
  .game-card:nth-child(even) .game-copy {
    grid-row: auto;
    grid-column: auto;
  }

  .section-heading p:last-child,
  .disclosure > p:last-child {
    margin-top: 0.8rem;
  }

  .legal-aside {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(16 42 67 / 13%);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-block: 1rem;
  }

  .header-note {
    display: none;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-orbit {
    width: 62vw;
  }

  .game-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-art-landscape .game-art-stage {
    aspect-ratio: 1.05;
  }

  .game-art-primary {
    width: 94%;
  }

  .game-art-secondary {
    width: 58%;
  }

  .game-art-primary,
  .game-art-secondary {
    border-width: 5px;
  }

  .game-art-portrait .game-art-stage {
    aspect-ratio: 1.15;
  }

  .art-source {
    margin-top: 0.4rem;
  }

  .age-gate {
    background-position: 58% center;
  }

  .game-meta {
    flex-direction: column;
    gap: 0.2rem;
  }

  .game-meta span + span::before {
    content: none;
  }

  .cta {
    width: 100%;
  }

  .disclosure {
    border-radius: 1.2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .fine-print {
    grid-column: auto;
  }

  .age-card {
    border-radius: 1.3rem;
  }
}

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