/* D2 Survival: Prime Evil - website styles. Our own design: no picture, lettering or logo of the game or of any other
   project. Fonts: Cinzel and Source Sans 3 (SIL Open Font Licence, files and licences in fonts/). */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/sourcesans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/sourcesans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/sourcesans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b0807;
  --bg-2: #120d0b;
  --panel: #18110e;
  --panel-2: #21170f;
  --line: #3a2a1d;
  --line-2: #5a3f27;
  --text: #ecdfca;
  --dim: #b2a38c;
  --faint: #8f816c;
  --ember: #ff6a1a;
  --flame: #ff9a2e;
  --gold: #e9b54d;
  --blood: #a3200f;
  --ice: #8fc4ff;
  --radius: 6px;
  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--flame); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 3px; }
code { font: 0.86em Consolas, "Cascadia Mono", monospace; background: #241a12; padding: 0.1em 0.35em; border-radius: 3px; color: #f2e2c4; }
kbd { font: 600 0.8em var(--body); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 4px; padding: 0.05em 0.45em; background: var(--panel-2); color: var(--text); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ember); color: #1a0a03; padding: 0.7rem 1rem; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid, .top.always, .top.open { background: rgba(11, 8, 7, .9); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font: 800 1rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; min-height: 44px; }
.brand svg { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 106, 26, .6)); }
.brand b { color: var(--flame); font-weight: 800; }
.brand:hover { color: var(--text); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--dim); text-decoration: none; font: 600 .95rem/1 var(--body); letter-spacing: .04em; padding: .85rem .8rem; border-radius: var(--radius); position: relative; }
.nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .45rem; height: 1px; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.button { margin-left: .5rem; color: #1b0902; }
.nav a.button::after { display: none; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius); min-width: 44px; min-height: 44px; font: 600 .9rem var(--body); padding: 0 .9rem; cursor: pointer; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(24, 17, 14, .7); color: var(--text); text-decoration: none; font: 600 1rem/1.1 var(--body); letter-spacing: .04em; cursor: pointer; transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s; }
.button:hover { transform: translateY(-2px); border-color: var(--flame); color: var(--text); box-shadow: 0 8px 24px -12px rgba(255, 106, 26, .6); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { background: linear-gradient(180deg, #ff7f24, #d8420e); border-color: #ff9a4a; color: #1b0902; box-shadow: 0 0 0 1px rgba(255, 154, 74, .2), 0 10px 30px -10px rgba(255, 90, 20, .75); }
.button.primary:hover { background: linear-gradient(180deg, #ff9a3c, #e8501a); color: #1b0902; box-shadow: 0 0 0 1px rgba(255, 180, 90, .4), 0 14px 36px -10px rgba(255, 110, 30, .9); }
.button.small { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.button small { font-weight: 400; opacity: .8; }

/* ---------- type ---------- */
.eyebrow { font: 600 .82rem/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--flame); margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .04em; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; letter-spacing: .06em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--dim); max-width: 40rem; margin: 0 0 2rem; }
p { margin: 0 0 1rem; }
.fine { font-size: .9rem; color: var(--faint); }

/* ---------- sections ---------- */
main > section { position: relative; padding: clamp(4.5rem, 9vh, 7rem) 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(58, 42, 29, .55); }
main > section.band { background: var(--bg-2); }
.section-head { margin-bottom: clamp(2rem, 4vh, 3rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* ---------- hero ---------- */
main > section.hero { position: relative; min-height: 100svh; justify-content: flex-end; overflow: hidden; isolation: isolate; border-top: 0; padding: 7rem 0 clamp(3rem, 9vh, 6rem); }
.hero-photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: saturate(1.1) contrast(1.08) brightness(.85); transform: scale(1.06); animation: drift 30s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(11, 8, 7, .7) 0%, rgba(11, 8, 7, .1) 28%, rgba(11, 8, 7, .3) 60%, rgba(11, 8, 7, .97) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(65% 60% at 20% 72%, rgba(0, 0, 0, .6), transparent 70%); pointer-events: none; }
#fire { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: -1; mix-blend-mode: screen; pointer-events: none; }
.hero h1 { margin: 0 0 1.5rem; }
.h1-top { display: block; font: 600 clamp(1rem, 1.6vw, 1.25rem)/1 var(--body); letter-spacing: .5em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; text-shadow: 0 2px 12px #000; }
.burn { display: block; font: 800 clamp(3.2rem, 10.5vw, 9.5rem)/.92 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.burn span { display: block; background: linear-gradient(0deg, #9b1a06 0%, #ff4a0c 22%, #ff8c1f 45%, #ffcf6a 72%, #fff4d2 100%); background-size: 100% 220%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: burn 3.2s ease-in-out infinite alternate, flicker 2.3s steps(1) infinite; filter: drop-shadow(0 0 18px rgba(255, 90, 10, .55)) drop-shadow(0 4px 0 rgba(0, 0, 0, .6)); }
.burn span + span { font-size: .62em; letter-spacing: .08em; animation-delay: -1.1s, -.7s; }
.hero .lead { color: #e3d3bb; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); max-width: 36rem; }
.status { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: #f0e2cb; font-size: .95rem; font-weight: 600; text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.status li { display: flex; align-items: center; gap: .5rem; }
.status li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--ember); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.fx-toggle { position: absolute; right: var(--pad); bottom: 1.25rem; z-index: 2; min-height: 44px; min-width: 44px; padding: .4rem .9rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .45); color: var(--dim); font: 600 .8rem var(--body); letter-spacing: .08em; cursor: pointer; transition: color .2s, border-color .2s, transform .18s; }
.fx-toggle:hover { color: var(--text); border-color: var(--flame); transform: translateY(-2px); }
[data-enter] > .wrap > * { animation: rise .9s var(--ease) both; }
[data-enter] > .wrap > *:nth-child(2) { animation-delay: .12s; }
[data-enter] > .wrap > *:nth-child(3) { animation-delay: .24s; }
[data-enter] > .wrap > *:nth-child(4) { animation-delay: .36s; }
[data-enter] > .wrap > *:nth-child(5) { animation-delay: .48s; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes burn { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 41% { opacity: .93; } 43% { opacity: 1; } 77% { opacity: .96; } 79% { opacity: 1; } }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 106, 26, .25), 0 0 40px -10px rgba(255, 106, 26, .35); } 50% { box-shadow: 0 0 0 1px rgba(255, 140, 50, .45), 0 0 60px -8px rgba(255, 106, 26, .6); } }

/* ---------- acts ---------- */
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.act { position: relative; aspect-ratio: 3 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); isolation: isolate; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.act:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgba(255, 106, 26, .55); }
.act img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); filter: saturate(.8) contrast(1.1) brightness(.72); }
.act:hover img { transform: scale(1.03); }
.act::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 8, 7, .05) 0%, rgba(11, 8, 7, .2) 40%, rgba(11, 8, 7, .96) 100%); }
.act .body { position: absolute; inset: auto 0 0 0; padding: 1.25rem; }
.act .num { font: 800 2.4rem/1 var(--display); color: var(--flame); text-shadow: 0 0 18px rgba(255, 106, 26, .6); display: block; margin-bottom: .5rem; }
.act h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.act p { margin: 0; color: var(--dim); font-size: .95rem; line-height: 1.4; }
.act .boss { color: #ffb48a; }
.act.a2 img { filter: sepia(.3) saturate(.9) contrast(1.15) brightness(.6); }
.act.a5 img { filter: saturate(.5) contrast(1.2) brightness(.6); }

/* ---------- run ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step, upper-roman); font: 800 1.05rem/3rem var(--display); color: var(--flame); width: 3rem; height: 3rem; text-align: center; border: 1px solid var(--line-2); border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 106, 26, .2), transparent 70%); }
.steps h3 { margin: .45rem 0 .3rem; }
.steps p { margin: 0; color: var(--dim); font-size: 1.02rem; }
.hud { position: relative; border: 1px solid var(--line-2); border-radius: 10px; background: radial-gradient(120% 80% at 50% 120%, rgba(255, 80, 10, .22), transparent 60%), linear-gradient(180deg, #140e0b, #0d0907); padding: 1.5rem; aspect-ratio: 4 / 3; overflow: hidden; animation: glow 4s ease-in-out infinite; }
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hud-clock { font: 800 2.2rem/1 var(--display); color: var(--text); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hud-clock small { color: var(--faint); font-size: .55em; }
.hud-zone { text-align: right; font: 600 .9rem/1.5 var(--body); color: var(--dim); }
.hud-zone b { display: block; color: var(--gold); font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; }
.hud-affix { color: var(--ice); }
.hud-bar { margin-top: 1.25rem; height: 10px; border-radius: 6px; background: #2a1c12; overflow: hidden; border: 1px solid #3c2a1c; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a3200f, #ff6a1a, #ffc25a); transition: width .4s linear; }
.hud-wave { margin-top: .6rem; display: flex; justify-content: space-between; font: 600 .9rem var(--body); color: var(--dim); }
.hud-kills { position: absolute; left: 1.5rem; bottom: 1.5rem; }
.hud-kills b { display: block; font: 800 clamp(2.6rem, 5vw, 4rem)/1 var(--display); color: var(--flame); text-shadow: 0 0 24px rgba(255, 106, 26, .55); font-variant-numeric: tabular-nums; }
.hud-kills span { font: 600 .8rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.hud canvas { position: absolute; right: 1.5rem; top: 7rem; width: 40%; aspect-ratio: 1; }
.hud-pause { position: absolute; right: 1rem; bottom: 1rem; min-height: 44px; min-width: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--faint); font: 600 .75rem var(--body); letter-spacing: .12em; cursor: pointer; text-transform: uppercase; padding: 0 .8rem; transition: color .2s, border-color .2s; }
.hud-pause:hover { color: var(--text); border-color: var(--flame); }

/* ---------- terror ---------- */
main > section.terror { background: radial-gradient(90% 70% at 75% 50%, rgba(163, 32, 15, .3), transparent 70%), var(--bg); }
.tier-display { font: 800 clamp(4.2rem, 12vw, 10.5rem)/.9 var(--display); color: var(--flame); text-shadow: 0 0 40px rgba(255, 106, 26, .5); font-variant-numeric: tabular-nums; margin: 0 0 1.5rem; white-space: nowrap; }
.tier-display small { display: block; font: 600 1rem/1 var(--body); letter-spacing: .4em; color: var(--dim); margin-bottom: .75rem; text-transform: uppercase; text-shadow: none; }
.tier-control { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; margin: 0 0 1.75rem; }
.tier-control label { grid-column: 1 / -1; font: 600 .85rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #a3200f, #ff6a1a, #ffc25a); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #a3200f, #ff6a1a, #ffc25a); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff0d6; border: 3px solid var(--ember); box-shadow: 0 0 16px var(--ember); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff0d6; border: 3px solid var(--ember); box-shadow: 0 0 16px var(--ember); }
.tier-control input[type="number"] { width: 7.5rem; min-height: 44px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font: 600 1.1rem var(--body); padding: .4rem .7rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.stats div { background: var(--panel); padding: 1.1rem 1.2rem; }
.stats dt { font: 600 .78rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
.stats dd { margin: 0; font: 800 1.6rem/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.stats dd.hot { color: var(--flame); }

/* ---------- cards (level-up) ---------- */
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.skill { position: relative; border-radius: 10px; padding: 1.5rem 1.4rem 1.4rem; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1d140f, #110c09); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; min-height: 17rem; display: flex; flex-direction: column; }
.skill:hover { transform: translateY(-2px); border-color: var(--el, var(--flame)); box-shadow: 0 20px 50px -28px var(--el, var(--flame)); }
.skill .key { position: absolute; top: 1rem; right: 1rem; }
.skill .rune { width: 56px; height: 56px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 1.1rem; border: 1px solid rgba(255, 255, 255, .12); background: radial-gradient(circle at 50% 35%, var(--el-soft, rgba(255, 106, 26, .55)), #0d0907 75%); font: 800 1.5rem var(--display); color: #fff4df; text-shadow: 0 0 12px var(--el, var(--flame)); }
.skill .kind { font: 600 .78rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--el, var(--flame)); margin-bottom: .4rem; }
.skill h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.skill p { color: var(--dim); font-size: 1rem; margin: 0; }
.skill .more { margin-top: auto; padding-top: 1rem; color: var(--faint); font-size: .9rem; }
.skill.fire { --el: #ff6a1a; --el-soft: rgba(255, 106, 26, .55); }
.skill.cold { --el: #7fb8ff; --el-soft: rgba(127, 184, 255, .5); }
.skill.light { --el: #f2d35b; --el-soft: rgba(242, 211, 91, .5); }
.deck-tools { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.5rem; color: var(--dim); font-size: 1rem; }

/* ---------- camp ---------- */
.photo-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: contrast(1.05) brightness(.88); }
.photo-frame:hover img { transform: scale(1.03); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.list li { padding-left: 1.4rem; position: relative; color: var(--dim); }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--flame); box-shadow: 0 0 8px var(--ember); }
.list b { color: var(--text); font-weight: 600; }

/* ---------- forge ---------- */
main > section.forge { isolation: isolate; overflow: hidden; }
.forge-photo { position: absolute; inset: 0; z-index: -2; }
.forge-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.1); }
.forge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 8, 7, .97) 0%, rgba(11, 8, 7, .86) 50%, rgba(11, 8, 7, .4) 100%); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tile { border: 1px solid var(--line-2); background: rgba(18, 13, 11, .85); border-radius: var(--radius); padding: 1.25rem; transition: transform .25s var(--ease), border-color .25s; }
.tile:hover { transform: translateY(-2px); border-color: var(--flame); }
.tile h3 { font-size: 1.05rem; margin-bottom: .45rem; color: var(--gold); }
.tile p { margin: 0; color: var(--dim); font-size: .98rem; }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dl-card { border: 1px solid var(--line-2); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.25rem); background: radial-gradient(120% 100% at 0% 0%, rgba(255, 106, 26, .14), transparent 55%), var(--panel); }
.dl-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.dl-card .button { margin: .6rem 0 1rem; }
.pill { display: inline-block; font: 600 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--flame); border: 1px solid rgba(255, 106, 26, .45); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem; }
.hash { font: .78rem Consolas, monospace; color: var(--faint); overflow-wrap: anywhere; margin: 0; }
.install { list-style: none; counter-reset: i; margin: 0; padding: 0; display: grid; gap: 1rem; }
.install li { counter-increment: i; display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; color: var(--dim); font-size: 1.02rem; }
.install li::before { content: counter(i); font: 800 1rem/2rem var(--display); text-align: center; color: #1b0902; background: var(--flame); border-radius: 50%; width: 2rem; height: 2rem; }
.install b { color: var(--text); font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.5rem; align-items: start; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; }
details:hover, details[open] { border-color: var(--line-2); }
summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--flame); font: 600 1.4rem var(--body); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details > div { padding: 0 1.2rem 1.1rem; color: var(--dim); font-size: 1rem; }
details > div p:last-child { margin: 0; }

/* ---------- changelog, credits ---------- */
.log { max-height: 28rem; overflow: auto; padding-right: 1rem; }
.log article { border-left: 2px solid var(--line-2); padding: 0 0 1.5rem 1.25rem; position: relative; }
.log article::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--ember); }
.log h3 { font-size: 1.05rem; }
.log .when { color: var(--faint); font-size: .9rem; margin: .2rem 0 .5rem; }
.log ul { margin: 0; padding-left: 1.1rem; color: var(--dim); font-size: 1rem; }
.log .older { color: var(--faint); }
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.credits div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--panel); }
.credits h3 { font-size: .98rem; margin-bottom: .4rem; color: var(--gold); }
.credits p { font-size: .95rem; color: var(--dim); margin: 0 0 .4rem; }

