:root {
  color-scheme: dark;
  --ink: #071018;
  --panel: #0d1b24;
  --panel-soft: #122732;
  --line: #28444e;
  --text: #edf2e9;
  --muted: #9eb1ad;
  --gold: #efcf79;
  --green: #8cd59b;
  --teal: #75ddd0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}
.site-brand img { display: block; width: 220px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: #dce8e2; font-size: .86rem; font-weight: 750; text-decoration: none; }
.site-header nav a:hover { color: #fff1b3; }
.site-header .nav-play { padding: 11px 18px; color: #10221f; background: var(--gold); border-radius: 5px; }
.site-header .nav-play:hover { color: #071310; background: #ffe399; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: url("assets/marketing/asterhaven-title-screen-v1.png") center 42% / cover no-repeat; image-rendering: auto; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #050d13f5 0%, #071019d9 35%, #07101844 66%, #071018bb 100%), linear-gradient(0deg, var(--ink) 0%, transparent 25%); }
.hero-copy { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 70px auto 0; }
.hero-logo { display: none; width: min(520px, 88vw); }
.hero h1 { max-width: 720px; margin: 13px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 6.7rem); line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy > p:not(.eyebrow, .play-note) { max-width: 610px; margin: 0; color: #d0dad5; font-size: clamp(1.04rem, 2vw, 1.3rem); line-height: 1.65; }
.eyebrow { margin: 0; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border: 1px solid transparent; border-radius: 5px; font-size: .86rem; font-weight: 850; letter-spacing: .035em; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #102018; background: linear-gradient(135deg, #f5db8d, #d6a94b); box-shadow: 0 10px 30px #d5a84d2b; }
.button.secondary { color: #e7f0eb; background: #10212ad9; border-color: #48636a; }
.play-note { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: #9db0ab; font-size: .76rem; }
.play-note span { width: 7px; height: 7px; background: #68d88d; border-radius: 50%; box-shadow: 0 0 10px #68d88d; }

.intro, .journey, .store-links { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: center; padding: 100px 0 130px; }
.intro h2, .feature-section h2, .journey h2, .store-links h2 { margin: 13px 0 21px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.04; letter-spacing: -.03em; }
.intro p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.intro img { width: 100%; border: 1px solid #39515a; border-radius: 10px; box-shadow: 0 30px 70px #0008; }

.feature-section { padding: 110px max(20px, calc((100% - 1180px) / 2)) 125px; background: radial-gradient(circle at 50% 20%, #17323b, transparent 55%), #0b171e; border-block: 1px solid #1f3640; }
.feature-section > .eyebrow, .feature-section > h2 { text-align: center; }
.feature-section > h2 { margin-bottom: 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { min-height: 230px; padding: 28px; background: linear-gradient(145deg, #13262f, #0c1920); border: 1px solid var(--line); border-radius: 8px; box-shadow: inset 0 1px #ffffff0a; }
.feature-grid i { display: grid; place-items: center; width: 41px; height: 41px; color: #0a1716; background: linear-gradient(145deg, var(--teal), #5da7b5); border-radius: 6px; font-style: normal; font-size: 1.2rem; }
.feature-grid h3 { margin: 21px 0 10px; color: #f5e6b1; font-size: 1.08rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }

.journey { display: grid; grid-template-columns: 1fr .82fr; gap: 90px; padding: 125px 0; }
.journey ol { list-style: none; margin: 34px 0; padding: 0; counter-reset: road; }
.journey li { position: relative; min-height: 58px; padding: 0 0 27px 54px; counter-increment: road; }
.journey li::before { content: counter(road); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 34px; height: 34px; color: #102019; background: var(--gold); border-radius: 50%; font-weight: 900; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 1px; background: #405249; }
.journey li b, .journey li span { display: block; }
.journey li b { margin-bottom: 4px; color: #f1e6c5; }
.journey li span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.platforms { display: grid; gap: 12px; align-content: center; }
.platform { display: grid; grid-template-columns: 1fr auto; padding: 23px 25px; background: #0d1a22; border: 1px solid #253d47; border-radius: 8px; }
.platform small, .platform b, .platform span { display: block; }
.platform small { grid-column: 1 / -1; margin-bottom: 7px; color: #758c93; font-size: .62rem; font-weight: 850; letter-spacing: .15em; }
.platform b { font-size: 1.14rem; }
.platform span { margin-top: 4px; color: #83999f; font-size: .78rem; }
.platform a, .platform em { grid-column: 2; grid-row: 2 / 4; align-self: center; font-size: .76rem; font-style: normal; font-weight: 800; text-decoration: none; }
.platform a { color: var(--teal); }
.platform em { color: #72848a; }
.platform.live { border-color: #50745d; background: linear-gradient(135deg, #152a27, #0d1b22); }
.platform.live small { color: var(--green); }

.store-links { display: grid; grid-template-columns: .78fr 1.22fr; gap: 65px; align-items: center; padding: 75px 0; border-top: 1px solid #20333b; }
.store-links h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.store-links nav { display: grid; gap: 8px; }
.store-links nav a { display: grid; grid-template-columns: 1fr auto; gap: 5px 20px; padding: 16px 19px; background: #0e1d25; border: 1px solid #263d46; border-radius: 6px; text-decoration: none; }
.store-links nav a::after { content: "→"; grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--gold); }
.store-links nav a:hover { border-color: #63827e; background: #13272f; }
.store-links b { color: #e9eee9; font-size: .87rem; }
.store-links span { color: #809399; font-size: .72rem; }

.site-footer { padding: 60px max(20px, calc((100% - 1180px) / 2)) 35px; color: #778a90; background: #050b0f; border-top: 1px solid #1d2c32; text-align: center; }
.site-footer > img { width: 190px; opacity: .85; }
.site-footer p { margin: 9px 0 20px; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 23px; margin-bottom: 28px; }
.site-footer nav a { color: #b0bfbd; font-size: .75rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer small { font-size: .65rem; }

@media (max-width: 820px) {
  .site-header { width: calc(100% - 28px); padding: 15px 0; }
  .site-brand img { width: 170px; }
  .site-header nav a:not(.nav-play) { display: none; }
  .hero { min-height: 700px; }
  .hero-shade { background: linear-gradient(0deg, var(--ink), #071018a6 65%, #071018b8); }
  .hero-copy { width: calc(100% - 32px); margin-top: 120px; text-align: center; }
  .hero-copy .eyebrow { display: none; }
  .hero-logo { display: block; margin: 0 auto 30px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .hero-actions, .play-note { justify-content: center; }
  .intro, .journey, .store-links { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 40px; padding-block: 80px; }
  .intro img { grid-row: 1; }
  .feature-section { padding: 80px 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .journey { gap: 55px; }
}

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

/* Player guide and store support URL -------------------------------------- */
.guide-page { min-height: 100vh; background: radial-gradient(circle at 70% -10%, #18333c, transparent 35%), #071018; }
.guide-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 10px max(24px, calc((100% - 1180px) / 2)); background: #071018eb; border-bottom: 1px solid #20363f; backdrop-filter: blur(14px); }
.guide-header img { display: block; width: 205px; }
.guide-header nav { display: flex; gap: 20px; }
.guide-header nav a { color: #b9c9c6; font-size: .78rem; font-weight: 800; text-decoration: none; }
.guide-header nav a:last-child { color: var(--gold); }
.guide-shell { display: grid; grid-template-columns: 230px minmax(0, 780px); gap: 65px; width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 65px 0 100px; }
.guide-nav { position: sticky; top: 105px; align-self: start; display: grid; gap: 3px; padding: 18px; background: #0d1a22; border: 1px solid #253c45; border-radius: 8px; }
.guide-nav p { margin: 0 0 10px; color: var(--gold); font-size: .65rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.guide-nav a { padding: 9px 10px; color: #97aaa8; border-radius: 4px; font-size: .76rem; font-weight: 700; text-decoration: none; }
.guide-nav a:hover { color: #eff5ef; background: #162832; }
.guide-content { min-width: 0; }
.guide-title { padding-bottom: 55px; border-bottom: 1px solid #263b43; }
.guide-title h1 { margin: 12px 0 15px; font: 700 clamp(2.6rem, 6vw, 5.2rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.guide-title > p:not(.eyebrow) { max-width: 650px; color: #a8b9b5; font-size: 1.05rem; line-height: 1.7; }
.guide-title .button { margin-top: 12px; }
.guide-content > section { padding: 54px 0 12px; scroll-margin-top: 85px; }
.guide-content h2 { margin: 0 0 18px; color: #f1dfa7; font: 700 2rem/1.1 Georgia, "Times New Roman", serif; }
.guide-content p, .guide-content li { color: #a9b9b6; font-size: .94rem; line-height: 1.75; }
.guide-content a { color: var(--teal); }
.guide-content ol, .guide-content ul { padding-left: 1.3rem; }
.guide-content li { margin: 8px 0; }
.guide-content kbd { display: inline-block; min-width: 25px; margin: 1px 2px; padding: 3px 6px; color: #e9e1c6; background: #0a141a; border: 1px solid #3a4e55; border-bottom-color: #6c7b7b; border-radius: 4px; font: 750 .7rem ui-monospace, monospace; text-align: center; }
.guide-note { margin-top: 22px; padding: 16px 18px; color: #aebfba; background: #12231f; border-left: 3px solid var(--green); font-size: .84rem; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 23px 0; }
.guide-grid > div { padding: 17px; background: #0c1920; border: 1px solid #263a42; border-radius: 6px; }
.guide-grid b, .guide-grid span { display: block; }
.guide-grid b { margin-bottom: 6px; color: #e9e1c6; font-size: .82rem; }
.guide-grid span { color: #8fa3a2; font-size: .78rem; line-height: 1.6; }
.guide-grid.troubleshooting > div { min-height: 150px; }
.contact-card { margin-top: 45px; padding: 35px !important; background: linear-gradient(145deg, #142923, #0d1d23); border: 1px solid #426051; border-radius: 9px; }
.contact-card h2 { margin-top: 9px; }
.support-email { display: inline-block; margin: 5px 0 10px; color: #ffe49a !important; font-size: 1.2rem; font-weight: 800; }
.contact-card .response-note { color: #788d88; font-size: .75rem; }
.guide-footer { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 60px; padding-top: 20px; border-top: 1px solid #24373e; }
.guide-footer a { color: #8fa4a5; font-size: .75rem; text-decoration: none; }

@media (max-width: 820px) {
  .guide-header { padding-inline: 16px; }
  .guide-header img { width: 160px; }
  .guide-shell { grid-template-columns: 1fr; width: calc(100% - 32px); padding-top: 40px; }
  .guide-nav { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 25px !important; }
}
