@import url("/assets/fonts.css");
@import url("/pattern.css?v=20260911-pattern-v2");

:root {
  color-scheme: dark;
  --bg: #11141a;
  --bg-deep: #0c0f14;
  --surface: rgba(26, 30, 38, 0.88);
  --surface-solid: #1a1e26;
  --surface-raised: #20252e;
  --surface-soft: #151920;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4ee;
  --text-soft: #adb3b2;
  --text-faint: #747c7b;
  --accent: #d7f66b;
  --accent-strong: #bfe34a;
  --accent-dark: #26311a;
  --teal: #5bdbb4;
  --gold: #f1c96b;
  --red: #ff7f75;
  --purple: #bd9cf8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --page: min(1380px, calc(100vw - 64px));
  --font-sans: "Inter Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope Local", Manrope, var(--font-sans);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f1e9;
  --bg-deep: #e6e7dc;
  --surface: rgba(250, 251, 246, 0.9);
  --surface-solid: #fafbf6;
  --surface-raised: #ffffff;
  --surface-soft: #f3f4ed;
  --border: rgba(27, 32, 31, 0.1);
  --border-strong: rgba(27, 32, 31, 0.18);
  --text: #1a1e1d;
  --text-soft: #5d6664;
  --text-faint: #87908e;
  --accent: #9abb2f;
  --accent-strong: #76931a;
  --accent-dark: #eef5d6;
  --teal: #168d6c;
  --gold: #a8750a;
  --red: #c54d43;
  --purple: #7754b2;
  --shadow: 0 24px 70px rgba(40, 48, 40, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 3%, rgba(215, 246, 107, 0.05), transparent 22rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 35rem);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
code { color: var(--accent); font-size: .92em; }

.page-width { width: var(--page); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%); background: var(--accent); color: #111; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: none; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .15; z-index: -2; }
.ambient-one { width: 420px; height: 420px; top: 70px; right: -260px; opacity: .055; border: 1px solid var(--accent); box-shadow: inset 0 0 80px rgba(215, 246, 107, .05); }
.ambient-two { width: 260px; height: 260px; bottom: -160px; left: -100px; background: rgba(91, 219, 180, .1); filter: blur(80px); }
main, .site-footer { position: relative; z-index: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(32px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-deep) 84%, transparent);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; text-decoration: none; font-family: var(--font-display); letter-spacing: -.04em; font-size: 19px; }
.brand strong { font-weight: 750; }
.brand em { color: var(--accent); font-style: normal; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }

.global-nav { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); }
.global-nav a, .global-nav > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--text-soft); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.global-nav a:hover, .global-nav a:focus-visible, .global-nav a.is-current { color: var(--text); background: var(--surface-solid); }
.global-nav a.global-nav-featured { color: var(--accent-strong); }
.global-nav a.global-nav-featured::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.global-nav a.global-nav-featured:hover,
.global-nav a.global-nav-featured:focus-visible,
.global-nav a.global-nav-featured.is-current { color: var(--text); background: var(--accent-soft); }
.global-nav small { color: var(--text-faint); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.section-navigation { position: sticky; top: 78px; z-index: 42; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-deep) 90%, transparent); backdrop-filter: blur(18px); }
.section-navigation-inner { min-height: 61px; display: flex; align-items: center; gap: 22px; }
.section-navigation-label { flex: 0 0 auto; color: var(--text-faint); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; width: fit-content; padding: 4px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 999px; }
.nav-button { border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); padding: 9px 17px; font-size: 13px; font-weight: 700; transition: .18s ease; }
.nav-button:hover { color: var(--text); }
.nav-button.is-active { color: #171b15; background: var(--accent); box-shadow: 0 2px 14px rgba(215, 246, 107, .12); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.support-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--text-soft); font-size: 12px; font-weight: 750; text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.support-link:hover { transform: translateY(-1px); border-color: color-mix(in srgb, #ff5e6c 42%, var(--border)); background: color-mix(in srgb, #ff5e6c 7%, var(--surface-soft)); color: var(--text); }
.support-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.support-icon { width: 18px; height: 18px; flex: 0 0 auto; color: #ff5e6c; filter: drop-shadow(0 2px 5px rgba(255, 94, 108, .2)); transition: transform .18s ease; }
.support-link:hover .support-icon { transform: scale(1.08); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); color: var(--text-soft); }
.icon-button:hover { color: var(--text); border-color: var(--border-strong); }
.theme-icon { font-size: 20px; line-height: 1; }
.language-picker { position: relative; flex: 0 0 auto; }
.language-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 52px; height: 44px; padding: 0; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface-soft); color: var(--text-soft);
  font: inherit; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.language-toggle:hover, .language-toggle[aria-expanded="true"] { color: var(--text); border-color: var(--border-strong); background: var(--surface-solid); }
.language-toggle > span { font-size: 18px; line-height: 1; filter: saturate(.9); }
.language-toggle small { font-size: 8px; font-weight: 850; letter-spacing: .04em; }
.language-menu {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 120;
  width: 178px; padding: 6px; border: 1px solid var(--border-strong);
  border-radius: 15px; background: var(--surface-solid); box-shadow: var(--shadow);
}
.language-menu[hidden] { display: none; }
.language-menu button {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 15px; align-items: center; gap: 9px;
  width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-soft); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.language-menu button:hover, .language-menu button:focus-visible { background: var(--accent-soft); color: var(--text); }
.language-menu button[aria-checked="true"] { color: var(--accent-strong); }
.language-menu button > span:first-child { font-size: 18px; }
.language-menu b { color: var(--accent); font-size: 11px; }

