:root {
    color-scheme: dark;
    --page-scale: 1;
    --ink: #080b16;
    --surface: #101625;
    --text: #eee9e2;
    --muted: #aab3c2;
    --accent: #c15a5e;
    --line: #aeb7c81f;
    --line-strong: #aeb7c838;
    --cool: #9da9bd;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: 'Source Sans 3', sans-serif; font-size: 1.125rem; line-height: 1.65; }
body.viewer-open { overflow: hidden; }
::selection { background: #c15a5e; color: #080b16; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { font-family: 'Cinzel', serif; font-weight: 500; text-wrap: balance; }
h2 { font-size: 2.125rem; line-height: 1.25; }
h3 { font-size: 1.125rem; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { opacity: .3; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.page-width { width: min(100% - 3rem, 72.5rem); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 600; text-transform: uppercase; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--text); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; background: #080b16f5; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.5rem; }
.header-logo { display: block; width: 8.875rem; flex-shrink: 0; }
.header-logo img { width: 100%; height: 5.25rem; object-fit: contain; }
.desktop-nav { gap: 1.25rem; font-size: .9375rem; color: #c6cbd5; white-space: nowrap; }
.desktop-nav a, .footer-links a { transition: color .2s; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--accent); }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .75rem; padding: .75rem 1.375rem; border: 1px solid var(--line-strong); border-radius: .5rem; font-size: .9375rem; font-weight: 600; line-height: 1.4; transition: background .2s, border-color .2s; }
.button-primary { background: #b85458; color: #f7eee8; }
.button-primary:hover { background: #d06b68; border-color: #d06b68; }
.button-secondary { background: #080b16b8; color: var(--text); }
.button-secondary:hover { background: #161d2d; border-color: var(--cool); }
.header-cta { min-height: 2.625rem; padding: .6rem 1rem; color: var(--accent); background: transparent; }
.header-cta:hover { background: #c15a5e18; }
.mobile-nav { position: relative; }
.mobile-nav summary { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; list-style: none; color: var(--accent); border: 1px solid var(--line); border-radius: .1875rem; font-size: 1.35rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + 1rem); width: min(17.5rem, calc(100vw - 3rem)); padding: .5rem 1.25rem; background: #111827; border: 1px solid var(--line-strong); box-shadow: 0 .9375rem 2.5rem #0008; }
.mobile-nav nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav nav a:last-child { border-bottom: 0; }
.hero { --hero-barricade-width: min(38%, 46.5625rem); --hero-fire-offset: calc(100% - var(--hero-barricade-width) - 1% - 9.375rem); position: relative; display: grid; align-items: center; min-height: calc(100svh - 12rem); isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #0b1120 0%, #1b1019 56%, #080b16 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #c15a5e18, transparent 42%, #080b16 100%); }
.hero-scene-left, .hero-scene-right { will-change: transform; }
.hero-scene-left { transform: translateX(var(--hero-scene-left, 0px)); }
.hero-scene-right { transform: translateX(var(--hero-scene-right, 0px)); }
.hero-burnt-tree { position: absolute; left: 0; bottom: 0; z-index: 0; width: min(600px, 30vw); height: auto; max-width: none; pointer-events: none; }
.hero-barricade { position: absolute; right: 0; bottom: 0; z-index: 0; width: var(--hero-barricade-width); height: auto; pointer-events: none; }
.hero-fire { position: absolute; bottom: 0; left: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .85; mask-image: linear-gradient(to right, #000 calc(12% + var(--hero-fire-offset)), #0009 calc(40% + var(--hero-fire-offset)), transparent calc(78% + var(--hero-fire-offset))); }
.hero-barricade-smoke { mask-image: none; }
.hero-planks { position: absolute; bottom: 0; z-index: 0; width: min(80%, 7.5rem); height: auto; transform: translateX(-50%); pointer-events: none; }
.hero-planks.hero-scene-right { transform: translateX(calc(-50% + var(--hero-scene-right, 0px))); }
.hero-planks--back { left: calc(var(--hero-fire-offset) + 1% + 7.5rem + 50px); width: min(64%, 6rem); }
.hero-planks--front { left: calc(var(--hero-fire-offset) + 1% + 7.5rem + 80px); }
.hero-embers { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-embers--front { z-index: 2; }
.ember { --ember-x-start: -12vw; --ember-x-10: 0vw; --ember-x-20: 13vw; --ember-x-40: 38vw; --ember-x-60: 63vw; --ember-x-80: 88vw; --ember-x-90: 101vw; --ember-x-end: 115vw; --ember-sway: .75svh; --ember-sway-small: .5svh; --ember-brightness: .65; position: absolute; top: var(--ember-top); left: 0; width: calc(var(--ember-size) * var(--page-scale)); height: calc(var(--ember-size) * var(--page-scale)); opacity: 0; filter: blur(var(--ember-blur)); animation: ember-flight var(--ember-duration) linear var(--ember-delay) infinite; will-change: transform, opacity, filter; }
.ember img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 6px #f3a15b99); }
.hero-embers--back .ember img { filter: drop-shadow(0 0 4px #cf6f4b66); }
@keyframes ember-flight {
    0% { opacity: 0; filter: blur(var(--ember-blur)) brightness(var(--ember-brightness)); transform: translate3d(var(--ember-x-start), 0, 0) scale(.75); }
    10% { opacity: var(--ember-opacity); filter: blur(var(--ember-blur)) brightness(var(--ember-brightness)); transform: translate3d(var(--ember-x-10), calc(var(--ember-drop) * .1 - var(--ember-sway-small)), 0) scale(.9); }
    20% { opacity: var(--ember-opacity); filter: blur(var(--ember-blur)) brightness(calc(var(--ember-brightness) * .8)); transform: translate3d(var(--ember-x-20), calc(var(--ember-drop) * .2 - var(--ember-sway)), 0) scale(.85); }
    40% { opacity: var(--ember-opacity); filter: blur(var(--ember-blur)) brightness(calc(var(--ember-brightness) * .45)); transform: translate3d(var(--ember-x-40), calc(var(--ember-drop) * .4 + var(--ember-sway)), 0) scale(.7); }
    60% { opacity: var(--ember-opacity); filter: blur(var(--ember-blur)) brightness(calc(var(--ember-brightness) * .16)); transform: translate3d(var(--ember-x-60), calc(var(--ember-drop) * .6 - var(--ember-sway)), 0) scale(.6); }
    80% { opacity: var(--ember-opacity); filter: blur(var(--ember-blur)) brightness(0); transform: translate3d(var(--ember-x-80), calc(var(--ember-drop) * .8 + var(--ember-sway)), 0) scale(.5); }
    90% { opacity: var(--ember-opacity); filter: blur(var(--ember-blur)) brightness(0); transform: translate3d(var(--ember-x-90), calc(var(--ember-drop) * .9 - var(--ember-sway-small)), 0) scale(.5); }
    100% { opacity: 0; filter: blur(var(--ember-blur)) brightness(0); transform: translate3d(var(--ember-x-end), var(--ember-drop), 0) scale(.5); }
}
.hero-content { position: relative; z-index: 1; padding: 1rem 0 2rem; text-align: center; }
.hero-logo { width: min(90%, 38.25rem); margin: 0 auto; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 .5rem 1.125rem #0007); }
.hero-tagline { margin: -.1rem 0 1rem; font-family: 'Cinzel', serif; font-size: 2.25rem; font-weight: 500; line-height: 1.25; text-wrap: balance; }
.hero-mobile-lockup { display: inline-flex; align-items: center; gap: .75rem; padding: .55rem .9rem .55rem .6rem; border: 1px solid #c15a5e66; border-radius: .5rem; background: #c15a5e12; text-align: left; }
.hero-mobile-lockup-icon { display: grid; flex-shrink: 0; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid #c15a5e80; border-radius: .1875rem; color: #e09a91; font-size: 1.35rem; }
.hero-mobile-lockup-copy { display: grid; gap: .05rem; }
.hero-mobile-lockup-copy strong { color: #f0d6ce; font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.hero-mobile-lockup-copy span { color: #c5aeb3; font-size: .8125rem; line-height: 1.25; }
.hero-systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; margin-top: 1.5rem; text-align: left; }
.hero-system { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: .625rem; background: #0c122080; }
.hero-system-heading { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: .5rem; text-align: center; }
.hero-system-heading i { flex-shrink: 0; color: #c28789; font-size: 1.5rem; line-height: 1; }
.hero-system h2 { font-family: 'Source Sans 3', sans-serif; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; color: #c28789; }
.hero-system p { color: #bcc4d1; font-size: 1rem; line-height: 1.5; text-align: center; text-wrap: pretty; }
.intro { padding: 4.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #111a2a; }
.intro h2 { max-width: 27.5rem; }
.intro-description { align-self: center; max-width: 33.75rem; color: #bcc4d1; }
.intro-footer { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--cool); font-size: .9375rem; }
.intro-footer i { color: var(--accent); font-size: 1.125rem; }
.feature-section { position: relative; padding: 5.5rem 0; border-bottom: 1px solid var(--line); }
.feature-section:nth-of-type(even) { background: #0d1423; }
.feature-section#groups { background: #121a2b; }
.feature-section#crafting { background: #140a12; }
.feature-section#craft-together { background: #111b28; }
.feature-copy { min-width: 0; }
.chapter { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.chapter-number { display: inline-flex; gap: .85rem; align-items: center; font-family: 'Cinzel', serif; color: #8995aa; font-size: .875rem; }
.chapter-number::after { content: ''; display: block; width: 2rem; height: 1px; background: var(--line); }
.feature-description { margin-top: 1.5rem; color: var(--muted); text-wrap: pretty; }
.feature-detail { padding-left: 1.125rem; border-left: 1px solid var(--line-strong); }
.feature-detail h3 { font-family: 'Source Sans 3', sans-serif; font-size: 1.0625rem; font-weight: 600; }
.feature-detail p { margin-top: .3rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.device-pair { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; gap: 1.5rem; min-width: 0; }
.device-figure { width: min(100%, 17.375rem); min-width: 0; }
.feature-secondary { display: none; }
.phone { display: block; position: relative; width: 100%; padding: .3125rem; background: #080b14; border: 1px solid #778196; border-radius: 1.9375rem; box-shadow: inset 0 0 0 1px #252d3e, 0 1.5rem 2.5rem -1.125rem #000c; transition: border-color .25s; }
.phone:hover { border-color: var(--cool); }
.phone::before { content: ''; position: absolute; right: -.1875rem; top: 22%; width: .125rem; height: 2.375rem; border-radius: 0 .125rem .125rem 0; background: #778196; }
.phone::after { content: ''; position: absolute; top: .6875rem; left: calc(50% - .1875rem); width: .375rem; height: .375rem; border: 1px solid #30384b; border-radius: 50%; background: #05070e; pointer-events: none; }
.phone img { width: 100%; aspect-ratio: 6 / 13; object-fit: contain; background: #060912; border-radius: 1.5625rem; }
.device-figure figcaption { margin-top: 1.125rem; text-align: center; color: #aeb7c8; font-size: .8125rem; }
.time-section { padding: 4.5rem 0; background: #1b1117; color: var(--text); border-bottom: 1px solid var(--line); }
.time-section .eyebrow { color: #c28789; }
.time-section p:not(.eyebrow) { color: #c3b6be; }
.time-kicker { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.time-kicker .eyebrow { margin-bottom: 0; }
.time-icon { display: grid; flex-shrink: 0; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line-strong); color: #c28789; border-radius: 50%; font-size: 1.5rem; }
.shared-world { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.world-feature { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.world-feature-heading { display: flex; align-items: center; gap: .75rem; }
.world-feature-heading i { flex-shrink: 0; color: #c28789; font-size: 1.5rem; }
.world-feature-heading h3 { color: #c28789; line-height: 1.5; }
.world-feature p { margin-top: .75rem; color: var(--muted); font-size: 1rem; }
.gallery-section { padding: 5rem 0; background: #0e1624; border-bottom: 1px solid var(--line); }
.gallery-track { display: flex; gap: 1.5rem; margin-top: 2.5rem; padding: .5rem .375rem 1.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #72444f #1a2233; }
.gallery-track:not(.gallery-track--overflowing) { justify-content: center; }
.gallery-item { flex: 0 0 12rem; min-width: 0; scroll-snap-align: start; }
.gallery-link { display: block; position: relative; padding: .3125rem; border: 1px solid #778196; border-radius: 1.9375rem; background: #080b14; box-shadow: inset 0 0 0 1px #252d3e, 0 1.5rem 2.5rem -1.125rem #000c; transition: border-color .25s, transform .2s; }
.gallery-link:hover { border-color: var(--cool); transform: translateY(-.25rem); }
.gallery-link::before { content: ''; position: absolute; right: -.1875rem; top: 22%; width: .125rem; height: 2.375rem; border-radius: 0 .125rem .125rem 0; background: #778196; }
.gallery-link::after { content: ''; position: absolute; top: .6875rem; left: calc(50% - .1875rem); width: .375rem; height: .375rem; border: 1px solid #30384b; border-radius: 50%; background: #05070e; pointer-events: none; }
.gallery-link img { width: 100%; aspect-ratio: 6 / 13; object-fit: contain; background: #060912; border-radius: 1.5625rem; }
.gallery-item figcaption { margin-top: .875rem; color: #c0c7d4; font-size: .875rem; text-align: center; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: .1875rem; background: transparent; color: var(--accent); font-size: 1.375rem; }
.icon-button:not(:disabled):hover { background: #c15a5e18; }
.download-section { padding: 5.5rem 0; text-align: center; }
.download-section h2 { max-width: 40.625rem; margin-inline: auto; }
.download-section .muted { max-width: 33.75rem; margin-inline: auto; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-bottom: 2rem; color: var(--accent); }
.ornament::before, .ornament::after { content: ''; width: 4.375rem; height: 1px; background: var(--line); }
.store-badge { display: flex; align-items: center; gap: .875rem; width: 12.75rem; min-height: 4.25rem; padding: .75rem 1.25rem; text-align: left; background: #0a101c; border: 1px solid #626f82; border-radius: .9375rem; }
.store-badge i { font-size: 1.875rem; color: #eee9e2; }
.store-badge small { display: block; color: #aeb7c8; font-size: .6875rem; line-height: 1.3; }
.store-badge strong { display: block; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: #929caf; font-size: .875rem; }
.footer-brand { color: #dc8880; font-family: 'Cinzel', serif; font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.screenshot-viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 1.25rem; border: 0; color: var(--text); background: transparent; }
.screenshot-viewer::backdrop { background: #050817f5; }
.screenshot-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.viewer-header { width: min(100%, 68.75rem); margin-inline: auto; }
.viewer-header h2 { font-family: 'Source Sans 3', sans-serif; font-size: 1.125rem; }
.viewer-stage { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; justify-items: center; gap: 1rem; min-height: 0; width: min(100%, 68.75rem); margin-inline: auto; }
.viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 10rem); object-fit: contain; }
.viewer-count { text-align: center; color: #bcc3d1; font-size: .875rem; }
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal-pending { opacity: 0; transform: translateY(1.375rem); }

@media (min-width: 640px) {
    h2 { font-size: 2.625rem; }
    .hero-tagline { font-size: 2.625rem; }
    .device-pair { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: 1.5rem; }
    .device-pair--single { grid-template-columns: minmax(0, 1fr); }
    .feature-secondary { display: block; }
    .gallery-item { flex-basis: 13.5rem; }
}

@media (max-width: 767px) {
    .hero-fire { opacity: .65; }
    .hero-embers--back .ember:not(:nth-child(2)):not(:nth-child(6)),
    .hero-embers--front .ember:not(:nth-child(3)):not(:nth-child(7)) { display: none; }
    .hero-embers .ember { --ember-sway: .25svh; --ember-sway-small: .15svh; }
    .hero-systems { grid-template-columns: 1fr; grid-auto-flow: row; gap: .75rem; padding-bottom: 0; overflow: visible; scroll-snap-type: none; }
    .hero-system { padding: .875rem; }
    .hero-system-heading { margin-bottom: .625rem; }
    .hero-system p { font-size: .88rem; }
}

@media (min-width: 1024px) {
    .feature-reversed .feature-copy { order: 2; }
    .feature-reversed .device-pair { order: 1; }
    .feature-reversed .device-pair:not(.device-pair--single) { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); }
    .feature-reversed .device-pair .feature-secondary { order: -1; }
    .feature-section { padding: 6rem 0; }
    .feature-copy h2 { max-width: 32.5rem; font-size: 2.875rem; }
    .intro { padding: 5rem 0; }
    .hero-logo { max-width: 38.25rem; }
    .gallery-section { padding-block: 6.5rem; }
    .gallery-section > .page-width { width: calc(100% - 3rem); max-width: none; }
    .gallery-header { position: relative; justify-content: center; text-align: center; }
    .gallery-header > div:first-child { margin-inline: auto; }
    .gallery-header #gallery-controls { position: absolute; right: 0; bottom: 0; }
    .gallery-item { flex-basis: 17.5rem; }
}

@media (max-width: 639px) {
    .page-width { width: calc(100% - 2.5rem); }
    .header-inner { min-height: 4.625rem; }
    .header-logo { width: 7rem; }
    .header-logo img { height: 4.375rem; }
    .header-cta { padding: .6rem .75rem; font-size: .8125rem; }
    .hero { --hero-barricade-width: min(47%, 46.5625rem); min-height: calc(100svh - 12rem); }
    .hero-burnt-tree { width: min(600px, 37vw); }
    .hero-content { padding-top: .75rem; padding-bottom: 1.5rem; }
    .hero-logo { max-width: 13.5rem; }
    .hero-tagline { font-size: 1.9375rem; }
    .hero-systems { margin-top: 1rem; }
    .hero-actions { gap: .75rem; margin-top: 1.25rem; }
    .hero-actions .button { padding-inline: 1rem; font-size: .875rem; }
    .intro, .feature-section, .shared-world, .gallery-section, .download-section { padding-block: 3.75rem; }
    .viewer-stage { grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; gap: .375rem; }
    .viewer-stage .icon-button { width: 2.25rem; height: 2.75rem; }
    .screenshot-viewer { padding: .75rem; }
    .viewer-stage img { max-height: calc(100dvh - 9rem); }
}

@media (max-width: 399px) {
    .header-logo { width: 6rem; }
    .header-cta i { display: none; }
    .hero-content { padding-top: .5rem; padding-bottom: 1rem; }
    .hero-logo { max-width: 10.125rem; }
    .hero-tagline { font-size: 1.2rem; }
    .hero-actions .button { padding-inline: .75rem; font-size: .8125rem; }
    .intro { padding-top: 1rem; }
}

@media (max-height: 800px) and (min-width: 640px) {
    .hero-logo { max-width: 18rem; }
    .hero-content { padding-top: .5rem; padding-bottom: 1.5rem; }
    .hero-tagline { font-size: 2.125rem; }
    .hero-system { padding: 1rem; }
    .hero-system p { font-size: .9375rem; }
    .hero-actions { margin-top: 1.25rem; }
    .intro { padding-top: 1.5rem; }
}

@media (min-width: 2400px) {
    :root { --page-scale: 1.25; font-size: 125%; }
}

@media (min-width: 3600px) {
    :root { --page-scale: 1.5; font-size: 150%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal-pending { opacity: 1; transform: none; }
}
