:root {
  --bg: #03060c;
  --bg-elev: #080d17;
  --card: #0b111e;
  --card-hi: #0f1728;
  --border: rgba(148, 163, 184, 0.12);
  --border-hi: rgba(56, 189, 248, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --emerald: #34d399;
  --amber: #fbbf24;
  --violet: #a78bfa;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.ico { width: 15px; height: 15px; flex-shrink: 0; display: inline-block; }
.ico-chk { width: 14px; height: 14px; color: var(--emerald); }
.ico-shield { width: 28px; height: 28px; color: var(--emerald); }
.ico-chev { width: 13px; height: 13px; color: var(--muted); }
.ico-search { width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.flag-svg { border-radius: 2px; flex-shrink: 0; display: block; }
[hidden] { display: none !important; }

/* Background */
.bg-stage { position: absolute; inset: 0 0 auto 0; height: 920px; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 18%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 18%, #000 35%, transparent 100%);
}
.bg-glow-top {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 1100px; height: 620px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.07) 42%, transparent 72%);
}
.bg-glow-side {
  position: absolute; top: 220px; left: 50%; transform: translateX(-50%); width: 900px; height: 460px;
  background: radial-gradient(circle at 25% 50%, rgba(52, 211, 153, 0.07), transparent 55%), radial-gradient(circle at 75% 45%, rgba(167, 139, 250, 0.08), transparent 55%);
}

/* Floating Capsule Header */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 40; padding: 0 16px; }
main { padding-top: 74px; }
.hdr-capsule {
  max-width: 1160px; margin: 0 auto; height: 58px; padding: 0 12px 0 16px; border-radius: 14px;
  background: rgba(9, 14, 24, 0.94); border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 40px rgba(0, 0, 0, 0.52);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; letter-spacing: 0.05em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.ver-pill {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11px; font-weight: 600; color: var(--cyan-bright);
  padding: 2px 7px; border-radius: 999px; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25);
}
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 500; transition: color 90ms ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--text); }
.hdr-actions { display: flex; align-items: center; gap: 7px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(15, 23, 40, 0.9); color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.2;
  cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 110ms ease, background-color 110ms ease, transform 90ms ease, box-shadow 110ms ease;
}
.btn:hover { background: #151f33; border-color: rgba(148, 163, 184, 0.34); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn-lg { padding: 13px 24px; font-size: 14.5px; border-radius: 11px; }
.btn-glow {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 60%, #22d3ee 100%); color: #03111a;
  border-color: rgba(125, 211, 252, 0.65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 28px rgba(56, 189, 248, 0.32);
}
.btn-glow:hover { background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 60%, #67e8f9 100%); border-color: #bae6fd; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 34px rgba(56, 189, 248, 0.45); }
.btn-hdr { background: #f1f5f9; color: #03060c; border-color: #f1f5f9; }
.btn-hdr:hover { background: #ffffff; border-color: #ffffff; }

/* Language Dropdown */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(15, 23, 40, 0.85); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color 90ms ease, background-color 90ms ease;
}
.lang-btn:hover { border-color: rgba(148, 163, 184, 0.32); background: #151f33; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 192px; padding: 6px; border-radius: 12px;
  background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.22); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  display: none; flex-direction: column; gap: 2px; z-index: 60; max-height: 75vh; overflow-y: auto;
}
.lang-wrap.open .lang-menu { display: flex; }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); transition: background-color 80ms ease, color 80ms ease; }
.lang-item:hover { background: #141f35; color: var(--text); }
.lang-item.active { background: rgba(56, 189, 248, 0.14); color: var(--cyan-bright); font-weight: 600; }

/* Hero + Cockpit */
.hero { padding: 46px 0 44px; position: relative; }
.hero-head { text-align: center; max-width: 920px; margin: 0 auto 36px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px;
  background: rgba(11, 18, 32, 0.92); border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 12.5px; font-weight: 600; color: #cbd5e1;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
h1 { margin: 18px auto 16px; font-size: clamp(31px, 4.1vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.032em; color: #ffffff; }
.h1-accent { display: block; background: linear-gradient(120deg, #e0f2fe 0%, #38bdf8 52%, #34d399 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 auto 26px; max-width: 660px; color: var(--muted); font-size: 16.5px; line-height: 1.62; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.hero-checks { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 13px; color: #94a3b8; }
.check-item { display: inline-flex; align-items: center; gap: 6px; }

.cockpit-shell {
  max-width: 1120px; margin: 0 auto; padding: 1px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.36) 0%, rgba(148, 163, 184, 0.14) 38%, rgba(148, 163, 184, 0.05) 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72), 0 0 70px rgba(56, 189, 248, 0.09);
}
.cockpit-inner { background: #070b13; border-radius: 17px; padding: 12px; }
.cockpit-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; flex-wrap: wrap; }
.bar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.win-dots { display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.win-dots span { width: 8px; height: 8px; border-radius: 50%; background: #1e293b; }
.win-dots span:first-child { background: var(--cyan); }
.win-dots span:nth-child(2) { background: var(--emerald); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: #0c1220; border: 1px solid rgba(148, 163, 184, 0.12); }
.tab-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background-color 90ms ease, color 90ms ease, border-color 90ms ease;
}
.tab-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab-btn.active { background: #141f35; color: #ffffff; border-color: rgba(56, 189, 248, 0.35); }
.tab-btn[data-kind="video"].active { background: rgba(56, 189, 248, 0.14); color: var(--cyan-bright); }
.bar-right { display: flex; align-items: center; gap: 8px; }
.media-controls { display: flex; align-items: center; gap: 6px; }
.stage-note { font-size: 12px; color: var(--dim); padding-right: 4px; }
.stage-frame { position: relative; aspect-ratio: 16 / 9; background: #04070d; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 11px; overflow: hidden; }
.stage-video, .stage-img { width: 100%; height: 100%; display: block; object-fit: contain; background: #04070d; }
.stage-img { cursor: zoom-in; }

/* Metrics Strip */
.metrics-strip { margin: 26px auto 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-tile { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 16px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.metric-val { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; font-variant-numeric: tabular-nums; }
.metric-lbl { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.sec-head { max-width: 680px; margin-bottom: 34px; }
.sec-kicker { display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 10px; }
.sec-kicker-green { color: var(--emerald); }
.sec-title { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18; }
.sec-sub { margin: 12px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Bento Grid & Live HUD Previews */
.bento-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.bento-card {
  background: linear-gradient(180deg, rgba(16, 24, 42, 0.92) 0%, rgba(9, 14, 25, 0.96) 100%);
  border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: border-color 120ms ease, transform 120ms ease;
}
.bento-card:hover { border-color: rgba(56, 189, 248, 0.34); transform: translateY(-2px); }
.bento-7 { grid-column: span 7; }
.bento-5 { grid-column: span 5; }
.bento-4 { grid-column: span 4; }
.bento-card h3 { margin: 0 0 7px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.bento-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.hud-box { background: #050912; border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 11px; padding: 13px; font-variant-numeric: tabular-nums; }
.hud-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11px; color: var(--cyan-bright); font-weight: 700; }
.hud-badges { display: flex; gap: 5px; }
.hud-tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); color: var(--cyan-bright); }
.hud-tag-green { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); color: var(--emerald); }
.dps-rows { display: grid; gap: 7px; }
.dps-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 7px; background: #0a111f; overflow: hidden; font-size: 12.5px; }
.dps-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.06)); pointer-events: none; }
.dps-bar-2 { background: linear-gradient(90deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04)); }
.dps-bar-3 { background: linear-gradient(90deg, rgba(167, 139, 250, 0.16), rgba(167, 139, 250, 0.04)); }
.w-100 { width: 100%; }
.w-66 { width: 66%; }
.w-50 { width: 50%; }
.dps-l, .dps-r { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.dps-rk { font-family: ui-monospace, monospace; font-size: 11px; color: var(--dim); font-weight: 700; }
.dps-nm { font-weight: 600; color: var(--text); }
.dps-val { font-weight: 700; color: var(--cyan-bright); }
.dps-pct { font-size: 11.5px; color: var(--muted); }
.boss-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.chip-sm { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #0c1424; border: 1px solid rgba(148, 163, 184, 0.14); color: var(--muted); }
.boss-rows { display: grid; gap: 7px; }
.boss-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 7px; background: #0a111f; font-size: 12.5px; }
.boss-nm { font-weight: 600; color: var(--text); }
.boss-st-live { font-size: 11.5px; font-weight: 700; color: var(--emerald); }
.boss-st-wait { font-size: 11.5px; font-weight: 700; color: var(--amber); font-family: ui-monospace, monospace; }
.yield-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.yield-big { font-size: 23px; font-weight: 800; color: var(--cyan-bright); letter-spacing: -0.02em; }
.yield-unit { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.yield-sub { font-size: 11.5px; color: var(--amber); font-weight: 600; }
.yield-spark { width: 100%; height: 42px; display: block; margin: 8px 0 6px; }
.yield-foot { font-size: 12px; color: var(--emerald); font-weight: 600; }
.chat-lines { display: grid; gap: 7px; font-size: 12px; }
.chat-line { padding: 8px 10px; border-radius: 7px; background: #0a111f; }
.chat-line-tr { border-left: 2px solid var(--amber); background: rgba(251, 191, 36, 0.06); }
.chat-hdr { color: var(--cyan-bright); font-weight: 600; font-size: 11px; margin-bottom: 2px; }
.chat-orig { color: var(--muted); }
.chat-tr { color: #fde68a; font-weight: 600; }
.alert-card { padding: 10px 11px; border-radius: 8px; background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(11, 17, 30, 0.9)); border: 1px solid rgba(56, 189, 248, 0.25); }
.alert-src { font-size: 11px; font-weight: 700; color: var(--cyan-bright); margin-bottom: 3px; }
.alert-msg { font-size: 12px; color: var(--text); font-weight: 500; }
.alert-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* Safety, Steps, CTA, FAQ */
.safety-banner { background: linear-gradient(135deg, rgba(52, 211, 153, 0.09) 0%, rgba(11, 17, 30, 0.95) 58%); border: 1px solid rgba(52, 211, 153, 0.28); border-radius: 18px; padding: 28px; }
.safety-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.safety-ico-wrap { width: 48px; height: 48px; border-radius: 12px; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.safety-card { background: rgba(5, 9, 18, 0.85); border: 1px solid rgba(52, 211, 153, 0.18); border-radius: 13px; padding: 18px; }
.safety-num { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; font-weight: 800; color: var(--emerald); margin-bottom: 6px; }
.safety-card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.safety-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: 15px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; font-weight: 800; color: var(--cyan-bright); margin-bottom: 14px; }
.step-card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.58; }
.cta-band { background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(56, 189, 248, 0.16), rgba(11, 17, 30, 0.96) 72%); border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 18px; padding: 36px 28px; text-align: center; }
.cta-band h2 { margin: 0 auto 10px; max-width: 720px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto 22px; max-width: 600px; color: var(--muted); font-size: 14.5px; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; transition: border-color 100ms ease; }
.faq-item[open] { border-color: rgba(56, 189, 248, 0.32); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-family: ui-monospace, monospace; font-size: 18px; }
.faq-item[open] summary::after { content: "−"; color: var(--cyan); }
.faq-item p { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.62; }

/* SEO Subpages (/bosses/ & /arcane-calculator/) */
.sub-hero { padding: 38px 0 32px; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--cyan-bright); }
.sub-h1 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; text-align: left; }
.sub-lead { margin: 0; max-width: 840px; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.world-strip {
  margin-top: 22px; padding: 14px 18px; border-radius: 13px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1) 0%, rgba(11, 17, 30, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.world-lbl { font-size: 13px; font-weight: 700; color: var(--cyan-bright); }
.world-times { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; font-weight: 700; color: #ffffff; }

.toolbar {
  margin: 22px 0 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(15, 23, 40, 0.92); color: var(--muted);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 95ms ease;
}
.filter-btn:hover { border-color: rgba(148, 163, 184, 0.36); color: var(--text); background: #141f35; }
.filter-btn.active { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.5); color: #ffffff; box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.2); }
.pill-cnt {
  padding: 1px 6px; border-radius: 999px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11px; font-weight: 700; background: rgba(148, 163, 184, 0.14); color: var(--dim);
}
.filter-btn.active .pill-cnt { background: rgba(56, 189, 248, 0.22); color: var(--cyan-bright); }
.search-tools { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; min-width: 260px; }
.search-wrap { position: relative; flex: 1; max-width: 340px; min-width: 210px; }
.search-wrap .ico-search { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.search-box {
  width: 100%; padding: 9px 14px 9px 36px; border-radius: 10px; border: 1px solid var(--border);
  background: #060b15; color: var(--text); font-size: 13.5px; outline: none; transition: border-color 95ms ease, box-shadow 95ms ease;
}
.search-box::placeholder { color: var(--dim); }
.search-box:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
.btn-reset {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(15, 23, 40, 0.92); color: var(--muted);
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 95ms ease;
}
.btn-reset:hover { border-color: rgba(148, 163, 184, 0.4); color: #ffffff; background: #17233b; }
.tbl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.tbl-hint { color: var(--dim); font-size: 12px; }

.tbl-wrap {
  background: linear-gradient(180deg, rgba(13, 20, 35, 0.96) 0%, rgba(8, 13, 24, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; overflow-x: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tbl-wrap::-webkit-scrollbar { height: 8px; }
.tbl-wrap::-webkit-scrollbar-track { background: #070b13; }
.tbl-wrap::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 999px; }
.data-tbl { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.data-tbl th {
  padding: 13px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--dim); border-bottom: 1px solid rgba(148, 163, 184, 0.16); background: #070c16; white-space: nowrap;
  user-select: none;
}
.data-tbl th.sortable { cursor: pointer; transition: color 90ms ease, background-color 90ms ease; }
.data-tbl th.sortable:hover { color: var(--text); background: #0c1424; }
.data-tbl th.sort-asc, .data-tbl th.sort-desc { color: var(--cyan-bright); background: rgba(56, 189, 248, 0.06); }
.sort-ind { display: inline-block; margin-left: 5px; font-size: 10.5px; opacity: 0.45; }
.data-tbl th.sort-asc .sort-ind, .data-tbl th.sort-desc .sort-ind { opacity: 1; color: var(--cyan-bright); }
.data-tbl td { padding: 11px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); vertical-align: middle; }
.data-tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.014); }
.data-tbl tbody tr:last-child td { border-bottom: 0; }
.data-tbl tbody tr:hover { background: rgba(56, 189, 248, 0.065); }
.data-tbl th.col-num, .data-tbl td.col-num { text-align: right; }
.col-nowrap { white-space: nowrap; }

.boss-name { font-weight: 700; color: #f8fafc; }
.lvl-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 3px 8px;
  border-radius: 7px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 700;
  background: rgba(148, 163, 184, 0.11); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.16);
}
.lvl-s2 { background: rgba(56, 189, 248, 0.1); color: var(--cyan-bright); border-color: rgba(56, 189, 248, 0.22); }
.lvl-s3 { background: rgba(167, 139, 250, 0.12); color: var(--violet); border-color: rgba(167, 139, 250, 0.25); }
.lvl-s4 { background: rgba(251, 191, 36, 0.14); color: var(--amber); border-color: rgba(251, 191, 36, 0.28); }
.cat-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border: 1px solid transparent;
}
.cat-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.cat-world { background: rgba(251, 191, 36, 0.14); color: var(--amber); border-color: rgba(251, 191, 36, 0.24); }
.cat-field { background: rgba(56, 189, 248, 0.14); color: var(--cyan-bright); border-color: rgba(56, 189, 248, 0.24); }
.cat-zone { background: rgba(52, 211, 153, 0.14); color: var(--emerald); border-color: rgba(52, 211, 153, 0.24); }
.cat-arena { background: rgba(167, 139, 250, 0.16); color: var(--violet); border-color: rgba(167, 139, 250, 0.26); }
.cat-proj { background: rgba(244, 114, 182, 0.14); color: #f472b6; border-color: rgba(244, 114, 182, 0.24); }
.loc-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.loc-map { color: var(--text); font-weight: 500; }
.loc-spot { color: var(--dim); font-size: 12px; }
.resp-pill {
  display: inline-block; padding: 3px 9px; border-radius: 7px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px; font-weight: 600; background: #070d18; border: 1px solid rgba(148, 163, 184, 0.15); color: #cbd5e1; white-space: nowrap;
}
.tbl-empty {
  padding: 34px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* Arcane Calculator Controls */
.calc-panel {
  margin: 22px 0 18px; padding: 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 21, 36, 0.96) 0%, rgba(9, 14, 25, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16); display: grid; gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.calc-stone-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.calc-stone-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.calc-lbl { font-size: 14px; font-weight: 700; color: var(--text); }
.calc-sub-lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); margin-bottom: 10px; }
.tier-inputs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; }
.tier-field {
  display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 11px;
  background: rgba(6, 10, 19, 0.85); border: 1px solid rgba(148, 163, 184, 0.12);
}
.tier-field label { font-size: 11.5px; font-weight: 800; color: var(--cyan-bright); font-family: ui-monospace, monospace; letter-spacing: 0.04em; }
.inp-shell {
  position: relative; display: flex; align-items: center; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.18);
  background: #04070e; transition: border-color 95ms ease, box-shadow 95ms ease;
}
.inp-shell:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
.num-inp {
  width: 100%; min-width: 0; padding: 7px 24px 7px 9px; border: 0; background: transparent;
  color: #ffffff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; font-weight: 700; outline: none;
}
.inp-gem { position: absolute; right: 8px; font-size: 11px; color: var(--cyan); opacity: 0.8; pointer-events: none; }
.inp-shell-sm { width: 136px; }
.calc-enh-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.arc-enh-lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.arc-enh-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: #070c17; color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 90ms ease;
}
.arc-enh-btn:hover { color: #ffffff; border-color: rgba(148, 163, 184, 0.36); }
.arc-enh-btn.active { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.5); color: var(--cyan-bright); }

.arc-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.podium-card {
  position: relative; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(16, 25, 44, 0.94) 0%, rgba(8, 13, 24, 0.98) 100%);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px;
}
.podium-1 { border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(8, 13, 24, 0.98) 65%); }
.podium-2 { border-color: rgba(56, 189, 248, 0.35); }
.podium-3 { border-color: rgba(167, 139, 250, 0.32); }
.podium-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.podium-kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.podium-1 .podium-kicker { color: var(--emerald); }
.podium-2 .podium-kicker { color: var(--cyan-bright); }
.podium-3 .podium-kicker { color: var(--violet); }
.podium-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.podium-combo { font-size: 20px; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; font-family: ui-monospace, monospace; }
.podium-ratio { font-family: ui-monospace, monospace; font-size: 16px; font-weight: 800; color: var(--emerald); }
.podium-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }

.arc-top { background: rgba(52, 211, 153, 0.055); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; padding: 3px 8px; border-radius: 7px;
  font-weight: 800; font-size: 12px; font-family: ui-monospace, monospace; color: var(--muted); background: rgba(148, 163, 184, 0.08);
}
.rank-1 { background: rgba(52, 211, 153, 0.22); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.42); }
.rank-2 { background: rgba(56, 189, 248, 0.18); color: var(--cyan-bright); border: 1px solid rgba(56, 189, 248, 0.36); }
.rank-3 { background: rgba(167, 139, 250, 0.18); color: var(--violet); border-color: rgba(167, 139, 250, 0.36); border: 1px solid rgba(167, 139, 250, 0.36); }
.tier-pill {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, monospace;
  font-size: 12px; font-weight: 800; background: rgba(148, 163, 184, 0.14); color: #e2e8f0;
}
.tier-t5 { background: rgba(56, 189, 248, 0.16); color: var(--cyan-bright); }
.tier-t6 { background: rgba(52, 211, 153, 0.16); color: var(--emerald); }
.tier-t7 { background: rgba(167, 139, 250, 0.18); color: var(--violet); }
.tier-t8 { background: rgba(251, 191, 36, 0.18); color: var(--amber); }
.enh-pill { font-family: ui-monospace, monospace; font-weight: 700; color: #cbd5e1; }
.enh-12 { color: var(--cyan-bright); }
.enh-15 { color: var(--amber); font-weight: 800; }
.eff-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 112px; }
.eff-hi { font-weight: 800; color: var(--emerald); }
.eff-track { width: 112px; height: 5px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.eff-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0ea5e9 0%, #34d399 100%); }
.eff-w-0 { width: 0%; } .eff-w-5 { width: 5%; } .eff-w-10 { width: 10%; } .eff-w-15 { width: 15%; }
.eff-w-20 { width: 20%; } .eff-w-25 { width: 25%; } .eff-w-30 { width: 30%; } .eff-w-35 { width: 35%; }
.eff-w-40 { width: 40%; } .eff-w-45 { width: 45%; } .eff-w-50 { width: 50%; } .eff-w-55 { width: 55%; }
.eff-w-60 { width: 60%; } .eff-w-65 { width: 65%; } .eff-w-70 { width: 70%; } .eff-w-75 { width: 75%; }
.eff-w-80 { width: 80%; } .eff-w-85 { width: 85%; } .eff-w-90 { width: 90%; } .eff-w-95 { width: 95%; }
.eff-w-100 { width: 100%; }

/* Footer */
.site-footer { border-top: 1px solid rgba(148, 163, 184, 0.1); padding: 28px 0 38px; color: var(--dim); font-size: 12.5px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--cyan-bright); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.footer-langs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color 80ms ease; }
.footer-langs a:hover { color: var(--text); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(3, 6, 12, 0.94); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; border: 1px solid rgba(56, 189, 248, 0.35); }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-7, .bento-5, .bento-4 { grid-column: span 12; }
  .safety-grid, .steps-grid { grid-template-columns: 1fr; }
  .tier-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arc-podium { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 38px 0 32px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .hdr-actions .btn-hide-sm, .ver-pill { display: none; }
  .section { padding: 48px 0; }
  .cockpit-inner { padding: 8px; }
  .tier-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-tools { width: 100%; min-width: 0; }
  .search-wrap { max-width: none; min-width: 0; }
  .data-tbl th, .data-tbl td { padding: 10px 11px; }
}
