/* Ember Runes: emrune.com */

:root {
  --bg: #0a0908;
  --bg-2: #120f0c;
  --panel: #1a1511;
  --panel-2: #221b15;
  --line: rgba(255, 190, 110, 0.16);
  --line-strong: rgba(255, 190, 110, 0.34);
  --text: #ece4d6;
  --muted: #b3a795;
  --dim: #85796a;
  --gold: #ffbe5c;
  --ember: #ff7a1a;
  --ember-deep: #c2410c;
  --fire: #ff7a2f;
  --ice: #7fd3ff;
  --lightning: #ffe14d;
  --earth: #c79a62;
  --legend: #ff5fc8;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #ef4444;
  --radius: 14px;
  --wrap: 1160px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Trajan Pro", "Cinzel", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-title: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd894; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
b, strong { color: #fff3df; font-weight: 650; }
em { color: var(--gold); font-style: normal; }
kbd {
  display: inline-block; min-width: 1.9em; padding: .12em .5em; margin: 0 .12em;
  font: 600 .78rem/1.5 var(--font-body); color: #f8eedf; text-align: center;
  background: linear-gradient(#2c241d, #1c1712); border: 1px solid #4d3f31; border-bottom-width: 3px; border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #1a0f05; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1.1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  color: #1d0e03;
  background: linear-gradient(180deg, #ffc56d 0%, #ff9533 55%, #f2701b 100%);
  box-shadow: 0 0 0 1px rgba(255, 170, 80, .55) inset, 0 8px 28px -8px rgba(255, 110, 20, .75);
}
.btn-primary:not(:disabled):hover { color: #1d0e03; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 200, 120, .8) inset, 0 12px 36px -8px rgba(255, 120, 30, .95); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; border-color: var(--gold); background: rgba(255, 190, 92, .08); }
.btn-small { padding: .6em 1.15em; font-size: .9rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled { background: rgba(10, 9, 8, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; color: var(--text); text-decoration: none; font: 800 1.05rem/1 var(--font-title); letter-spacing: .14em; text-transform: uppercase; }
.brand:hover { color: var(--gold); }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(255, 110, 30, .45)); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 8px 12px; color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 550; border-radius: 8px; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--gold); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255, 255, 255, .03); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  padding: 110px 0 90px; overflow: hidden; isolation: isolate; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 40% at 50% 30%, rgba(255, 105, 20, .2), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(200, 60, 10, .35), transparent 70%),
    linear-gradient(180deg, #060505 0%, #0c0907 60%, #120b07 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: url("../assets/img/lava.webp") center bottom / 420px repeat;
  opacity: .42;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 100%);
  animation: lava-breathe 7s ease-in-out infinite;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center 40%, transparent 40%, rgba(0, 0, 0, .7) 100%), linear-gradient(to bottom, transparent 85%, var(--bg) 100%); }
@keyframes lava-breathe { 0%, 100% { opacity: .36; } 50% { opacity: .5; } }
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-stone { position: relative; width: clamp(150px, 22vw, 230px); aspect-ratio: 1; margin-bottom: 18px; animation: float 6s ease-in-out infinite; }
.hero-stone img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7)); }
.stone-glow { position: absolute; inset: 8%; border-radius: 30%; background: radial-gradient(circle, rgba(255, 110, 25, .55), rgba(255, 80, 10, 0) 70%); filter: blur(22px); animation: pulse 3.2s ease-in-out infinite; }
.eyebrow { margin: 0 0 .4em; color: var(--muted); font-size: .82rem; font-weight: 650; letter-spacing: .28em; text-transform: uppercase; }
.title {
  margin: 0; font: 800 clamp(2.9rem, 9vw, 6.4rem)/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 2px #5a2a06, 0 3px 0 #3d1c04, 0 0 28px rgba(255, 130, 30, .55), 0 0 70px rgba(255, 90, 10, .35);
  padding-left: .12em; /* balance letter-spacing */
}
.tagline { margin: .55em 0 .2em; font: 600 clamp(1.05rem, 2.4vw, 1.45rem)/1.35 var(--font-display); color: #f6dfb7; letter-spacing: .04em; }
.lede { max-width: 640px; margin: .6em auto 1.6em; color: var(--muted); font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.badges li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 16, 12, .6); color: var(--muted); font-size: .82rem; font-weight: 550; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Stats */
.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 120, 30, .05), rgba(255, 120, 30, .1), rgba(255, 120, 30, .05)); }
.stats-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-block: 0; padding: 22px 0; list-style: none; text-align: center; }
.stats-list strong { display: block; font: 800 clamp(1.6rem, 3.2vw, 2.2rem)/1.1 var(--font-title); color: var(--gold); text-shadow: 0 0 18px rgba(255, 120, 30, .35); }
.stats-list span { color: var(--muted); font-size: .85rem; letter-spacing: .04em; }

