:root {
  --ink: #101a29;
  --paper: #fcf4e5;
  --spirit-subtle: #c7d3dc;
  --muted: #afc0cc;
  --line: #334657;
  --spirit-teal: #9ae8e2;
  --gutter: max(5vw, calc((100% - 1320px) / 2));
}

.site-header {
  height: 72px;
  background: #101a29f7;
  box-shadow: none;
}

.site-header nav>a { font-weight: 600; }
.site-header nav .nav-download, .button-red, .game-button {
  background: var(--spirit-teal);
  color: #102329;
  clip-path: none;
  border-radius: 5px;
}

.site-header nav .nav-download:hover, .button-red:hover, .game-button:hover {
  background: #caf6ed;
}
.site-header nav .nav-download[aria-current="location"] { color: #102329; }

.game-hero {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.65fr);
  align-items: center;
  gap: clamp(30px,5vw,78px);
  padding: clamp(108px,10vw,150px) var(--gutter) clamp(52px,8vw,112px);
  background: linear-gradient(155deg,#162537,var(--ink) 77%);
  border-bottom: 1px solid var(--line);
}

.game-hero-copy h1 { max-width: 265px; margin-left: -5px; }
.game-hero-copy h1 img { width: 100%; height: auto; }
.game-byline { color: var(--muted); font-size: 13px; margin: 8px 0 25px; }
.game-hook {
  font: 700 clamp(37px,4.35vw,69px)/1.03 var(--body);
  color: var(--paper);
  letter-spacing: -.065em;
}

.game-summary {
  font-size: clamp(15px,1.35vw,18px);
  line-height: 1.65;
  color: var(--spirit-subtle);
  max-width: 32ch;
  margin-top: 18px;
}

.game-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 23px; }
.game-button, .game-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; }
.game-button { padding: 0 13px; }
.game-link { color: var(--paper); }
.game-link:hover { color: var(--spirit-teal); }