/* ---------- close ---------- */
main > section.close { text-align: center; overflow: hidden; isolation: isolate; }
.close h2 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; margin-bottom: 1.25rem; }
.close h2 span { background: linear-gradient(0deg, #9b1a06, #ff4a0c 30%, #ff9a2e 60%, #ffe3a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close .lead { margin: 0 auto 2rem; }
.close .actions { justify-content: center; }
.close::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; background: radial-gradient(60% 100% at 50% 100%, rgba(255, 80, 10, .35), transparent 70%); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: #080605; padding: 3rem 0 2.5rem; color: var(--faint); font-size: .88rem; line-height: 1.55; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
footer h3 { font-size: .85rem; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
footer ul a { color: var(--dim); text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; }
footer ul a:hover { color: var(--flame); }
footer .legal { color: var(--dim); font-weight: 600; }
footer p { margin: 0 0 .6rem; }
footer .photo-credits { font-size: .78rem; }
footer .photo-credits a { color: var(--faint); }

/* ---------- guide ---------- */
.page-head { padding: 9rem 0 3rem; border-bottom: 1px solid var(--line); background: radial-gradient(80% 120% at 20% 0%, rgba(255, 90, 20, .18), transparent 60%), var(--bg); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1rem; }
.page-head h1 span { color: var(--flame); }
.guide { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding-top: 3.5rem; padding-bottom: 5rem; }
.toc { position: sticky; top: 6rem; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0 0 0 1rem; color: var(--dim); text-decoration: none; font-size: .98rem; margin-left: -1px; border-left: 1px solid transparent; min-height: 44px; line-height: 44px; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); border-left-color: var(--flame); }
.prose { max-width: 46rem; }
.prose section { padding: 0 0 3rem; margin: 0 0 3rem; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose h3 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; color: var(--gold); }
.prose p, .prose li { color: var(--dim); }
.prose li { margin: .35rem 0; }
.prose strong { color: var(--text); font-weight: 600; }
.keys { width: 100%; border-collapse: collapse; font-size: 1rem; }
.keys th, .keys td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys th { color: var(--faint); font: 600 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.keys td:first-child { white-space: nowrap; width: 1%; }
.keys td { color: var(--dim); }
.callout { border: 1px solid rgba(255, 106, 26, .4); background: rgba(255, 106, 26, .07); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--text); }

/* ---------- leaderboard ---------- */
.board-page { padding-top: 3rem; padding-bottom: 5rem; }
.filters label[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.tabs button { min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); color: var(--dim); font: 600 .98rem var(--body); cursor: pointer; transition: border-color .2s, color .2s, transform .18s; }
.tabs button:hover { color: var(--text); border-color: var(--flame); transform: translateY(-2px); }
.tabs button[aria-selected="true"] { color: #1b0902; background: var(--flame); border-color: var(--flame); }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.5rem; }
.filters label { display: grid; gap: .35rem; font: 600 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.filters select { min-height: 44px; min-width: 14rem; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .4rem .7rem; font: 1rem var(--body); text-transform: none; letter-spacing: 0; }
.notice-box { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; color: var(--dim); background: var(--panel); }
table.board { width: 100%; border-collapse: collapse; }
.board th, .board td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.board th { color: var(--faint); font: 600 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .rank { color: var(--flame); font-family: var(--display); font-weight: 800; }
.board .who b { display: block; color: var(--text); }
.board .who span { font-size: .85rem; color: var(--faint); }
.board .cls { text-transform: capitalize; color: var(--dim); }
.meta { color: var(--faint); font-size: .85rem; margin-top: 1rem; }
.ladder-preview { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ladder-preview div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 1.2rem; }
.ladder-preview h3 { font-size: 1rem; color: var(--gold); margin-bottom: .4rem; }
.ladder-preview p { margin: 0; color: var(--dim); font-size: .98rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .acts { gap: .6rem; }
  .act .body { padding: .9rem; }
  .act .num { font-size: 1.8rem; }
  .act p { font-size: .85rem; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .top.open .nav { display: flex; position: fixed; inset: 4.25rem 0 0 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(11, 8, 7, .98); padding: 1.5rem var(--pad); overflow: auto; }
  .top.open .nav a { font-size: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .top.open .nav a::after { display: none; }
  .top.open .nav a.button { margin: 1.5rem 0 0; border-bottom: 0; padding: .8rem 1.5rem; }
  .split, .dl { grid-template-columns: 1fr; }
  .acts { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .act { aspect-ratio: 4 / 3; }
  .act:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .act .num { font-size: 2rem; }
  .act p { font-size: .95rem; }
  .deck { grid-template-columns: 1fr; }
  .skill { min-height: 0; }
  .faq { grid-template-columns: 1fr; }
  .credits, .ladder-preview { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .photo-frame { aspect-ratio: 16 / 10; }
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  main > section { min-height: 0; }
  main > section.hero { min-height: 100svh; }
}
@media (max-width: 600px) {
  body { font-size: 1.06rem; }
  .acts { grid-template-columns: 1fr; }
  .act, .act:last-child { aspect-ratio: 16 / 9; grid-column: auto; }
  .tiles, .credits, .ladder-preview { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .hud { aspect-ratio: auto; min-height: 24rem; padding: 1.25rem; }
  .hud-clock { font-size: 1.6rem; }
  .hud-zone { font-size: .82rem; }
  .hud-zone b { font-size: .9rem; }
  .hud canvas { width: 52%; top: 7.5rem; right: 1rem; }
  .burn { font-size: clamp(4rem, 19vw, 5rem); }
  .tier-control { grid-template-columns: 1fr; }
  .tier-control input[type="number"] { width: 100%; }
  .stats dd { font-size: 1.3rem; }
  .keys td:first-child { white-space: normal; }
  .brand .long { display: none; }
  .tier-display { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html.still .burn span, html.still .hero-photo img, html.still .hud { animation-play-state: paused; }

/* ---------- design-check round 1 (2026-11-30): readability, scale and spacing ---------- */
:root { --faint: #a59683; }
.hero .eyebrow, .h1-top { text-shadow: 0 1px 2px #000, 0 0 14px #000, 0 0 28px rgba(0, 0, 0, .9); }
.hero .eyebrow { color: #ffb36b; }
.hero::after { background: radial-gradient(75% 70% at 20% 62%, rgba(0, 0, 0, .72), transparent 72%); }
.burn { line-height: 1; }
.burn span { padding: .04em .02em .1em; }
.button[aria-disabled="true"] { opacity: 1; background: #2b1f16; border-color: var(--line-2); color: #eadbc4; box-shadow: none; }
.fx-toggle { background: rgba(8, 6, 5, .85); color: #e6d6bf; border-color: rgba(255, 255, 255, .28); }
.menu-toggle { background: rgba(24, 17, 14, .7); border-color: var(--line-2); border-radius: var(--radius); }
.tier-display { font-size: clamp(4rem, 9vw, 8rem); line-height: 1; }
.tier-display small { margin-bottom: 1rem; }
main > section.terror .split { align-items: start; }
.hud-kills b { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.close h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
main > section.close { background: var(--bg); }
.close-photo { position: absolute; inset: 0; z-index: -2; }
.close-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(1.15); }
main > section.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(11, 8, 7, .55), rgba(11, 8, 7, .92)); }
.photo-list { margin: 1rem 0 0; }
.photo-list summary { color: var(--gold); }
.photo-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .9rem; }
@media (max-width: 960px) {
  main > section { min-height: 100svh; }
  .hud-kills b { font-size: 2rem; }
}
