:root {
  color-scheme: dark;
  --cream: #fff1d6;
  --muted: #c5bbb3;
  --ink: #11151b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 16px/1.6 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
p,
h1,
h2 {
  margin: 0;
}
:focus-visible {
  outline: 2px solid #ffe5a7;
  outline-offset: 6px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  z-index: 20;
  background: var(--ink);
  padding: 1rem;
  transform: translateY(-110%);
}
.skip:focus {
  transform: none;
}
.masthead {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 3.6vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.35em;
  margin-top: 4px;
}
.sound {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #19182930;
  border: 1px solid #fff3;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.sound:hover {
  background: #19182970;
}
.sound-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.sound-bars i {
  width: 2px;
  height: 5px;
  background: var(--cream);
  border-radius: 3px;
}
.sound-bars i:nth-child(2) {
  height: 14px;
}
.sound-bars i:nth-child(3) {
  height: 10px;
}
.sound[aria-pressed="true"] i {
  animation: sound-wave 0.8s ease-in-out infinite alternate;
}
.sound[aria-pressed="true"] i:nth-child(2) {
  animation-delay: 0.3s;
}
.sound[aria-pressed="true"] i:nth-child(3) {
  animation-delay: 0.5s;
}
.hero {
  height: 100svh;
  min-height: 650px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #55415e;
}
.hero-scene {
  position: absolute;
  inset: -2%;
  transform: translate(var(--look-x, 0px), var(--look-y, 0px));
  transition: transform 1.2s ease-out;
  will-change: transform;
}
.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: boat-breathe 14s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #17172b4d 0%,
    #19162a20 34%,
    transparent 50%,
    #0c141a16 68%,
    #0c141a99 100%
  );
  pointer-events: none;
}
.hero-heading {
  position: absolute;
  top: 13%;
  left: 5%;
  right: 5%;
  text-align: center;
  text-shadow: 0 2px 30px #291c3655;
}
.game-name {
  font: clamp(17px, 2vw, 27px) / 1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 24px;
}
h1 {
  font: 400 clamp(46px, 5.7vw, 94px) / 0.96 var(--serif);
  letter-spacing: -0.035em;
}
h1 em {
  font-weight: 400;
}
.embark {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  text-align: center;
}
.board-button {
  display: inline-flex;
  gap: 38px;
  align-items: center;
  background: var(--cream);
  color: #3b2d28;
  padding: 14px 29px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 50px #0c10184d;
  transition:
    transform 0.25s,
    background 0.25s;
}
.board-button:hover {
  transform: translateY(-4px);
  background: #fff9ed;
}
.board-button span {
  font-size: 23px;
  font-weight: 400;
}
.embark p {
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-top: 16px;
  text-shadow: 0 2px 8px #000;
}
.aynara {
  height: 530px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.aynara > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aynara:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #11151b 0%,
    #11151b22 28%,
    #090c1b44 60%,
    #11151b 100%
  );
}
.aynara-copy {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 18px #000;
}
.aynara .eyebrow {
  color: #e2d4ff;
}
.aynara h2 {
  font: 400 clamp(64px, 8vw, 120px) / 1.2 var(--serif);
  letter-spacing: 0.1em;
}
.coming {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 4vw;
}
footer > a:last-child {
  font-size: 11px;
  color: var(--muted);
}
.lightbox {
  border: 1px solid #fff3;
  background: #10151b;
  padding: 16px;
  width: min(1100px, 95vw);
  max-height: 95dvh;
  color: var(--cream);
}
.lightbox::backdrop {
  background: #080d14ed;
  backdrop-filter: blur(12px);
}
body:has(.lightbox[open]) {
  overflow: hidden;
}
.lightbox-image {
  max-height: 72dvh;
  width: 100%;
  object-fit: contain;
}
.lightbox button {
  background: transparent;
  border: 1px solid #fff3;
  min-height: 44px;
  padding: 7px 15px;
}
.close {
  display: block;
  margin: 0 0 12px auto;
}
.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.lightbox-caption {
  font: 25px/1.2 var(--serif);
  text-align: center;
}
.capture-note {
  display: block;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.sound-status {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 12px;
  background: #11151b;
}
.sound-status:empty {
  display: none;
}
@keyframes boat-breathe {
  from {
    transform: scale(1.02) translateY(-3px);
  }
  to {
    transform: scale(1.035) translateY(3px);
  }
}
@keyframes sound-wave {
  to {
    transform: scaleY(0.4);
  }
}
@media (max-width: 700px) {
  .masthead {
    padding: 20px;
  }
  .brand {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .sound {
    padding: 10px;
  }
  .sound > span:last-child {
    display: none;
  }
  .hero {
    min-height: 640px;
    max-height: 1000px;
  }
  .hero-heading {
    top: 18%;
    left: 18px;
    right: 18px;
  }
  .game-name {
    font-size: 17px;
    margin-bottom: 25px;
  }
  h1 {
    font-size: clamp(42px, 8.5vw, 60px);
    line-height: 1.05;
  }
  .hero-art {
    object-position: 58% center;
  }

  .embark {
    bottom: 5%;
  }
  .embark p {
    font-size: 11px;
  }
  .board-button {
    padding: 12px 26px;
  }
  .aynara {
    height: 420px;
  }
  .aynara > img {
    object-position: 58% center;
  }
  .lightbox-caption {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .hero-scene {
    transform: none !important;
  }
}

.aynara-page {
  overflow-x: hidden;
}
.aynara-page .aynara {
  height: 100svh;
  min-height: 600px;
}
.aynara-page .aynara > img {
  animation: scene-drift 24s ease-in-out infinite alternate;
}
.aynara-page h1 {
  font: 400 clamp(75px, 12vw, 170px) / 1.25 var(--serif);
  letter-spacing: 0.1em;
}
.home-link {
  font-size: 11px;
}
@keyframes scene-drift {
  from {
    transform: scale(1.01) translate3d(-0.3%, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(0.3%, -0.5%, 0);
  }
}

.hero {
  height: 100svh;
  max-height: none;
  overflow: visible;
}
.hero-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.hero-scene {
  inset: 0;
  transform: none;
}
.hero-art {
  animation: none;
}
.daylight-art,
.ocean-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.daylight-art {
  object-fit: cover;
  object-position: center 52%;
  opacity: var(--daylight, 0);
}
.ocean-canvas {
  opacity: 0;
}
.ocean-canvas.ready {
  opacity: 1;
}
.hero-heading {
  opacity: calc(1 - var(--daylight, 0) * 0.72);
}
@media (max-width: 700px) {
  .daylight-art,
  .hero-art {
    object-position: center 52%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: 100svh;
  }
  .hero-stage {
    position: relative;
  }
}

.store-section {
  padding: clamp(40px, 6vw, 80px) 20px;
  background: radial-gradient(ellipse at 50% 0%, #30383b, transparent 74%), #13181e;
  border-bottom: 1px solid #f3e2c42b;
}
.store-inner {
  max-width: 580px;
  margin-inline: auto;
  text-align: center;
}
.store-inner h2,
.scenes h2 {
  margin: 0 0 20px;
  font: 400 clamp(40px, 5vw, 68px) / 1 var(--serif);
}
.store-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-options li > * {
  display: grid;
  align-content: center;
  gap: 5px;
  height: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #f3e2c44d;
  border-radius: 10px;
  text-align: left;
  font-weight: 600;
}
.store-options a {
  color: #201b16;
  background: var(--cream);
}
.store-options a:hover {
  background: #fff5e4;
}
.store-options small {
  font-size: 12px;
  font-weight: 400;
}
.store-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.scenes {
  max-width: 1260px;
  margin-inline: auto;
  padding: clamp(52px, 8vw, 100px) clamp(20px, 5vw, 72px) 0;
}
.scenes-heading {
  margin-bottom: clamp(26px, 4vw, 50px);
}
.scenes-heading .eyebrow {
  margin-bottom: 10px;
}
.scenes-list {
  display: grid;
  gap: clamp(42px, 6vw, 82px);
}
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 5vw, 68px);
  align-items: center;
}
.scene:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
}
.scene:nth-child(even) .scene-image {
  order: 1;
}
.scene-image {
  display: block;
  border: 1px solid #f3e2c42b;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}
.scene-image img {
  display: block;
  width: 100%;
  height: auto;
}
.scene-copy h3 {
  margin: 0 0 12px;
  font: 400 clamp(31px, 4vw, 51px) / 1.04 var(--serif);
}
.scene-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}
@media (max-width: 760px) {
  .scene, .scene:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .scene:nth-child(even) .scene-image {
    order: 0;
  }
}
.embark-link {
  display: inline-grid;
  justify-items: center;
  gap: 9px;
  padding: 9px 22px 4px;
  color: #fff3dc;
  font: 400 italic 31px / 1 var(--serif);
  text-shadow: 0 2px 12px #101219;
}
.embark-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #f6deafa8;
  border-radius: 50%;
  background: #151b238c;
  transition:
    transform 0.22s,
    background 0.22s;
}
.embark-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.embark-link:hover .embark-arrow,
.embark-link:focus-visible .embark-arrow {
  background: #151b23;
  transform: translateY(3px);
}
.sound {
  border-radius: 8px;
  background: #111820a8;
  min-height: 44px;
}
@media (max-width: 760px) {
  .embark {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .hero {
    height: 100svh;
  }
  .hero-stage {
    min-height: 0;
    position: relative;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: 100svh;
  }
  .hero-stage {
    position: relative;
  }
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: #c6ac89;
}
.aynara .eyebrow {
  color: #e2d4ff;
}
@media (max-width: 760px), (pointer: coarse) {
  .ocean-canvas.ready {
    opacity: 0;
  }
}

/* Clandestinus pages: privacy, support and testers. */
.doc-page .masthead {
  position: static;
}
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.doc h1 {
  font: 400 clamp(38px, 6vw, 64px) / 1.05 var(--serif);
  margin: 10px 0 18px;
}
.doc h2 {
  font: 400 clamp(26px, 3.4vw, 34px) / 1.15 var(--serif);
  margin: 34px 0 10px;
}
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 6px;
}
.doc p,
.doc li {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.doc p + p {
  margin-top: 12px;
}
.doc strong {
  color: var(--cream);
}
.doc a:not(.board-button) {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc ol,
.doc ul {
  padding-left: 1.3em;
}
.doc li + li {
  margin-top: 8px;
}
.doc .board-button {
  display: inline-flex;
  margin: 18px 0 6px;
}
.doc-section + .doc-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #f3e2c42b;
}
.doc-date,
.doc-lang,
.doc-note {
  font-size: 13px;
}
.doc-footer,
.site-links {
  flex-wrap: wrap;
  gap: 14px 22px;
}
.doc-footer nav,
.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Contact forms. */
.form-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 8px;
}
.doc .form-switch a {
  border: 1px solid #f3e2c44d;
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  font-size: 14px;
}
.form-status {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #2a3a2c;
  color: var(--cream);
}
.form-status[data-kind="error"] {
  background: #4a2626;
}
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.contact-form label,
.contact-form legend {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--cream);
}
.contact-form input:not([type="radio"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: #1b1f29;
  border: 1px solid #f3e2c42b;
  border-radius: 10px;
  padding: 11px 13px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #c6ac89;
  outline-offset: 1px;
}
.contact-form .choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.contact-form .choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.contact-form .board-button {
  justify-self: start;
  margin: 4px 0 0;
  border: 0;
}
.problem-fields {
  display: grid;
  gap: 16px;
}
.problem-fields[hidden] {
  display: none;
}
.req,
.opt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Gameplay video. */
.trailer {
  width: min(100% - 40px, 960px);
  margin: clamp(52px, 9vw, 108px) auto;
}
.trailer h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  margin: 8px 0 24px;
}
.trailer video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #13151f;
}
.trailer > p:last-child {
  color: var(--muted);
  margin-top: 12px;
}

