: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: 190svh;
  max-height: none;
  overflow: visible;
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  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) {
  .hero-stage {
    min-height: 640px;
  }
  .daylight-art,
  .hero-art {
    object-position: center 52%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: 100svh;
  }
  .hero-stage {
    position: relative;
  }
}

.aboard {
  padding: clamp(68px, 10vw, 150px) clamp(20px, 5vw, 100px);
  background:
    radial-gradient(ellipse at 79% 0%, #29333d 0%, transparent 56%), #101419;
}
.launch-layout {
  display: grid;
  grid-template-columns: minmax(235px, 0.66fr) minmax(0, 1.65fr);
  gap: clamp(28px, 5vw, 90px);
  max-width: 1480px;
  margin-inline: auto;
  align-items: center;
}
.launch-copy h2 {
  margin-block: 13px 18px;
  font: 400 clamp(50px, 6vw, 105px) / 0.95 var(--serif);
  letter-spacing: -0.035em;
}
.launch-description {
  max-width: 33ch;
  color: #d0c9bd;
  font-size: clamp(14px, 1.2vw, 18px);
}
.release {
  margin-top: 32px;
  max-width: 365px;
  padding: 18px;
  border: 1px solid #d5b98347;
  border-radius: 12px;
  background: linear-gradient(145deg, #242824, #151c22 66%);
}
.release-label {
  margin: 0 0 13px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #e4c58c;
}
.platforms {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}
.platforms li {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #f3e2c42b;
  border-radius: 7px;
  background: #10161cb3;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 600;
  line-height: 1.3;
}
.platforms small {
  color: #c8baaa;
  font-size: 11px;
  font-weight: 400;
}
.gameplay {
  margin: 0;
  min-width: 0;
}
.gameplay-frame {
  display: block;
  overflow: hidden;
  border: 1px solid #f3e2c42b;
  border-radius: 12px;
  background: #18242c;
  box-shadow: 0 26px 72px #05080b60;
  cursor: zoom-in;
}
.gameplay-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.gameplay-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px 16px;
  font-size: 12px;
  color: #e1d8cb;
}
.gameplay-caption span:first-child {
  color: #bfac91;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gameplay-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.gameplay-select a {
  display: block;
  border: 1px solid #f3e2c42b;
  border-radius: 8px;
  overflow: hidden;
  color: #ddd1bf;
  background: #182027;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.gameplay-select a:hover,
.gameplay-select a[aria-current="true"] {
  border-color: #e5c58a;
  background: #252b2e;
  color: var(--cream);
}
.gameplay-select img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gameplay-select span {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}
.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) {
  .launch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .release {
    margin-top: 24px;
  }
  .aboard {
    padding-block: 56px;
  }
  .gameplay-caption {
    font-size: 11px;
  }
  .gameplay-select span {
    padding-inline: 8px;
  }
  .embark {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .hero {
    height: 170svh;
  }
  .hero-stage {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: 145svh;
  }
  .hero-stage {
    position: sticky;
  }
}

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