.product-context { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-soft) 82%, transparent); }
.product-trail { display: flex; align-items: center; gap: 9px; min-height: 39px; color: var(--text-faint); font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.product-trail a { color: inherit; text-decoration: none; transition: color .18s ease; }
.product-trail a:hover, .product-trail a:focus-visible { color: var(--accent); }
.product-trail strong { color: var(--text-soft); font-weight: 800; }
.product-trail span { color: var(--border-strong); }

.tab-panel { animation: panel-in .25s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero { min-height: 330px; display: flex; justify-content: space-between; align-items: center; gap: 60px; padding-block: 56px 48px; }
.hero-copy { max-width: 800px; }
.eyebrow, .step-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
.hero h1, .section-intro h1 { margin: 20px 0 19px; font-size: clamp(42px, 5vw, 70px); line-height: .99; letter-spacing: -.055em; font-weight: 690; }
.hero-copy > h1 { margin-top: 0; }
.hero h1 span, .section-intro h1 span { color: var(--accent); }
.hero-copy > p, .section-intro > p { max-width: 720px; margin: 0; color: var(--text-soft); font-size: 17px; }
.hero-radiant-art { position: relative; isolation: isolate; flex: 0 0 min(39vw, 455px); width: min(39vw, 455px); margin: 0 -8px 0 0; }
.hero-radiant-art::before { content: ""; position: absolute; z-index: -1; inset: 18% 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 68%); filter: blur(26px); opacity: .72; }
.hero-radiant-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .24)); }
html[data-theme="light"] .hero-radiant-art img { filter: drop-shadow(0 17px 24px rgba(40, 48, 37, .12)); }

.illustrated-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-top: -24px; margin-bottom: 34px; }
.illustrated-shortcut { position: relative; min-height: 118px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--border)); border-radius: 18px; background: #fcfaed; color: #22261f; text-decoration: none; box-shadow: 0 13px 28px rgba(0, 0, 0, .12); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.illustrated-shortcut:hover, .illustrated-shortcut:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 58%, var(--border)); box-shadow: 0 18px 34px rgba(0, 0, 0, .17); }
.illustrated-shortcut span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; width: 61%; padding: 18px 0 16px 17px; }
.illustrated-shortcut small { margin-bottom: 7px; color: #789214; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.illustrated-shortcut strong { font-family: var(--font-display); font-size: 15px; line-height: 1.12; letter-spacing: -.02em; }
.illustrated-shortcut img { position: absolute; right: -13px; bottom: -18px; width: 105px; height: 105px; object-fit: cover; object-position: center; }

.explorer-layout { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); align-items: start; gap: 25px; padding-bottom: 90px; }
.card { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.planner { position: sticky; top: 102px; padding: 27px; }
.card-heading, .results-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h2, .results-toolbar h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.035em; }
.text-button { align-self: center; padding: 4px 0; border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 750; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.field-label, .field-group > span:first-child, .segmented-field legend { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.field-label { margin-top: 25px; }

input, select { width: 100%; min-height: 43px; border: 1px solid var(--border); border-radius: 10px; outline: none; background: var(--surface-soft); color: var(--text); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--text-faint); }
input:focus, select:focus { border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.combobox { position: relative; }
.combobox input { padding-left: 39px; padding-right: 46px; }
.search-icon { position: absolute; left: 14px; top: 50%; width: 13px; height: 13px; transform: translateY(-55%); border: 1.8px solid var(--text-faint); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 2px; background: var(--text-faint); }
kbd { position: absolute; right: 10px; top: 9px; min-width: 25px; padding: 3px 6px; border: 1px solid var(--border); border-bottom-color: var(--border-strong); border-radius: 6px; background: var(--surface-raised); color: var(--text-faint); font: 11px var(--font-sans); text-align: center; }
.suggestions { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; max-height: 330px; overflow-y: auto; padding: 6px; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--surface-solid); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.suggestion { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.suggestion:hover, .suggestion.is-focused { background: var(--surface-raised); }
.suggestion strong, .suggestion small { display: block; }
.suggestion strong { font-size: 13px; }
.suggestion small { color: var(--text-faint); font-size: 11px; }
.suggestion > small { color: var(--text-soft); white-space: nowrap; }
.item-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--glyph, var(--accent)) 11%, var(--surface-soft)); color: var(--glyph, var(--accent)); font-size: 15px; font-weight: 800; }
.game-icon { position: relative; flex: 0 0 auto; overflow: hidden; isolation: isolate; }
.game-icon img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.game-icon-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; visibility: hidden; }
.game-icon.is-missing img { display: none; }
.game-icon.is-missing .game-icon-fallback { visibility: visible; }
.monster-glyph img { transform: scale(1.06); }
.zone-glyph img { transform: scale(1.08); }

