:root {
  color-scheme: dark;
  --paper: #fbf3e7;
  --ink: #171117;
  --muted: #c4b6b9;
  --line: #473842;
  --gold: #ffc46b;
  --ember: #ffad72;
  --base: #171218;
  --panel: #211820;
  --focus: #ffd991;
  font-family: "Segoe UI", system-ui, sans-serif;
  accent-color: var(--gold);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 240px; background: var(--base); color: var(--paper); font-size: 1rem; line-height: 1.58; }
button, select, input { font: inherit; }
a { color: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.shell { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .625rem 1rem; transform: translateY(-160%); color: var(--ink); background: var(--gold); border-radius: .3rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #151017; border-bottom: 1px solid #392a35; }
.header-content, .footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-content { min-height: 4.65rem; }
.studio { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--paper); white-space: nowrap; letter-spacing: -.025em; }
.studio img { border-radius: 8px; object-fit: cover; }
.studio strong { font-weight: 750; }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav a, .text-button { font-size: .92rem; text-decoration: none; white-space: nowrap; transition: color .16s ease; }
nav a:hover, .text-button:hover { color: var(--gold); }
.text-button { padding: .5rem 0; border: 0; background: none; cursor: pointer; }
.library-trigger { border-bottom: 1px solid #91735e; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #211823; }
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #17101ce8, #17101cc4 32%, #17101c19 72%), linear-gradient(0deg, #171218 3%, #17121800 39%); }
.hero-layout { position: relative; display: flex; min-height: clamp(34rem, 54vw, 43rem); align-items: center; padding-block: 4.1rem 4.7rem; }
.hero-copy { width: min(31rem, 66%); }
.status { display: inline-flex; align-items: center; gap: .5rem; min-height: 1.85rem; padding: .23rem .72rem; border: 1px solid #e4af7b58; border-radius: 999px; background: #2c182bcc; color: #ffe3c0; font-size: .78rem; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
.windows-status::before { width: .38rem; height: .38rem; border-radius: 50%; background: var(--gold); content: ""; }
.wordmark { width: min(24rem, 100%); height: auto; margin: 1.05rem 0 1.1rem -.2rem; filter: drop-shadow(0 7px 20px #19091985); }
.hero-tagline { color: var(--paper); font: 500 clamp(1.75rem, 3.2vw, 2.85rem)/1.04 Georgia, serif; letter-spacing: -.045em; text-wrap: balance; }
.hero-description { margin: 1rem 0 1.6rem; max-width: 24rem; color: #e6dadd; }
.hero-location { position: absolute; right: 0; bottom: 1.9rem; display: flex; align-items: center; gap: .55rem; color: #f3e1cf; font-size: .84rem; text-shadow: 0 2px 4px #110a11; }
.hero-location span { display: inline-block; width: .45rem; height: .45rem; border: 1.5px solid var(--gold); border-radius: 50%; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; max-width: 100%; padding: .69rem 1.24rem; border: 1px solid transparent; border-radius: .45rem; text-decoration: none; text-align: center; font-weight: 700; cursor: pointer; transition: color .17s ease, border-color .17s ease, background-color .17s ease, box-shadow .17s ease; }
.primary-button { background: var(--gold); color: #27171e; box-shadow: 0 6px 15px #130a1661; }
.primary-button:hover:not(:disabled) { background: #ffd68e; box-shadow: 0 8px 20px #160c176c; }
.primary-button:disabled { border-color: #58424b; background: #352a33; color: #baa9b2; box-shadow: none; cursor: not-allowed; }
.secondary-button { border-color: #866359; background: #282028; color: var(--paper); }
.secondary-button:hover:not(:disabled) { border-color: var(--gold); background: #372a32; }

.shop { padding-block: 2.9rem 5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.6rem; }
.section-heading h2 { font: 500 clamp(2.35rem, 4.3vw, 3.8rem)/1.02 Georgia, serif; letter-spacing: -.055em; }
.section-heading p { margin-top: .55rem; color: var(--muted); }
.country-field { flex: 0 0 min(100%, 14.5rem); }
.country-field label, #access-form label, .delivery-followup label { display: block; margin-bottom: .35rem; color: #f0dfe0; font-size: .875rem; font-weight: 650; }
.select-wrap { position: relative; }
.select-wrap::after { position: absolute; top: 46%; right: 1rem; width: .5rem; height: .5rem; border: solid #e9c6ac; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-35%); pointer-events: none; content: ""; }
.country-field select, .access-code, #delivery-email { width: 100%; min-height: 3rem; padding: .53rem .85rem; border: 1px solid #64515c; border-radius: .35rem; background: #211a21; color: var(--paper); }
.country-field select { display: block; appearance: none; padding-right: 2.35rem; }

.editions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.15rem; }
.edition { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(1.25rem, 3.4vw, 2rem); border: 1px solid var(--line); border-radius: .82rem; background: var(--panel); }
.windows-edition { border-color: #a26c52; background: radial-gradient(ellipse at 85% 1%, #41282879, transparent 70%), #251b24; }
.android-edition { background: radial-gradient(ellipse at 90% 10%, #50304937, transparent 65%), #211820; }
.edition-type { display: flex; align-items: center; gap: .65rem; }
.edition-type h3 { font-size: 1.35rem; font-weight: 740; letter-spacing: -.035em; }
.edition-type svg { width: 1.65rem; height: 1.65rem; color: var(--gold); }
.android-edition .edition-type svg { color: #f199a1; }
.edition-status { margin: .2rem 0 1.4rem; color: var(--muted); font-size: .94rem; }
.price-row { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1.8rem; margin-bottom: .9rem; }
.price-label { display: block; color: #d5c2c9; font-size: .82rem; }
.price { display: block; color: #ffe9c3; font-size: clamp(2.55rem, 4.9vw, 3.6rem); line-height: 1.04; letter-spacing: -.065em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.standard-price { margin-bottom: .2rem; }
.standard-price s { display: block; color: #e5cadd; font-size: 1.15rem; }
.coming-soon { margin: .44rem 0 .95rem; color: #f7caaf; font: 500 clamp(1.95rem, 3.4vw, 2.7rem)/1.1 Georgia, serif; letter-spacing: -.05em; }
.edition-description { max-width: 28rem; margin-bottom: 1.25rem; color: #d5c7ce; }
.edition-description strong { color: var(--paper); font-weight: 650; }
.release-meta { margin: -.55rem 0 1.1rem; color: #efd7c7; font-size: .9rem; }
.buy-button, .android-edition .button { margin-top: auto; }
.store-message { margin-top: .65rem; min-height: 1.35rem; color: #e3cdd4; font-size: .88rem; }
.store-message:empty { display: none; }

.checkout-main { max-width: 62rem; padding-block: clamp(1.4rem, 4vw, 3rem) clamp(2.75rem, 7vw, 5rem); }
.checkout-back { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; margin-bottom: .75rem; color: #efd7c7; font-weight: 620; text-decoration: none; }
.checkout-back:hover { color: var(--gold); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.15rem; }
.checkout-art { position: relative; isolation: isolate; display: grid; align-items: end; justify-items: center; min-height: 12rem; overflow: hidden; border-radius: .82rem; background: #251a2b; }
.checkout-art::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg, #17101bed, #17101b00 72%); }
.checkout-scene { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.checkout-wordmark { width: min(76%, 18rem); height: auto; margin: 1.15rem; filter: drop-shadow(0 6px 18px #190919b8); }
.checkout-summary h1 { font: 500 clamp(2rem, 4.5vw, 3.15rem)/1.04 Georgia, serif; letter-spacing: -.048em; }
.checkout-summary .country-field { flex: none; width: 100%; margin-bottom: 1.15rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-content { padding-block: 1.65rem 2.2rem; color: #d9c9cf; }
.footer-content > span { color: #f6e9e4; font-weight: 650; }
.footer-content nav { flex-wrap: wrap; column-gap: 1.25rem; row-gap: .5rem; }

#access-form, .delivery-followup { width: 100%; }
.access-code { font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.library-message { margin-top: .65rem; color: #e4d4dc; font-size: .92rem; }
.delivery-followup { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid #644955; }
.delivery-followup h2 { margin-bottom: .65rem; font-size: 1.13rem; line-height: 1.35; }
.delivery-followup .button { margin-top: .75rem; }
.delivery-confirmation { padding: 1rem; border: 1px solid #817454; border-radius: .5rem; background: #332924; }
.delivery-confirmation p { color: #e9d8cd; }

@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.4rem); }
  nav { gap: 1rem; }
  .hero-copy { width: min(26rem, 72%); }
  .hero-layout { min-height: 35rem; }
  .editions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 36rem) {
  .header-content { min-height: 3.9rem; }
  .header-content nav a:not(.library-trigger) { display: none; }
  .header-content .studio img { width: 34px; height: 34px; }
  .studio { white-space: normal; gap: .55rem; line-height: 1.2; }
  .hero-art { object-position: 70% top; height: 80%; }
  .hero::before { background: linear-gradient(90deg, #190f1b75, #190f1b00 85%), linear-gradient(0deg, #171218 9%, #171218 33%, #17121891 63%, #17121805 91%); }
  .hero-layout { min-height: 34.4rem; align-items: end; padding-top: 10.6rem; padding-bottom: 3.7rem; }
  .hero-copy { width: min(27rem, 100%); }
  .wordmark { width: min(16.25rem, 92%); margin-block: .68rem .78rem; }
  .hero-tagline { font-size: clamp(1.65rem, 6.5vw, 2.05rem); text-wrap: initial; }
  .hero-description { margin: .7rem 0 1rem; max-width: 24rem; font-size: .97rem; }
  .hero-location { bottom: 1rem; left: 0; right: auto; }
  .shop { padding-block: 2rem 3.5rem; }
  .section-heading { flex-direction: column; align-items: stretch; gap: 1rem; }
  .country-field { flex: auto; max-width: 100%; }
  .editions { grid-template-columns: 1fr; gap: .9rem; }
  .checkout-layout { grid-template-columns: 1fr; gap: .9rem; }
  .checkout-art { min-height: 9.75rem; }
  .checkout-wordmark { width: min(54%, 11rem); margin: .65rem; }
  .checkout-summary .buy-button { width: 100%; }
  .delivery-actions .button, .delivery-followup .button { width: 100%; }
  .footer-content { flex-direction: column; align-items: start; gap: .75rem; padding-bottom: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
