:root {
    color-scheme: dark;
    --ink: #f4ecd9;
    --hero-inset: max(3.5vw, calc((100vw - 1180px) / 4));
    --muted: #c6c9ba;
    --gold: #e8bc73;
    --gold-dim: #9d743c;
    --base: #081518;
    --line: #b88b485c;
    --font-display: Georgia, serif;
    --font-ui: Consolas, monospace;
    --copper-border: url('/assets/ui/copper-button-border.svg');
    --bronze: url('/assets/ui/settings-bronze-metal.jpg');
    --walnut: url('/assets/ui/settings-walnut-grain.jpg');
}
* { box-sizing: border-box; scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font: 17px/1.6 var(--font-display); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(3.2rem, 5.2vw, 5.3rem); line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 3px 12px #0009; }
h1 em, h2 em { color: var(--gold); font-style: normal; }
h2 { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.25; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 18px; background: var(--base); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.brand { color: var(--gold); font-size: 25px; letter-spacing: .17em; line-height: 1.1; text-shadow: 0 2px 2px #000; }
footer a:hover { color: #ffdfa1; }
.primary, .play-button { border: 7px solid transparent; border-image: var(--copper-border) 14 / 7px / 0 stretch; background: radial-gradient(ellipse at top, #3e623043, transparent 70%), linear-gradient(#173c2bec, #081b13f5), var(--walnut) center / 220px; box-shadow: inset 0 0 0 1px #caa45c88, inset 0 0 15px #9ab55719, 0 5px 15px #0006; color: #ffdda0; }
.secondary { background: linear-gradient(120deg, #10262be8, #061115f5); border: 1px solid var(--gold-dim); box-shadow: inset 0 0 0 3px #0b1617, 0 4px 14px #0005; }
.windows-icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 17px; background: linear-gradient(90deg, transparent 45%, #112024 45% 54%, transparent 54%), linear-gradient(transparent 45%, #112024 45% 54%, transparent 54%), linear-gradient(130deg, #fce3a4, #bc8844); transform: perspective(30px) rotateY(-12deg); }

/* Existing illustration and real captures: no rasterized mockup UI. */
.hero { position: relative; isolation: isolate; z-index: 5; }
.hero-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #061215e8 0%, #07171ac9 23%, #07171a73 45%, #06151905 70%), linear-gradient(0deg, #051113b0, transparent 25%), url('/assets/BiH_background.webp') center 51% / cover; }
.hero-layout { position: relative; width: calc(100% - 2 * var(--hero-inset)); margin-left: var(--hero-inset); padding: 20px 0 26px; }
.hero-copy { width: 558px; max-width: 90%; }
.hero-wordmark { width: 558px; max-width: 100%; text-align: center; margin-bottom: 18px; }
.mountain-crest { display: block; width: 240px; height: 56px; margin: 0 auto 4px; color: var(--gold); filter: drop-shadow(0 2px 2px #000); }
.wordmark-name { display: block; font-variant: small-caps; font-size: 150px; line-height: .84; letter-spacing: -.045em; color: var(--gold); background: linear-gradient(#fff1c0 12%, #c99545 48%, #fff1b8 54%, #b78034 96%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 2px #000b); }
.wordmark-subtitle { display: block; margin-top: 14px; text-transform: uppercase; font-size: 18px; line-height: 1.5; letter-spacing: .28em; white-space: nowrap; }
.ornament { display: flex; align-items: center; gap: 12px; margin: 12px 10px 0; }
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: rotate(180deg); }
.ornament i { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: inset 0 0 0 2px var(--base); background: var(--gold-dim); }
.intro { max-width: 650px; color: #e0e5d9; font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
/* The slot preserves document flow when the original actions reach the top. */
.primary-actions { --pin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; max-width: 558px; }
.primary-actions.is-pinned { position: fixed; top: var(--pin-top); left: var(--pin-left); width: var(--pin-width); z-index: 5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 12px 24px; font-size: 17px; line-height: 1.25; transition: filter .18s, box-shadow .18s; }
.primary { font-size: 23px; min-height: 66px; padding: 10px 24px; text-shadow: 0 2px 2px #000; }
.primary:hover, .play-button:hover { filter: brightness(1.2); box-shadow: inset 0 0 0 1px #f9d687, 0 0 22px #cfaa4933; }
.secondary:hover { background: #193332; }
.play-icon { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid var(--gold); filter: drop-shadow(1px 2px 1px #000); }
.primary-actions .button { width: 100%; min-height: 54px; padding: 8px 5px; border: 7px solid transparent; border-image: var(--copper-border) 14 / 7px / 0 stretch; background: linear-gradient(120deg, #10262be8, #061115f5); box-shadow: 0 5px 15px #0006; color: #ffdda0; font: 400 20px/1.25 var(--font-display); text-shadow: 0 2px 2px #000; }
.primary-actions .button.is-active { background: radial-gradient(ellipse at top, #3e623043, transparent 70%), linear-gradient(#173c2bec, #081b13f5), var(--walnut) center / 220px; }
.primary-actions .button:hover { filter: brightness(1.2); box-shadow: 0 5px 15px #0006; }

/* The same copper border and walnut substrate used by game UI surfaces. */
.game-frame, .zone-card { border: 5px solid transparent; border-image: var(--copper-border) 14 / 4px / 0 stretch; background: linear-gradient(#08171bef, #071519f7), var(--walnut) center / 280px; box-shadow: 0 8px 26px #0005; }
.adventure-intro { background: radial-gradient(ellipse at top, #17353380, transparent 70%), linear-gradient(#071416f2, #081518fa), var(--walnut) center / 500px; }
.ribbon-title { display: flex; align-items: center; text-align: center; color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.ribbon-title::before, .ribbon-title::after { content: ''; flex: 1; height: 4px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold-dim); background: var(--bronze) center / 150px; }
.ribbon-cartouche { position: relative; flex: 0 0 min(440px, 88vw); height: 48px; }
.ribbon-cartouche svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ribbon-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 18%; }
.feature-grid { width: min(1336px, 88vw); margin: 24px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { min-width: 0; padding: 13px 14px 14px; }
.feature-card h3 { font-size: clamp(19px, 1.65vw, 25px); margin: 0 12px 5px; }
.feature-card > p { color: #d9dfd3; font-size: 15px; line-height: 1.4; margin: 0 12px 14px; }
.feature-image, .demo-preview { display: block; position: relative; border: 1px solid #a4804b88; background: #102321; }
.feature-image img, .demo-preview img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.feature-image:hover { border-color: var(--gold); }
.play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 7px 15px; white-space: nowrap; font-size: 18px; }
.eyebrow, .tag, .chapter { color: var(--gold); font: 11px/1.6 var(--font-ui); letter-spacing: .16em; }
.eyebrow { margin-bottom: 16px; }
.section-shell { width: min(1336px, 88vw); margin: auto; padding: 60px 0; scroll-margin-top: 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 30px; }
.section-heading > p { max-width: 410px; color: var(--muted); font-size: 16px; }
.experience { border-top: 1px solid var(--line); }
.zone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.zone-card { display: block; min-width: 0; transition: filter .2s; }
.zone-card:hover { filter: brightness(1.12); }
.zone-image img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.screenshot { display: block; position: relative; background: #102321; border: 1px solid var(--line); }
.screenshot img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.zone-image { border-bottom: 1px solid var(--line); }
.zone-copy { padding: 20px; }
.chapter { font-size: 10px; margin-bottom: 6px; }
.zone-copy h3 { font-size: 30px; }
.zone-copy > p:last-child { color: var(--muted); font-size: 15px; margin-top: 10px; }
.text-link { display: inline-flex; gap: 15px; color: var(--gold); font-size: 16px; padding: 8px 0; }
.text-link:hover { color: #fff0d1; }
.learning { background: radial-gradient(ellipse at top right, #29443244, transparent 70%), #061215; border-block: 1px solid var(--line); }
/* Every large inline screenshot fits below the measured persistent actions. */
.learning-slideshow, .zone-panorama { width: min(1040px, 100%, 88vw, calc((100svh - var(--action-height, 54px) - 60px) * 16 / 9)); margin: auto; scroll-margin-top: calc(var(--action-height, 54px) + 28px); }
.learning-slideshow { position: relative; }
.slideshow-stage { border: 8px solid transparent; border-image: var(--copper-border) 14 / 8px / 0 stretch; background: #071416; }
.learning-slide { position: relative; }
.learning-slide[hidden], .slideshow-controls[hidden] { display: none; }
.learning-slide figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 45px 28px 22px; pointer-events: none; font: clamp(1.2rem, 2.4vw, 2rem)/1.3 var(--font-display); background: linear-gradient(transparent, #030d11ed); opacity: 0; transition: opacity .2s; }
.learning-slide:hover figcaption, .learning-slide:focus-within figcaption { opacity: 1; }
.slideshow-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px; pointer-events: none; }
.slideshow-controls button { background: linear-gradient(#183129e8, #071416f5), var(--walnut) center / 150px; color: var(--gold); border: 1px solid var(--gold-dim); min-width: 44px; min-height: 44px; padding: 5px 14px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.learning-slideshow:hover .slideshow-controls button, .learning-slideshow:has(:focus-visible) .slideshow-controls button { opacity: 1; pointer-events: auto; }
.slideshow-controls button:hover { background: #294337; }
.learning .section-heading { display: block; }
.adventure-words { font-size: clamp(17px, 3.4vw, 3.3rem); white-space: nowrap; }
.learning .section-heading > p { max-width: 740px; margin-top: 18px; }
.alpha-invitation { text-align: center; padding: 65px 6vw 70px; background: radial-gradient(ellipse at bottom, #35493166, transparent 70%); border-top: 1px solid var(--line); }
.alpha-invitation > p:not(.eyebrow) { margin: 22px auto 28px; color: var(--muted); }
.alpha-invitation .alpha-note { font: 11px/1.6 var(--font-ui); margin-bottom: 0; }
footer { padding: 28px 6vw; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
footer .brand { font-size: 23px; }

.downloads-page { background: linear-gradient(#081518d9, var(--base) 850px), url('/assets/BiH_background.webp') center top / 100% auto no-repeat, var(--base); }
.download-main { width: min(1180px, 88vw); margin: auto; padding: 55px 0 70px; }
.download-main h1 { font-size: clamp(3rem, 4.5vw, 5rem); }
.download-main .intro { margin-top: 22px; max-width: 630px; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 38px 0 55px; }
.download-grid article { padding: 28px; }
.download-grid h2 { margin: 12px 0; font-size: 29px; }
.download-grid p { color: var(--muted); font-size: 16px; }
.download-button { margin-top: 24px; font-size: 20px; }
.download-button[hidden] { display: none; }
.download-grid .platform-status { margin-top: 20px; color: var(--gold); font: 12px/1.6 var(--font-ui); }
.download-grid .download-detail { margin-top: 12px; font-size: 12px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-button { flex: 1 1 160px; flex-direction: column; align-items: start; gap: 4px; padding: 12px 18px; border: 1px solid var(--line); background: #0c171866; color: #d8d5c9; opacity: 1; cursor: not-allowed; }
.store-button small { font: 11px/1.5 var(--font-ui); color: var(--gold); }
.download-demo { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 5vw; padding-top: 42px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.download-demo > div > p:last-child { margin-top: 18px; color: var(--muted); }
.download-demo > div > .preview-note:last-child { margin-top: 10px; font-size: 13px; }
#windows-alpha { scroll-margin-top: 84px; }
.screenshot-dialog { max-width: min(96vw, 1920px); width: max-content; max-height: 96dvh; padding: 0 0 8px; border: 1px solid var(--gold-dim); background: #081215; color: var(--ink); box-shadow: 0 20px 100px #000a; }
.screenshot-dialog::backdrop { background: #030909ed; }
.screenshot-dialog img { max-height: calc(96dvh - 50px); width: auto; object-fit: contain; }
.dialog-close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid var(--gold-dim); background: #071416ee; color: var(--gold); cursor: pointer; display: grid; place-items: center; padding: 0; font: 30px/1 var(--font-display); }
.dialog-close:hover { background: #193332; }
.dialog-caption { text-align: center; font-size: 14px; padding-top: 10px; }
body:has(.screenshot-dialog[open]) { overflow: hidden; }

/* Read-only zone teasers share the public-page materials and action pair. */
.zone-page { background: radial-gradient(ellipse at top, #26423c99, transparent 900px), var(--base); }
.zone-actions { position: fixed; top: 12px; left: var(--hero-inset); width: calc(100% - 2 * var(--hero-inset)); z-index: 5; }
.zone-heading.section-shell { padding-top: calc(var(--action-height, 54px) + 66px); padding-bottom: 32px; }
.zone-back-link { font-size: 14px; margin-bottom: 24px; padding: 0; }
.zone-heading h1 { font-size: clamp(64px, 8vw, 120px); color: var(--gold); }
.zone-subtitle { margin-top: 14px; font-size: clamp(22px, 3vw, 34px); }
.zone-panorama { border: 7px solid transparent; border-image: var(--copper-border) 14 / 7px / 0 stretch; }
.zone-story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 7vw; }
.zone-story h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 22px; }
.zone-story-text { color: #e0e5d9; font-size: 21px; line-height: 1.8; white-space: pre-line; }
.zone-encounters { padding: 26px; align-self: start; }
.zone-encounters h3 { font-size: 26px; }
.zone-enemies { list-style: none; padding: 0; margin: 20px 0 0; }
.zone-enemies li { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.zone-enemies small { color: var(--muted); font: 11px/1.8 var(--font-ui); text-transform: uppercase; }
.zone-quote { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--gold); font-size: 23px; font-style: italic; }
.zone-quote cite { display: block; margin-top: 12px; color: var(--muted); font: 12px/1.5 var(--font-ui); }
.zone-navigation.section-shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding-top: 0; }
.zone-navigation > a { color: var(--gold); padding: 20px 0; border-block: 1px solid var(--line); }
.zone-navigation > a:hover { color: #fff0d1; }
.zone-navigation small { display: block; color: var(--muted); font: 11px/1.6 var(--font-ui); text-transform: uppercase; }
.zone-navigation [rel='next'] { text-align: right; }
.zone-home { text-align: center; }
.zone-error.section-shell { padding-top: calc(var(--action-height, 54px) + 66px); }
.zone-error[hidden], .zone-content[hidden] { display: none; }
@media (max-width: 1100px) {
    :root { --hero-inset: 3vw; }
    .hero-copy { width: 650px; }
    .feature-grid, .zone-grid { gap: 15px; }
    .feature-card { padding: 12px 7px 7px; }
    .feature-card h3, .feature-card > p { margin-inline: 6px; }
    .feature-card > p { font-size: 14px; min-height: 58px; }
    .feature-card > p br { display: none; }
    .zone-copy { padding: 15px; }
}
@media (max-width: 800px) {
    .zone-story { grid-template-columns: 1fr; gap: 32px; }
    .hero-layout { padding-top: 19px; }



    .hero-art { background: linear-gradient(90deg, #061215ef, #07171a9c 60%, #0615193b), url('/assets/BiH_background.webp') 60% center / cover; }
    .hero-copy { width: 100%; }
    .hero-actions { gap: 12px; }
    .primary { font-size: 21px; padding-inline: 18px; }
    .secondary { font-size: 15px; padding-inline: 18px; }
    .feature-grid { grid-template-columns: 1fr; max-width: 560px; }
    .feature-card { padding: 18px; }
    .feature-card h3 { font-size: 25px; }
    .feature-card > p { font-size: 16px; min-height: 0; margin-bottom: 18px; }
    .feature-card > p br { display: initial; }
    .section-heading { display: block; }
    .section-heading > p { max-width: 550px; margin-top: 20px; }
    .zone-grid { grid-template-columns: 1fr; gap: 22px; }
    .zone-card { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
    .zone-image { border-bottom: 0; }
    .zone-copy h3 { font-size: 27px; }
    .zone-copy > p:last-child { font-size: 14px; }
    .download-grid article { padding: 22px; }
    .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .primary-actions { grid-template-columns: 1fr; max-width: 306px; }
    .primary-actions .button { min-height: 62px; font-size: 22px; }
    .zone-story-text { font-size: 19px; }
    .zone-navigation.section-shell { grid-template-columns: 1fr 1fr; gap: 14px; }
    .zone-home { grid-column: 1 / -1; grid-row: 2; }
    .hero-layout { padding-bottom: 30px; min-height: 0; }
    .hero-wordmark { width: 306px; margin-bottom: 18px; }
    .wordmark-name { font-size: 96px; }
    .wordmark-subtitle { font-size: 11px; letter-spacing: .22em; }
    .mountain-crest { width: 180px; height: 44px; }
    .hero-actions { align-items: stretch; flex-direction: column; max-width: 306px; }
    .hero-actions .button { width: 100%; }
    .hero-art { background-position: 65% center; }
    .ribbon-title { font-size: 9px; letter-spacing: .16em; }
    .feature-grid { margin-top: 20px; gap: 20px; }
    .feature-card { padding: 14px; }
    .feature-card h3 { font-size: 23px; }
    .feature-card > p { font-size: 15px; }
    .feature-card > p br { display: none; }
    .section-shell { padding-block: 44px; }
    .section-heading { margin-bottom: 26px; }
    .zone-card { display: block; }
    .zone-copy { padding: 21px; }
    .learning-slide figcaption { padding: 25px 15px 12px; }
    .download-main { padding-block: 38px 50px; }
    .download-grid { gap: 24px; margin: 30px 0 38px; }
    .download-demo { grid-template-columns: 1fr; gap: 25px; padding-top: 32px; }
    .alpha-invitation { padding-block: 50px; }
    footer { flex-wrap: wrap; gap: 18px; }
    footer p { order: 3; width: 100%; }
    .screenshot-dialog { padding-inline: 5px; }
}
@media (min-width: 801px) and (max-height: 900px) {
    .primary-actions .button { min-height: 48px; font-size: 18px; padding-block: 6px; }
    .hero-layout { padding-block: 14px 20px; }
    .hero-wordmark { margin-bottom: 16px; }
    .wordmark-name { font-size: 140px; }
    .wordmark-subtitle { font-size: 16px; margin-top: 12px; }
    .mountain-crest { height: 54px; width: 230px; }
    .ornament { margin-top: 8px; }
    .feature-grid { width: min(1180px, 88vw); margin-top: 18px; }
    .feature-card { padding-block: 10px; }
    .feature-card h3 { font-size: 22px; }
    .feature-card > p { font-size: 14px; margin-bottom: 12px; }
}
@media (hover: none) { .learning-slide figcaption { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