/* Sections */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section-dark { background: linear-gradient(180deg, var(--bg-2), #0d0b09); border-block: 1px solid rgba(255, 190, 110, .06); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 .8em; color: var(--ember); font-size: .8rem; font-weight: 750; letter-spacing: .3em; text-transform: uppercase; }
.kicker::before, .kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
h2 { font: 600 clamp(1.8rem, 3.8vw, 2.7rem)/1.15 var(--font-display); color: #fff1dc; letter-spacing: .01em; }
.sub-head { margin: 56px 0 22px; text-align: center; font: 600 1.45rem/1.2 var(--font-display); color: #fbe7c6; }
.sub-head small { display: block; margin-top: 6px; font: 500 .85rem/1.3 var(--font-body); color: var(--dim); letter-spacing: .03em; }
.footnote { max-width: 820px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .94rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(38, 30, 23, .85), rgba(22, 18, 14, .85));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -22px rgba(255, 110, 20, .5); }
.feature h3 { font-size: 1.15rem; color: #fff1dc; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.feature-ico { width: 40px; height: 40px; margin-bottom: 14px; padding: 8px; color: var(--gold); background: rgba(255, 140, 40, .1); border: 1px solid rgba(255, 160, 70, .25); border-radius: 10px; }
.feature-ico.fire { color: var(--fire); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-text h2 { text-align: left; }
.split-text .kicker { margin-left: 0; }
.split-text .kicker::before { display: none; }
.split-text p { color: var(--muted); }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); }
.split-reverse .split-media { order: 0; }
.hint-list, .ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.hint-list li { display: flex; align-items: center; gap: .6em; margin: .35em 0; color: var(--muted); }
.dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 10px rgba(74, 222, 128, .6); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 10px rgba(250, 204, 21, .5); }
.dot-red { background: var(--red); box-shadow: 0 0 10px rgba(239, 68, 68, .5); }
.legend-note { padding: 14px 16px; border-left: 3px solid var(--legend); background: rgba(255, 95, 200, .06); border-radius: 0 10px 10px 0; font-size: .95rem; }
.pink { color: var(--legend); }
.ticks li { position: relative; padding-left: 1.7em; margin: .5em 0; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8em; height: .45em; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Rune binder */
.binder {
  padding: 26px; border-radius: 18px; border: 1px solid #5b4630;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 140, 40, .1), transparent 60%),
    linear-gradient(180deg, #1f1913, #15110d);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.binder-head h3 { margin: 0 0 .2em; text-align: center; font: 600 1.4rem/1.2 var(--font-display); color: var(--gold); }
.binder-goal { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: .95rem; }
.binder-goal b { color: var(--gold); }
.sockets { display: flex; justify-content: center; gap: 12px; }
.socket {
  width: 70px; height: 84px; display: grid; place-items: center; padding: 0;
  border: 1px solid #5b4630; border-radius: 10px; background: #0f0c09; color: #e9eef7; cursor: pointer;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .8);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.socket:hover { border-color: var(--gold); }
.socket svg { width: 34px; height: 46px; }
.socket .num { color: #4a3c2e; font-weight: 700; }
.socket.filled { background: linear-gradient(180deg, #2a231c, #17120e); }
.socket.ok { border-color: var(--green); box-shadow: inset 0 0 14px rgba(0, 0, 0, .6), 0 0 16px rgba(74, 222, 128, .55); }
.socket.learned { animation: learned 1s ease; }
@keyframes learned { 0% { transform: scale(1); } 40% { transform: scale(1.12); box-shadow: 0 0 30px rgba(255, 190, 92, .9); } 100% { transform: scale(1); } }
.binder-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 4px; flex-wrap: wrap; }
.binder-tries { color: var(--dim); font-size: .85rem; min-width: 80px; }
.binder-msg { min-height: 1.6em; margin: 6px 0 10px; text-align: center; color: var(--muted); font-size: .95rem; }
.binder-msg.win { color: var(--gold); font-weight: 650; }
.binder-history { display: flex; flex-direction: column; gap: 6px; max-height: 150px; overflow-y: auto; margin: 0 0 14px; padding: 0; list-style: none; }
.binder-history li { display: flex; justify-content: center; gap: 6px; }
.hist-rune { width: 36px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: #0f0c09; border-bottom: 3px solid; }
.hist-rune svg { width: 18px; height: 26px; }
.hist-rune.g { border-color: var(--green); color: var(--green); }
.hist-rune.y { border-color: var(--yellow); color: var(--yellow); }
.hist-rune.r { border-color: var(--red); color: #f3b1b1; }
.pouch { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.rune-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px;
  border: 1px solid #4a3a2a; border-radius: 8px; background: linear-gradient(180deg, #221b15, #17130f);
  color: #dfe7f3; cursor: pointer; font: 600 .68rem/1.1 var(--font-body);
  transition: border-color .15s, transform .15s, color .15s;
}
.rune-btn svg { width: 22px; height: 30px; }
.rune-btn span { color: var(--muted); }
.rune-btn:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.rune-btn:disabled { opacity: .35; cursor: default; }
.rune-btn.out { color: #6b5f52; }
.rune-btn.out span { text-decoration: line-through; }

/* Elements */
.elements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.element {
  --c: var(--gold);
  padding: 24px 22px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--panel);
}
.el-fire { --c: var(--fire); }
.el-ice { --c: var(--ice); }
.el-lightning { --c: var(--lightning); }
.el-earth { --c: var(--earth); }
.el-ico { width: 44px; height: 44px; color: var(--c); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); margin-bottom: 12px; }
.element h3 { font-size: 1.25rem; color: var(--c); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.element h3 span { color: var(--muted); font: 600 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.element p { color: var(--muted); font-size: .95rem; margin-bottom: .7em; }
.el-spells { margin: 0 !important; padding-top: .7em; border-top: 1px solid var(--line); color: #d8ccb9 !important; font-size: .86rem !important; }

.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.combo {
  position: relative; padding: 20px 22px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden;
}
.combo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--b)); }
.combo-pair { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--dim); font-weight: 700; }
.combo-pair svg { width: 26px; height: 26px; }
.combo-pair svg:first-child { color: var(--a); }
.combo-pair svg:last-child { color: var(--b); }
.combo h4 { margin: 0 0 .3em; font: 600 1.15rem/1.2 var(--font-display); color: #fff1dc; }
.combo p { margin: 0; color: var(--muted); font-size: .93rem; }
.wide-shot { margin: 48px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -35px rgba(255, 90, 10, .45); }

/* World */
.world-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.route { margin: 0; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(ellipse at 40% 50%, rgba(40, 80, 40, .18), transparent 70%), #070807; }
.route img { width: 100%; image-rendering: auto; }
.route figcaption { margin-top: 12px; color: var(--dim); font-size: .86rem; text-align: center; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); margin-bottom: 18px; }
.tabs button { padding: 8px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 650 .95rem/1 var(--font-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, #ffc56d, #f2801f); color: #1d0e03; }
.realm-intro { color: var(--muted); }
.bosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bosses li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 120, 30, .07), transparent 70%), var(--panel); }
.bosses .tier { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold); font: 700 .9rem/1 var(--font-display); }
.bosses b { display: block; font-size: 1.02rem; }
.bosses small { color: var(--dim); font-size: .85rem; }
.realms .footnote { text-align: left; margin-left: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease, filter .3s ease; filter: saturate(.9); }
.gallery button:hover { border-color: var(--line-strong); box-shadow: 0 16px 40px -20px rgba(255, 110, 20, .6); }
.gallery button:hover img { transform: scale(1.04); filter: saturate(1.05); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 4, 3, .94); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox figure { margin: 0; max-width: min(1280px, 92vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line); }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--muted); }
.lb-close, .lb-nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(25, 20, 15, .85); color: var(--text); cursor: pointer; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 18px; }

/* Download */
.download { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 100, 20, .14), transparent 70%), var(--bg); }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; }
.dl-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 26px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #221a13, #16120e); }
.dl-ico { width: 44px; height: 44px; color: var(--gold); margin-bottom: 8px; }
.dl-card h3 { margin-bottom: .2em; font: 600 1.5rem/1.2 var(--font-display); }
.dl-meta { color: var(--dim); font-size: .9rem; }
.dl-note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.dl-guide { margin: 26px 0 0; text-align: center; color: var(--muted); }
.controls { max-width: 980px; margin: 0 auto; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.keys > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.keys dt { white-space: nowrap; color: var(--dim); }
.keys dd { margin: 0; text-align: right; color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #070605; padding: 40px 0 34px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-inner nav a:hover { color: var(--gold); }
.small { margin: 0; color: var(--dim); font-size: .84rem; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; background: rgba(10, 9, 8, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 12px 8px; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; }
  .site-header.menu-open { background: rgba(10, 9, 8, .97); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .elements { grid-template-columns: repeat(2, 1fr); }
  .stats-list { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .keys { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .world-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 1; }
  .combos { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: minmax(0, 480px); }
  .split-text h2, .split-text { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features, .elements, .combos, .keys { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: repeat(2, 1fr); }
  .title { letter-spacing: .07em; padding-left: .07em; }
  .cta-row .btn { width: 100%; }
  .binder { padding: 18px 14px; }
  .socket { width: 58px; height: 72px; }
  .pouch { grid-template-columns: repeat(4, 1fr); }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lightbox img { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