.selected-items { display: flex; flex-wrap: wrap; gap: 7px; min-height: 34px; margin-top: 12px; }
.empty-selection { margin: 2px 0 0; color: var(--text-faint); font-size: 12px; }
.item-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 7px 4px 5px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 999px; background: var(--accent-dark); color: var(--text); font-size: 12px; font-weight: 700; }
.item-chip .chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-chip .chip-item-glyph { width: 27px; height: 27px; border-radius: 50%; background: var(--surface-raised); }
.item-chip button { display: grid; place-items: center; width: 19px; height: 19px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text-soft); line-height: 1; }
.item-chip button:hover { background: var(--red); color: #171717; }
.divider { height: 1px; margin: 25px 0; background: var(--border); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 14px; }
.filter-grid .wide { grid-column: 1 / -1; }
.check-field { display: inline-flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 12px; cursor: pointer; }
.check-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fake-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-soft); }
.check-field input:checked + .fake-check { border-color: var(--accent); background: var(--accent); }
.check-field input:checked + .fake-check::after { content: "✓"; color: #171a12; font-size: 12px; font-weight: 900; }
.segmented-field { min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.segmented button { min-width: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-faint); padding: 8px 10px; font-size: 12px; font-weight: 750; }
.segmented button.is-active { background: var(--surface-raised); color: var(--text); box-shadow: 0 3px 10px rgba(0,0,0,.14); }

.results-column { min-width: 0; padding-top: 3px; }
.results-toolbar { align-items: center; min-height: 52px; padding: 0 5px 13px; }
.results-toolbar h2 { font-size: 26px; }
.result-count { color: var(--text-faint); font-size: 12px; }
.active-formula { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; margin-bottom: 13px; padding: 12px 15px; border: 1px solid rgba(91,219,180,.18); border-radius: 14px; background: rgba(91,219,180,.055); }
.formula-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid rgba(91,219,180,.09); border-radius: 10px; background: rgba(91,219,180,.12); color: var(--teal); }
.formula-icon svg { width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.formula-icon .formula-icon-spark { color: var(--gold); stroke-width: 1.55; }
.formula-icon .formula-icon-glint { fill: color-mix(in srgb, var(--teal) 66%, white); stroke: none; }
.active-formula p { margin: 0; }
.active-formula p strong, .active-formula p span { display: block; }
.active-formula strong { font-size: 12px; }
.active-formula p span { margin-top: 1px; color: var(--text-faint); font-size: 11px; }
.results { display: grid; gap: 12px; }
.result-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: transform .16s ease, border-color .16s ease; }
.result-card:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.result-main { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 18px; }
.result-glyph { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--glyph, var(--accent)) 18%, transparent); background: color-mix(in srgb, var(--glyph, var(--accent)) 10%, var(--surface-soft)); color: var(--glyph, var(--accent)); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.result-copy { min-width: 0; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; color: var(--text-faint); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.result-meta .boss { color: var(--gold); }
.result-copy h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; letter-spacing: -.025em; }
.result-copy > p { margin: 3px 0 0; color: var(--text-soft); font-size: 12px; }
.entity-title-link { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.entity-title-link span { color: var(--text-faint); font-size: 12px; transition: transform .15s ease, color .15s ease; }
.entity-title-link:hover { color: var(--accent); }
.entity-title-link:hover span { color: var(--accent); transform: translate(2px, -2px); }
.zone-title-link span { font-size: 16px; }
.zone-inline-links { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; }
.zone-inline-link { padding: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: none; color: var(--text-soft); font: inherit; }
.zone-inline-link:hover, .zone-inline-link:focus-visible { border-bottom-color: var(--accent); color: var(--accent); }
.meta-link { padding: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: none; color: var(--accent); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.meta-link:hover { border-bottom-color: var(--accent); }
.coverage { min-width: 105px; text-align: right; }
.coverage strong, .coverage span { display: block; }
.coverage strong { color: var(--accent); font-family: var(--font-display); font-size: 18px; }
.coverage span { color: var(--text-faint); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.coverage-bar { height: 3px; margin-top: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.coverage-bar i { display: block; height: 100%; width: var(--coverage); border-radius: inherit; background: var(--accent); }
.result-drops { display: grid; gap: 1px; border-top: 1px solid var(--border); background: var(--border); }
.drop-row { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(150px, 1fr) repeat(3, minmax(82px, .52fr)) auto; align-items: center; gap: 14px; min-height: 66px; padding: 9px 18px; background: var(--surface-solid); }
.drop-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.drop-item .item-glyph { flex: 0 0 40px; width: 40px; height: 40px; }
.drop-item p { min-width: 0; margin: 0; }
.drop-item strong, .drop-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-item strong { font-size: 12px; }
.drop-item span { color: var(--text-faint); font-size: 10px; }
.monster-link { min-width: 0; }
.monster-link-copy { min-width: 0; }
.monster-link-copy strong, .monster-link-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monster-link strong { font-size: 11px; }
.monster-link-copy > span { color: var(--text-faint); font-size: 10px; }
.monster-link-button { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.monster-link-glyph { width: 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--glyph) 16%, var(--border)); border-radius: 9px; background: color-mix(in srgb, var(--glyph) 7%, var(--surface-soft)); color: var(--glyph); font-size: 9px; font-weight: 850; }
.monster-link-button:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rate-cell { text-align: right; }
.rate-cell strong, .rate-cell span { display: block; }
.rate-cell strong { font-variant-numeric: tabular-nums; font-size: 12px; }
.rate-cell span { color: var(--text-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.rate-cell.rayonnant strong { color: var(--purple); }
.eligibility-uncertain { display: inline !important; margin-left: 2px; color: var(--gold); cursor: help; font-size: .92em; font-weight: 850; text-decoration: none; }
.eligibility-uncertain:focus-visible { border-radius: 2px; outline: 2px solid var(--gold); outline-offset: 2px; }
.calculate-drop { justify-self: end; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); padding: 6px 8px; color: var(--text-soft); font-size: 10px; font-weight: 700; }
.calculate-drop:hover { border-color: var(--accent); color: var(--accent); }
.more-drops { padding: 8px 18px; border-top: 1px solid var(--border); background: var(--surface-solid); color: var(--text-faint); font-size: 10px; text-align: center; }
.zone-associations-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-right: 0; border-bottom: 0; border-left: 0; cursor: pointer; font: inherit; transition: color .15s ease, background .15s ease; }
.zone-associations-toggle b { color: var(--accent); font-size: 15px; line-height: .7; transition: transform .15s ease; }
.zone-associations-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
.zone-associations-toggle:hover { background: var(--surface-raised); color: var(--accent); }

.entity-dialog { width: min(1060px, calc(100vw - 34px)); max-width: none; height: min(860px, calc(100vh - 34px)); max-height: none; margin: auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 26px; overflow: hidden; background: var(--surface-solid); color: var(--text); box-shadow: 0 35px 120px rgba(0,0,0,.52); }
.entity-dialog::backdrop { background: rgba(7, 9, 10, .72); backdrop-filter: blur(7px); }
.entity-dialog[open] { animation: dialog-in .18s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.entity-dialog-shell { position: relative; height: 100%; }
.entity-dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 2px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-raised); color: var(--text-soft); font-size: 24px; line-height: 1; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.entity-dialog-close:hover { border-color: var(--accent); color: var(--accent); }
.entity-dialog-body { height: 100%; overflow-y: auto; padding: 34px 36px 50px; scrollbar-gutter: stable; }
.entity-hero { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; align-items: center; padding: 8px 54px 27px 0; border-bottom: 1px solid var(--border); }
.entity-glyph { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid color-mix(in srgb, var(--glyph) 28%, var(--border)); border-radius: 20px; background: color-mix(in srgb, var(--glyph) 8%, var(--surface-soft)); color: var(--glyph); font: 800 21px var(--font-display); }
.entity-glyph.family { border-radius: 50%; }
.entity-heading h2 { margin: 3px 0 2px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.entity-heading p { margin: 0; color: var(--text-soft); font-size: 13px; }
.entity-facts { display: grid; grid-template-columns: 1.35fr .6fr 1fr; gap: 10px; margin: 18px 0 29px; }
.entity-fact { display: flex; min-width: 0; flex-direction: column; justify-content: center; min-height: 68px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); text-align: left; }
.entity-fact span, .entity-fact strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-fact span { color: var(--text-faint); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.entity-fact strong { margin-top: 3px; font-size: 12px; }
.entity-family-link { position: relative; padding-right: 42px; color: inherit; }
.entity-family-link b { position: absolute; right: 15px; color: var(--accent); font-size: 18px; }
.entity-family-link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.entity-family-link:hover strong { color: var(--accent); }
.entity-section + .entity-section { margin-top: 32px; }
.entity-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.entity-section-heading h3 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.025em; }
.entity-section-heading > strong { color: var(--text-faint); font: 700 13px var(--font-display); }
.zone-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-pills > span, .zone-pills > button { display: flex; flex-direction: column; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 11px; font-weight: 700; text-align: left; }
.zone-pills > button { transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.zone-pills > button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); background: var(--surface-raised); color: var(--accent); }
.zone-pills small { color: var(--text-faint); font-size: 9px; font-weight: 500; }
.entity-drop-list { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--border); }
.entity-drop-row { display: grid; grid-template-columns: 44px minmax(210px, 1fr) minmax(245px, auto) auto; gap: 13px; align-items: center; min-height: 72px; padding: 11px 14px; background: var(--surface-solid); }
.entity-drop-row .item-glyph { width: 44px; height: 44px; }
.entity-drop-row + .entity-drop-row { border-top: 1px solid var(--border); }
.entity-drop-copy { min-width: 0; }
.entity-drop-copy > strong, .entity-drop-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-drop-copy > strong { font-size: 12px; }
.entity-drop-copy > span { color: var(--text-faint); font-size: 10px; }
.entity-drop-rates { display: flex; justify-content: flex-end; gap: 22px; }
.entity-drop-rates > span { min-width: 58px; text-align: right; }
.entity-drop-rates small, .entity-drop-rates strong { display: block; white-space: nowrap; }
.entity-drop-rates small { color: var(--text-faint); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.entity-drop-rates strong { margin-top: 2px; font-size: 11px; font-variant-numeric: tabular-nums; }
.entity-drop-rates .ray strong { color: var(--purple); }
.entity-add-item { min-width: 61px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--text-soft); font-size: 9px; font-weight: 750; }
.entity-add-item:hover { border-color: var(--accent); color: var(--accent); }
.entity-add-item.is-added { border-color: rgba(91,219,180,.25); color: var(--teal); }
.family-monster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.family-monster-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: inherit; text-align: left; }
.family-monster-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--surface-raised); }
.family-monster-card > span:nth-child(2) { min-width: 0; }
.family-monster-card strong, .family-monster-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-monster-card strong { font-size: 11px; }
.family-monster-card small { color: var(--text-faint); font-size: 9px; }
.family-monster-card > b { color: var(--accent); }
.mini-glyph { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--glyph) 22%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--glyph) 7%, var(--surface-solid)); color: var(--glyph); font-size: 11px; font-weight: 850; }
.family-source-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.family-source-links button, .family-source-links span { padding: 2px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--text-soft); font-size: 8px; }
.family-source-links button:hover { border-color: var(--accent); color: var(--accent); }
.load-more { width: 100%; margin-top: 13px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--text-soft); font-size: 12px; font-weight: 750; }
.load-more:hover { border-color: var(--border-strong); color: var(--text); }
.empty-results { padding: 62px 30px; text-align: center; }
.empty-results-art { display: block; width: min(190px, 70%); height: auto; margin: -18px auto 7px; border: 1px solid var(--border); border-radius: 22px; object-fit: cover; }
.empty-results .result-glyph { display: none; }
.empty-results h3 { margin-bottom: 7px; font-size: 20px; }
.empty-results p { max-width: 470px; margin: 0 auto; color: var(--text-soft); }
.loading-card { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.loading-card span { height: 13px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-raised), var(--border-strong), var(--surface-raised)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.loading-card span:nth-child(2) { width: 74%; }
.loading-card span:nth-child(3) { width: 43%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.section-intro { max-width: 970px; padding: 75px 0 45px; }
.section-intro-illustrated { display: grid; grid-template-columns: minmax(0, 1fr) 255px; align-items: center; gap: 52px; max-width: none; }
.section-intro-copy > p { max-width: 720px; margin: 0; color: var(--text-soft); font-size: 17px; }
.section-intro-art, .guide-hero-art { display: block; width: 255px; height: 255px; object-fit: cover; border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border)); border-radius: 28px; background: #fcfaed; box-shadow: 0 20px 45px rgba(0, 0, 0, .16); }
.section-intro h1 { font-size: clamp(42px, 5.2vw, 68px); }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); align-items: start; gap: 25px; padding-bottom: 90px; }
.calculator-inputs { min-width: 0; padding: 28px; }
.input-row { display: grid; gap: 13px; margin-top: 26px; }
.input-row.three { grid-template-columns: repeat(3, 1fr); }
.input-row.four { grid-template-columns: repeat(4, 1fr); }
.input-row.two { grid-template-columns: repeat(2, 1fr); }
.input-row.compact-top { margin-top: 14px; }
.number-input { position: relative; display: block; }
.number-input input { padding-right: 37px; font-variant-numeric: tabular-nums; }
.number-input b { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 11px; }
.unknown-note { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 12px; border: 1px solid rgba(241, 201, 107, .17); border-radius: 11px; background: rgba(241, 201, 107, .055); color: var(--text-soft); }
.unknown-note > span { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: rgba(241,201,107,.13); color: var(--gold); font-size: 11px; font-weight: 900; }
.unknown-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.unknown-note strong { color: var(--text); }
.subheading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 12px; }
.subheading-row h3 { margin: 0; font-size: 15px; }
.inline-action { display: flex; align-items: center; gap: 7px; }
.inline-action label { color: var(--text-faint); font-size: 10px; }
.inline-action input { width: 74px; min-height: 31px; height: 31px; padding: 5px 8px; font-size: 11px; }
.inline-action button { height: 31px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-raised); font-size: 10px; font-weight: 700; }
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.member { position: relative; }
.member label { display: block; margin-bottom: 5px; color: var(--text-faint); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.member input { min-height: 38px; padding-right: 29px; font-size: 12px; }
.member span { position: absolute; right: 9px; bottom: 10px; color: var(--text-faint); font-size: 9px; }
.group-total { display: flex; justify-content: space-between; margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: var(--surface-soft); color: var(--text-faint); font-size: 10px; }
.group-total strong { color: var(--text-soft); }
.bonus-list { display: grid; gap: 7px; }
.bonus-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.bonus-option.featured { border-color: rgba(215,246,107,.15); }
.bonus-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 31px; height: 18px; border-radius: 999px; background: var(--border-strong); transition: .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-soft); transition: .15s; }
.bonus-option input:checked + .switch { background: var(--accent); }
.bonus-option input:checked + .switch::after { left: 16px; background: #18200f; }
.bonus-option strong, .bonus-option small { display: block; }
.bonus-option strong { font-size: 11px; }
.bonus-option small { margin-top: 1px; color: var(--text-faint); font-size: 9px; }
.bonus-option > b { color: var(--text-soft); font-size: 11px; }
.calculator-output { position: sticky; top: 102px; display: grid; min-width: 0; gap: 14px; }
.probability-orb, .formula-card { padding: 27px; }
.orb { display: grid; place-items: center; width: 220px; height: 220px; margin: 20px auto; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--probability) * 1turn), var(--surface-raised) 0); position: relative; }
.orb::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: var(--surface-solid); }
.orb div { position: relative; text-align: center; }
.orb strong, .orb span { display: block; }
.orb strong { font-family: var(--font-display); font-size: 36px; letter-spacing: -.05em; }
.orb span { color: var(--text-faint); font-size: 10px; text-transform: uppercase; }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.metric-pair div { padding: 12px; background: var(--surface-soft); text-align: center; }
.metric-pair span, .metric-pair strong { display: block; }
.metric-pair span { color: var(--text-faint); font-size: 9px; text-transform: uppercase; }
.metric-pair strong { margin-top: 3px; font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.metric-grid div { padding: 12px; background: var(--surface-soft); text-align: center; }
.metric-grid .wide { grid-column: 1 / -1; }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { color: var(--text-faint); font-size: 9px; text-transform: uppercase; }
.metric-grid strong { margin-top: 3px; font-size: 15px; }
.formula-card { box-shadow: none; }
.formula-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.formula-line span { color: var(--text-soft); font-size: 11px; }
.formula-line strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.formula-equation { margin-top: 13px; padding: 12px; border-radius: 10px; background: var(--surface-soft); color: var(--text-soft); font-size: 10px; line-height: 1.7; }
.formula-equation b { color: var(--accent); }
.milestones { margin-top: 21px; }
.milestones h3 { margin-bottom: 8px; font-size: 13px; }
.milestones div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-soft); font-size: 11px; }
.milestones div + div { border-top: 1px solid var(--border); }
.milestones strong { color: var(--text); }
.formula-rules { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.formula-rules summary { color: var(--text-soft); font-size: 11px; font-weight: 750; cursor: pointer; }
.formula-rules ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 17px; color: var(--text-faint); font-size: 10px; line-height: 1.45; }

