/* Explora website styles: plain CSS, no build step.
   The look is the Serendib Games studio site's (serendib.games): its dark tones,
   gold accent, Bricolage Grotesque and Outfit faces, header, footer and buttons,
   so that Explora's pages read as part of the studio's site (website/README.md,
   "Design Notes"). Cinzel sets the EXPLORA logotype, as on the studio's pages.
   There is one theme, dark. The information and policy pages load no script, so
   the header's menu on phones is a <details> element and the header's background
   follows the scroll with a scroll-driven animation where the browser has one.
   Placeholders (data-placeholder in the HTML) use the .ph and .ph-block styles
   so nobody mistakes them for content. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit/Outfit-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #080c11;
  --bg-raised: #0c1117;
  --panel: #0f151c;
  --panel-hover: #121a22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --field-line: #6b7683;
  --text: #f2f4f7;
  --text-soft: #c3cad3;
  --muted: #8d98a6;
  --accent: #f5c451;
  --accent-hover: #ffd47a;
  --accent-ink: #1a1405;
  --title: #f7ead0;
  --err: #ff8f8f;
  --ph-bg: #2b2114;
  --ph-ink: #fbb954;
  --ph-line: #cd683d;

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Cinzel", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --game-nav-h: 56px;
  --radius: 16px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(245, 196, 81, 0.35);
  color: #fff;
}

.container,
.wrap {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* A text column: as wide as a line reads well, aligned with the header's left edge. */
.wrap.narrow > *,
.narrow:not(.wrap) {
  max-width: 46rem;
}

.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;
}

/* The sign-up form's trap field (website/list/worker.js): off screen for every reader, and aria-hidden in the page. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Links in running text, and placeholder links (an <a> without href: text only). */
main a:not([class]),
.site-footer__note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

main a:not([class]):hover,
.site-footer__note a:hover {
  color: var(--accent-hover);
}

a:not([href]),
main a:not([class]):not([href]) {
  color: var(--muted);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.button {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s,
    transform 0.2s var(--ease-out);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
}

.button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

/* A button-styled placeholder link: no href yet (or an address on the reserved
   .invalid domain, which never resolves), so it reads as text and takes no click. */
a.button:not([href]),
a.button[href*=".invalid/"] {
  border: 1px dashed var(--field-line);
  background: transparent;
  color: var(--muted);
  cursor: default;
}

a.button[href*=".invalid/"] {
  pointer-events: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

/* ---------- Header: the studio's ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 17, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* Over the page's top the header is clear, with a soft shade that keeps it readable over the art, and turns
   solid as the page scrolls, as on the studio's site, whose script does it. Without scroll-driven animations it
   stays solid. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 17, 0.55), rgba(8, 12, 17, 0));
  opacity: 0;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 48px;
  }

  .site-header::before {
    animation: header-shade linear both;
    animation-timeline: scroll(root);
    animation-range: 0 48px;
  }

  @keyframes header-solid {
    from {
      border-bottom-color: transparent;
      background-color: rgba(8, 12, 17, 0);
      -webkit-backdrop-filter: blur(0) saturate(100%);
      backdrop-filter: blur(0) saturate(100%);
    }
    to {
      border-bottom-color: var(--line);
      background-color: rgba(8, 12, 17, 0.82);
      -webkit-backdrop-filter: blur(16px) saturate(140%);
      backdrop-filter: blur(16px) saturate(140%);
    }
  }

  @keyframes header-shade {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand__mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand__name {
  font: 700 1.125rem/1 var(--font-display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: rgba(242, 244, 247, 0.72);
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav__link:hover,
.site-nav__link[aria-current] {
  color: #fff;
}

.site-nav__link[aria-current]::after,
.game-nav__list a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.site-header__inner > .socials {
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--line-strong);
}

.socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(242, 244, 247, 0.72);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.socials__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* The menu on phones: a <details> element, so it needs no script. */
.nav-menu {
  display: none;
}

.nav-toggle {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 12, 17, 0.5);
  list-style: none;
  cursor: pointer;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.25s var(--ease-out),
    opacity 0.2s;
}

.nav-toggle__bar:nth-of-type(2) {
  top: 14px;
}

.nav-toggle__bar:nth-of-type(3) {
  top: 20px;
}

.nav-toggle__bar:nth-of-type(4) {
  top: 26px;
}

.nav-menu[open] .nav-toggle__bar:nth-of-type(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-menu[open] .nav-toggle__bar:nth-of-type(3) {
  opacity: 0;
}

.nav-menu[open] .nav-toggle__bar:nth-of-type(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-menu__panel .site-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav-menu__panel .site-nav__link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
}

.nav-menu__panel .site-nav__link[aria-current]::after {
  right: auto;
  bottom: -1px;
  width: 24px;
}

.nav-menu__panel .socials {
  margin: 16px 0 0 -10px;
}

/* ---------- Explora's own menu, under the studio's header ---------- */

.game-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 17, 0.62), rgba(8, 12, 17, 0.38));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.game-nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 44px);
  min-height: var(--game-nav-h);
  overflow-x: auto;
  scrollbar-width: none;
}

