/* Emberwrought: the game's own palette and type (style.css in the game), set for a page that descends from town to void. */
:root {
  --bg: #070506; --ink: #ece2d0; --dim: #a89a86; --gold: #d8b46a; --gold2: #f0d8a0; --ember: #e07a2a; --ember2: #ff9a4a; --blood: #8c1d1a;
  --line: rgba(216, 180, 106, 0.28); --panel: #120d0c; --field: #0b0808;
  --serif: Spectral, Georgia, serif; --display: Cinzel, Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: #4a3424 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: #4a3424; border: 2px solid var(--bg); border-radius: 6px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.65 var(--serif); overflow-x: hidden; caret-color: var(--ember2); }
::selection { background: var(--ember); color: #120806; }
a { color: var(--gold2); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ember2); outline-offset: 3px; }
h1, h2, h3, .brand, .btn, nav, .lv, .gauge, legend, summary, dt { font-family: var(--display); }
h2 { color: var(--gold2); font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; letter-spacing: 0.01em; margin: 0 0 20px; font-weight: 700; text-wrap: balance; }
h3 { color: var(--gold2); letter-spacing: 0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.center { text-align: center; } .dim { color: var(--dim); } .small { font-size: 14px; }
.lead { max-width: 62ch; margin: 0 auto 8px; color: #d6cab6; font-size: 19px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* nav */
nav.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px 28px;
  background: linear-gradient(180deg, rgba(7,5,6,0.8), rgba(7,5,6,0)); transition: background .3s, box-shadow .3s; }
nav.top.solid { background: rgba(7,5,6,0.94); box-shadow: 0 1px 0 var(--line); }
.brand { color: var(--gold); text-decoration: none; font-weight: 900; letter-spacing: 0.25em; text-transform: uppercase; font-size: 14px; }
nav .links { display: flex; align-items: center; gap: 22px; }
nav .links a { color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
nav .links a:hover { color: var(--gold2); }
nav .pill { border: 1px solid var(--ember); color: var(--gold2) !important; padding: 7px 14px; }
nav .pill:hover { background: var(--ember); color: #160a05 !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #170b05; background: linear-gradient(180deg, #f8cf7a, #d4782a); border: 1px solid #ffe2a8; cursor: pointer;
  box-shadow: 0 6px 22px rgba(224,122,42,0.35); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(240,140,60,0.55); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--gold2); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); }
button.link { font: inherit; color: var(--gold2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
button.link[disabled] { opacity: .5; cursor: default; }

/* hero: the game playing behind the logo and the sign-up */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 96px clamp(16px, 5vw, 72px) 56px; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.05) brightness(0.92); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,5,6,0.94) 0%, rgba(7,5,6,0.82) 34%, rgba(7,5,6,0.25) 62%, rgba(7,5,6,0.1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-in { width: min(100%, 600px); }
.hero h1 { margin: 0; font: 900 clamp(26px, 7.2vw, 92px)/1 'Cinzel Decorative', var(--display); letter-spacing: 0.03em; white-space: nowrap;
  filter: drop-shadow(0 0 14px rgba(255,110,30,0.5)) drop-shadow(0 4px 3px #000); }
/* the game's forged logo (style.css #splash): each letter drops in white-hot and cools */
.hero h1 span { display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #fff6d0 0%, #ffd36a 28%, #ff8a22 58%, #b02c08 82%, #5a1004 100%); }
.js .hero h1 span { opacity: 0; animation: forge .7s cubic-bezier(0.2, 0.9, 0.3, 1.25) forwards; }
@keyframes forge { 0% { opacity: 0; transform: translateY(-30px) scale(1.6); filter: blur(8px) brightness(3); } 55% { opacity: 1; filter: blur(0) brightness(2.2); } 100% { opacity: 1; transform: none; filter: none; } }
.sub { margin: 14px 0 0; font: 700 clamp(12px, 1.3vw, 15px) var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.when { margin: 8px 0 0; font: 700 clamp(15px, 1.6vw, 19px) var(--display); letter-spacing: 0.4em; text-transform: uppercase; color: #fff; text-shadow: 0 0 16px rgba(240,140,60,0.8); }
.hook { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; margin: 22px 0 26px; max-width: 34ch; color: #f1e7d6; }

/* the sign-up, in working form on the first screen */
.signup { background: rgba(14,10,9,0.9); border: 1px solid var(--line); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.su-form { display: grid; gap: 14px; }
.su-form p { margin: 0; }
.su-form label { display: grid; gap: 6px; font-size: 15px; }
.su-form .contact { font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.su-form .row { display: flex; gap: 8px; }
.su-form .row input, .su-form .row input::placeholder { flex: 1; min-width: 0; text-transform: none; letter-spacing: normal; font-family: var(--serif); }
.fine.actions { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.su-form input:not([type=checkbox]):not([type=radio]), .su-form select, .su-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid #3d322b; padding: 11px 13px; min-height: 48px; }
.su-form input::placeholder, .su-form textarea::placeholder { color: #8c7f6d; }
.su-form input:focus-visible, .su-form select:focus-visible, .su-form textarea:focus-visible { outline: 2px solid var(--ember2); outline-offset: 0; border-color: transparent; }
.su-form fieldset { border: 1px solid #2c241f; padding: 10px 14px; margin: 0; display: grid; gap: 8px; }
.su-form legend { padding: 0 6px; font-size: 14px; }
.su-form .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.su-form .chk input { margin-top: 0.3em; accent-color: var(--ember); width: 18px; height: 18px; flex: none; }
.consent span { font-size: 13.5px; color: #c4b7a3; line-height: 1.5; }
.su-form .hp { position: absolute; left: -9999px; }
.su-form .opts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
details.more summary { cursor: pointer; font-size: 14px; letter-spacing: 0.06em; color: var(--gold2); }
details.more[open] { display: grid; gap: 12px; } details.more[open] summary { margin-bottom: 4px; }
.fine { font-size: 14px; color: #c4b7a3; }
.su-msg { min-height: 1.4em; font-size: 15px; } .su-msg.err { color: #ff9a80; }
.closes { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.mc { margin-top: 14px; }
.mc-canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.mc-out { min-height: 1.4em; color: var(--dim); margin: 8px 0; font-variant-numeric: tabular-nums; }
.mc-verdict { border-left: 3px solid; padding: 4px 0 4px 14px; }
.mc-verdict b { font-family: var(--display); font-size: 20px; }
.mc-verdict p { margin: 4px 0; font-size: 15px; } .mc-verdict small { color: var(--dim); font-size: 13px; }
.mc-verdict.well { border-color: #7ac46a; } .mc-verdict.well b { color: #a6e08a; }
.mc-verdict.struggle { border-color: #e0b040; } .mc-verdict.struggle b { color: #ffcc55; }
.mc-verdict.wont { border-color: #d0503a; } .mc-verdict.wont b { color: #ff8a6a; }
.su-done h2 { font-size: 28px; margin: 0 0 8px; }
.su-done .btn { margin-top: 12px; }

/* the depth gauge */
.gauge { position: fixed; left: 22px; top: 50%; z-index: 15; transform: translateY(-50%); display: grid; justify-items: center; gap: 8px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.gauge.on { opacity: 1; }
.gauge-line { position: relative; width: 2px; height: 34vh; background: rgba(216,180,106,0.18); }
.gauge-line i { position: absolute; left: -3px; top: calc(var(--k, 0) * 100%); width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ember2); box-shadow: 0 0 12px var(--ember); }
.gauge-lv { font-size: 22px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.gauge-lv::before { content: 'Lv '; font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.gauge-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); max-height: 30vh; }

/* the descent: each depth sinks into its own tint, darker the further down */
.depth { position: relative; padding: clamp(80px, 11vw, 150px) clamp(16px, 6vw, 96px); background: linear-gradient(180deg, rgb(var(--tint)) 0%, rgb(var(--tint)) 70%, var(--next, rgb(var(--tint))) 100%); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px clamp(20px, 3vw, 44px); max-width: 1320px; margin: 0 auto; align-items: start; }
.split figure { margin: 0; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.65); }
.split img, .full img { display: block; width: 100%; height: 100%; object-fit: cover; }
.split .wide { grid-column: 1 / 9; grid-row: 1 / 3; aspect-ratio: 16 / 10; }
.split .txt { grid-column: 9 / 13; grid-row: 1; align-self: end; }
.split .tall { grid-column: 9 / 13; grid-row: 2; aspect-ratio: 4 / 3; }
.split.flip .wide { grid-column: 5 / 13; }
.split.flip .txt { grid-column: 1 / 5; align-self: center; grid-row: 1 / 3; }
.split .txt p { max-width: 46ch; color: #ddd1bd; }
.full { max-width: 1320px; margin: clamp(40px, 6vw, 80px) auto 0; aspect-ratio: 21 / 9; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.65); }
.bosses { max-width: 1320px; margin: clamp(40px, 5vw, 64px) auto 0; }
.bosses h3 { font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.bosses ul { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 40px; }
.bosses li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid rgba(216,180,106,0.12); }
.bosses li b { display: block; font-family: var(--display); font-weight: 700; color: #ffc29a; font-size: 16px; letter-spacing: 0.02em; }
.bosses li span { font-size: 14px; color: var(--dim); }

/* heroes */
.roster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; max-width: 1180px; margin: 44px auto 0; align-items: start; }
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.names button { font: 600 13px var(--display); letter-spacing: 0.05em; min-height: 44px; padding: 8px 6px; background: #0e0a0c; color: #b9ab96; border: 1px solid #2a2226; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.names button:hover { color: var(--ink); border-color: var(--res); }
.names button[aria-selected="true"] { color: #fff; border-color: var(--res); background: color-mix(in srgb, var(--res) 16%, #0e0a0c); }
.hero-card { position: sticky; top: 90px; padding: 36px 36px 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--res) 14%, #120d10), #0d0a0c 70%); border: 1px solid color-mix(in srgb, var(--res) 45%, transparent); min-height: 340px; }
.hero-card .role { font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: var(--res); margin: 0; }
.hero-card h3 { font-size: clamp(32px, 4vw, 48px); margin: 6px 0 0; color: #fff; line-height: 1.1; }
.hero-card .title { font-style: italic; color: var(--gold); margin: 4px 0 20px; }
.hero-card .desc { font-size: 19px; margin: 0 0 24px; }
.hero-card dl { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-card dt { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); }
.hero-card dd { margin: 2px 0 0; text-transform: capitalize; }
.hero-card .res { color: var(--res); font-weight: 600; }

/* the road from 1 to 60 */
.road { list-style: none; padding: 0; margin: 56px auto 0; max-width: 940px; position: relative; }
.road::before { content: ''; position: absolute; left: 99px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--ember), #6a4ab0 70%, #2a2040); }
.stop { display: grid; grid-template-columns: 100px 1fr; gap: 36px; padding: 0 0 40px; position: relative; }
.stop::before { content: ''; position: absolute; left: 93px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgb(var(--tint)), 0 0 16px var(--c); }
.lv { text-align: right; padding-right: 18px; font-weight: 700; color: var(--c); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv i { font-style: normal; opacity: .5; padding: 0 2px; }
.stop > div { display: flow-root; }
.stop .thumb { float: left; width: 250px; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 22px 6px 0; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.stop h3 { margin: 0; color: #fff; font-size: 22px; }
.stop .dim { margin: 0 0 8px; font-size: 15px; }
.bosses-inline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 15px; color: var(--dim); }
.bosses-inline b { color: #ffc29a; font-weight: 400; font-style: italic; }

/* devlog */
.log { list-style: none; padding: 0; margin: 50px auto 0; max-width: 1000px; display: grid; gap: 36px; }
.log li { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: center; }
.log figure { margin: 0; border: 1px solid var(--line); }
.log img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.log time { font: 700 12px var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember2); font-variant-numeric: tabular-nums; }
.log h3 { margin: 6px 0 8px; font-size: 22px; }
.log p { margin: 0; color: #cdc1ad; }

/* the end of the descent */
.final { text-align: center; padding: clamp(90px, 12vw, 160px) 16px; background: radial-gradient(ellipse at 50% 100%, rgba(224,122,42,0.18), transparent 60%), #050405; }
.final h2 { font-size: clamp(34px, 6vw, 72px); }
.final p { color: #d6cab6; max-width: 52ch; margin: 0 auto; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
footer { text-align: center; padding: 34px 16px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); background: #050405; }

/* other pages: survey, privacy, press */
.card { background: var(--panel); border: 1px solid var(--line); padding: 28px; }
.doc { max-width: 760px; margin: 0 auto; padding: 110px 20px 60px; }
.doc h1 { font-size: clamp(30px, 5vw, 46px); color: var(--gold2); margin: 0 0 18px; line-height: 1.15; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc li { margin-bottom: 8px; }
.doc .su-form { margin-top: 24px; }
.press { max-width: 960px; }
.press .lead { margin: 0 0 8px; font-style: italic; }
.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gold); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dd { margin: 0; }
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logo { display: grid; gap: 10px; padding: 24px; text-decoration: none; border: 1px solid var(--line); }
.logo img { width: 100%; height: auto; }
.logo span { font-size: 14px; }
.logo.dark { background: #0c0909; color: var(--dim); } .logo.light { background: #f3ece0; color: #4a2a14; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.shots-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); transition: border-color .2s; }
.shots-grid a:hover img { border-color: var(--gold); }

@media (max-width: 1000px) { .gauge { display: none; } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .wide, .split .txt, .split .tall, .split.flip .wide, .split.flip .txt { grid-column: 1; grid-row: auto; }
  .split.flip .txt { order: -1; }
  .roster { grid-template-columns: 1fr; gap: 24px; }
  .hero-card { position: static; padding: 26px 20px; min-height: 0; }
  .names { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .names button { flex: none; padding: 8px 14px; scroll-snap-align: start; }
  .log li { grid-template-columns: 1fr; gap: 14px; }
  .hero::before { background: linear-gradient(180deg, rgba(7,5,6,0.55) 0%, rgba(7,5,6,0.9) 45%, var(--bg) 100%); }
  .hero { align-items: flex-end; }
}
@media (max-width: 560px) {
  nav.top { padding: 12px 16px; } .brand { display: none; } nav .links { gap: 14px; margin: 0 auto; } nav .links a { font-size: 11px; letter-spacing: 0.06em; }
  nav .links a:not(.pill) { display: none; }
  .su-form .row { flex-direction: column; } .su-form .row .btn { width: 100%; }
  .signup { padding: 16px; }
  .road::before { left: 7px; } .stop { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; } .stop::before { left: 1px; } .lv { text-align: left; padding: 0; }
  .stop .thumb { float: none; width: 100%; margin: 0 0 12px; }
  .logos { grid-template-columns: 1fr; } .facts > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero h1 span { opacity: 1; }
}