.shield-intro { max-width: 1050px; }
.shield-layout { display: grid; grid-template-columns: minmax(330px, .75fr) minmax(0, 1.25fr); gap: 25px; }
.shield-visual { position: relative; padding: 30px; text-align: center; overflow: hidden; }
.shield-visual::before { content: ""; position: absolute; width: 260px; height: 260px; top: -120px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(215,246,107,.08); filter: blur(45px); }
.infinity-shield { position: relative; display: grid; place-items: center; width: 170px; height: 170px; margin: 2px auto 20px; }
.infinity-shield::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(91,219,180,.18), rgba(215,246,107,.07) 42%, transparent 72%); filter: blur(13px); }
.infinity-shield img { position: relative; display: block; width: 158px; height: 158px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(5,12,18,.34)); }
.certainty { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.certainty.confirmed { background: rgba(91,219,180,.1); color: var(--teal); }
.certainty.estimated { background: rgba(241,201,107,.1); color: var(--gold); }
.certainty.unknown { background: rgba(189,156,248,.1); color: var(--purple); }
.shield-visual h2 { margin: 10px 0 0; font-size: 23px; }
.shield-visual > p { color: var(--text-soft); font-size: 12px; }
.max-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 23px; }
.max-stats > div { display: flex; align-items: center; gap: 8px; padding: 12px 9px; border-radius: 11px; background: var(--surface-soft); text-align: left; }
.stat-symbol { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; background: var(--surface-raised); }
.stat-symbol.vitality { color: var(--red); }
.stat-symbol.power { color: var(--gold); }
.stat-symbol.pp { color: #72b9ff; }
.max-stats p { margin: 0; min-width: 0; }
.max-stats strong, .max-stats p span { display: block; }
.max-stats strong { font-size: 12px; }
.max-stats p span { color: var(--text-faint); font-size: 8px; text-transform: uppercase; }
.rank-projection { padding: 30px; }
.rank-control { display: flex; align-items: baseline; justify-content: space-between; margin-top: 48px; }
.rank-control span { color: var(--text-soft); font-size: 12px; }
.rank-control output { font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: -.05em; }
.range { appearance: none; height: 8px; min-height: 8px; margin: 25px 0 8px; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent) calc(var(--rank) * 1%), var(--surface-raised) 0); box-shadow: none; }
.range::-webkit-slider-thumb { appearance: none; width: 23px; height: 23px; border: 5px solid var(--surface-solid); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(0,0,0,.25); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 5px solid var(--surface-solid); border-radius: 50%; background: var(--accent); }
.rank-labels { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 9px; }
.projected-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
.projected-stats div { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.projected-stats span, .projected-stats strong { display: block; }
.projected-stats span { color: var(--text-faint); font-size: 9px; text-transform: uppercase; }
.projected-stats strong { margin-top: 4px; font-size: 16px; }
.projection-warning { margin: 16px 0 0; color: var(--text-faint); font-size: 10px; }
.projection-warning strong { color: var(--gold); }
.shield-cost { display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; margin-top: 25px; padding: 30px; }
.cost-explainer h2 { margin: 5px 0 10px; font-size: 23px; }
.cost-explainer > p { color: var(--text-soft); }
.special-runes { display: grid; align-content: center; gap: 8px; }
.special-rune { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); transition: border-color .18s ease, background .18s ease; }
.special-rune:hover, .special-rune[open] { border-color: color-mix(in srgb, var(--purple) 34%, var(--border)); }
.special-rune[open] { background: color-mix(in srgb, var(--purple) 3%, var(--surface-soft)); }
.special-rune summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 11px 12px; list-style: none; cursor: pointer; }
.special-rune summary::-webkit-details-marker { display: none; }
.special-rune summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 11px; }
.rune-glyph { position: relative; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--glyph) 8%, var(--surface-raised)); color: var(--purple); font-family: Georgia, serif; font-size: 20px; }
.rune-glyph img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.16)); }
.rune-glyph .game-icon-fallback { display: none; }
.rune-glyph.is-missing .game-icon-fallback { display: block; }
.special-rune-icon { width: 44px; height: 44px; }
.special-rune-copy strong, .special-rune-copy small, .special-rune-value small { display: block; }
.special-rune-copy strong { font-size: 11px; }
.special-rune-copy small, .special-rune-value small { color: var(--text-faint); font-size: 9px; }
.special-rune-value { text-align: right; }
.special-rune-value b { color: var(--accent); font-size: 13px; }
.special-rune-value small { margin-top: 1px; }
.special-rune-chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--text-faint); border-bottom: 1.5px solid var(--text-faint); transform: rotate(45deg) translate(-2px, 2px); transition: transform .18s ease, border-color .18s ease; }
.special-rune[open] .special-rune-chevron { border-color: var(--purple); transform: rotate(225deg) translate(-1px, -1px); }
.special-rune-details { padding: 14px 16px 16px 68px; border-top: 1px solid var(--border); }
.special-rune-details > p { margin: 10px 0 13px; color: var(--text-soft); font-size: 10px; line-height: 1.65; }
.special-rune-status { display: flex; align-items: center; gap: 8px; }
.special-rune-status span { padding: 3px 7px; border-radius: 999px; background: rgba(241,201,107,.1); color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.special-rune-status strong { font-size: 10px; }
.special-rune-paths { display: grid; gap: 7px; }
.special-rune-paths > div { padding: 9px 10px; border-radius: 9px; background: var(--surface-raised); }
.special-rune-paths span { color: var(--text-faint); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.special-rune-paths p { margin: 2px 0 0; color: var(--text-soft); font-size: 9px; line-height: 1.55; }
.rune-catalogue { margin: 25px 0 90px; padding: 30px; }
.search-compact { position: relative; width: 230px; }
.search-compact input { min-height: 38px; padding-left: 38px; font-size: 11px; }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--text-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
td { font-size: 11px; }
td:last-child, th:last-child { text-align: right; }
td:last-child { color: var(--accent); font-weight: 750; font-variant-numeric: tabular-nums; }
.rune-table-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 680; }
.rune-table-icon { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; }
.tier-pill { padding: 3px 7px; border-radius: 999px; background: var(--surface-raised); color: var(--text-soft); font-size: 9px; font-weight: 700; }

.guide-panel { padding-bottom: 80px; }
.guide-hero { padding: 82px 0 62px; border-bottom: 1px solid var(--border); }
.guide-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 58px; }
.guide-hero h1 { max-width: 980px; margin: 22px 0 20px; font-size: clamp(52px, 6.1vw, 82px); line-height: .98; letter-spacing: -.058em; font-weight: 690; }
.guide-hero-copy > p { max-width: 770px; margin: 0; color: var(--text-soft); font-size: 19px; line-height: 1.65; }
.guide-hero-art { width: 270px; height: 270px; }
.guide-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 850px; margin-top: 42px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guide-dates > div { padding: 18px 22px 19px 0; }
.guide-dates > div + div { padding-left: 22px; border-left: 1px solid var(--border); }
.guide-dates span, .guide-dates strong { display: block; }
.guide-dates span { color: var(--text-faint); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-dates strong { margin-top: 5px; font-family: var(--font-display); font-size: 15px; }

.guide-layout { display: grid; grid-template-columns: 225px minmax(0, 900px); justify-content: space-between; gap: clamp(45px, 7vw, 110px); align-items: start; padding-top: 58px; }
.guide-toc { position: sticky; top: 110px; display: grid; gap: 2px; padding: 7px 0 14px; }
.guide-toc .step-label { margin-bottom: 13px; }
.guide-toc a { padding: 7px 0; color: var(--text-soft); font-size: 12px; font-weight: 680; text-decoration: none; transition: color .15s, transform .15s; }
.guide-toc a:hover, .guide-toc a:focus-visible { color: var(--accent); transform: translateX(3px); }
.guide-article { min-width: 0; }
.guide-section { scroll-margin-top: 105px; padding: 15px 0 62px; }
.guide-section + .guide-section { padding-top: 62px; border-top: 1px solid var(--border); }
.guide-section-last { padding-bottom: 0; }
.guide-kicker { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.guide-section h2 { max-width: 760px; margin: 11px 0 25px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.045em; font-weight: 690; }
.guide-section h3 { margin: 38px 0 13px; font-size: 21px; letter-spacing: -.025em; }
.guide-section p, .guide-section li { color: var(--text-soft); font-size: 15px; line-height: 1.78; }
.guide-section p { margin-bottom: 18px; }
.guide-section strong { color: var(--text); }
.guide-section ul, .guide-section ol { margin: 17px 0 24px; padding-left: 23px; }
.guide-section li { padding-left: 5px; }
.guide-section li + li { margin-top: 7px; }
.guide-section li::marker { color: var(--accent); font-weight: 800; }
.guide-note { margin: 31px 0 34px; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: 0 13px 13px 0; background: color-mix(in srgb, var(--accent) 7%, var(--surface-soft)); }
.guide-note > strong { display: block; margin-bottom: 5px; font-family: var(--font-display); font-size: 15px; }
.guide-note p { margin: 0; font-size: 13px; }
.guide-inline-button { display: inline; padding: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: none; color: var(--accent); font-weight: 750; text-align: left; }
.guide-inline-button:hover { border-bottom-color: var(--accent); }
.guide-table-wrap { overflow-x: auto; margin: 20px 0 35px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); }
.guide-table th, .guide-table td { padding: 13px 16px; }
.guide-table th { background: color-mix(in srgb, var(--surface-raised) 75%, transparent); }
.guide-table td { color: var(--text-soft); font-size: 13px; }
.guide-table td:first-child { width: 155px; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-table td:last-child { color: var(--text); text-align: left; font-weight: 650; }
.guide-achievements { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 0 38px; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--border); }
.guide-achievements > div { padding: 15px 17px; background: var(--surface-soft); }
.guide-achievements strong, .guide-achievements span { display: block; }
.guide-achievements strong { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.guide-achievements span { margin-top: 3px; color: var(--text-soft); font-size: 12px; }
.guide-faq-item, .guide-dungeon-list { border-top: 1px solid var(--border); }
.guide-faq-item:last-child, .guide-dungeon-list:last-child { border-bottom: 1px solid var(--border); }
.guide-faq-item summary, .guide-dungeon-list summary { position: relative; display: flex; justify-content: space-between; gap: 20px; padding: 18px 32px 18px 0; color: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 730; cursor: pointer; list-style: none; }
.guide-faq-item summary::-webkit-details-marker, .guide-dungeon-list summary::-webkit-details-marker { display: none; }
.guide-faq-item summary::after, .guide-dungeon-list summary::after { content: "+"; position: absolute; top: 14px; right: 4px; color: var(--accent); font-family: var(--font-sans); font-size: 22px; font-weight: 400; }
.guide-faq-item[open] summary::after, .guide-dungeon-list[open] summary::after { content: "−"; }
.guide-faq-item > p, .guide-dungeon-list > p { margin: -3px 38px 19px 0; font-size: 13px; }
.guide-dungeon-list summary span { align-self: center; color: var(--text-faint); font-family: var(--font-sans); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.site-about { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 42px; align-items: start; margin-top: 80px; margin-bottom: 55px; padding-top: 34px; border-top: 1px solid var(--border); }
.site-about h2 { margin: -5px 0 10px; font-size: 25px; letter-spacing: -.035em; }
.site-about p { max-width: 760px; margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.72; }
.site-about nav { display: grid; gap: 8px; min-width: 175px; }
.site-about a { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); font-size: 11px; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.site-about a:hover, .site-about a:focus-visible { border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); color: var(--accent); background: var(--accent-soft); }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 25px 0 40px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 11px; line-height: 1.6; }
footer p { margin: 0; }
footer strong { color: var(--text-soft); }
.noscript { position: fixed; inset: auto 20px 20px; z-index: 100; padding: 15px; background: var(--red); color: #111; text-align: center; border-radius: 12px; font-weight: 700; }

@media (max-width: 1100px) {
  :root { --page: min(100% - 40px, 1000px); }
  .site-header { height: auto; min-height: 78px; grid-template-columns: 1fr auto; padding: 12px 20px; }
  .global-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .section-navigation { top: 131px; }
  .hero { min-height: auto; align-items: flex-end; }
  .hero-radiant-art { flex-basis: 330px; width: 330px; margin-right: 0; }
  .illustrated-shortcuts { grid-template-columns: repeat(5, 190px); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .illustrated-shortcut { scroll-snap-align: start; }
  .section-intro-illustrated { grid-template-columns: minmax(0, 1fr) 220px; gap: 34px; }
  .section-intro-art { width: 220px; height: 220px; }
  .guide-hero-main { grid-template-columns: minmax(0, 1fr) 220px; gap: 34px; }
  .guide-hero-art { width: 220px; height: 220px; }
  .explorer-layout { grid-template-columns: 340px minmax(0, 1fr); }
  .drop-row { grid-template-columns: minmax(160px, 1.2fr) minmax(110px, .8fr) repeat(2, 75px) auto; }
  .drop-row .rate-cell.rayonnant { display: none; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .shield-layout { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 50px; }
  .site-about { grid-template-columns: 160px minmax(0, 1fr); }
  .site-about nav { grid-column: 2; display: flex; flex-wrap: wrap; }
}

@media (max-width: 820px) {
  :root { --page: calc(100% - 28px); }
  .ambient-one { display: none; }
  .site-header { position: relative; min-height: 70px; padding: 12px 14px; }
  .global-nav { width: 100%; max-width: calc(100vw - 28px); overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .global-nav::-webkit-scrollbar { display: none; }
  .section-navigation { top: 0; }
  .section-navigation-inner { min-height: 58px; gap: 13px; }
  .section-navigation-label { display: none; }
  .main-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav .nav-button { flex: 1 0 auto; padding-inline: 13px; }
  .product-trail { min-height: 35px; }
  .hero { padding-block: 43px 34px; }
  .hero-radiant-art { display: none; }
  .illustrated-shortcuts { margin-top: -12px; margin-bottom: 26px; }
  .section-intro-illustrated, .guide-hero-main { grid-template-columns: 1fr; gap: 24px; }
  .section-intro-art, .guide-hero-art { width: 190px; height: 190px; justify-self: center; }
  .section-intro-art { margin-top: -16px; }
  .hero h1, .section-intro h1 { font-size: clamp(39px, 11vw, 58px); }
  .explorer-layout, .calculator-layout { grid-template-columns: 1fr; }
  .planner, .calculator-output { position: static; }
  .planner { padding: 22px; }
  .results-toolbar { margin-top: 14px; }
  .drop-row { grid-template-columns: 1fr auto; gap: 10px; }
  .drop-row .monster-link { grid-column: 1; }
  .drop-row .drop-item { grid-column: 1; grid-row: 1; }
  .drop-row .monster-link { grid-row: 2; padding-left: 50px; }
  .drop-row .rate-cell { grid-row: 1 / 3; }
  .drop-row .base-rate-cell, .drop-row .rate-cell.rayonnant { display: none; }
  .drop-row .calculate-drop { grid-row: 1 / 3; }
  .calculator-output { grid-template-columns: 1fr 1fr; }
  .orb { width: 180px; height: 180px; }
  .shield-cost { grid-template-columns: 1fr; }
  .guide-hero { padding-top: 58px; }
  .guide-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 35px; }
  .guide-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 20px; padding: 19px 21px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
  .guide-toc .step-label { grid-column: 1 / -1; }
  .site-about { grid-template-columns: 1fr; gap: 18px; }
  .site-about nav { grid-column: auto; }
  .entity-dialog { width: calc(100vw - 20px); height: calc(100vh - 20px); border-radius: 20px; }
  .entity-dialog-body { padding: 28px 20px 42px; }
  .entity-facts { grid-template-columns: 1fr 1fr; }
  .entity-family-link { grid-column: 1 / -1; }
  .entity-drop-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .entity-drop-rates { grid-column: 2 / 4; grid-row: 2; justify-content: flex-start; }
  .family-monster-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .brand { font-size: 17px; }
  .support-link { width: 44px; padding: 0; justify-content: center; }
  .support-link span { display: none; }
  .global-nav a, .global-nav > span { padding-inline: 12px; }
  .main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; overflow: visible; }
  .main-nav .nav-button { min-width: 0; min-height: 40px; padding: 8px 4px; font-size: 11px; white-space: nowrap; }
  .hero-copy > p, .section-intro > p, .section-intro-copy > p { font-size: 15px; }
  .hero h1, .section-intro h1 { line-height: 1.02; }
  .card-heading { gap: 10px; }
  .text-button { min-height: 40px; padding: 8px 0; }
  .segmented button { min-height: 44px; }
  .active-formula { grid-template-columns: 33px 1fr; }
  .active-formula button { grid-column: 2; justify-self: start; }
  .result-main { grid-template-columns: 44px minmax(0, 1fr); padding: 15px; }
  .result-glyph { width: 44px; height: 44px; }
  .coverage { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .coverage-bar { grid-column: 1 / -1; width: 100%; }
  .drop-row { padding-inline: 14px; }
  .drop-item, .monster-link-button { min-height: 44px; }
  .result-copy h3 .entity-title-link, .zone-inline-link, .zone-pills > button { min-height: 44px; }
  .drop-row .calculate-drop { display: none; }
  .input-row.three, .input-row.four, .input-row.two { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .inline-action input, .inline-action button { min-height: 40px; height: 40px; }
  .calculator-inputs, .probability-orb, .formula-card, .rank-projection, .shield-cost, .rune-catalogue { padding: 21px; }
  .calculator-output { grid-template-columns: 1fr; }
  .max-stats, .projected-stats { grid-template-columns: 1fr; }
  .shield-visual { padding-inline: 21px; }
  .shield-layout { grid-template-columns: 1fr; }
  .shield-cost { gap: 20px; }
  .special-rune summary { grid-template-columns: 42px minmax(0, 1fr) auto 14px; gap: 9px; padding: 10px; }
  .special-rune-copy small, .special-rune-value small { display: none; }
  .special-rune-details { padding: 13px; }
  .rune-catalogue .card-heading { display: block; }
  .search-compact { width: 100%; margin-top: 14px; }
  .guide-hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .guide-hero-copy > p { font-size: 16px; }
  .section-intro-art, .guide-hero-art { width: 160px; height: 160px; border-radius: 22px; }
  .guide-dates { grid-template-columns: 1fr; }
  .guide-dates > div { padding: 14px 0; }
  .guide-dates > div + div { padding-left: 0; border-top: 1px solid var(--border); border-left: 0; }
  .guide-toc { grid-template-columns: 1fr; }
  .guide-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 9px; }
  .guide-toc .step-label { grid-column: auto; }
  .guide-section { padding-bottom: 48px; }
  .guide-section + .guide-section { padding-top: 48px; }
  .guide-section h2 { font-size: 33px; }
  .guide-section p, .guide-section li { font-size: 14px; }
  .guide-achievements { grid-template-columns: 1fr; }
  .site-about { margin-top: 55px; margin-bottom: 38px; }
  .site-about nav { display: grid; }
  footer { display: block; font-size: 11px; }
  footer p + p { margin-top: 5px; }
  .entity-dialog { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
  .entity-dialog-body { padding: 24px 14px 36px; }
  .entity-dialog-close { top: 11px; right: 11px; }
  .entity-hero { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 4px 48px 21px 0; }
  .entity-glyph { width: 54px; height: 54px; border-radius: 15px; font-size: 16px; }
  .entity-heading h2 { font-size: 27px; }
  .entity-heading p { font-size: 11px; }
  .entity-facts { grid-template-columns: 1fr; }
  .entity-family-link { grid-column: auto; }
  .entity-section-heading h3 { font-size: 17px; }
  .entity-drop-row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .entity-drop-row .item-glyph { width: 36px; height: 36px; }
  .entity-add-item { grid-column: 1 / -1; justify-self: stretch; }
  .entity-add-item { min-height: 44px; }
  .entity-drop-rates { grid-column: 1 / -1; grid-row: auto; justify-content: space-between; padding-top: 7px; border-top: 1px solid var(--border); }
  .entity-drop-rates > span { min-width: 0; text-align: left; }
}

@media (max-width: 440px) {
  .brand > span:last-child { display: none; }
}

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