:root {
  color-scheme: dark;
  --pine: #263f37;
  --deep: #0c211c;
  --gold: #e9c477;
  --paper: #f4e8d3;
  --muted: #c3ceba;
  --line: #e9c47740;
  --gutter: clamp(1.25rem,4vw,6rem);
  --serif: Georgia,'Times New Roman',serif;
  font: 100%/1.7 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--paper); background: #0b201a; }
button,a,summary { touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
main:focus { outline: none; }
h1,h2,p,figure { margin: 0; }
h1,h2 { font-family: var(--serif); font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; top: .7rem; left: 1rem; padding: .6rem 1rem; color: var(--deep); background: var(--gold); transform: translateY(-170%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 3; display: flex; align-items: center; gap: clamp(1rem,2vw,3rem); padding: .9rem var(--gutter); min-height: 88px; border-bottom: 1px solid var(--line); background: #0b211cf5; }
.brand { flex-shrink: 0; text-decoration: none; line-height: 1; color: var(--gold); }
.brand .wordmark { display: block; width: 10rem; }
.brand .text-wordmark { font: 1.8rem var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.wordmark img { display: block; width: 100%; height: auto; }
.edition { color: #cebd96; border-left: 1px solid var(--line); padding-left: clamp(1rem,2vw,3rem); font-size: .875rem; text-transform: uppercase; letter-spacing: .14em; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .6rem clamp(1rem,2vw,2.5rem); margin-left: auto; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .875rem; font-weight: 650; letter-spacing: .03em; }
.site-header nav a:hover { color: var(--gold); }
.launcher { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(21rem,.7fr); gap: clamp(3rem,7vw,10rem); align-items: center; min-height: calc(100svh - 184px); padding: clamp(3rem,6vw,8rem) var(--gutter) clamp(4rem,6vw,8rem); overflow: hidden; }
.landscape { position: absolute; z-index: -3; inset: 0; }
.landscape picture,.landscape img { display: block; width: 100%; height: 100%; }
.landscape img { object-fit: cover; object-position: 50% center; }
.landscape:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#0820186e,#09231d35 45%,#09231de6 78%),linear-gradient(0deg,#0b221cf5,transparent 80%); }
.landscape figcaption { position: absolute; left: var(--gutter); bottom: 1.35rem; z-index: 2; color: #e8d9b7; font-size: .875rem; background: #0b221bd1; border-left: 1px solid var(--gold); padding: .3rem .7rem; }
.world-intro { align-self: center; padding: 1.5rem 0; }
.eyebrow { font-size: .875rem; line-height: 1.7; text-transform: uppercase; letter-spacing: .15em; font-weight: 650; color: var(--gold); }
.world-intro .eyebrow { max-width: 40ch; text-shadow: 0 2px 14px #092018; }
.world-intro h1 { margin: 1.5rem 0 1.75rem; line-height: 1; }
.world-intro .wordmark { display: block; width: 100%; filter: drop-shadow(0 8px 20px #061910a0); }
.world-intro .text-wordmark { color: var(--gold); font-size: clamp(4rem,9vw,12rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.tagline { font: clamp(1.7rem,2.6vw,3.2rem)/1.25 var(--serif); max-width: 24ch; text-shadow: 0 2px 18px #092018; }
.world-copy { color: #e3e8d6; font-size: clamp(1rem,1.15vw,1.2rem); line-height: 1.85; max-width: 46ch; margin-top: 1.6rem; text-shadow: 0 2px 12px #092018; }
.world-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.text-link { color: var(--gold); font-weight: 650; min-height: 32px; display: inline-block; }
.launch-deck { border-left: 1px solid #e9c47766; padding: 1.25rem 0 1.5rem clamp(2rem,4vw,5rem); background: linear-gradient(90deg,#0e292448,transparent); }
.deck-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.deck-heading svg { width: 46px; height: 46px; stroke: var(--gold); stroke-width: 1; flex-shrink: 0; }
.deck-heading svg path { fill: #e9c47712; }
.status-badge { display: inline-block; padding: .25rem .7rem; font-size: .875rem; color: #eed5a1; background: #102d245c; border: 1px solid #9e8e5f; }
.launch-deck h2 { font-size: clamp(2rem,2.8vw,3.5rem); line-height: 1.15; letter-spacing: -.025em; color: #fff0d2; margin-top: 1.3rem; text-wrap: balance; }
.launch-deck>p:not(.eyebrow) { color: #d3ddc9; max-width: 43ch; margin-top: 1.2rem; }
.launch-actions { display: grid; gap: .8rem; margin-top: 1.8rem; }
.button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62px; padding: 1rem 1.4rem; border: 1px solid #ead09b; text-decoration: none; text-align: center; font-size: 1rem; font-weight: 750; line-height: 1.4; cursor: pointer; transition: box-shadow .2s,background .2s,transform .2s; }
.button-gold { color: #142a20; background: linear-gradient(110deg,#d8b363,#f2d598 52%,#d2aa5c); box-shadow: inset 0 0 0 3px #243c2424,0 8px 25px #061b1640; }
.button-gold:hover { background: #f7dda5; box-shadow: inset 0 0 0 3px #243c2424,0 8px 28px #e9c47725; transform: translateY(-1px); }
.button-detail { display: block; margin-top: .2rem; font-size: .875rem; font-weight: 500; }
.button-unavailable { color: #e6ddc4; background: linear-gradient(110deg,#2d4633,#354e3a); border-color: #82936f; cursor: default; box-shadow: inset 0 0 0 3px #0c271d30; }
.button-unavailable .button-detail { color: #c5d0b8; }
.button-secondary { color: var(--paper); background: #15352bc2; font-size: .9375rem; min-height: 48px; }
.button-secondary:hover { background: #2b4a38; }
.launch-deck .compatibility { font-size: .875rem; color: #cbd6bf; line-height: 1.8; }
.discord-button { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 0; margin-top: 1.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.discord-button svg { flex-shrink: 0; width: 28px; height: 28px; stroke: var(--gold); stroke-width: 1.3; }
.discord-button span { display: block; }
.discord-button strong { display: block; color: #f0d79e; font-weight: 650; }
.discord-button span span { color: #c8d2bc; font-size: .875rem; }
.discord-button:hover strong { color: #fff1ce; text-decoration: underline; text-underline-offset: .25em; }
.before-play { margin-top: 1.5rem; font-size: .875rem; color: #c5d0b9; }
.before-play summary { min-height: 32px; cursor: pointer; color: #eddfbc; font-weight: 600; }
.before-play ul { padding-left: 1.2rem; margin: .8rem 0 0; }
.before-play li+li { margin-top: .75rem; }
.before-play a { color: var(--gold); }
.chapter-mark { display: flex; align-items: center; gap: .75rem; position: absolute; right: var(--gutter); bottom: 1rem; width: 7.5rem; opacity: .65; }
.chapter-mark svg { stroke: var(--gold); stroke-width: 1; width: 24px; height: 24px; flex-shrink: 0; }
.chapter-mark span { height: 1px; flex-grow: 1; background: var(--gold); }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 2rem; padding: 1.3rem var(--gutter); border-top: 1px solid var(--line); background: #0b201a; font-size: .875rem; color: #c8d1bb; }
.site-footer>span:first-child { font: 1.1rem var(--serif); color: #ddc899; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-left: auto; }
.site-footer nav a { color: #d6cfb7; min-height: 28px; font-weight: 500; }
.footer-note { width: 100%; font-size: .875rem; color: #aebda3; }
.stub-page { padding: clamp(4rem,10vw,12rem) var(--gutter); min-height: 70svh; background: radial-gradient(ellipse at 25% 20%,#45654844,transparent 65%); }
.stub-page h1 { font-size: clamp(2.5rem,6vw,6rem); line-height: 1.1; max-width: 20ch; color: #f0dfb8; margin: 1.5rem 0; }
.stub-page p:not(.eyebrow) { max-width: 58ch; color: #c9d5bd; font-size: 1.125rem; line-height: 1.9; }
.stub-page .button { display: inline-flex; margin-top: 2rem; }
.game-stage { position: fixed; z-index: 30; inset: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr); width: 100%; height: 100%; background: #081a13; }
.game-stage[hidden] { display: none; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; background: #102d23; border-bottom: 1px solid var(--line); }
.player-toolbar>span { font: 1.4rem var(--serif); color: var(--gold); }
.player-toolbar>div { display: flex; flex-wrap: wrap; gap: .6rem; }
.player-control { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem .8rem; color: var(--paper); font-size: .875rem; font-weight: 600; border: 1px solid #7d8f6a; background: #16382c; text-decoration: none; cursor: pointer; }
.player-control:hover { background: #31513c; }
.player-status { padding: .4rem 1rem; font-size: .875rem; color: #c6d2bb; background: #0a2219; }
.game-stage iframe { width: 100%; height: 100%; min-height: 0; border: 0; background: #050d09; }
body.is-playing { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .world-intro { animation: arrival .8s ease-out both; }
  @keyframes arrival { from { opacity: .75; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (min-width:1900px) {
  .launch-deck { padding-left: 5vw; }
  .world-copy { max-width: 50ch; }
}
@media (max-width:1100px) {
  .launcher { gap: 4vw; grid-template-columns: minmax(0,1fr) minmax(20rem,.85fr); }
  .launch-deck { padding-left: 2rem; }
  .edition { font-size: .875rem; letter-spacing: .08em; }
}
@media (max-width:800px) {
  .site-header { min-height: 80px; }
  .brand .wordmark { width: 8rem; }
  .edition { display: none; }
  .launcher { grid-template-columns: minmax(0,1fr); gap: 3rem; min-height: calc(100svh - 80px); padding-top: 4rem; }
  .landscape:after { background: linear-gradient(0deg,#0b221ff9,#0b221fc9 65%,#0b221f30); }
  .landscape img { object-position: 62% center; }
  .world-intro { padding: 0; max-width: 42rem; }
  .world-intro .wordmark { max-width: 42rem; }
  .world-intro .text-wordmark { font-size: 16vw; }
  .world-intro h1 { margin-top: 1.6rem; }
  .tagline { font-size: clamp(1.8rem,5vw,2.8rem); }
  .world-copy { font-size: 1rem; max-width: 54ch; }
  .launch-deck { padding: 2.5rem 0 1rem; border-left: 0; border-top: 1px solid #e9c47770; background: none; }
  .launch-deck h2 { max-width: 22ch; font-size: clamp(2rem,5vw,3rem); }
  .launch-deck>p:not(.eyebrow) { max-width: 60ch; }
  .launch-actions { max-width: 32rem; }
  .discord-button { max-width: 32rem; }
  .site-footer nav { margin-left: 0; }
}
@media (max-width:390px) {
  .site-header { flex-wrap: wrap; gap: .4rem; padding-top: 1rem; padding-bottom: .7rem; }
  .brand .wordmark { width: 7rem; }
  .site-header nav { width: 100%; margin: 0; justify-content: space-between; gap: .35rem 1rem; }
  .site-header nav a { min-height: 36px; }
  .launcher { padding-top: 3rem; }
  .world-intro .eyebrow { max-width: 30ch; }
  .world-links { gap: .75rem 1.5rem; }
  .deck-heading { margin-bottom: 1.25rem; }
  .chapter-mark { display: none; }
  .player-toolbar { flex-wrap: wrap; padding: .5rem; }
  .player-toolbar>span { margin-left: auto; }
  .player-toolbar>div { width: 100%; }
  .player-status { padding: .5rem; }
}
@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header,.site-footer,.landscape,.chapter-mark,.game-stage { display: none !important; }
  body { color: black; background: white; }
  .launcher { display: block; padding: 1rem; min-height: 0; }
  .world-intro .wordmark { display: none; }
  .world-intro .visually-hidden { position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
  .launch-deck { border: 0; padding-left: 0; }
  h1,h2,.tagline,.eyebrow,.world-copy,.launch-deck>p:not(.eyebrow) { color: black; text-shadow: none; }
}
