:root {
  color-scheme: dark;
  --ink: #090f19;
  --navy: #101a27;
  --panel: #281f1b;
  --paper: #ead9af;
  --foam: #bac8bd;
  --gold: #f0ad43;
  --brass: #9c7130;
  --teal: #4a9b91;
  --coral: #dc5b4e;
  --sea: #0c3d49;
  --line: rgba(240, 173, 67, 0.55);
  --shadow: #02060b;
  --serif: Georgia, "Times New Roman", serif;
  --instrument: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 12%, rgba(186, 105, 66, 0.2), transparent 27rem),
    linear-gradient(180deg, #111824 0, var(--ink) 38rem, #06131a 100%);
  font-family: var(--serif);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.014) 3px 4px),
    linear-gradient(110deg, transparent 0 48%, rgba(240, 173, 67, 0.035) 49%, transparent 50%);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 3rem));
  min-height: 7.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(234, 217, 175, 0.14);
}

.brand img {
  width: 12rem;
  filter: drop-shadow(0 0.35rem 0 var(--shadow));
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--instrument);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--gold);
}

.nav-play,
.toolbar-actions button {
  padding: 0.65rem 1rem;
  color: var(--gold);
  background: rgba(15, 24, 36, 0.9);
  border: 1px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow), inset 0 0 0 2px rgba(156, 113, 48, 0.14);
  cursor: pointer;
  font-family: var(--instrument);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-play:hover,
.nav-play:focus-visible,
.toolbar-actions button:hover,
.toolbar-actions button:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.hero {
  display: grid;
  width: min(1180px, calc(100% - 3rem));
  min-height: 42rem;
  margin: 0 auto;
  padding: 5rem 0 6rem;
  grid-template-columns: minmax(0, 0.88fr) minmax(30rem, 1.25fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--instrument);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 1.5rem;
  color: #f3dfad;
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow: 0.06em 0.07em 0 var(--shadow);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.75rem;
  color: #f2d99d;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}

.lede {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--foam);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.primary-action,
.secondary-action {
  position: relative;
  display: inline-flex;
  min-height: 4rem;
  padding: 0.85rem 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--instrument);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--shadow), inset 0 0 0 3px rgba(66, 43, 22, 0.22);
}

.primary-action {
  flex-direction: column;
  color: #17100a;
  background: var(--gold);
}

.primary-action small {
  margin-top: 0.1rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.primary-action:hover,
.primary-action:focus-visible {
  color: var(--paper);
  background: #9c4b2c;
  border-color: #e47a4c;
}

.secondary-action {
  color: var(--paper);
  background: rgba(14, 23, 35, 0.85);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: var(--gold);
  background: #151f2b;
}

.support-line {
  margin: 1.15rem 0 0;
  color: #879890;
  font-family: var(--instrument);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: var(--navy);
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: 18px 20px 0 rgba(0, 0, 0, 0.28), inset 0 0 0 5px #15100e;
  transform: perspective(70rem) rotateY(-3deg) rotateX(1deg);
}

.hero-visual::after,
.video-frame::after {
  position: absolute;
  inset: 0.5rem;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(240, 173, 67, 0.38);
  box-shadow: inset 0 0 2.5rem rgba(0, 0, 0, 0.56);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 320ms ease, filter 320ms ease;
}

.hero-visual:hover img,
.hero-visual:focus-visible img {
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.015);
}

.play-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 6rem;
  height: 6rem;
  color: var(--ink);
  background: rgba(240, 173, 67, 0.94);
  border: 1px solid #ffdf8a;
  border-radius: 50%;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0.5rem rgba(8, 15, 25, 0.58), 0 0.5rem 2rem rgba(0, 0, 0, 0.6);
}