.game-shot { min-width: 0; margin: 0; }
.game-shot img { width: 100%; height: auto; border: 1px solid #4e6579; border-radius: 9px; }
.game-shot figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.game-shot figcaption strong { color: var(--paper); font-weight: 600; }

.characters-section { background: #131f30; }
.characters-section::after, .download-section::before { display: none; }
.section-heading { align-items: end; }
.section-heading h2, .world-content h2, .download-copy h2 {
  font-size: clamp(32px,4.3vw,59px);
  line-height: 1.19;
  text-transform: uppercase;
  margin: 0;
}
.section-heading>p { max-width: 34ch; line-height: 1.55; padding: 0; }
.character-tabs { gap: 6px; }
.character-tabs button, .character-tabs button:last-child {
  background: #192738;
  border: 1px solid var(--line);
  clip-path: none;
  border-radius: 5px;
}
.character-tabs button[aria-selected=true] {
  background: #24384a;
  color: var(--paper);
  border-color: var(--spirit-teal);
  box-shadow: inset 0 -2px var(--spirit-teal);
}
.tab-label { font-family: var(--body); letter-spacing: .005em; font-size: clamp(11px,1.2vw,16px); }
.tab-number, .tab-cross { display: none; }
.character-panel { background: #182536; border-radius: 6px; box-shadow: none; }
.character-copy h3 { font-size: clamp(44px,5.6vw,80px); }
.character-lore { background: #162333; }
.character-visual { background: #111b29; }
.ability h4, .origin-block h4, .character-age strong,
.world-rules h4, .release-principle h4, .campaign-route h4, .crew-scene h4,
.download-card h3 {
  font-family: var(--body);
  text-transform: none;
  letter-spacing: -.025em;
  line-height: 1.2;
  font-weight: 700;
}
.personality-traits>span { background: #203245; color: var(--spirit-subtle); }
.chibi-companion>span { border-color: var(--line); }
.character-controls button { background: #223749; }
.character-controls button:hover { background: #304d61; }

.world-section { background: var(--ink); }
.world-hero { min-height: clamp(480px,48vw,655px); }
.world-content h2 { margin: 0 0 22px; }
.world-dossier { background: none; }
.dossier-heading h3 { text-transform: uppercase; }
.world-rules { gap: 0 32px; }
.world-rules article {
  background: none;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  clip-path: none;
}

.training-feature {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(20px,4vw,55px);
  margin: 0 0 clamp(38px,7vw,95px);
}
.training-art { position: relative; }
.training-art>img:first-child { width: 100%; height: auto; border-radius: 7px; border: 1px solid var(--line); }
.training-guide { position: absolute; right: 8%; bottom: 8%; height: 44%; width: auto; filter: drop-shadow(0 3px 4px #142e536b); }
.training-feature .overline { color: var(--spirit-teal); }
.training-feature h3 { font: 700 clamp(24px,3.2vw,40px)/1.14 var(--body); letter-spacing: -.045em; margin: 9px 0 12px; color: var(--paper); }
.training-feature p { color: var(--spirit-subtle); max-width: 38ch; line-height: 1.65; }
.crew-scene { background: #182536; clip-path: none; border-radius: 7px; }
.download-section {
  background: #172737;
  grid-template-columns: minmax(0,1fr);
  gap: clamp(22px,4vw,42px);
}
.download-copy h2 { margin-bottom: 12px; }
.demo-player {
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 170px;
  overflow: hidden;
  background: #101a29;
  border: 1px solid #4e6579;
  border-radius: 7px;
}
.demo-poster {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 20px;
}
.demo-poster img, .demo-poster::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-poster img { z-index: -2; object-fit: cover; }
.demo-poster::after { z-index: -1; content: ""; background: #101a2999; }
.demo-poster-content { display: grid; justify-items: center; gap: 12px; text-align: center; }
.demo-status { color: var(--paper); font: 700 clamp(16px,2vw,25px)/1.2 var(--body); }
.demo-play { border: 0; font-family: inherit; cursor: pointer; }
.demo-frame { width: 100%; height: 100%; border: 0; }
.demo-player [hidden], .download-card[hidden] { display: none; }
.download-card { background: #1c3042; border-radius: 6px; box-shadow: none; }
.download-card h3 { font-size: clamp(24px,2.8vw,34px); }
.download-card .button { clip-path: none; border-radius: 5px; }
.site-footer>a:last-child { color: var(--spirit-teal); }

@media (max-width: 760px) {
  .site-header { height: 68px; }
  .site-header nav { background: #152435; }
  .section-heading { align-items: start; }
  .game-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 99px; }
  .game-hero-copy h1 { max-width: 208px; }
  .game-byline { margin-bottom: 17px; }
  .game-hook { font-size: clamp(35px,9.2vw,54px); }
  .game-summary { margin-top: 12px; }
  .game-hero-actions { margin-top: 17px; }
  .game-shot figcaption { padding: 8px 0; font-size: 11px; }
  .tab-label { font-size: clamp(10px,2.65vw,15px); }
  .world-art { mask-image: linear-gradient(#000 53%,transparent); }
  .world-shade { background: none; }
  .world-content h2 { margin-bottom: 15px; }
  .training-feature { grid-template-columns: 1fr; }
}

/* The hero block: the battle art across the whole block, the copy over its darkened left */
.game-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 540px);
  min-height: min(92vh, 880px);
  background: var(--ink);
}
.game-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}
.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #0b1529c4 0%, #0b152999 18%, #0b152940 33%, #0b152900 46%),
    linear-gradient(0deg, #0b1529 0%, #0b152900 20%),
    linear-gradient(180deg, #0b1529aa 0%, #0b152900 18%);
}
.game-hero-copy { position: relative; }
.game-byline, .game-hook, .game-summary { text-shadow: 0 2px 14px #0b1529, 0 0 4px #0b1529, 0 0 30px #0b1529cc; }

@media (max-width: 760px) {
  /* The art on top, the copy under it */
  .game-hero { min-height: 0; padding-top: calc(68px + 56.3vw); align-items: start; }
  .game-hero-bg { inset: 68px 0 auto 0; height: 56.3vw; object-position: center; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .game-hero::before { display: none; }
}

/* The demo's controls, under the game while it plays */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: calc(10px - clamp(22px,4vw,42px));
  padding: 10px 12px;
  background: #13233a;
  border: 1px solid #4e6579;
  border-radius: 7px;
}
.demo-bar[hidden] { display: none; }
.demo-bar-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.demo-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #79ccf45c;
  border-radius: 5px;
  background: #0b1529;
  color: var(--paper);
  font: 700 13px/1 var(--body);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.demo-action:hover, .demo-action:focus-visible { background: #1b3352; border-color: var(--spirit-teal); color: var(--spirit-teal); }
.demo-action span { font-size: 15px; }
.demo-close:hover, .demo-close:focus-visible { border-color: #ff9a9a; color: #ffb4b4; background: #2a1620; }
.demo-frame:fullscreen { width: 100vw; height: 100vh; background: #000; }

@media (max-width: 760px) {
  .demo-bar { justify-content: center; }
  .demo-bar-label { display: none; }
  .demo-action { padding: 0 11px; font-size: 12px; }
}

/* The trailer: its own section under the hero, and a window over the page from the hero's button */
.game-button-ghost { background: #0b1529b3; color: var(--paper); box-shadow: inset 0 0 0 1px var(--spirit-teal); }
.game-button-ghost:hover { background: #1b3352; color: var(--spirit-teal); }
.trailer-section {
  padding: clamp(56px,7vw,96px) var(--gutter) clamp(52px,7vw,90px);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.trailer-section .section-heading { margin-bottom: clamp(20px,3vw,32px); }
.trailer-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #4e6579;
  border-radius: 7px;
  background: #000;
  box-shadow: 0 24px 60px #0006, 0 0 0 1px #9ae8e214;
}
.trailer-frame video, .trailer-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.trailer-dialog {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  border: 1px solid #4e6579;
  border-radius: 7px;
  background: #000;
  color: var(--paper);
}
.trailer-dialog::backdrop { background: #060c18e6; }
.trailer-dialog video { max-height: calc(100vh - 34px); border-radius: 7px; }
.trailer-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid #79ccf466;
  border-radius: 8px;
  background: #0b1529cc;
  color: var(--paper);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.trailer-dialog-close:hover { background: #1b3352; color: var(--spirit-teal); }
.trailer-play {
  position: absolute;
  inset: 76% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 104px);
  aspect-ratio: 1;
  padding: 0 0 0 .18em;
  border: 2px solid var(--spirit-teal);
  border-radius: 50%;
  background: #0b1529b8;
  color: var(--paper);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 8px #9ae8e21f, 0 10px 30px #0008;
  transition: transform .2s, background .2s, color .2s;
}
.trailer-play:hover { transform: translate(-50%, -50%) scale(1.07); background: #1b3352; color: var(--spirit-teal); }
.trailer-play[hidden] { display: none; }

/* The WISHLIST button and how many shamans are waiting */
.wishlist-button { border: 0; font-family: inherit; cursor: pointer; background: linear-gradient(100deg, #ffd27a, #ffb347); color: #2a1a05; }
.wishlist-button:hover { background: linear-gradient(100deg, #ffe0a3, #ffc46b); }
.wishlist-button[hidden], .wishlist-count[hidden] { display: none; }
.wishlist-button.is-joined { background: #0b1529b3; color: #ffd27a; box-shadow: inset 0 0 0 1px #ffd27a; cursor: default; }
.wish-star { display: inline-block; font-size: 15px; line-height: 1; }
.wishlist-button.is-burst .wish-star { animation: wish-burst .6s ease-out; }
@keyframes wish-burst { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.7) rotate(-20deg); text-shadow: 0 0 14px #ffd27a; } 100% { transform: scale(1) rotate(0); } }
.wishlist-count { margin: 12px 0 0; color: #ffd27a; font-size: 13px; font-weight: 600; text-shadow: 0 2px 10px #0b1529; }
.trailer-wish { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.trailer-wish .wishlist-count { margin: 0; }
@media (prefers-reduced-motion: reduce) { .wishlist-button.is-burst .wish-star { animation: none; } }
