@font-face {
  font-family: Audiowide;
  src: url("assets/audiowide.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #f6f1e9;
  --paper-bright: #fbf8f3;
  --paper-card: #ece5d8;
  --ink: #29383d;
  --ink-deep: #1b262a;
  --muted: #55666c;
  --teal: #169c9a;
  --coral: #f46943;
  --gold: #d9a13b;
  --line: #d4cbbd;
  --display: Audiowide, system-ui, sans-serif;
  --body: Audiowide, system-ui, sans-serif;
  --radius: 10px;
  --header-layer: 6;
  --dialog-layer: 12;
  --phone-width: 318px;
}

* {
  box-sizing: border-box;
}

main {
  overflow: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(
      circle at 18% 12%,
      rgba(22, 156, 154, 0.08),
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 26%,
      rgba(244, 105, 67, 0.08),
      transparent 40%
    ),
    linear-gradient(180deg, #f9f6ef 0%, #f6f1e9 48%, #f1eadf 100%);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
}

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

button {
  font: inherit;
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--coral);
  color: var(--paper-bright);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

em {
  font-style: normal;
  color: var(--coral);
}

.section-wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 64px;
}

section[id] {
  scroll-margin-top: 24px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--dialog-layer);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper-bright);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

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

/* Header */
.site-header {
  height: 82px;
  max-width: 1440px;
  margin: auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: var(--header-layer);
  border-bottom: 1px solid rgba(41, 56, 61, 0.1);
}

.wordmark {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink);
}

.wordmark span {
  color: var(--coral);
}

nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
  color: var(--muted);
}

nav a:hover {
  color: var(--coral);
}

.header-play {
  font-size: 12px;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--ink);
  background: var(--paper-bright);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.header-play span {
  margin-left: 12px;
}

.header-play:hover {
  background: var(--ink);
  color: var(--paper-bright);
  transform: translateY(-2px);
}

/* Hero & Pinned Recorded Duel Stage */
.hero {
  --encounter-hold: 0px;
  max-width: 1440px;
  min-height: min(820px, calc(100svh - 82px));
  margin: auto;
  padding: 46px 64px 68px;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  gap: 48px;
  isolation: isolate;
}

.js-motion .hero {
  --encounter-hold: 540px;
  min-height: calc(min(820px, calc(100svh - 82px)) + var(--encounter-hold));
}

.hero-copy-track,
.hero-world {
  height: 100%;
}

.hero-copy {
  position: sticky;
  top: 118px;
  z-index: 2;
  padding-bottom: 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(58px, 7.4vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 > span {
  color: var(--coral);
}

.hero-hook {
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.35;
  margin-top: 22px;
  color: var(--ink);
}

.hero-hook > span:first-child {
  color: var(--teal);
}

.hero-sub {
  margin-top: 16px;
  max-width: 54ch;
  font-size: 14px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 15px 26px;
  font-size: 13px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.button-primary {
  background: var(--ink);
  color: var(--paper-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(27, 38, 42, 0.16);
}

.button-primary:hover {
  transform: translateY(-3px);
  background: var(--coral);
  border-color: var(--coral);
  color: var(--paper-bright);
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  background: var(--paper-bright);
  color: var(--ink);
}

.button-secondary:hover {
  transform: translateY(-3px);
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper-bright);
}

.hero-actions .button-primary {
  min-height: 74px;
  padding-inline: 30px;
  font-size: 15px;
}

.hero-actions .android-download {
  min-height: 74px;
  gap: 14px;
  padding: 14px 22px;
}

.android-download > span[aria-hidden] {
  font-size: 22px;
  color: var(--teal);
}

.android-download:hover > span[aria-hidden] {
  color: inherit;
}

.android-download-label {
  display: grid;
  gap: 4px;
  text-align: left;
}

.android-download-version {
  font-size: 11px;
  color: var(--muted);
}

.android-download:hover .android-download-version {
  color: rgba(255, 255, 255, 0.88);
}

/* Shared Phone Frame for Scroll-Scrubbed Gameplay Videos */
.duel-stage {
  position: sticky;
  top: 94px;
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, var(--phone-width));
  aspect-ratio: 720 / 1560;
  padding: 11px;
  border-radius: 34px;
  background: var(--ink-deep);
  border: 2px solid var(--ink);
  box-shadow: 0 26px 56px rgba(27, 38, 42, 0.24);
}

.phone-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  background: var(--paper);
}

/* Decorative Props Between Sections */
.field-gap {
  max-width: 1280px;
  height: 112px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gap-prop {
  width: 58px;
  height: auto;
  opacity: 0.82;
}

h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Section 1: Tabletop Two-Player Hands & Scroll Video */
.twist {
  --tabletop-hold: 0px;
  padding-block: 44px 68px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: 56px;
}

.js-motion .twist {
  --tabletop-hold: 520px;
  min-height: calc(680px + var(--tabletop-hold));
}

.twist-visual,
.twist-copy {
  position: sticky;
  top: 104px;
}

.tabletop-stage {
  display: grid;
  place-items: center;
  padding-block: 24px;
}

.tabletop-phone {
  overflow: visible;
}

.touch-layer {
  position: absolute;
  inset: 11px;
  pointer-events: none;
  z-index: 3;
}

.player-hand {
  --hx: 50%;
  --hy: 20%;
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  width: 96px;
  height: 128px;
  pointer-events: none;
  will-change: left, top, transform;
}

/* Tip of index finger in SVG (87, 18) inside 120x160 viewBox -> (72.5%, 11.25%) */
.hand-top {
  transform: translate(-72.5%, -11.25%) rotate(180deg) scale(1.06);
  transform-origin: 72.5% 11.25%;
  transition: transform 0.12s ease-out;
}

.hand-top.pressing {
  transform: translate(-72.5%, -11.25%) rotate(180deg) scale(0.95);
}

.hand-bottom {
  transform: translate(-72.5%, -11.25%) scale(1.06);
  transform-origin: 72.5% 11.25%;
  transition: transform 0.12s ease-out;
}

.hand-bottom.pressing {
  transform: translate(-72.5%, -11.25%) scale(0.95);
}

.hand-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 18px rgba(27, 38, 42, 0.32));
}