.game-nav__inner::-webkit-scrollbar {
  display: none;
}

.game-nav__title {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.game-nav__title .game-logo {
  --logo-size: 1.375rem;
}

.game-nav__tag {
  padding: 4px 8px;
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font: 600 0.6875rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-nav__list {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: rgba(242, 244, 247, 0.72);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.game-nav__list a:hover,
.game-nav__list a[aria-current] {
  color: #fff;
}

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font: 600 0.8125rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lede,
.section__intro {
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

/* The game's title, set in its own lettering. */
.game-logo {
  display: inline-block;
  margin-right: -0.06em;
  font-size: var(--logo-size, 3rem);
  line-height: 1;
  white-space: nowrap;
}

.game-logo--explora {
  color: var(--title);
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--next {
  border-color: rgba(245, 196, 81, 0.6);
  color: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.45);
  color: var(--text);
  font: 600 0.8125rem/1 var(--font-body);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

/* Stacked sections share one gap instead of doubling it. */
.section + .section:not(.section--raised) {
  padding-top: 0;
}

.section--raised {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.section--raised + .section {
  padding-top: clamp(72px, 9vw, 128px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.section-head__text {
  max-width: 46ch;
  color: var(--text-soft);
}

/* ---------- Home: the hero over a capture from the game ---------- */

.game-hero {
  --logo-size: clamp(3.4rem, 9vw, 7.25rem);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(660px, 94vh, 940px);
  padding: calc(var(--header-h) + var(--game-nav-h) + 88px) 0 clamp(64px, 9vh, 112px);
  overflow: hidden;
}

.game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0b141c;
}

.game-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 60%;
  transform-origin: 72% 65%;
  animation: hero-drift 40s ease-in-out infinite alternate;
}

/* A slow push-in on the art. */
@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

/* Shade the left for the text and fade the bottom into the page. */
.game-hero::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.game-hero::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.9) 0%, rgba(8, 12, 17, 0.75) 34%, rgba(8, 12, 17, 0.25) 60%, rgba(8, 12, 17, 0) 75%),
    linear-gradient(180deg, rgba(8, 12, 17, 0.4) 0%, rgba(8, 12, 17, 0) 20%, rgba(8, 12, 17, 0) 58%, rgba(8, 12, 17, 0.65) 85%, var(--bg) 100%);
}

.game-hero__content {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 640px;
}

.game-hero h1 {
  margin-top: 6px;
}

.game-hero__tagline {
  color: var(--text);
  font: 600 clamp(1.35rem, 2.2vw, 1.75rem)/1.3 var(--font-display);
  letter-spacing: -0.015em;
}

.game-hero__text {
  max-width: 52ch;
  color: rgba(242, 244, 247, 0.86);
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}

.game-hero .actions {
  margin-top: 10px;
}

/* The picture is from the development build, and says so on it: top right, and after the buttons on a phone. */
.hero-label {
  position: absolute;
  top: calc(var(--header-h) + var(--game-nav-h) + 18px);
  right: var(--gutter);
  max-width: min(24rem, calc(100% - 2 * var(--gutter)));
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 12, 17, 0.72);
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.4;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-label strong {
  margin-right: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Home: where it stands, the design, the road ---------- */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.featured .section-title {
  margin-bottom: 20px;
}

.featured .section__intro + .section__intro {
  margin-top: 1em;
}

.shot {
  position: relative;
  margin: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.72);
  color: var(--text);
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.gallery {
  display: grid;
  gap: 32px 20px;
  margin-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gallery > *,
  .gallery > :last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .gallery > :nth-child(-n + 2) {
    grid-column: span 3;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* A small block, nodding to the voxels. */
.card::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 28px;
  border-radius: 2px;
  background: var(--accent);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-soft);
}

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.milestones li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.milestones li:has(.tag--next) {
  border-color: rgba(245, 196, 81, 0.35);
}

.milestones p {
  color: var(--text-soft);
}

.milestones .milestones__date {
  color: var(--text);
  font: 700 1.25rem/1.2 var(--font-display);
  letter-spacing: -0.015em;
}

.road-note {
  color: var(--text-soft);
}

/* A call to action, over dimmed art or on its own. */
.cta-band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 56px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.cta-band::before {
  background: linear-gradient(90deg, rgba(12, 17, 23, 0.97) 0%, rgba(12, 17, 23, 0.9) 40%, rgba(12, 17, 23, 0.55) 100%);
}

.cta-band--plain::before {
  content: none;
}

.cta-band--glow::before {
  background: radial-gradient(70% 140% at 100% 0%, rgba(245, 196, 81, 0.16), rgba(245, 196, 81, 0) 70%);
}

.cta-band h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.cta-band p {
  max-width: 52ch;
  color: var(--text-soft);
}

.cta-band p + p {
  margin-top: 0.75em;
}

.cta-band + .cta-band {
  margin-top: 20px;
}

/* ---------- Inner pages ---------- */

/* The title area is the studio's plain page hero: no art, a warm glow at the top right. */
.page {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + var(--game-nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(72px, 9vw, 128px);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(640px, 100%);
  background: radial-gradient(60% 100% at 92% 0%, rgba(245, 196, 81, 0.13), rgba(245, 196, 81, 0) 70%);
  pointer-events: none;
}

.page h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page :where(p, ul, ol, dl, pre) {
  margin: 0 0 1em;
}

.page :where(p, li, dd) {
  color: var(--text-soft);
}

.page .lede {
  margin-bottom: 1.6em;
}

.page h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
}

.page h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.page :where(ul, ol) {
  padding-left: 1.35em;
}

.page :where(li) + li {
  margin-top: 0.45em;
}

.page :where(li)::marker {
  color: var(--accent);
}

.page :where(li > ul, li > ol) {
  margin: 0.45em 0 0;
}

/* A box of its own: a note, a notice, a page's contents. */
.note {
  margin: 1.75rem 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
}

.note > :first-child {
  margin-top: 0;
}

.note > :last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 2.25rem;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.toc ul {
  margin: 0;
}

.page .toc a {
  color: var(--text-soft);
  text-decoration: none;
}

.page .toc a:hover {
  color: #fff;
  text-decoration: underline;
}

.faq h2 {
  margin-top: 2.4em;
}

/* Tables, as in the privacy policy. */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--text-soft);
}

thead th {
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child td {
  border-bottom: 0;
}

caption {
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: left;
}

.table-wrap {
  margin: 0 0 1em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.table-wrap table {
  margin: 0;
}

/* The refund policy's model form. */
.form-text {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Details as rows, as on the studio's game info card: contact details, a download's facts. */
.meta {
  display: grid;
  margin: 0;
}

.meta div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.contact-details {
  margin-bottom: 1.5rem;
  padding: 6px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 20px;
  margin: 2rem 0 2.5rem;
  padding: 0;
  list-style: none;
}

.page .downloads > li + li {
  margin-top: 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.download-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.download-card p {
  margin: 0;
}

.download-card .meta dd {
  text-align: left;
}

/* ---------- Forms: the hub's pages ---------- */

.form {
  display: grid;
  gap: 24px;
  max-width: 32rem;
  margin: 2rem 0 2.5rem;
}

.field {
  min-width: 0;
}

.field > label:not(.check),
fieldset.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--text);
  font-weight: 600;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s;
}

.field input[type="email"]:hover,
.field input[type="password"]:hover,
.field input[type="text"]:hover {
  border-color: #8d98a6;
}

.field input:focus-visible {
  border-color: var(--accent);
  outline-offset: 2px;
}

.page .hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-soft);
}

.check--top {
  align-items: flex-start;
}

.check--top input {
  margin-top: 0.25rem;
}

input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.form .button {
  justify-self: start;
}

.form .ph-block {
  margin: 0;
}

.page .form-status {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* The account pages (sign-up, verification, reset): a failure reads as one. */
.form-status[data-state="error"] {
  padding: 14px 18px;
  border: 1px solid var(--err);
  border-radius: 12px;
  background: rgba(255, 143, 143, 0.08);
}

.form-status:empty {
  display: none;
}

.page .notice {
  margin: 1rem 0;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
}

.page .notice[data-state="error"] {
  border-color: var(--err);
  background: rgba(255, 143, 143, 0.08);
}

/* The sign-up's date of birth: day, month and year side by side, no default (G1-WE4). */
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.date-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.date-part {
  display: grid;
  gap: 6px;
  width: 5.5rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.date-part--year {
  width: 7.5rem;
}

.field input[type="text"][name="invitation"] {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.form > .lede {
  margin: 0;
}

/* ---------- Placeholders: a dashed amber frame that is never mistaken for content ---------- */

.ph-block {
  margin: 1.5rem 0;
  padding: 14px 18px;
  border: 2px dashed var(--ph-line);
  border-radius: 12px;
  background: var(--ph-bg);
  color: var(--ph-ink);
}

.page .ph-block p {
  margin: 0;
  color: var(--ph-ink);
}

.ph-block p + p {
  margin-top: 0.35rem;
}

.ph-block__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph {
  padding: 0 0.35em;
  border: 1px dashed var(--ph-line);
  border-radius: 4px;
  background: var(--ph-bg);
  color: var(--ph-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Footer: the studio's, with Explora's columns ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #06090d;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0 44px;
}

.site-footer__brand p {
  max-width: 30ch;
  margin-top: 16px;
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font: 600 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col a[href] {
  color: var(--text-soft);
  transition: color 0.2s;
}

.site-footer__col a[href]:hover {
  color: #fff;
}

.soon {
  font-size: 0.85em;
}

.site-footer__note {
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
    --game-nav-h: 52px;
  }

  .site-header__inner > .site-nav,
  .site-header__inner > .socials {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .game-hero::before {
    background: linear-gradient(180deg, rgba(8, 12, 17, 0.5) 0%, rgba(8, 12, 17, 0.2) 16%, rgba(8, 12, 17, 0.66) 34%, rgba(8, 12, 17, 0.9) 60%, var(--bg) 100%);
  }

  .featured,
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .button {
    --btn-h: 48px;
  }

  .actions .button {
    flex: 1 1 auto;
  }

  .game-hero .actions .button,
  .cta-band .actions .button {
    flex-basis: 100%;
  }

  .hero-label {
    position: static;
    max-width: none;
    margin-top: 28px;
    font-size: 0.8125rem;
  }

  /* Explora's menu fits a phone's width: a smaller title, no Alpha tag. More items scroll sideways. */
  .game-nav__inner {
    gap: 16px;
  }

  .game-nav__title .game-logo {
    --logo-size: 1.2rem;
  }

  .game-nav__tag {
    display: none;
  }

  .game-nav__list {
    gap: 16px;
  }

  .meta dd {
    text-align: left;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-hero__bg img {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