/* Language switch next to the sound button. */
.masthead-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 8px #10121999;
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 44px;
  color: #fff1d6b8;
}
.lang a:hover,
.lang a[aria-current="true"] {
  color: var(--cream);
}
.lang a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (max-width: 760px) {
  .masthead-tools {
    gap: 4px;
  }
  /* Stack the footer so the links keep a finger-sized target. */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 30px 20px 38px;
  }
  .site-links,
  .doc-footer nav {
    gap: 2px 22px;
    font-size: 13px;
  }
  .site-links a,
  .doc-footer nav a {
    padding-block: 9px;
  }
}

/* Shared spacing and hierarchy for the launch page. */
.hero-heading {
  top: max(110px, 16%);
}
.hero-description {
  max-width: 38ch;
  margin: 22px auto 0;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  color: #fff1e2;
  text-wrap: balance;
}
.hero-shade {
  background: linear-gradient(180deg, #11132370, #11132312 52%, #11151b99);
}
.embark {
  bottom: 32px;
}
.embark-link {
  font-size: 28px;
}
.store-inner {
  max-width: 640px;
}
.store-options {
  gap: 16px;
}
.store-options li > * {
  min-height: 88px;
  padding: 16px 20px;
}
.store-options li > * > span {
  font-size: 21px;
  line-height: 1.3;
}
.store-options .store-unavailable {
  background: transparent;
  border-color: #f3e2c429;
  color: var(--muted);
}
.store-note {
  max-width: 52ch;
  margin: 20px auto 0;
}
.scenes {
  max-width: 1320px;
}
.scene-copy p {
  line-height: 1.75;
}
.scene-image {
  border-radius: 8px;
  box-shadow: 0 18px 46px #0003;
}
.trailer {
  width: min(calc(100% - 40px), 1040px);
  margin-block: clamp(64px, 9vw, 120px);
}
.trailer h2 {
  max-width: 20ch;
}
.closing {
  text-align: center;
  padding: 68px 24px 80px;
  border-top: 1px solid #f3e2c429;
  background: radial-gradient(ellipse at 50% 100%, #28383d, #11151b 75%);
}
.closing h2 {
  font: 400 clamp(38px, 5vw, 64px)/1.1 var(--serif);
  letter-spacing: -.025em;
}
.closing p {
  margin: 18px auto 26px;
  max-width: 48ch;
  color: var(--muted);
}
@media (max-width: 760px) {
  .hero-heading { top: 130px; }
  .hero-description { max-width: 29ch; margin-top: 18px; }
  .store-options { gap: 10px; }
  .store-options li > * { padding: 14px 12px; }
  .store-options li > * > span { font-size: 19px; }
  .store-options small { line-height: 1.5; }
  .scene-copy h3 { font-size: 34px; }
  .scene-copy p { font-size: 15px; }
  .scenes-list { gap: 56px; }
  .trailer h2 { font-size: 40px; }
}
@media (max-height: 620px) and (min-width: 761px) {
  .hero-heading { top: 100px; }
  .hero h1 { font-size: 54px; }
  .hero-description { margin-top: 14px; }
}