.play-seal span {
  font-family: var(--instrument);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  padding: 0.7rem 0.9rem;
  align-items: center;
  justify-content: space-between;
  color: var(--foam);
  background: rgba(7, 12, 20, 0.9);
  border: 1px solid rgba(234, 217, 175, 0.32);
  font-family: var(--instrument);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-caption b {
  color: var(--gold);
  font-weight: 700;
}

.watch-strip {
  display: grid;
  border-block: 1px solid rgba(234, 217, 175, 0.12);
  background: rgba(9, 27, 34, 0.72);
  grid-template-columns: repeat(4, 1fr);
}

.watch-strip p {
  min-height: 8rem;
  margin: 0;
  padding: 2.1rem clamp(1rem, 3vw, 3rem);
  border-right: 1px solid rgba(234, 217, 175, 0.1);
}

.watch-strip p:last-child {
  border-right: 0;
}

.watch-strip b,
.watch-strip span {
  display: block;
}

.watch-strip b {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 500;
}

.watch-strip span {
  color: #8ba29b;
  font-family: var(--instrument);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about,
.keepers,
.trailer,
.final-call {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.about {
  padding: 9rem 0;
}

.section-heading {
  display: grid;
  margin-bottom: 4rem;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: start;
  gap: 2rem;
}

.section-heading h2 {
  margin: 0;
}

.watch-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.watch-steps article {
  position: relative;
  min-height: 19rem;
  padding: 2rem;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(32, 41, 51, 0.82), rgba(19, 25, 34, 0.94));
  border: 1px solid rgba(156, 113, 48, 0.58);
  box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(8, 12, 19, 0.52);
}

.watch-steps article::after {
  position: absolute;
  right: -2rem;
  bottom: -4.5rem;
  width: 10rem;
  height: 10rem;
  content: "";
  border: 1px solid rgba(240, 173, 67, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgba(240, 173, 67, 0.025), 0 0 0 3rem rgba(240, 173, 67, 0.02);
}

.step-number {
  display: block;
  margin-bottom: 4rem;
  color: var(--teal);
  font-family: var(--instrument);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.watch-steps p {
  color: #9eb0a8;
  font-size: 0.92rem;
}

.keepers {
  display: grid;
  min-height: 36rem;
  padding: 4.5rem;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 15, 25, 0.32), rgba(9, 15, 25, 0.9)),
    linear-gradient(140deg, #0e3540, #141b27 65%);
  border: 1px solid rgba(240, 173, 67, 0.45);
  grid-template-columns: 1fr 0.85fr;
  gap: 5rem;
  box-shadow: 16px 18px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 6px rgba(7, 11, 18, 0.46);
}

.keeper-portraits {
  display: grid;
  min-height: 21rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}

.keeper-portraits img {
  position: relative;
  width: 9rem;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  background: #0b1622;
  border: 2px solid var(--brass);
  box-shadow: 8px 10px 0 rgba(2, 6, 11, 0.75);
}

.keeper-portraits img:nth-child(1) {
  z-index: 2;
  align-self: start;
  transform: rotate(-3deg);
}

.keeper-portraits img:nth-child(2) {
  z-index: 3;
  width: 10.5rem;
  transform: translate(-1rem, 4.5rem) rotate(1.5deg);
}

.keeper-portraits img:nth-child(3) {
  z-index: 1;
  transform: translate(-2rem, 1rem) rotate(4deg);
}

.keeper-copy p:not(.eyebrow) {
  color: var(--foam);
}

blockquote {
  margin: 2rem 0 0;
  color: var(--gold);
  font-size: 1.8rem;
  font-style: italic;
}

.trailer {
  padding: 10rem 0 7rem;
}

.section-heading.compact {
  grid-template-columns: 0.5fr 1.5fr;
}

.video-frame {
  position: relative;
  padding: 0.75rem;
  background: #0b111b;
  border: 1px solid var(--line);
  box-shadow: 16px 18px 0 rgba(0, 0, 0, 0.28);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.final-call {
  display: flex;
  padding: 7rem 1rem 8rem;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.final-call img {
  width: 17rem;
  margin-bottom: 1.5rem;
}

.final-call h2 {
  margin-bottom: 0.75rem;
}

.final-call p {
  margin-bottom: 2rem;
  color: var(--foam);
}

footer {
  display: flex;
  min-height: 6rem;
  padding: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
  color: #7d8e87;
  background: #050b12;
  border-top: 1px solid rgba(234, 217, 175, 0.12);
  font-family: var(--instrument);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold);
}

.game-dialog {
  width: min(96vw, 1280px);
  max-width: none;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
}

.game-dialog::backdrop {
  background: rgba(2, 5, 10, 0.92);
  backdrop-filter: blur(8px);
}

.game-window {
  padding: 0.8rem;
  background: #17110f;
  border: 1px solid var(--gold);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.72), inset 0 0 0 4px rgba(156, 113, 48, 0.3);
}

.game-toolbar {
  display: flex;
  min-height: 4.1rem;
  padding: 0.55rem 0.45rem 0.75rem 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.game-toolbar p,
.game-toolbar h2 {
  margin: 0;
}

.toolbar-kicker {
  color: var(--teal);
  font-family: var(--instrument);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-toolbar h2 {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.toolbar-actions {
  display: flex;
  gap: 0.65rem;
}

.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--brass);
}

.game-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  border: 0;
}

.demo-finale {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--brass);
}

.demo-finale video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.finale-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(5, 10, 17, 0.84);
  text-align: center;
}

.finale-overlay[hidden] {
  display: none;
}

.finale-overlay h3 {
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.finale-overlay p {
  color: var(--foam);
}

.finale-overlay div {
  display: flex;
  gap: 0.75rem;
}

.finale-overlay button {
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: #111b28;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-family: var(--instrument);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.finale-overlay button:hover,
.finale-overlay button:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.game-tip {
  margin: 0;
  padding: 0.75rem 0.6rem 0.15rem;
  color: #9cab9f;
  font-family: var(--instrument);
  font-size: 0.68rem;
  letter-spacing: 0.035em;
  text-align: center;
}

.game-tip b {
  color: var(--gold);
}

body.dialog-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 6.2rem;
  }

  .site-header nav a {
    display: none;
  }

  .hero {
    padding-top: 3rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero-visual {
    transform: none;
  }

  .watch-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .watch-strip p:nth-child(2) {
    border-right: 0;
  }

  .watch-strip p:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(234, 217, 175, 0.1);
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .watch-steps {
    grid-template-columns: 1fr;
  }

  .watch-steps article {
    min-height: 15rem;
  }

  .step-number {
    margin-bottom: 2.5rem;
  }

  .keepers {
    padding: 3rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .keeper-portraits {
    min-height: 13rem;
    justify-items: center;
  }

  .keeper-portraits img:nth-child(2) {
    transform: translate(-0.4rem, 2rem) rotate(1.5deg);
  }

  .keeper-portraits img:nth-child(3) {
    transform: translate(-1rem, 0.5rem) rotate(4deg);
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .about,
  .keepers,
  .trailer,
  .final-call {
    width: min(100% - 1.5rem, 1120px);
  }

  .brand img {
    width: 9rem;
  }

  .site-header nav {
    gap: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 4rem;
    gap: 3rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .play-seal {
    width: 4.5rem;
    height: 4.5rem;
  }

  .hero-caption {
    display: none;
  }

  .watch-strip {
    grid-template-columns: 1fr;
  }

  .watch-strip p,
  .watch-strip p:nth-child(2) {
    min-height: 6rem;
    border-right: 0;
    border-bottom: 1px solid rgba(234, 217, 175, 0.1);
  }

  .about {
    padding: 6rem 0;
  }

  .keepers {
    padding: 2.5rem 1.25rem;
  }

  .keeper-portraits img {
    width: 6.2rem;
  }

  .keeper-portraits img:nth-child(2) {
    width: 7rem;
  }

  .trailer {
    padding-top: 7rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .game-dialog {
    width: 100vw;
    margin: auto 0 0;
  }

  .game-window {
    padding: 0.35rem;
  }

  .game-toolbar {
    min-height: 3.5rem;
  }

  .game-toolbar h2,
  .toolbar-kicker,
  #fullscreen-game {
    display: none;
  }

  .game-tip {
    display: none;
  }
}

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

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