/* Last Epoch Season 5 private showcase. No external assets. */
:root {
  --bg: #07060b;
  --bg2: #0d0b16;
  --panel: #110e1a;
  --panel2: #171225;
  --line: #2c2438;
  --gold: #c9a35b;
  --gold-hi: #ecd29a;
  --gold-lo: #7a6233;
  --text: #d9d3c5;
  --muted: #8f8879;
  --dim: #645e52;
  --ice: #8fd3ff;
  --blood: #c0303a;
  --r-unique: #e8803a;
  --r-set: #3ec15c;
  --r-legendary: #e04040;
  --r-exalted: #b660e8;
  --r-rare: #e8d23a;
  --r-magic: #5aa0ff;
  --r-normal: #f2f2f2;
  --add: #5fd16f;
  --rem: #e0575c;
  --display: "Cinzel", "Trajan Pro", "Trajan Pro 3", Georgia, "Times New Roman", serif;
  --body: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.5 var(--body);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 50% -10%, rgba(70, 52, 140, .35), transparent 70%),
    radial-gradient(900px 600px at 100% 30%, rgba(40, 70, 130, .14), transparent 70%),
    radial-gradient(900px 700px at 0% 70%, rgba(110, 30, 50, .12), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #0a0812 0%, #07060b 40%, #08070e 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,.75);
}
a { color: var(--gold-hi); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  min-height: var(--nav-h); padding: 6px 18px;
  background: linear-gradient(180deg, rgba(12,10,20,.97), rgba(9,8,15,.94));
  border-bottom: 1px solid rgba(201,163,91,.35);
  box-shadow: 0 2px 0 rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark {
  font: 700 11px/1 var(--display); color: #120e08; letter-spacing: .04em;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  display: inline-block; width: 30px; height: 30px; padding-top: 10px; text-align: center;
}
.brand-txt { font: 600 14px var(--display); color: var(--gold-hi); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1 1 auto; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; padding-bottom: 2px; }
.nav a {
  flex: none; text-decoration: none; color: #cfc6b2;
  font: 600 11.5px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 6px; border: 1px solid transparent; border-radius: 2px; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--gold-hi); border-color: rgba(201,163,91,.35); background: rgba(201,163,91,.07); }
