@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #100e14;
  --panel: #18151e;
  --panel-deep: #14111a;
  --ink: #f4eadd;
  --copy: #d0c5d3;
  --muted: #b3a4bd;
  --gold: #e4bc7b;
  --line: #453747;
  --violet: #c0a2e5;
  --display: Cinzel, Georgia, serif;
  --text: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.65 var(--text); color: var(--copy); background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--gold); }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
figure, dl, dd { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); font-weight: 650; line-height: 1.1; }
h2 { font-size: clamp(2.15rem, 4.75vw, 4.5rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.2rem, 2.15vw, 1.8rem); }
p { margin: .75rem 0; }
[id] { scroll-margin-top: 6rem; }
.shell { width: min(1250px, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; transform: translateY(-165%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.top { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid #453747; background: #100e14f5; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 750 1.15rem var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.masthead nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.75rem, 2.75vw, 2.6rem); }
.masthead nav a, .footer-links a { text-decoration: none; color: var(--copy); font-size: .85rem; font-weight: 600; }
.masthead nav a:hover, .footer-links a:hover { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 44px; padding: .65rem 1.2rem; border: 1px solid #9d744a; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 700; cursor: pointer; }
.button:hover { border-color: #f4dba1; }
.button.primary { color: #1b1012; background: linear-gradient(125deg,#f2d390,#c68c55); }
.button.primary:hover { background: #f2d390; }
.button.outline { background: #17111ccc; color: #f2d7ae; }
.button:disabled { cursor: wait; opacity: .65; }
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 75svh, 760px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #201529; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#100d15 2%,#100d15ec 19%,#100d1579 58%,#100d151a 100%),linear-gradient(0deg,#100d15 0%,transparent 49%); }
.hero-body { padding-block: 5.5rem; }
.kicker, .eyebrow { color: var(--gold); text-transform: uppercase; font-size: .72rem; line-height: 1.45; font-weight: 750; letter-spacing: .15em; margin: 0 0 .55rem; }
.hero h1 { font-size: clamp(4rem, 10vw, 9.7rem); line-height: .88; font-weight: 700; letter-spacing: -.06em; text-shadow: 0 4px 40px #0e0917; }
.hero h1 small { display: block; font-size: .33em; line-height: 1.18; letter-spacing: .09em; color: #ecd3aa; margin-top: .48em; }
.hero .kicker { margin-bottom: 1.3rem; }
.lede { color: #eee3f1; font-size: clamp(1rem, 2.15vw, 1.28rem); max-width: 28rem; margin: 1.5rem 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 1.25rem 0 0; color: #e1cedd; font-size: .77rem; }
.hero-note span + span::before { content: '·'; color: var(--gold); margin-right: .75rem; }
.art-credit { position: absolute; bottom: 1rem; right: 1.3rem; color: #e4d4e6; font-size: .7rem; background: #17111ddb; padding: .2rem .5rem; }
.statbar { background: #17121d; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 1.2rem; }
.stats > div { text-align: center; padding: .45rem .5rem; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--gold); font: 650 clamp(1.4rem, 3vw, 2.2rem) var(--display); }
.stats dd { color: var(--copy); font-size: .82rem; }
.section { padding-block: clamp(3.2rem, 7vw, 7.5rem); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head > p:not(.kicker) { max-width: 39rem; }
.section-head .concept-note { color: var(--violet); font-size: .77rem; margin-top: .5rem; }
.jump-nav { display: flex; gap: .65rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.jump-nav a { border: 1px solid var(--line); padding: .3rem .65rem; font-size: .8rem; color: #e9d2b7; text-decoration: none; }
.jump-nav a:hover { border-color: var(--gold); }
.mode-grid, .codex-grid, .release-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.mode-card, .portrait-card, .boss-card, .release-card, .roster, details { border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.card-copy { padding: clamp(1rem,2.2vw,1.5rem); }
.card-copy p:last-child { margin-bottom: 0; }
.media-open { display: block; position: relative; width: 100%; padding: 0; background: #20182a; color: var(--ink); border: 0; text-align: left; overflow: hidden; cursor: zoom-in; }
.media-open:focus-visible { outline-offset: -4px; z-index: 1; }
.media-open img { width: 100%; aspect-ratio: 2/1; object-fit: cover; transition: transform .25s ease; }
.media-open:hover img { transform: scale(1.035); }
.expand-icon { position: absolute; right: .7rem; top: .65rem; padding: .15rem .46rem; color: var(--ink); background: #121018e6; border: 1px solid #bfa47276; }
.game-view { position: relative; }
.mock-hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .875rem; padding: .4rem .75rem; color: #efe1da; background: linear-gradient(90deg,#100d15f5,#100d158c); border-top: 1px solid #9674486e; font-size: .73rem; pointer-events: none; }
.mock-hud strong { font-family: var(--display); color: var(--gold); }
.reward { border-top: 1px solid var(--line); padding-top: .75rem; font-size: .89rem; }
.reward strong { color: var(--gold); margin-right: .25rem; }
.codex-grid { margin-top: 1.25rem; align-items: start; }
details { padding: .85rem 1.15rem; }
summary { cursor: pointer; font-weight: 650; color: var(--ink); }
details li { padding: .45rem 0; }
details li span, details li small { display: block; color: var(--muted); }
.faction-section { background: radial-gradient(ellipse at 75% 0,#291b37 0%,transparent 51%),#15111b; border-block: 1px solid var(--line); }
.portrait-grid, .boss-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.portrait-card .media-open img { aspect-ratio: 1.16; object-position: 50% 36%; }
.portrait-card .epithet { margin: .27rem 0 .65rem; color: var(--gold); }
.boss-card .media-open img { aspect-ratio: 1.8; }
.roster { margin-top: 2rem; }
.roster-head { padding: 1.25rem; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.roster-head p:last-child { margin-bottom: 0; }
.filters, .filters label { display: flex; gap: .6rem; }
.filters { flex-wrap: wrap; }
.filters label { flex-direction: column; color: var(--muted); font-size: .81rem; gap: .25rem; }
select, input:not([type="checkbox"]) { padding: .55rem .6rem; color: var(--ink); background: #100d16; border: 1px solid #6b566f; }
.roster-count { padding: 0 1.25rem; color: var(--violet); font-size: .8rem; }
.table-scroll { overflow: auto; max-height: 26rem; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
thead { position: sticky; top: 0; z-index: 1; background: #211a29; }
th, td { padding: .52rem .7rem; border-top: 1px solid var(--line); }
thead th { color: var(--gold); font-size: .77rem; }
tbody th { color: var(--ink); font-weight: 600; }
tbody tr:nth-child(even) { background: #1c1722; }
.tier.mythic { color: #f4acbb; } .tier.legendary { color: #f0c987; } .tier.epic { color: #d1adff; }
.release-section { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 15% 18%,#2a1d30,transparent 66%),#15111a; }
.release-card { padding: 1.5rem; }
.forge-preview { margin-top: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.forge-preview .download-meta { margin-bottom: 0; }
.platform-icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 1rem; }
.windows { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.windows i { background: currentColor; }
.android { display: grid; place-items: center; }
.android b { position: relative; width: 28px; height: 15px; background: currentColor; border-radius: 18px 18px 2px 2px; }
.android b::before, .android b::after { content: ''; position: absolute; top: -4px; width: 2px; height: 7px; background: currentColor; }
.android b::before { left: 4px; transform: rotate(-28deg); } .android b::after { right: 4px; transform: rotate(28deg); }
.faq { margin-top: 1.15rem; }
.shop, .signup { margin-top: 1.35rem; border: 1px solid var(--line); padding: clamp(1.15rem,3vw,2rem); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--panel-deep); }
.shop p:last-child, .signup p:last-child { margin-bottom: 0; }
.shop-seal { color: var(--gold); font-size: 3rem; line-height: 1; }
.signup form { display: grid; gap: .45rem; width: min(100%,29rem); }
.signup form input[type="email"] { min-width: 0; width: 100%; }
.consent { display: flex; align-items: baseline; gap: .4rem; color: var(--copy); font-size: .82rem; margin: .1rem 0; }
.consent input { accent-color: var(--gold); }
#signup-status { margin: 0; min-height: 1rem; font-size: .8rem; color: #d2e0b9; }
#signup-status[data-error] { color: #ffadbb; }
footer { border-top: 1px solid var(--line); }
.footer { padding-block: 1rem; flex-wrap: wrap; }
.legal { max-width: 760px; padding-block: 4rem; }
.legal h1 { font-size: clamp(2rem,5vw,3.5rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.5rem; }
#gallery { background: var(--panel-deep); color: var(--copy); border: 1px solid var(--line); padding: .85rem; width: min(900px,calc(100% - 2rem)); }
#gallery::backdrop { background: #09070bef; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.gallery-bar h2 { font-size: clamp(1.1rem,2.5vw,1.6rem); }
.gallery-bar button { background: var(--panel); border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; cursor: pointer; font-size: 1.5rem; }
#gallery img { width: 100%; max-height: 74svh; object-fit: contain; }
#gallery > p { margin: .4rem 0 0; font-size: .8rem; }
@media(max-width: 890px) {
  .shell { width: min(100% - 2.25rem,1250px); }
  .hero { min-height: 520px; }
  .portrait-grid,.boss-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 635px) {
  [id] { scroll-margin-top: 6.75rem; }
  .masthead { min-height: unset; padding-block: .45rem; flex-wrap: wrap; gap: .4rem .55rem; }
  .masthead nav { order: 3; width: 100%; min-height: 32px; gap: .6rem 1rem; }
  .header-link { padding: .3rem .6rem; min-height: 36px; }
  .hero { min-height: 540px; }
  .hero > img { object-position: 68% 50%; }
  .hero::after { background: linear-gradient(0deg,#100d15 4%,#100d15c5 54%,#100d1532 90%),linear-gradient(90deg,#100d1575,transparent); }
  .hero-body { align-self: end; padding-block: 3.5rem; }
  .hero h1 { font-size: clamp(3.35rem,14vw,5.45rem); }
  .hero-note { gap: .2rem .5rem; }
  .hero-note span + span::before { margin-right: .4rem; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: .35rem; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mode-grid,.codex-grid { grid-template-columns: minmax(0,1fr); }
  .release-grid { gap: .6rem; }
  .release-card { padding: .85rem; }
  .release-card h3 { font-size: 1.15rem; }
  .portrait-grid,.boss-grid { gap: .65rem; }
  .portrait-card .card-copy,.boss-card .card-copy { padding: .75rem; }
  .portrait-card .card-copy p,.boss-card .card-copy p { font-size: .84rem; }
  .portrait-card .card-copy .kicker,.boss-card .card-copy .kicker { font-size: .64rem; letter-spacing: .06em; }
  table { min-width: 440px; }
  .shop-seal { display: none; }
}
@media(max-width: 420px) {
  .masthead nav { gap: .45rem .7rem; }
  .masthead nav a { font-size: .77rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; } }

.download-meta { color: var(--muted); font-size: .8rem; }
.entry-hero { min-height: 100svh; }
.entry-panel { width: min(100%, 30rem); margin-top: 2rem; padding: clamp(1rem, 4vw, 1.7rem); border: 1px solid var(--line); background: #18151ef2; }
.entry-panel h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.entry-panel form { display: grid; gap: .55rem; }
.entry-panel input[type="email"] { width: 100%; min-height: 44px; padding: .55rem; background: var(--panel-deep); color: var(--ink); border: 1px solid var(--line); }
.entry-panel form p { margin: 0; font-size: .86rem; }
#site-signup-status { color: #ffadbb; }
#site-signup-status:empty { display: none; }
.checkout-status h2 { margin-top: .35rem; }
.price-display { margin-top: 2rem; padding: 0 1.25rem 1rem; border: 1px solid var(--line); }
.price-display select { display: block; margin-top: .3rem; width: 100%; max-width: 20rem; }
.price-estimate { display: block; color: var(--muted); }
.developer-credit { color: var(--muted); font-size: .82rem; }
.developer-credit strong { color: var(--gold); }
