@font-face {
  font-family: "Cinzel";
  src: url("./assets/fonts/cinzel-latin-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("./assets/fonts/cinzel-latin-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("./assets/fonts/cinzel-latin-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --bg: #101018;
  --sidebar: #12121b;
  --surface: #1b1b25;
  --surface-raised: #242431;
  --surface-hover: #2b2937;
  --line: #48403c;
  --line-soft: #312e36;
  --ink: #efe7d7;
  --muted: #b3acb7;
  --subtle: #948e9d;
  --gold: #deb56d;
  --gold-light: #f6d992;
  --gold-dark: #71512f;
  --green: #91cfa8;
  --blue: #85bff2;
  --purple: #c49bea;
  --radius: 5px;
}

.item-provenance summary { cursor: pointer; color: var(--gold); font-size: 11px; padding: 8px 0; }
.item-provenance summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.item-provenance[open] summary { margin-bottom: 12px; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 85% 0, #31244259, transparent 55%), radial-gradient(ellipse at 40% 80%, #18344526, transparent 55%), var(--bg); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { appearance: none; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; color: #f5dfb2; }
h1 { max-width: 850px; margin-bottom: 10px; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.3; letter-spacing: -.6px; overflow-wrap: break-word; }
h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.2px; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 550; }
p { margin-bottom: 16px; }
small { font-size: 12px; }
::selection { color: #fff4dc; background: #82532f; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
[hidden] { display: none !important; }

.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { overflow-y: auto; overscroll-behavior: contain; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; background: radial-gradient(ellipse at 30% 0, #48312c42, transparent 48%), linear-gradient(180deg, #19161f, #12121b 55%, #171521); border-right: 1px solid #6d5237; box-shadow: inset -3px 0 0 #08090d, inset -4px 0 0 #ffffff06; padding: 29px 18px 20px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 7px 36px; padding-bottom: 26px; border-bottom: 1px solid #6b503a66; }
.brand-mark { display: grid; width: 40px; height: 49px; place-items: center; color: var(--gold); flex-shrink: 0; filter: drop-shadow(0 2px 4px #0008); }
.brand-mark svg { width: 40px; height: 49px; }
.brand-name { display: block; color: #f3d694; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 2.7px; text-shadow: 0 2px 2px #000; }
.brand-name > span { display: block; margin-top: 4px; color: #e9be72; font-size: 23px; letter-spacing: 2.2px; line-height: 1.1; }
.brand-subtitle { display: block; margin-top: 7px; color: #a39286; font-size: 7px; font-weight: 600; line-height: 1.5; letter-spacing: 1.1px; text-transform: uppercase; }
.brand.brand-gamesinn { flex-direction: column; align-items: center; gap: 7px; margin-left: 2px; margin-right: 2px; padding-bottom: 21px; text-align: center; }
.brand-gamesinn .gamesinn-logo { width: 188px; height: auto; flex-shrink: 0; filter: drop-shadow(0 3px 5px #0008); }
.brand-gamesinn .brand-name > span { margin-top: 0; font-size: 25px; letter-spacing: 4px; }
.brand-gamesinn .brand-subtitle { margin-top: 0; font-size: 7px; letter-spacing: 1px; }
.sidebar-label { margin: 0 13px 10px; color: var(--subtle); font-size: 10px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; }
.sidebar-label:not(:first-child) { margin-top: 29px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; margin-bottom: 4px; padding: 10px 13px; color: #b4aabc; border: 1px solid transparent; border-radius: 4px; background: transparent; text-align: left; font-size: 13px; line-height: 1.45; transition: background .15s, color .15s, border-color .15s; }
.nav-item:hover { color: #f4e4c7; background: linear-gradient(90deg, #46312d7a, #28222f); border-color: #79604455; }
.nav-item[aria-current="page"] { border-color: #a07947; background: linear-gradient(100deg, #60412299, #392a27); color: var(--gold-light); box-shadow: inset 0 1px #e6ba741c, 0 2px 5px #0003; }
.nav-item[aria-current="page"]::before { position: absolute; top: 11px; bottom: 11px; left: -19px; width: 2px; background: var(--gold); content: ""; }
.nav-item[data-nav="journal"] .nav-icon { color: #e7bc72; }
.nav-item[data-nav="loot"] .nav-icon { color: #9f8ae0; }
.nav-item[data-nav="items"] .nav-icon { color: #79bce9; }
.nav-item[data-nav="wishlist"] .nav-icon { color: #dd87a5; }
.nav-item[data-nav="sources"] .nav-icon { color: #87c9ba; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 20px; opacity: .9; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-count { display: inline-flex; min-width: 22px; height: 19px; align-items: center; justify-content: center; padding: 0 5px; margin-left: auto; border: 1px solid #374247; border-radius: 4px; color: #b3bdbd; font-size: 10px; line-height: 1; }
.nav-item[aria-current="page"] .nav-count { color: var(--gold-light); border-color: #594b31; background: #3b3424; }
.sidebar-bottom { margin-top: auto; padding: 24px 10px 0; }
.sidebar-bottom .availability-note { font-size: 11px; }
.sidebar-bottom::before { display: block; height: 1px; margin-bottom: 18px; background: var(--line); content: ""; }
.sidebar-bottom p { color: var(--subtle); margin: 7px 0 0; font-size: 11px; line-height: 1.65; }
.sidebar-version { color: #afa0b5; font-size: 11px; }
.status-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #8baa91; vertical-align: 2px; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.topbar { box-shadow: 0 4px 16px #0002; position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 13px 39px; border-bottom: 1px solid var(--line-soft); background: #15131df5; backdrop-filter: blur(12px); z-index: 30; }
.breadcrumb { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--subtle); font-size: 12px; }
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span:last-child { color: #c2cccd; }
.breadcrumb svg { width: 12px; height: 12px; color: #56666e; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search-trigger { display: flex; align-items: center; gap: 10px; width: 256px; height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: #b3a7b6; background: #1b1926; font-size: 12px; text-align: left; transition: border-color .15s, background .15s; }
.search-trigger:hover { border-color: #4a575a; background: #272331; }
.search-trigger svg { width: 15px; height: 15px; }
.shortcut { margin-left: auto; color: #7c8c91; border: 1px solid #354247; border-radius: 3px; padding: 0 5px; font-size: 10px; line-height: 19px; white-space: nowrap; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #1b1926; color: #9eafb1; transition: color .15s, border-color .15s, background .15s; }
.icon-button:hover { color: var(--gold-light); border-color: #62563c; background: #26271f; }
.icon-button svg { width: 17px; height: 17px; }
.mobile-menu { display: none; }
.main-content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 35px 40px 28px; }
.page-heading { margin-bottom: 28px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--gold); font-size: 10px; font-weight: 650; letter-spacing: 1.9px; line-height: 1.5; text-transform: uppercase; }
.eyebrow::before { width: 18px; height: 1px; background: #7a6642; content: ""; }
.lead { max-width: 670px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 32%; min-height: 338px; margin-bottom: 34px; overflow: hidden; isolation: isolate; border: 1px solid #a47a44; border-radius: var(--radius); background: #172737 url("./assets/art/hero-azeroth.png") 66% center / cover no-repeat; box-shadow: 0 12px 32px #0004, inset 0 0 0 3px #100f16, inset 0 0 0 4px #c798543b; }
.hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10121bf2 0%, #15141de8 25%, #171826bf 44%, #11172433 72%, #10121b0d), linear-gradient(0deg, #100f19b3, transparent 55%); content: ""; pointer-events: none; }
.hero::after { position: absolute; inset: 7px; border: 1px solid #e1b46f38; background: linear-gradient(110deg, #e9c27818, transparent 45%); content: ""; pointer-events: none; }
.hero-copy { z-index: 2; max-width: 670px; padding: 34px 34px 31px; }
.hero-copy h1 { margin-bottom: 13px; color: #f8e5bc; font-size: clamp(31px, 3vw, 43px); line-height: 1.3; text-shadow: 0 3px 10px #0006; }
.hero-copy h2 { margin-bottom: 12px; color: #f8e5bc; font-size: 34px; line-height: 1.2; }
.hero-copy .lead { color: #d0c8cb; font-size: 13px; max-width: 430px; line-height: 1.85; text-shadow: 0 1px 4px #000; }
.hero-copy .eyebrow { color: #f0c578; font-size: 9px; margin-bottom: 14px; letter-spacing: 1.7px; }
.hero-copy > .button { margin-top: 20px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.hero-actions .button { min-height: 39px; padding: 9px 13px; font-size: 11px; }
.hero-actions .button-secondary { border-color: #b38d5b88; background: #1b1823c9; color: #edddc5; }
.hero-actions .button-secondary:hover { border-color: #dbb26f; background: #3d2f30; }
.hero-stats { display: flex; align-items: center; gap: 28px; margin-top: 27px; }
.stat { display: flex; flex-direction: column; padding-right: 27px; border-right: 1px solid #a07b494d; }
.stat:last-child { border: 0; padding-right: 0; }
.stat strong, .stat-value { color: #f2cd89; font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.2; text-shadow: 0 2px 5px #0005; }
.stat span, .stat-label { margin-top: 6px; color: #c4b7bd; font-size: 10px; }
.hero-art { position: relative; min-height: 280px; pointer-events: none; }
.hero-art > svg, .compass-rose { display: none; }
.hero-coordinate { position: absolute; right: 24px; bottom: 20px; color: #e4d4b8b3; font-size: 7px; letter-spacing: 1.7px; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-heading h2 { margin: 0; color: #e9cd9b; font-size: 24px; }
.section-heading p { margin: 5px 0 0; color: var(--subtle); font-size: 12px; }
.section-heading .section-kicker { margin-bottom: 5px; font-size: 9px; }
.section-heading > a { color: #a5b2b2; font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 21px; padding: 15px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.toolbar > .search-field { flex: 1 1 230px; min-width: 180px; align-self: flex-end; }
.toolbar > label.filter-group { flex-direction: column; align-items: stretch; gap: 4px; }
.toolbar > label.filter-group .field-label { margin-bottom: 0; font-size: 9px; }
.toolbar > .filter-reset { align-self: flex-end; min-height: 35px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.filter-button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 11px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #b1a7b9; font-size: 11px; line-height: 1.5; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.filter-button svg { width: 14px; height: 14px; }
.filter-button:hover { color: #dce3df; background: #292331; }
.filter-button[aria-pressed="true"] { border-color: #b18246; color: var(--gold-light); background: #443020; }
.field-label { display: block; margin-bottom: 6px; color: #a5b3b5; font-size: 11px; }
.select, .text-input { min-height: 35px; max-width: 100%; padding: 7px 11px; border: 1px solid #51434a; border-radius: 3px; background: #1b1926; color: #ded3df; font-size: 12px; line-height: 1.5; }
.select { min-width: 143px; padding-right: 31px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239aa7aa' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.select:hover, .text-input:hover { border-color: #566467; }
.text-input { width: 100%; }
.text-input::placeholder { color: #95899d; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: #b3a2bb; pointer-events: none; }
.search-field .text-input { padding-left: 34px; }
.result-count { color: #b0a0b8; font-size: 11px; }
.result-count strong { color: #c4cfce; font-weight: 500; }
.view-toggle { display: flex; gap: 1px; padding: 3px; border: 1px solid var(--line); border-radius: 3px; background: #17141e; }
.view-toggle button { display: grid; place-items: center; width: 27px; height: 26px; border: 0; border-radius: 3px; background: transparent; color: #9f93ae; }
.view-toggle button[aria-pressed="true"] { color: #f0cb8d; background: #493627; }
.dungeon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.dungeon-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #76563c; border-radius: var(--radius); background: linear-gradient(155deg, #2a232c, #1b1a25 75%); text-align: left; box-shadow: 0 5px 16px #0003, inset 0 0 0 2px #0c0b1059; transition: border-color .18s, transform .18s, box-shadow .18s; }
.dungeon-card:hover { border-color: #d4a65e; transform: translateY(-3px); box-shadow: 0 12px 25px #0006, inset 0 0 0 1px #ecc47c24; }
.dungeon-card:focus-visible { outline-offset: 4px; }
.card-art { position: relative; isolation: isolate; height: 164px; flex-shrink: 0; overflow: hidden; border-bottom: 1px solid #9f794263; background-color: #25343b; }
.card-art::before { position: absolute; top: 50%; left: 0; z-index: 0; width: 100%; aspect-ratio: 1; transform: translateY(-50%); background-image: url("./assets/art/dungeon-realms.png"); background-size: 300% 200%; background-position: var(--realm-position, 0% 0%); background-repeat: no-repeat; content: ""; pointer-events: none; }
.card-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, #0c0b1766, transparent 38%, #10101940 75%, #17151d99); outline: 1px solid #f3d29230; outline-offset: -7px; content: ""; pointer-events: none; }
.theme-coast { --realm-position: 0% 0%; }
.theme-forest { --realm-position: 50% 0%; }
.theme-crypt { --realm-position: 100% 0%; }
.theme-city { --realm-position: 0% 100%; }
.theme-cavern { --realm-position: 50% 100%; }
.theme-monastery { --realm-position: 100% 100%; }
.card-art > svg, .art-spire { display: none; }
.card-art .art-label { position: absolute; right: 13px; bottom: 11px; color: #f2ddbcb3; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; z-index: 2; text-shadow: 0 2px 4px #000; }
.card-topline { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; top: 12px; left: 12px; right: 12px; }
.level-pill { box-shadow: 0 2px 6px #0005; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #d9ae685c; border-radius: 4px; background: #15121be6; color: #f0dbb5; font-size: 10px; line-height: 1.6; backdrop-filter: blur(4px); }
.card-topline .badge { padding: 3px 7px; background: #101819bf; border-color: #bec2ae30; }
.card-type { color: #fff1cc; font-size: 8px; font-weight: 500; letter-spacing: 1.2px; text-shadow: 0 2px 5px #000; }
.art-number { position: absolute; right: 16px; bottom: 11px; z-index: 2; color: #f5deb6b3; font-family: var(--font-display); font-size: 30px; line-height: 1; text-shadow: 0 2px 8px #0008; }
.card-body { flex: 1; padding: 18px 18px 15px; }
.card-body h3 { margin-bottom: 8px; color: #edd4a6; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: break-word; }
.card-body > .card-meta { margin-top: 0; margin-bottom: 9px; color: #bda99a; font-size: 10px; }
.card-body > .card-meta svg { width: 11px; height: 11px; }
.card-body > p { min-height: 53px; margin-bottom: 13px; }
.card-body p { margin-bottom: 14px; color: #b3a5b4; font-size: 11px; line-height: 1.75; }
.card-body > .badge { margin-top: 1px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 11px 0 0; color: #a3b0b0; font-size: 10px; }
.card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 12px; height: 12px; color: #73868a; }
.card-meta > span + span::before { width: 2px; height: 2px; margin-right: 5px; border-radius: 50%; background: #526167; content: ""; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; margin: 0 18px; padding: 11px 0 12px; border-top: 1px solid #68513d55; color: #b7a797; font-size: 10px; }
.card-body > .card-footer { margin: 0; padding-bottom: 0; }
.footer-divider { margin: 0 5px; color: #5e706f; }
.card-arrow { display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }
.card-arrow svg { width: 15px; height: 15px; transition: transform .15s; }
.dungeon-card:hover .card-arrow svg { transform: translateX(3px); }
.badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid #435049; border-radius: 4px; color: #a2b5a5; background: #1e2a24; font-size: 9px; line-height: 1.45; font-weight: 450; letter-spacing: .1px; white-space: nowrap; }
.badge svg { width: 10px; height: 10px; }
.badge[data-status="classic-reference"] { border-color: #987445; background: #33251f; color: #efd099; }
.badge[data-status="client"] { border-color: #3b5260; background: #1c2b33; color: #9db8c7; }
.badge[data-status="observed"] { border-color: #385741; background: #1c3024; color: #a3c4ac; }
.badge-muted { border-color: #39474c; background: #1b2529; color: #93a2a8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 8px 14px; border: 1px solid #68513d; border-radius: 3px; background: #302938; color: #d4dcd9; font-size: 12px; font-weight: 500; line-height: 1.5; transition: background .15s, border-color .15s, color .15s; }
.button svg { width: 15px; height: 15px; }
.button:hover { background: #44384b; border-color: #63706e; }
.button-primary { border-color: #e7c17e; background: linear-gradient(180deg, #e4ba73, #b9843c); color: #281b10; box-shadow: inset 0 1px #fff3cd66, 0 2px 6px #0003; font-weight: 650; }
.button-primary:hover { background: linear-gradient(180deg, #f4d48b, #d7a34f); border-color: #ffe0a1; }
.button-secondary { background: #211d2b; border-color: #5d4b40; color: #c0ccca; }
.button-small { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 25px; padding: 14px 16px; border: 1px solid #79603e; border-radius: 4px; background: #29221d; color: #c4b8b1; font-size: 11px; line-height: 1.8; }
.notice p { margin: 0; }
.notice strong { color: #ebd5ad; font-weight: 500; }
.notice a { display: inline-flex; align-items: center; gap: 4px; color: #c6b383; }
.notice a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.notice a svg { width: 12px; height: 12px; }
.notice-icon { display: inline-flex; flex-shrink: 0; color: #e5b86d; padding-top: 2px; }
.notice-icon svg { width: 16px; height: 16px; }
.empty-state, .error-state { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 255px; grid-column: 1 / -1; padding: 35px 25px; border: 1px dashed #4c4148; border-radius: var(--radius); background: #17151f; text-align: center; }
.empty-state > svg, .error-state > svg { width: 34px; height: 34px; margin-bottom: 16px; color: #7e8c80; }
.empty-state h2, .empty-state h3, .error-state h2 { margin-bottom: 9px; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.empty-state p, .error-state p { max-width: 460px; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.loot-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 24px; }
.loot-layout > aside { display: flex; flex-direction: column; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #191822; }
.loot-layout > aside .select { width: 100%; min-width: 0; }
.loot-layout > aside .filter-group { flex-direction: column; align-items: stretch; gap: 5px; }
.loot-layout > aside .filter-button { width: 100%; justify-content: flex-start; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #191822; }
.loot-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.loot-table th { padding: 12px 15px; border-bottom: 1px solid #5b473d; background: #26212e; color: #b9a796; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.loot-table td { padding: 14px 15px; border-bottom: 1px solid #37303d; color: #bcb0c1; vertical-align: middle; }
.loot-table tbody tr:last-child td { border-bottom: 0; }
.loot-table tbody tr { transition: background .15s; }
.loot-table tbody tr:hover { background: #252031; }
.loot-table th:last-child, .loot-table td:last-child { text-align: right; }
.item-cell { display: flex; align-items: center; gap: 11px; min-width: 178px; color: inherit; }
button.item-cell { padding: 0; border: 0; background: transparent; text-align: left; }
button.item-cell:hover .item-name { text-decoration: underline; text-underline-offset: 3px; }
.item-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; overflow: hidden; border: 1px solid #4d615e; border-radius: 3px; background: radial-gradient(circle at 35% 25%, #5d6b5669, transparent 70%), #1c2b2b; color: #bbc4a8; font-family: var(--font-display); font-size: 18px; }
.item-icon svg { width: 21px; height: 21px; }
.item-icon.quality-rare { border-color: #528cce; background: radial-gradient(circle at 35% 25%, #6173a84a, transparent 70%), #1c2b49; }
.item-icon.quality-uncommon { border-color: #629a50; background: radial-gradient(circle at 35% 25%, #689d554a, transparent 70%), #1f3825; }
.item-icon.quality-epic { border-color: #9c62c5; background: radial-gradient(circle at 35% 25%, #9868bb4a, transparent 70%), #352143; }
.item-name { display: block; color: #d9e2df; font-size: 12px; font-weight: 500; line-height: 1.5; }
.item-subtitle { display: block; margin-top: 3px; color: #a093aa; font-size: 10px; line-height: 1.45; }
.quality-rare .item-name, .item-name.quality-rare, .quality-rare:not(.item-icon):not(.item-cell) { color: #83bffa; }
.quality-uncommon .item-name, .item-name.quality-uncommon, .quality-uncommon:not(.item-icon):not(.item-cell) { color: #93d576; }
.quality-epic .item-name, .item-name.quality-epic, .quality-epic:not(.item-icon):not(.item-cell) { color: #c895f4; }
.source-cell { line-height: 1.5; }
.source-cell strong { display: block; color: #b7c4c6; font-size: 11px; font-weight: 450; }
.source-cell small { display: block; margin-top: 3px; color: #9b90a2; font-size: 10px; }
.source-cell a:hover { color: var(--gold-light); }
.wishlist-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; padding: 0; border: 1px solid #4c4148; border-radius: 3px; background: #211d2b; color: #81959a; transition: color .15s, background .15s, border-color .15s; }
.wishlist-button:hover { border-color: #8c7448; color: #f0c77e; }
.wishlist-button[aria-pressed="true"] { color: var(--gold-light); border-color: #a27842; background: #49351e; }
.wishlist-button[aria-pressed="true"] svg { fill: #deb56d40; }
.wishlist-button svg { width: 15px; height: 15px; }
.detail-header { margin-bottom: 23px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; color: #c0b2c9; font-size: 11px; }
.back-link svg { width: 13px; height: 13px; }
.back-link:hover { color: var(--gold-light); }
.detail-banner { position: relative; isolation: isolate; overflow: hidden; min-height: 254px; padding: 34px; border: 1px solid #ab7f43; border-radius: var(--radius); background: #1d1a26; box-shadow: 0 8px 24px #0004; }
.detail-banner::before { position: absolute; top: 50%; left: 0; z-index: -2; width: 100%; aspect-ratio: 1; transform: translateY(-50%); background-image: url("./assets/art/dungeon-realms.png"); background-size: 300% 200%; background-position: var(--realm-position, 0% 0%); background-repeat: no-repeat; content: ""; }
.detail-banner::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #12121bf0, #171321c7 40%, #17132355), linear-gradient(0deg, #0d0d18b3, transparent 70%); box-shadow: inset 0 0 0 6px #15111b59, inset 0 0 0 7px #f5d38b29; content: ""; pointer-events: none; }
.detail-title { position: relative; max-width: 720px; }
.detail-title h1 { margin: 9px 0 16px; color: #f5deb4; text-shadow: 0 2px 7px #0006; }
.detail-title p { max-width: 620px; margin: 0 0 17px; color: #d0c7ce; font-size: 13px; }
.detail-title .card-meta { gap: 17px; font-size: 11px; }
.detail-title .badge { margin-right: 5px; }
.tabs { display: flex; gap: 23px; overflow-x: auto; margin: 25px 0 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { position: relative; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 42px; padding: 0 1px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8c9ea4; font-size: 12px; }
.tabs [role="tab"] svg { width: 15px; height: 15px; }
.tabs [role="tab"]:hover { color: #d9e3dc; }
.tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--gold); color: var(--gold-light); }
.tabs [role="tab"] .nav-count { height: 16px; font-size: 9px; margin-left: 0; }
.tabs > a { display: inline-flex; align-items: center; min-height: 42px; flex-shrink: 0; padding: 0 1px 12px; border-bottom: 2px solid transparent; color: #8c9ea4; font-size: 12px; }
.tabs > a:hover { color: #d9e3dc; }
.tabs > a[aria-current="page"], .tabs > a.tab-active { border-bottom-color: var(--gold); color: var(--gold-light); }
.dungeon-content { min-width: 0; }
.dungeon-content > .availability-note { margin: -4px 0 19px; color: #b5a9b7; font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); align-items: start; gap: 22px; }
.panel { min-width: 0; padding: 23px; border: 1px solid #66503f; border-top-color: #967346; border-radius: var(--radius); background: linear-gradient(135deg, #27202d, #1c1a25 65%); box-shadow: inset 0 1px #efc37b0d, 0 4px 15px #0002; }
.panel + .panel { margin-top: 20px; }
.detail-grid > .panel + .panel { margin-top: 0; }
.panel p { color: #b6aabd; font-size: 12px; line-height: 1.8; }
.panel p:last-child { margin-bottom: 0; }
.panel-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 18px; }
.panel-heading:not(:first-child) { margin-top: 24px; }
.panel-heading .section-kicker { margin-bottom: 0; font-size: 8px; }
.panel-heading h3 svg { width: 15px; height: 15px; margin-right: 5px; color: var(--gold); }
.panel-heading h2, .panel-heading h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.panel-heading > svg { width: 18px; height: 18px; color: #8a9b90; }
.panel-heading .badge { font-family: ui-sans-serif, sans-serif; }
.boss-list { display: flex; flex-direction: column; gap: 8px; }
.boss-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 64px; padding: 12px; border: 1px solid #4d3d40; border-radius: 4px; background: #211d2b; text-align: left; transition: border-color .15s, background .15s; }
button.boss-row:hover { border-color: #71623e; background: #222820; }
.boss-row.boss-selected, .boss-row[aria-pressed="true"] { border-color: #76603a; background: #3b2e25; }
.boss-number { display: grid; align-items: center; justify-content: center; width: 29px; height: 29px; flex-shrink: 0; border: 1px solid #847147; border-radius: 50%; color: #e1ce92; background: #353124; font-family: var(--font-display); font-size: 13px; }
.boss-row h3 { margin: 0 0 3px; color: #e4d9df; font-size: 12px; }
.boss-description { color: #b3a5b7; font-size: 10px; line-height: 1.5; }
.boss-row .card-arrow { margin-left: auto; }
.boss-row .badge { margin-left: auto; }
.boss-row > svg { width: 14px; height: 14px; margin-left: auto; color: var(--gold); }
.boss-row > span:not(.boss-number) { font-size: 11px; }
article.boss-row { padding: 16px; align-items: flex-start; }
article.boss-row > div { flex: 1; }
article.boss-row p { margin: 0; }
article.boss-row > .button { margin-left: auto; white-space: nowrap; }
.boss-detail { margin-top: 18px; padding: 18px; border-left: 2px solid #c4934c; background: #28212b; }
.boss-detail h3 { font-family: var(--font-display); font-size: 20px; }
.boss-detail ul { margin: 0; padding-left: 17px; color: #9eafb2; font-size: 12px; }
.boss-detail li + li { margin-top: 7px; }
.quest-list { display: grid; gap: 13px; }
.quest-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #51413f; border-radius: 4px; background: #211d2b; }
.quest-symbol { display: grid; place-items: center; width: 29px; height: 35px; flex-shrink: 0; color: #f1c66d; font-family: var(--font-display); font-size: 32px; line-height: 1; }
.quest-card h3:first-child { margin-top: 0; }
.quest-card h3 { margin: 8px 0 6px; color: #edd8af; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.quest-card p { margin-bottom: 10px; font-size: 12px; }
.quest-card .card-meta { margin-top: 10px; }
.map-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 245px; overflow: hidden; border: 1px solid #39483f; border-radius: 4px; background: repeating-linear-gradient(0deg, transparent 0 39px, #9eb69512 40px), repeating-linear-gradient(90deg, transparent 0 39px, #9eb69512 40px), radial-gradient(ellipse at 65% 32%, #334b3a, #1a2b29); text-align: center; }
.map-placeholder::before { position: absolute; inset: -18% -12%; border: 1px solid #c1c39a2c; border-radius: 35% 62% 40% 60%; transform: rotate(-23deg); box-shadow: 0 0 0 22px #adc29508, 0 0 0 23px #b5c59c1a, inset 0 0 0 40px #adc29508, inset 0 0 0 41px #b5c59c1a, inset 0 0 0 74px #adc29508, inset 0 0 0 75px #b5c59c14; content: ""; pointer-events: none; }
.map-placeholder > * { position: relative; z-index: 1; }
.map-placeholder > svg { width: 29px; height: 29px; margin-bottom: 12px; color: #c4bb90; }
.map-placeholder strong { color: #d0d4be; font-size: 12px; font-weight: 500; }
.map-placeholder span, .map-placeholder small { max-width: 230px; margin-top: 5px; color: #91a397; font-size: 11px; }
.map-placeholder .badge { margin-top: 12px; }
.source-list { display: grid; gap: 15px; }
.source-card { padding: 21px 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.source-card h2 { margin: 0 0 7px; font-size: 23px; }
.source-card h3 { margin: 0 0 7px; }
.source-card p { margin-bottom: 13px; color: #b9aebb; font-size: 12px; line-height: 1.8; }
.source-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: #a79aaa; font-size: 10px; }
.source-meta a { color: var(--gold); }
.source-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.definition-list { display: block; margin: 18px 0; font-size: 12px; }
.definition-list > div { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 8px 0; border-bottom: 1px solid #39313f; }
.definition-list > div:last-child { border-bottom: 0; }
.definition-list dt { color: #ac9db2; }
.definition-list dd { margin: 0; color: #c2cecb; text-align: right; }
.provenance { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: #a598ad; font-size: 10px; line-height: 1.8; }
.provenance a { color: #b6a272; text-decoration: underline; text-underline-offset: 2px; }
.provenance .badge { margin-bottom: 7px; }
.panel ul { margin: 15px 0 0; padding-left: 17px; color: #b6aabd; font-size: 12px; line-height: 1.8; }
.panel ul li + li { margin-top: 6px; }
.panel.provenance { margin-top: 22px; padding-top: 23px; }
.panel.provenance > h3 { margin-bottom: 16px; font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.provenance .source-card { padding: 13px 15px; border-radius: 3px; }
.provenance .source-card + .source-card { margin-top: 10px; }
.provenance .source-card p { margin: 6px 0 0; font-size: 10px; line-height: 1.7; }
.item-stats { display: grid; gap: 6px; margin: 18px 0; color: #cad4d0; font-size: 12px; }
.stat-line { display: flex; justify-content: space-between; gap: 16px; }
.stat-line > span:last-child { color: #95b692; }
.dialog-backdrop { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 25px; background: #03080bc9; backdrop-filter: blur(5px); z-index: 100; }
dialog { max-width: calc(100vw - 32px); padding: 0; border: 1px solid #b18a52; border-radius: 3px; background: #1e1b27; color: var(--ink); box-shadow: 0 30px 100px #0009; }
dialog::backdrop { background: #03080bc9; backdrop-filter: blur(5px); }
dialog.item-dialog { width: 535px; max-height: min(84vh, 850px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 21px; border-bottom: 1px solid #493d47; }
.dialog-header h2, .dialog-header h3 { margin: 0; color: #92a5a8; font-family: ui-sans-serif, sans-serif; font-size: 10px; font-weight: 550; letter-spacing: 1.2px; text-transform: uppercase; }
.dialog-close { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #8da0a6; }
.dialog-close:hover { color: #e3decd; background: #3b3043; border-color: #69524f; }
.dialog-close svg { width: 17px; height: 17px; }
.dialog-content { padding: 24px; }
.item-detail-header { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.item-detail-header h2 { margin: 0 0 4px; font-size: 26px; }
.item-detail-icon { display: grid; place-items: center; width: 59px; height: 59px; flex-shrink: 0; border: 1px solid #6178a3; border-radius: 4px; background: radial-gradient(circle at 35% 25%, #6173a84a, transparent 70%), #1c2b49; color: #b4c3dc; font-family: var(--font-display); font-size: 30px; }
.item-detail-icon svg { width: 31px; height: 31px; }
.item-quality { color: #91a4b6; font-size: 11px; }
.item-properties { margin: 18px 0; padding: 16px; border: 1px solid #453845; border-radius: 3px; background: #15131d; color: #acbdbd; font-size: 12px; }
.item-properties p { margin: 0 0 7px; }
.item-properties p:last-child { margin-bottom: 0; }
.item-properties { display: grid; grid-template-columns: 1fr auto; gap: 7px 13px; }
.item-properties > span:nth-child(even) { text-align: right; }
.item-properties .stat-line + .stat-line { margin-top: 5px; }
.acquisition-list { display: grid; gap: 9px; margin: 14px 0 20px; padding: 0; list-style: none; }
.acquisition-list li { padding: 13px 14px; border: 1px solid #493b44; border-radius: 3px; background: #211d2b; }
.acquisition-list strong, .acquisition-list a { display: block; color: #d4d9c8; font-size: 12px; font-weight: 500; }
.acquisition-list span, .acquisition-list small { display: block; margin-top: 3px; color: #b1a0b5; font-size: 11px; }
.acquisition-list > a { align-items: center; padding: 13px 14px; }
.acquisition-list > a:hover { border-color: #6f6041; background: #1d2a2d; }
.acquisition-list > a > svg:first-child { width: 19px; height: 19px; color: #b7a16d; }
.acquisition-list > a > svg:last-child { margin-left: auto; width: 14px; height: 14px; color: var(--gold); }
.acquisition-list > a strong { display: block; color: #d4d9c8; font-size: 12px; font-weight: 500; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.dialog-actions > .button-primary { flex: 1; }
.item-stats .stat-line strong { color: #abc49f; font-weight: 500; }
.item-stats > p { margin-top: 8px; color: #a4be9e; line-height: 1.8; }
.dialog-content > .button { width: 100%; }
dialog.search-dialog { width: 650px; max-height: 80vh; margin-top: 12vh; overflow: hidden; }
.search-dialog-header { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #4f4148; }
.search-dialog-header > svg { width: 21px; height: 21px; color: #a4936d; }
.search-dialog-input { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 72px; padding: 14px 20px; border-bottom: 1px solid #4f4148; background: transparent; color: #e4e7dd; font-size: 15px; }
.search-dialog-input > span { color: #bba578; }
.search-dialog-input > input { flex: 1; width: 100%; min-width: 0; height: 35px; padding: 0; border: 0; background: transparent; color: #e4e7dd; font-size: 14px; }
.search-dialog-input > input:focus-visible { outline: none; }
.search-dialog-input > input::placeholder { color: #a995b2; }
.search-dialog-input > .icon-button { width: 29px; height: 29px; flex-shrink: 0; }
.search-help { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); color: #a399ad; font-size: 10px; }
.search-empty { padding: 26px 19px; color: #a2b4b9; font-size: 13px; }
.search-empty p { margin-bottom: 8px; }
.search-empty .section-kicker { margin-bottom: 12px; font-size: 9px; }
.search-result-icon { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border: 1px solid #36463f; border-radius: 3px; background: #1d2a25; color: #b8aa82; }
.search-result-icon svg { width: 17px; height: 17px; }
.search-result > svg:last-child { width: 14px; height: 14px; color: #98a488; }
.search-results { max-height: 58vh; overflow: auto; padding: 10px; }
.search-results .empty-state { min-height: 150px; border: 0; background: transparent; }
.search-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 3px; background: transparent; text-align: left; }
.search-result:hover, .search-result:focus-visible { border-color: #4d594e; background: #24302a; }
.search-result > svg { width: 19px; height: 19px; color: #a89b77; }
.search-result strong { display: block; color: #d7dfd7; font-size: 13px; font-weight: 500; }
.search-result small { display: block; color: #b3a1b8; font-size: 11px; }
.search-result-type { margin-left: auto; padding-left: 12px; color: #8c9c94; font-size: 10px; white-space: nowrap; }
.search-dialog-footer { display: flex; justify-content: space-between; padding: 11px 20px; border-top: 1px solid var(--line); color: #a193a8; font-size: 10px; }
.toast { position: fixed; bottom: 27px; left: calc(50% + 119px); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 40px); padding: 12px 18px; border: 1px solid #bc8c50; border-radius: 4px; background: #342735; color: #efdcbb; font-size: 12px; box-shadow: 0 10px 35px #0006; transform: translateX(-50%); z-index: 150; animation: toast-enter .18s ease-out; }
.toast svg { width: 17px; height: 17px; color: var(--gold-light); }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: calc(100% - 80px); max-width: 1160px; margin: 8px auto 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: #a69aaa; font-size: 10px; line-height: 1.8; }
.footer a { color: #9aabac; }
.footer a:hover { color: var(--gold-light); }
.footer .footer-mark { display: inline-flex; align-items: center; gap: 6px; color: #8c9d99; }
.loading, .route-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 230px; color: #c0b2c9; font-size: 13px; }
.loading::before, .route-loading::before { width: 18px; height: 18px; border: 1px solid #516155; border-top-color: #d5b577; border-radius: 50%; content: ""; animation: spin 1s linear infinite; }
.loading-skeleton { min-height: 150px; border: 1px solid #3d3542; border-radius: var(--radius); background: linear-gradient(100deg, #142025 20%, #1c2a2e 50%, #142025 80%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
.inline-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 12px; cursor: pointer; }
.inline-link svg { width: 13px; height: 13px; }
.inline-link:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wishlist-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 20px; padding: 15px 19px; border: 1px solid #87623d; border-radius: var(--radius); background: #2f2726; color: #b8b99e; font-size: 12px; }
.wishlist-summary strong { color: #f0d399; font-weight: 500; }
.wishlist-summary svg { color: var(--gold); }
.loot-count { display: inline-flex; align-items: center; gap: 5px; color: #8fa29e; font-size: 10px; }
.filter-reset { padding: 5px 0; border: 0; background: transparent; color: var(--gold); font-size: 11px; text-align: left; }
.filter-reset:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.progress-track { height: 3px; overflow: hidden; border-radius: 2px; background: #2b3c40; }
.progress-fill { height: 100%; border-radius: inherit; background: #b59e69; }
.availability-note { display: flex; align-items: center; gap: 6px; color: #b6c6aa; font-size: 10px; }
.sidebar-bottom .availability-note { display: block; font-size: 10px; }
.sidebar-bottom .availability-note > span:last-child { display: block; margin-top: 4px; color: #a89bad; font-size: 9px; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 200; padding: 10px 18px; border: 1px solid var(--gold-light); border-radius: 0 0 6px 6px; background: var(--gold); color: #24241b; font-size: 13px; }
.skip-link:focus { top: 0; }
.main-content:focus-visible { outline: none; }
.availability-note svg { width: 13px; height: 13px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.content-count { color: #a099ab; font-size: 11px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.divider { height: 1px; border: 0; background: var(--line); margin: 20px 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 23px 0; }
.metric-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-card strong { display: block; color: #dfddc9; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.3; }
.metric-card span { color: var(--subtle); font-size: 11px; }
.sidebar-overlay { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toast-enter { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 1560px) {
  .main-content { padding-top: 43px; }
  .hero { min-height: 360px; }
  .card-art { height: 180px; }
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .brand { gap: 9px; margin-right: 4px; margin-left: 7px; }
  .brand-name { font-size: 14px; letter-spacing: 2px; }
  .brand-name > span { font-size: 21px; letter-spacing: 1.4px; }
  .brand-subtitle { font-size: 6px; letter-spacing: 1px; }
  .nav-item { font-size: 12px; padding-left: 11px; padding-right: 11px; }
  .nav-item[aria-current="page"]::before { left: -15px; }
  .main-content { padding: 30px 26px 24px; }
  .topbar { padding: 13px 26px; }
  .search-trigger { width: 208px; }
  .dungeon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .card-art { height: 153px; }
  .hero { grid-template-columns: minmax(0, 1fr) 19%; background-position: 62% center; }
  .hero-copy { padding-left: 28px; padding-right: 0; }
  .hero-coordinate { right: 16px; font-size: 6px; letter-spacing: 1px; }
  .hero-stats { gap: 22px; }
  .stat { padding-right: 22px; }
  .loot-layout { grid-template-columns: 166px minmax(0, 1fr); gap: 17px; }
  .loot-layout > aside { padding: 14px; }
  .loot-table th, .loot-table td { padding-left: 12px; padding-right: 12px; }
  .loot-table th:nth-child(4), .loot-table td:nth-child(4) { display: none; }
  .detail-grid { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); gap: 17px; }
  .panel { padding: 18px; }
  .toast { left: calc(50% + 105px); }
  .footer { width: calc(100% - 52px); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 250px; height: 100dvh; padding: 27px 18px 20px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 60px #0005; z-index: 70; }
  .sidebar.is-open, .sidebar.open, body.sidebar-open .sidebar, body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  body.menu-open .sidebar { top: 63px; height: calc(100dvh - 63px); }
  body.menu-open .topbar { z-index: 80; }
  body.menu-open .workspace::after { position: fixed; inset: 63px 0 0; z-index: 60; background: #03090da8; backdrop-filter: blur(3px); content: ""; }
  .sidebar-overlay { position: fixed; inset: 0; background: #03090db5; backdrop-filter: blur(3px); z-index: 60; }
  .sidebar-overlay.is-open, body.sidebar-open .sidebar-overlay { display: block; }
  .brand { margin: 0 10px 35px; }
  .brand-name { font-size: 16px; letter-spacing: 2.6px; }
  .brand-name > span { font-size: 25px; letter-spacing: 2px; }
  .brand-subtitle { font-size: 7px; letter-spacing: 1.1px; }
  .nav-item { font-size: 13px; min-height: 44px; }
  .nav-item[aria-current="page"]::before { left: -19px; }
  .mobile-menu { display: inline-flex; margin-right: 12px; flex-shrink: 0; }
  .topbar { min-height: 63px; padding: 12px 21px; }
  .breadcrumb { flex: 1; font-size: 11px; gap: 7px; overflow: hidden; white-space: nowrap; }
  .breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { gap: 8px; margin-left: 12px; }
  .search-trigger { width: 35px; height: 35px; justify-content: center; padding: 0; font-size: 0; gap: 0; }
  .search-trigger > span, .search-trigger .shortcut { display: none; }
  .search-trigger > span:first-child { display: inline-flex; }
  .search-trigger svg { width: 16px; height: 16px; }
  .main-content { padding: 28px 22px 24px; max-width: 690px; }
  .page-heading { margin-bottom: 24px; }
  .lead { font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr) 21%; min-height: 320px; margin-bottom: 29px; }
  .hero-copy { padding: 28px 0 28px 26px; }
  .hero-copy h2 { font-size: 29px; }
  .hero-copy .lead { max-width: 350px; font-size: 12px; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .hero-stats { gap: 19px; margin-top: 21px; }
  .stat { padding-right: 19px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 9px; }
  .hero-art { min-height: 260px; }
  .hero-coordinate { display: none; }
  .section-heading h2 { font-size: 23px; }
  .section-heading { gap: 10px; }
  .toolbar { gap: 12px; padding: 12px 0; }
  .filter-button { padding: 6px 9px; }
  .card-art { height: 154px; }
  .card-body { padding: 16px 15px 13px; }
  .card-body h3 { font-size: 20px; }
  .card-footer { margin-left: 15px; margin-right: 15px; }
  .card-meta { gap: 7px; font-size: 9px; }
  .card-meta > span + span::before { margin-right: 3px; }
  .notice { padding: 13px 14px; font-size: 10px; }
  .loot-layout { display: block; }
  .loot-layout > aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
  .loot-layout > aside .filter-group { flex-direction: row; flex-wrap: wrap; }
  .loot-layout > aside .filter-button { width: auto; }
  .loot-table th, .loot-table td { padding: 13px 11px; }
  .item-cell { gap: 9px; min-width: 160px; }
  .item-icon { width: 33px; height: 33px; }
  .item-name { font-size: 11px; }
  .loot-table th:nth-child(3), .loot-table td:nth-child(3) { display: none; }
  .detail-banner { min-height: 210px; padding: 25px; }
  .detail-title h1 { font-size: 35px; }
  .detail-title p { font-size: 12px; }
  .detail-title .card-meta { gap: 11px; }
  .tabs { gap: 22px; margin-top: 21px; }
  .tabs [role="tab"] { font-size: 11px; }
  .tabs > a { font-size: 11px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid > .panel + .panel { margin-top: 0; }
  .map-placeholder { min-height: 220px; }
  .panel { padding: 21px; }
  .panel-heading h2, .panel-heading h3 { font-size: 22px; }
  .source-card { padding: 20px; }
  .toast { left: 50%; bottom: 20px; }
  .footer { width: calc(100% - 44px); max-width: 646px; margin-top: 10px; padding-top: 17px; font-size: 9px; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 27px; }
  .metric-card span { font-size: 10px; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  .main-content { padding: 24px 17px 20px; }
  .topbar { min-height: 60px; padding: 11px 17px; }
  body.menu-open .sidebar { top: 60px; height: calc(100dvh - 60px); }
  body.menu-open .workspace::after { top: 60px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > a:first-child { display: none; }
  .breadcrumb > a:first-child + svg { display: none; }
  .topbar-actions { gap: 7px; margin-left: 8px; }
  .topbar-actions > .icon-button { display: none; }
  .mobile-menu { margin-right: 10px; width: 32px; height: 32px; }
  .search-trigger { width: 32px; height: 32px; }
  h1 { font-size: 33px; }
  .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: 1.6px; }
  .lead { font-size: 12px; line-height: 1.8; }
  .hero { display: block; min-height: 366px; background-position: 61% center; }
  .hero::before { background: linear-gradient(90deg, #10121be8, #14151bc7 50%, #11121b5c), linear-gradient(0deg, #11111bf0 0%, #11111b88 48%, transparent 80%); }
  .hero-copy { max-width: 100%; padding: 29px 24px; }
  .hero-copy h2 { max-width: 240px; font-size: 31px; }
  .hero-copy h1 { max-width: 285px; font-size: 32px; line-height: 1.3; }
  .hero-copy .lead { max-width: 250px; font-size: 12px; }
  .hero-art { display: none; }
  .hero-stats { gap: 20px; margin-top: 23px; }
  .stat { padding-right: 20px; }
  .stat strong { font-size: 22px; }
  .section-heading { align-items: center; margin-bottom: 15px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { max-width: 240px; font-size: 10px; }
  .section-heading > .inline-link { font-size: 10px; }
  .toolbar { gap: 11px; margin-bottom: 17px; }
  .toolbar > .filter-group { flex: 1 1 100%; }
  .toolbar > label.filter-group { flex: 1 1 calc(50% - 8px); }
  .toolbar > .search-field { flex: 1 1 100%; }
  .toolbar > .filter-row { width: 100%; }
  .toolbar .select { min-width: 0; flex: 1; }
  .toolbar .result-count { margin-left: auto; }
  .filter-group { gap: 3px; }
  .filter-button { min-height: 31px; padding: 6px 9px; font-size: 10px; }
  .dungeon-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-art { height: 183px; }
  .card-body { padding: 18px 19px 15px; }
  .card-body h3 { font-size: 23px; }
  .card-body p { margin-bottom: 12px; font-size: 12px; }
  .card-body > p { min-height: 0; }
  .card-meta { font-size: 10px; gap: 12px; }
  .card-footer { margin: 0 19px; font-size: 10px; }
  .card-topline { top: 13px; left: 14px; right: 14px; }
  .badge { font-size: 9px; }
  .notice { gap: 9px; line-height: 1.8; }
  .notice-icon svg { width: 14px; height: 14px; }
  .loot-layout > aside { padding: 15px; gap: 12px; }
  .loot-table td { padding: 13px 10px; }
  .loot-table th { padding: 11px 10px; font-size: 8px; }
  .loot-table td:first-child { max-width: 180px; }
  .item-cell { gap: 8px; min-width: 0; }
  .item-name { font-size: 11px; }
  .item-subtitle { font-size: 9px; }
  .source-cell strong { font-size: 10px; }
  .source-cell small { font-size: 9px; }
  .wishlist-button { width: 27px; height: 29px; }
  .loot-table th:last-child, .loot-table td:last-child { padding-left: 4px; padding-right: 9px; }
  .item-icon { width: 30px; height: 32px; }
  .item-icon svg { width: 18px; height: 18px; }
  .detail-banner { padding: 24px 20px; }
  .detail-title h1 { font-size: 33px; }
  .detail-title .card-meta { gap: 10px; font-size: 9px; }
  .detail-title .badge { font-size: 8px; }
  .tabs { gap: 20px; margin-bottom: 20px; }
  .tabs [role="tab"] { font-size: 10px; gap: 5px; }
  .tabs > a { font-size: 11px; }
  .tabs [role="tab"] svg { width: 13px; height: 13px; }
  .panel { padding: 18px; }
  .panel-heading h2, .panel-heading h3 { font-size: 21px; }
  .boss-row { gap: 10px; padding: 10px; }
  .boss-number { width: 26px; height: 26px; font-size: 12px; }
  .boss-row .badge { font-size: 8px; }
  article.boss-row { flex-wrap: wrap; padding: 14px; }
  article.boss-row > div { flex: 1 1 calc(100% - 45px); }
  article.boss-row > .button { margin-top: 2px; margin-left: 36px; }
  .source-card { padding: 18px; }
  .source-meta { gap: 8px; font-size: 9px; }
  .wishlist-summary { align-items: flex-start; padding: 14px; font-size: 11px; }
  .wishlist-summary .button { font-size: 10px; padding-left: 8px; padding-right: 8px; }
  .dialog-content { padding: 20px; }
  .dialog-header { padding: 13px 18px; }
  .item-detail-header { gap: 12px; }
  .item-detail-header h2 { font-size: 23px; }
  .item-detail-icon { width: 49px; height: 49px; }
  .item-detail-icon svg { width: 26px; height: 26px; }
  .item-detail-header .item-detail-icon { width: 49px; height: 49px; }
  .item-detail-icon img { width: 100%; height: 100%; object-fit: cover; }
  dialog.item-dialog { max-height: 90dvh; }
  dialog.search-dialog { margin-top: 8vh; max-height: 85dvh; }
  .search-dialog-header { gap: 9px; padding: 13px 15px; }
  .search-dialog-input { min-height: 65px; padding: 12px 14px; gap: 9px; font-size: 14px; }
  .search-dialog-input > input { font-size: 12px; }
  .search-help { padding: 11px 15px; font-size: 9px; }
  .search-dialog-footer { padding: 10px 15px; font-size: 9px; }
  .search-result { gap: 9px; padding: 11px 10px; }
  .search-result strong { font-size: 12px; }
  .search-result-type { font-size: 9px; padding-left: 5px; }
  .toast { padding: 11px 14px; font-size: 11px; width: max-content; }
  .footer { width: calc(100% - 34px); flex-direction: column; align-items: flex-start; gap: 4px; }
  .metric-grid { grid-template-columns: 1fr; gap: 9px; }
  .metric-card { display: flex; align-items: center; gap: 15px; }
  .metric-card strong { font-size: 25px; }
  .empty-state { padding: 29px 20px; }
}

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