.nav a .n { color: var(--gold); font-family: var(--body); font-weight: 600; margin-left: 4px; font-size: 11px; }
.nav a.empty { opacity: .45; }
.search { position: relative; flex: 0 0 210px; }
.search input {
  width: 100%; padding: 8px 64px 8px 12px; color: var(--text);
  background: #0a0811; border: 1px solid #3a3045; border-radius: 2px; font: 14px var(--body);
  outline: none;
}
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,163,91,.18); }
.search-count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 20px 70px; border-bottom: 1px solid rgba(201,163,91,.25);
  background:
    radial-gradient(600px 260px at 50% 55%, rgba(140,200,255,.10), transparent 70%),
    radial-gradient(700px 380px at 50% 100%, rgba(150,20,35,.28), transparent 70%),
    linear-gradient(180deg, rgba(20,16,38,.4), rgba(7,6,11,.0));
}
.hero-glow {
  position: absolute; inset: -40% -10% auto; height: 140%; pointer-events: none;
  background:
    conic-gradient(from 200deg at 50% 60%, transparent 0 20%, rgba(143,211,255,.06) 25%, transparent 32% 68%, rgba(192,48,58,.07) 75%, transparent 82%);
  filter: blur(8px);
}
.hero-inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.hero-kicker { font: 600 13px var(--display); letter-spacing: .5em; color: var(--ice); text-transform: uppercase; margin: 0 0 14px; opacity: .85; }
.hero-title {
  margin: 0; font: 700 clamp(30px, 5.6vw, 64px)/1.08 var(--display); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d6 0%, var(--gold-hi) 35%, var(--gold) 65%, #8a6a32 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.8)) drop-shadow(0 0 22px rgba(201,163,91,.25));
}
.hero-orn { display: flex; align-items: center; justify-content: center; margin: 22px auto; max-width: 420px; }
.hero-orn::before, .hero-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-orn::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero-orn span { width: 9px; height: 9px; margin: 0 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(201,163,91,.6); }
.hero-sub { color: #bdb5a2; margin: 0 auto 26px; max-width: 760px; font-size: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-stats a {
  text-decoration: none; min-width: 108px; padding: 10px 14px;
  border: 1px solid rgba(201,163,91,.3); background: rgba(10,8,17,.7); border-radius: 2px;
}
.hero-stats a:hover { border-color: var(--gold); }
.hero-stats b { display: block; font: 700 24px/1.1 var(--display); color: var(--gold-hi); }
.hero-stats small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- sections ---------- */
main { position: relative; z-index: 2; max-width: 1480px; margin: 0 auto; padding: 10px 22px 40px; }
.loading { text-align: center; color: var(--muted); padding: 60px; }
.sec { padding: 46px 0 18px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 22px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(201,163,91,.22); position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 160px; height: 1px; background: var(--gold); }
.sec-title { margin: 0; font: 700 clamp(22px, 2.6vw, 32px)/1.1 var(--display); color: var(--gold-hi); letter-spacing: .06em; text-transform: uppercase; }
.sec-count { font: 600 13px var(--body); color: #120e08; background: var(--gold); padding: 2px 9px; border-radius: 2px; vertical-align: middle; margin-left: 10px; letter-spacing: 0; }
.sec-desc { flex: 1 1 360px; margin: 0; color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 6px; align-items: center; }
.filters select {
  background: #0c0a13; color: var(--text); border: 1px solid #3a3045; border-radius: 2px; padding: 5px 8px; font: 13px var(--body);
}
.group-h { margin: 26px 0 12px; font: 600 16px var(--display); color: #e2cfa2; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.group-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,163,91,.35), transparent); }
.group-h .gc { font: 12px var(--body); color: var(--muted); letter-spacing: 0; text-transform: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); }
.grid.narrow { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.empty-note { color: var(--muted); font-style: italic; padding: 14px 0; }
.no-match { display: none; color: var(--muted); font-style: italic; padding: 10px 0; }
.sec.all-hidden .no-match { display: block; }
.hidden { display: none !important; }

/* ---------- cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(23,18,37,.92), rgba(13,11,21,.95));
  border: 1px solid var(--line); border-radius: 3px; padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.card::before {
  content: ""; position: absolute; inset: 3px; border: 1px solid rgba(201,163,91,.08); pointer-events: none; border-radius: 2px;
}
.card-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; }
.card-t { font: 700 17px/1.2 var(--display); color: var(--gold-hi); letter-spacing: .03em; margin: 0; }
.card-st { color: var(--muted); font-size: 13px; }
.card p { margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chip {
  display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 1px 7px; border-radius: 2px;
  border: 1px solid #3a3146; color: #cbc3b1; background: rgba(255,255,255,.03); white-space: nowrap;
}
.chip.gold { border-color: rgba(201,163,91,.5); color: var(--gold-hi); }
.chip.ice { border-color: rgba(143,211,255,.45); color: var(--ice); }
.chip.blood { border-color: rgba(224,64,64,.5); color: #ff8b8b; }
.chip.green { border-color: rgba(62,193,92,.5); color: #7ee08f; }
.chip.violet { border-color: rgba(182,96,232,.5); color: #d4a4f2; }
.chip.k-lines { border-color: rgba(95,209,111,.45); color: #96e3a1; }
.chip.k-values { border-color: rgba(232,210,58,.45); color: #efe08a; }
.chip.k-wording { border-color: rgba(143,211,255,.4); color: #b5e1ff; }
.chip.k-fields { border-color: rgba(182,96,232,.45); color: #d4a4f2; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
details { margin: 8px 0 0; border-top: 1px solid rgba(255,255,255,.06); padding-top: 6px; }
details > summary { cursor: pointer; color: var(--gold); font-size: 13px; list-style: none; user-select: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "\25B8"; display: inline-block; width: 14px; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details .inner { padding: 6px 0 2px; font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid #2f2738; padding: 4px 6px; }
table.t td { border-bottom: 1px solid rgba(255,255,255,.05); padding: 4px 6px; vertical-align: top; }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.plain { margin: 6px 0; padding-left: 18px; }
ul.plain li { margin: 2px 0; font-size: 13.5px; }
.quote { white-space: pre-line; font-style: italic; color: #c9b9a0; }
.small { font-size: 12px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #140f08;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  border: 1px solid #000; border-radius: 2px; padding: 7px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--gold-hi); border-color: rgba(201,163,91,.5); box-shadow: none; }

/* ---------- visual: screenshot or rendered tooltip ---------- */
.visual { margin: 0 0 10px; }
.shot { margin: 0; position: relative; cursor: zoom-in; }
.shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #2f2738; background: #000; }
.shot figcaption, .rendered-label {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-align: center; margin-top: 5px;
}
.shot figcaption .k-game { color: #8fc49a; }
.shot figcaption .k-reconstructed { color: #d9b46b; }
.extras { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.extras img { width: 74px; height: 50px; object-fit: cover; border: 1px solid #2f2738; cursor: zoom-in; }

/* ---------- LE style tooltip ---------- */
.tt {
  --rc: var(--r-normal);
  position: relative; max-width: 380px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.035), transparent 60%),
    linear-gradient(180deg, #15111c 0%, #0c0a11 100%);
  border: 1px solid #4a3d2a;
  outline: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.9), inset 0 0 0 2px rgba(201,163,91,.12), 0 8px 26px rgba(0,0,0,.65);
  font: 13.5px/1.42 var(--body);
}
.tt::before, .tt::after {
  content: ""; position: absolute; width: 9px; height: 9px; top: -5px; background: #0b0a0f; border: 1px solid var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 6px rgba(201,163,91,.45);
}
.tt::before { left: -5px; }
.tt::after { right: -5px; }
.tt.r-unique { --rc: var(--r-unique); }
.tt.r-set { --rc: var(--r-set); }
.tt.r-legendary { --rc: var(--r-legendary); }
.tt.r-exalted { --rc: var(--r-exalted); }
.tt.r-rare { --rc: var(--r-rare); }
.tt.r-magic { --rc: var(--r-magic); }
.tt.r-normal { --rc: var(--r-normal); }
.tt-head {
  padding: 11px 14px 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 26%, transparent), color-mix(in srgb, var(--rc) 4%, transparent) 85%);
  border-bottom: 1px solid color-mix(in srgb, var(--rc) 45%, #000);
}
.tt-name { font: 700 17.5px/1.2 var(--display); color: var(--rc); letter-spacing: .02em; text-shadow: 0 1px 0 #000, 0 0 14px color-mix(in srgb, var(--rc) 35%, transparent); }
.tt-name s { color: var(--rem); opacity: .85; font-size: 14px; display: block; }
.tt-base { color: #b4ab98; font-size: 12.5px; margin-top: 2px; }
.tt-base .rar { color: var(--rc); }
.tt-icon { padding: 10px 0 2px; }
.tt-icon img { max-height: 120px; max-width: 120px; image-rendering: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.8)); }
.tt-body { padding: 6px 16px 12px; }
.tt-imp { color: #e5ded0; }
.tt-mods { color: #a9c0ff; }
.tt-mods.affix { color: #d6cfbd; }
.tt-line { padding: 1px 0; }
.tt-line[title] { text-decoration: underline dotted rgba(169,192,255,.45); text-underline-offset: 3px; cursor: help; }
.tt-line.add { color: var(--add); }
.tt-line.add::before { content: "+ "; opacity: .7; font-weight: 700; }
.tt-line.rem { color: var(--rem); text-decoration: line-through; text-decoration-color: rgba(224,87,92,.8); }
.tt-line.rem::before { content: "\2212 "; opacity: .7; text-decoration: none; display: inline-block; margin-right: 4px; }
.tt-line.same-dim { opacity: .85; }
.tt-div { display: flex; align-items: center; margin: 7px 10px; }
.tt-div::before, .tt-div::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,163,91,.55)); }
.tt-div::after { background: linear-gradient(270deg, transparent, rgba(201,163,91,.55)); }
.tt-div i { width: 5px; height: 5px; margin: 0 6px; background: var(--gold); transform: rotate(45deg); }
.tt-desc { color: #cfc6b1; font-size: 13px; }
.tt-effect { color: var(--ice); font-weight: 600; }
.tt-setbonus { color: var(--r-set); }
.tt-setbonus b { color: #9be5a8; font-weight: 600; }
.tt-lore { white-space: pre-line; color: #b99366; font-style: italic; font-size: 12.5px; margin-top: 4px; }
.tt-req { color: #8f8878; font-size: 12px; margin-top: 8px; }
.tt-req .cls { color: #e6d9b3; }
.tt-req .lv { color: #d7d0c0; }
.tt-flags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.tt-flags span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid #2f2738; padding: 0 5px; }
.tt-tiers { text-align: left; margin: 4px 0; font-size: 12.5px; }
.tt-tiers .tier { display: grid; grid-template-columns: 32px 1fr; gap: 6px; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.tt-tiers .tier b { color: var(--gold); font-weight: 600; font-size: 11.5px; }
.tt-field { font-size: 12.5px; margin: 2px 0; }
.tt-field .old { color: var(--rem); text-decoration: line-through; }
.tt-field .new { color: var(--add); }
ins.w { color: var(--add); text-decoration: none; background: rgba(95,209,111,.12); border-radius: 2px; }
del.w { color: var(--rem); background: rgba(224,87,92,.12); border-radius: 2px; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ba-col { min-width: 0; }
.ba-label { font: 600 11px var(--body); letter-spacing: .07em; text-transform: uppercase; text-align: center; margin-bottom: 6px; padding: 3px 4px; border-radius: 2px; }
.ba-label.before { color: #e9a3a5; background: rgba(224,87,92,.08); border: 1px solid rgba(224,87,92,.25); }
.ba-label.after { color: #a6e7b0; background: rgba(95,209,111,.08); border: 1px solid rgba(95,209,111,.25); }
.ba .tt { max-width: none; }
.slider {
  position: relative; display: grid; user-select: none; touch-action: none; cursor: ew-resize;
  border: 1px solid #2f2738; background: #050407; --pos: 50%;
}
.slider img { grid-area: 1 / 1; align-self: start; width: 100%; height: auto; display: block; pointer-events: none; }
.slider .s-after { clip-path: inset(0 0 0 var(--pos)); }
.slider .s-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold-hi); box-shadow: 0 0 8px rgba(0,0,0,.9); }
.slider .s-handle::after {
  content: "\2039 \203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #120e18; color: var(--gold-hi); border: 1px solid var(--gold); border-radius: 50%; width: 32px; height: 32px;
  display: grid; place-items: center; font: 700 15px/1 var(--body); letter-spacing: -1px;
}
.slider .s-tag { position: absolute; top: 6px; font: 600 10.5px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; background: rgba(0,0,0,.75); border-radius: 2px; }
.slider .s-tag.l { left: 6px; color: #e9a3a5; }
.slider .s-tag.r { right: 6px; color: #a6e7b0; }
.slider-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 11px; color: var(--dim); }

/* set */
.set-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.set-bonus { border-color: rgba(62,193,92,.35); }
.set-bonus .card-t { color: var(--r-set); }

/* quest */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; position: relative; }
.steps li { position: relative; padding: 8px 0 8px 46px; counter-increment: st; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 6px; width: 30px; height: 30px; display: grid; place-items: center;
  font: 700 13px var(--display); color: #140f08; background: linear-gradient(160deg, var(--gold-hi), var(--gold-lo));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.steps li::after { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: -6px; width: 1px; background: rgba(201,163,91,.25); }
.steps li:last-child::after { display: none; }
.steps li.sub { padding-left: 64px; color: var(--muted); font-size: 13px; counter-increment: none; }
.steps li.sub::before { content: ""; width: 7px; height: 7px; left: 26px; top: 15px; background: var(--ice); }
.steps .key { display: block; font-size: 11px; color: var(--dim); }
.fix { white-space: pre-wrap; font-size: 13px; }

/* voice lines */
.voice { columns: 2 220px; column-gap: 20px; font-size: 13px; }
.voice h5 { margin: 6px 0 2px; font: 600 12px var(--display); color: var(--gold); letter-spacing: .06em; break-after: avoid; }
.voice ul { margin: 0 0 8px; padding-left: 16px; break-inside: avoid-column; }
.voice li { color: #d6c0a4; font-style: italic; }

/* systems */
.sys-text p { margin: 0 0 10px; color: #cfc7b5; }
.sys-summary { font-size: 16px; color: #e8dcc0; border-left: 2px solid var(--gold); padding: 2px 0 2px 12px; margin: 4px 0 12px; font-style: italic; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(3,2,6,.94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
}
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; text-align: center; max-height: 100vh; padding: 30px 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); border: 1px solid #3b3226; box-shadow: 0 0 40px rgba(0,0,0,.9); }
.lb-fig figcaption { color: var(--muted); margin-top: 10px; font-size: 13px; }
.lb-btn { background: none; border: 0; color: var(--gold-hi); font-size: 54px; cursor: pointer; line-height: 1; padding: 10px; }
.lb-btn:hover { color: #fff; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }
.lb-close { position: absolute; top: 8px; right: 14px; font-size: 40px; }

/* 3d viewer */
.viewer { position: fixed; inset: 0; z-index: 110; background: rgba(3,2,6,.88); display: grid; place-items: center; padding: 20px; }
.viewer[hidden] { display: none; }
.viewer-panel { width: min(1100px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--gold-lo); box-shadow: 0 0 60px rgba(0,0,0,.9); }
.viewer-bar { display: flex; gap: 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.viewer-bar strong { font: 700 16px var(--display); color: var(--gold-hi); flex: 1; }
.viewer-bar label { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.viewer-bar select { background: #0c0a13; color: var(--text); border: 1px solid #3a3045; padding: 4px 6px; }
.viewer-stage { position: relative; flex: 1; min-height: 0; background: radial-gradient(circle at 50% 40%, #241d36, #08070c 75%); }
.viewer-stage canvas { display: block; width: 100%; height: 100%; }
.viewer-msg[hidden] { display: none; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); margin: 0; pointer-events: none; }

/* footer */
.footer { position: relative; z-index: 2; text-align: center; color: var(--muted); padding: 30px 20px 50px; border-top: 1px solid rgba(201,163,91,.18); margin-top: 30px; font-size: 13px; }
.footer-meta { font-size: 11.5px; color: var(--dim); }

/* responsive */
@media (max-width: 1640px) { .brand-txt { display: none; } }
@media (max-width: 1100px) { .search { flex-basis: 170px; } }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 6px 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .search { flex: 1 1 auto; }
  :root { --nav-h: 96px; }
  main { padding: 6px 12px 30px; }
  .grid, .grid.wide, .grid.narrow { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .hero { padding: 54px 14px 44px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .lb-btn { font-size: 38px; padding: 4px; }
}