.touch-ripple {
  position: absolute;
  left: 72.5%;
  top: 11.25%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition:
    transform 0.14s ease-out,
    opacity 0.14s ease-out;
}

.hand-top .touch-ripple {
  border: 3px solid var(--teal);
  background: rgba(22, 156, 154, 0.22);
}

.hand-bottom .touch-ripple {
  border: 3px solid var(--coral);
  background: rgba(244, 105, 67, 0.22);
}

.player-hand.pressing .touch-ripple {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.twist-copy {
  padding-top: 48px;
}

.twist-copy p {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.twist-copy strong {
  color: var(--ink);
  font-weight: 400;
}

/* Section 2: Recorded Video & Lightbox Stills */
.gameplay {
  padding-block: 44px 68px;
}

.gameplay-heading {
  text-align: center;
  margin-bottom: 38px;
}

.footage-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.video-shell {
  max-width: 340px;
  margin-inline: auto;
  padding: 11px;
  background: var(--ink-deep);
  border: 2px solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 24px 52px rgba(27, 38, 42, 0.2);
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
  background: var(--paper);
}

.gameplay-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.progression-shots {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin-inline: auto;
}

.screenshot-button {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--paper-bright);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  cursor: zoom-in;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.screenshot-button:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 18px 36px rgba(27, 38, 42, 0.14);
}

.screenshot-button img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.still figcaption,
.progression-shots figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Section 3: Roadmap & Partnership */
.publisher {
  padding-block: 48px 68px;
}

.publisher-heading {
  margin-bottom: 30px;
}

.pitch-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.pillar-card {
  padding: 26px;
  background: var(--paper-bright);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}

.pillar-card h3 {
  font-size: 19px;
  color: var(--ink);
}

.pillar-card p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.publisher-details {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 32px;
  background: var(--ink-deep);
  color: var(--paper-bright);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(27, 38, 42, 0.2);
}

.project-facts h3 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 18px;
}

.project-facts dl {
  display: grid;
  gap: 12px;
}

.project-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.project-facts dt {
  color: rgba(249, 246, 239, 0.68);
}

.project-facts dd {
  text-align: right;
  color: var(--paper-bright);
}

.partner-ask {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 16px;
}

.partner-ask h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}

.partner-ask h3 span {
  color: var(--coral);
}

.partner-ask p {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(249, 246, 239, 0.8);
}

.publisher-contact {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 22px;
  background: var(--coral);
  color: var(--paper-bright);
  border-radius: var(--radius);
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s;
}

.publisher-contact:hover {
  transform: translateY(-2px);
  background: var(--teal);
}

/* Closing Section */
.closing {
  padding-block: 56px 96px;
  text-align: center;
}

.closing-crowd {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 10px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(27, 38, 42, 0.18);
}

.closing-crowd img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.closing-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Reveal Animations */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Screenshot Lightbox Dialog */
body.dialog-open {
  overflow: hidden;
}

#screenshot-dialog {
  max-width: min(92vw, 520px);
  max-height: 92dvh;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper-bright);
  color: var(--ink);
}

#screenshot-dialog::backdrop {
  background: rgba(27, 38, 42, 0.78);
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 12px;
}

#screenshot-dialog figure {
  display: grid;
  place-items: center;
}

#full-screenshot {
  max-height: 74dvh;
  width: auto;
  border-radius: 14px;
}

#screenshot-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Responsive Layouts */
@media (max-width: 1024px) {
  .site-header,
  .hero,
  .section-wrap {
    padding-inline: 32px;
  }

  .hero,
  .twist,
  .footage-layout,
  .publisher-details,
  .pitch-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .twist-visual,
  .twist-copy {
    position: static;
    padding-top: 0;
  }

  .js-motion .hero {
    min-height: auto;
  }

  .hero,
  .twist {
    --phone-width: min(318px, calc((100svh - 36px) * 720 / 1560));
  }

  .duel-stage {
    top: 18px;
  }

  .hero-world {
    height: calc(var(--phone-width) * 1560 / 720 + var(--encounter-hold));
  }

  .js-motion .twist {
    --tabletop-hold: 0px;
    min-height: auto;
  }

  .partner-ask {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
  }

  .header-play {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero,
  .section-wrap {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 24px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .hero,
  .twist {
    --phone-width: min(74vw, 272px, calc((100svh - 36px) * 720 / 1560));
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button-primary,
  .hero-actions .android-download {
    width: 100%;
    min-height: 64px;
  }

  .android-download-label {
    white-space: normal;
  }

  .player-hand {
    width: 78px;
    height: 104px;
  }

  .gameplay-side,
  .progression-shots {
    grid-template-columns: 1fr;
  }

  .publisher-details {
    padding: 22px 18px;
  }

  .project-facts dl > div {
    flex-direction: column;
    gap: 4px;
  }

  .project-facts dd {
    text-align: left;
  }
}

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

  .hero,
  .twist {
    --encounter-hold: 0px !important;
    --tabletop-hold: 0px !important;
    min-height: auto !important;
  }
}
