:root {
  color-scheme: dark;
  --space: #071017;
  --space-soft: #0b1820;
  --panel: #0c1921;
  --panel-raised: #10222b;
  --panel-bright: #152b35;
  --edge: #243943;
  --edge-soft: #1a2d36;
  --text: #e3edf0;
  --muted: #9aadb3;
  --dim: #6a828a;
  --cyan: #63d8d0;
  --cyan-bright: #a1fff0;
  --green: #b8e57b;
  --green-bg: #19261c;
  --coral: #ff9d83;
  --coral-bg: #2c1e1d;
  --unknown: #c3b9ff;
  --unknown-bg: #242238;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--space); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(83, 155, 162, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 155, 162, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 50% -18%, #12303a 0, transparent 54rem),
    var(--space);
  background-size: 42px 42px, 42px 42px, auto, auto;
  font: 14px/1.5 var(--sans);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.ambient { position: fixed; z-index: 0; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(120px); opacity: .1; pointer-events: none; }
.ambient-one { top: 5rem; right: -17rem; background: #32c5bd; }
.ambient-two { top: 45rem; left: -18rem; background: #678fe0; }
.topbar, main { position: relative; z-index: 1; }
.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 54px;
  padding: 0 max(calc((100vw - 1160px) / 2), 36px);
  border-bottom: 1px solid var(--edge);
  background: rgba(6, 15, 21, .88);
  box-shadow: 0 8px 30px #02080c70;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--cyan); }
.brand-mark {
  width: 35px; height: 35px; display: grid; place-items: center;
  border: 1px solid #388d8c; border-radius: 10px 3px 10px 3px;
  background: linear-gradient(145deg, #17343c, #0a1920);
  box-shadow: inset 0 0 14px #42cfbf1b, 0 0 15px #42cfbf10;
  font: 800 11px var(--mono); letter-spacing: -1px;
}
.brand-wordmark { color: #e6f3f2; font: 750 15px var(--sans); letter-spacing: 1.4px; }
.brand-wordmark > span { color: var(--cyan); }
.brand small { display: block; margin-top: 2px; color: var(--dim); font: 600 7px var(--mono); letter-spacing: 1.3px; }
.topbar nav { height: 70px; display: flex; align-items: center; gap: 30px; }
.topbar nav a { height: 100%; display: grid; place-items: center; position: relative; color: #9eafb3; font-size: 12px; transition: color .18s; }
.topbar nav a:hover, .topbar nav a.current { color: var(--cyan-bright); }
.topbar nav a.current::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px #63d8d080; }
.server-chip { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #29434b; border-radius: 4px; background: #0d1c23; color: #bdcdd0; font: 700 9px var(--mono); letter-spacing: .9px; }
.server-chip b { padding-left: 8px; border-left: 1px solid var(--edge); color: var(--cyan); font-weight: 700; }
.pulse, .live-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #b8e57b9c; }
main { width: min(1160px, calc(100% - 72px)); margin: 0 auto; }
.hero {
  min-height: 342px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center; gap: 42px; overflow: hidden; padding: 38px 22px 38px 30px;
  border-bottom: 1px solid var(--edge);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #72b9b8; font: 700 9px var(--mono); letter-spacing: 1.7px; }
.eyebrow-line { width: 22px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px #63d8d080; }
.hero h1 { margin: 17px 0 13px; color: #ecf5f4; font: 750 clamp(42px, 5.5vw, 68px)/.98 var(--sans); letter-spacing: -3.2px; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-copy > p { margin: 0; color: #a8b9bd; font-size: 14px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: #8ba0a5; font: 700 8px var(--mono); letter-spacing: .8px; }
.hero-meta i { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: #507078; }
.signal-window {
  position: relative; z-index: 2; min-width: 0; padding: 16px 17px 12px;
  border: 1px solid #2a5157; border-radius: 8px;
  background: linear-gradient(145deg, #10252b, #0b1920 74%);
  box-shadow: 0 20px 44px #02080c66, inset 0 1px #c1fff012;
}
.signal-window::before, .signal-window::after { content: ""; position: absolute; width: 13px; height: 13px; border-color: var(--cyan); border-style: solid; opacity: .75; pointer-events: none; }
.signal-window::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.signal-window::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.signal-heading { display: flex; align-items: center; gap: 10px; }
.signal-mark { width: 24px; height: 24px; position: relative; display: block; border: 1px solid #428788; border-radius: 50%; }
.signal-mark::before, .signal-mark::after { content: ""; position: absolute; background: var(--cyan); }
.signal-mark::before { width: 10px; height: 1px; top: 11px; left: 6px; }
.signal-mark::after { width: 1px; height: 10px; top: 6px; left: 11px; }
.signal-heading > div { display: grid; gap: 1px; }
.signal-kicker { color: #7ca4a7; font: 700 7px var(--mono); letter-spacing: 1.1px; }
.signal-heading strong { color: #d7e8e8; font-size: 13px; font-weight: 650; }
.signal-channel { margin-left: auto; padding: 4px 6px; border: 1px solid #315056; border-radius: 2px; color: var(--cyan); font: 700 8px var(--mono); }
.signal-divider { display: flex; align-items: center; gap: 8px; margin: 14px 0 7px; color: #749196; font: 700 7px var(--mono); letter-spacing: 1px; }
.signal-divider span { height: 1px; flex: 1; background: #29454b; }
.featured-boss-list { max-height: 154px; display: grid; align-content: start; gap: 2px; overflow-y: auto; scrollbar-color: #3e8080 #0c1a20; scrollbar-width: thin; }
.featured-boss-list > span { padding: 10px 1px; color: #9bafb1; font-size: 10px; }
.featured-boss-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px; color: #cfdddd; font-size: 9px; }
.featured-boss-row + .featured-boss-row { border-top: 1px solid #1f363b; }
.featured-boss-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-boss-row i { margin-right: 6px; color: #719395; font: 700 7px var(--mono); font-style: normal; }
.featured-boss-row b { flex: none; color: var(--green); font: 800 8px var(--mono); letter-spacing: .3px; }
.featured-boss-row b.respawning { color: var(--coral); }
.featured-boss-row b.unknown { color: var(--unknown); }
.signal-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #263e43; color: #7a999e; font: 700 7px var(--mono); letter-spacing: .8px; }
.signal-led { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.signal-foot-index { margin-left: auto; color: #658085; }
.hero-orbit { position: absolute; z-index: 0; top: 4px; right: 318px; width: 310px; height: 310px; border: 1px solid #27707828; border-radius: 50%; transform: rotate(-22deg); pointer-events: none; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: 19px -15px; border: 1px solid #26707826; border-radius: 50%; transform: rotate(54deg); }
.hero-orbit::after { inset: 43px -8px; transform: rotate(-71deg); }
.hero-orbit span { position: absolute; top: 25px; right: 51px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px #63d8d0; }
.hero-orbit i { position: absolute; bottom: 36px; left: 25px; width: 4px; height: 4px; border-radius: 50%; background: #708ee2; box-shadow: 0 0 12px #708ee2; }
.hero-orbit b { position: absolute; inset: 50%; width: 3px; height: 3px; border-radius: 50%; background: #c8d7ff; box-shadow: 0 0 15px #c8d7ff; }

/* Live-world summary */
.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 24px; }
.overview-card {
  min-width: 0; min-height: 84px; position: relative; display: flex; align-items: center; gap: 13px;
  padding: 14px; border: 1px solid var(--edge); border-radius: 6px;
  background: linear-gradient(135deg, #10212a, #0a171e 82%);
  box-shadow: inset 0 1px #cbffff08;
}
.overview-icon { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border: 1px solid #31515b; border-radius: 8px; background: #132a32; color: var(--cyan); font: 700 9px var(--mono); }
.icon-alive { border-color: #3e5734; background: #18261b; }
.icon-alive i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #b8e57b85; }
.icon-respawn { border-color: #61433a; background: #2a201c; color: var(--coral); font-size: 17px; }
.icon-update { border-color: #394a70; background: #182237; color: #9eb3ff; font-size: 18px; }
.overview-card > div { min-width: 0; }
.overview-card > div > span { display: block; color: #90a4a8; font: 700 7px var(--mono); letter-spacing: .8px; }
.overview-card strong { display: block; margin-top: 3px; color: #e1eded; font: 650 21px var(--sans); font-variant-numeric: tabular-nums; }
.refresh-button { position: absolute; top: 7px; right: 7px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #8da8dd; font-size: 17px; cursor: pointer; transition: transform .3s, color .18s, border-color .18s, background .18s; }
.refresh-button:hover { transform: rotate(90deg); border-color: #3a4a71; background: #19243a; color: #d3dcff; }
.refresh-button.busy { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Raid registry */
.tracker-panel { overflow: hidden; border: 1px solid #2b434b; border-radius: 9px; background: #0a171d; box-shadow: 0 22px 54px #02070b80, inset 0 1px #e4ffff08; }
.panel-heading {
  min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 22px; border-bottom: 1px solid var(--edge);
  background: radial-gradient(ellipse at 8% 0, #398d8d18, transparent 35rem), linear-gradient(120deg, #11222a, #0c1920 70%);
}
.panel-title { min-width: 225px; }
.eyebrow.left { gap: 8px; color: #77b3b6; font-size: 7px; letter-spacing: 1.25px; }
.eyebrow.left .eyebrow-line { width: 14px; }
.heading-slash { color: #4c777c; }
.panel-heading h2 { display: flex; align-items: center; gap: 10px; margin: 7px 0 0; color: #e7f0ee; font: 700 25px/1.15 var(--sans); letter-spacing: -.6px; }
.panel-heading h2 span { padding: 3px 7px; border: 1px solid #35565d; border-radius: 3px; background: #10242a; color: var(--cyan); font: 700 9px var(--mono); font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 8px; }
.search, .filter-wrap { height: 40px; display: flex; align-items: center; border: 1px solid #34505a; border-radius: 4px; background: #071218; transition: border-color .18s, box-shadow .18s; }
.search { width: 230px; gap: 8px; padding: 0 10px; color: var(--cyan); }
.search:focus-within, .filter-wrap:focus-within { border-color: #5ec6c1; box-shadow: 0 0 0 2px #63d8d024; }
.search > span { font-size: 18px; line-height: 1; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
input::placeholder { color: #738b91; }
.search kbd { padding: 1px 5px; border: 1px solid #29434b; border-radius: 3px; color: #82a0a4; font: 9px var(--mono); }
.filter-wrap { width: 142px; position: relative; padding: 0 10px; }
.filter-wrap select { width: 100%; appearance: none; border: 0; outline: 0; background: transparent; color: #ccdcde; font-size: 11px; cursor: pointer; }
.filter-wrap option { background: var(--panel); color: var(--text); }
.select-chevron { color: var(--cyan); font-size: 16px; pointer-events: none; }
.registry-ruler { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .75fr) minmax(200px, 1.15fr) minmax(125px, .7fr); gap: 14px; padding: 10px 20px; border-bottom: 1px solid var(--edge); background: #0d1c22; color: #6e8a90; font: 700 7px var(--mono); letter-spacing: 1.2px; }
.boss-list { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 1px; background: #1c3037; }
.boss-row {
  min-width: 0; min-height: 69px; display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .75fr) minmax(200px, 1.15fr) minmax(125px, .7fr);
  align-items: center; gap: 14px; padding: 11px 19px; border: 0; background: #0c1920;
  transition: background .16s;
}
.boss-row:hover { background: #11242b; }
.boss-name { min-width: 0; display: flex; align-items: center; gap: 11px; }
.boss-crest { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border: 1px solid #38666a; border-radius: 11px 3px 11px 3px; background: linear-gradient(145deg, #17333a, #0d1d23); color: var(--cyan); font-size: 15px; }
.boss-name-copy { min-width: 0; }
.boss-name-copy strong { display: block; overflow: hidden; color: #e1ecea; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.boss-name-copy small { display: block; margin-top: 3px; overflow: hidden; color: #8ba1a4; font: 8px var(--mono); letter-spacing: .1px; text-overflow: ellipsis; white-space: nowrap; }
.boss-name-copy small b { padding: 0 2px; color: #4e6e73; font-weight: 400; }
.status-pill { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid #416043; border-radius: 3px; background: var(--green-bg); color: #c5e69f; font: 800 8px var(--mono); letter-spacing: .4px; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.status-pill.respawning { border-color: #69473e; background: var(--coral-bg); color: #ffb39a; }
.status-pill.respawning::before { background: var(--coral); box-shadow: 0 0 7px var(--coral); }
.status-pill.unavailable { border-color: #51496e; background: var(--unknown-bg); color: #d0c7ff; }
.status-pill.unavailable::before { background: var(--unknown); box-shadow: 0 0 7px var(--unknown); }
.respawn-time { min-width: 0; overflow: hidden; color: #c5d5d6; font-size: 10px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.respawn-time.alive { color: #a9d880; }
.respawn-time .countdown { color: #ffb398; font: 700 10px var(--mono); }
.respawn-time small { color: #91a5a8; font-size: 9px; }
.location { min-width: 0; overflow: hidden; color: #9db2b5; font: 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.location b { color: #758c91; font-weight: 400; }
.loading-state { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: #9bb0b4; font-size: 11px; }
.loader { width: 17px; height: 17px; border: 1px solid #31595f; border-top-color: var(--cyan); border-radius: 50%; animation: spin .9s linear infinite; }
.empty-state { padding: 44px 15px; color: #a8b9bb; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state > span { display: block; color: var(--cyan); font-size: 24px; }
.empty-state b { display: block; margin-top: 7px; color: #e0ecea; font-size: 14px; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-foot { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-top: 1px solid var(--edge); background: #0d1a20; color: #81999e; font: 700 7px var(--mono); letter-spacing: .7px; }
.foot-dot { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
footer { display: flex; justify-content: space-between; gap: 14px; padding: 23px 4px 30px; color: #789096; font: 700 8px var(--mono); letter-spacing: 1px; }
footer i { display: inline-block; width: 3px; height: 3px; margin: 0 7px 2px; border-radius: 50%; background: var(--cyan); }
footer b { margin-left: 5px; color: var(--cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Breakpoints */
@media (max-width: 930px) {
  .topbar { gap: 28px; padding-right: 24px; padding-left: 24px; }
  main { width: calc(100% - 40px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(290px, 390px); gap: 22px; padding-left: 14px; }
  .hero h1 { font-size: clamp(40px, 6vw, 58px); }
  .overview-card { gap: 9px; padding: 11px; }
  .overview-icon { width: 33px; height: 33px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .controls { width: 100%; }
  .search { flex: 1; width: auto; }
}
@media (max-width: 800px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 23px; padding: 39px 12px 26px; }
  .hero-copy { padding: 0 8px; }
  .hero h1 { font-size: clamp(44px, 8vw, 62px); }
  .hero-orbit { top: -45px; right: 12%; width: 250px; height: 250px; }
  .signal-window { width: min(100%, 520px); }
  .featured-boss-list { max-height: 118px; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registry-ruler { display: none; }
  .boss-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; background: transparent; }
  .boss-row { min-height: 122px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 0 8px; padding: 12px; border: 1px solid var(--edge); border-radius: 5px; background: #0d1b22; }
  .boss-name { grid-column: 1 / -1; grid-row: 1; }
  .status-pill { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
  .respawn-time, .location { align-self: end; margin-top: 10px; padding-top: 8px; border-top: 1px solid #243a42; font-size: 9px; }
  .respawn-time { grid-column: 1; grid-row: 2; }
  .location { grid-column: 2; grid-row: 2; text-align: right; }
}
@media (max-width: 600px) {
  .topbar { min-height: 62px; flex-wrap: wrap; gap: 8px 12px; padding: 7px 14px 0; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-wordmark { font-size: 13px; }
  .topbar nav { order: 3; width: 100%; height: 34px; justify-content: center; gap: 32px; border-top: 1px solid var(--edge-soft); }
  .topbar nav a { font-size: 11px; }
  .server-chip { padding: 6px 8px; font-size: 8px; }
  main { width: calc(100% - 26px); }
  .hero { padding-top: 31px; }
  .hero-copy > p { max-width: 290px; font-size: 12px; }
  .hero-meta { flex-wrap: wrap; gap: 7px; font-size: 7px; }
  .overview { gap: 7px; margin: 13px 0 17px; }
  .overview-card { min-height: 72px; gap: 8px; padding: 9px; }
  .overview-icon { width: 30px; height: 30px; border-radius: 6px; }
  .overview-card > div > span { font-size: 6px; letter-spacing: .3px; }
  .overview-card strong { font-size: 18px; }
  .panel-heading { min-height: 0; padding: 17px 13px 14px; }
  .panel-title { min-width: 0; }
  .eyebrow.left { font-size: 6px; letter-spacing: .85px; }
  .panel-heading h2 { font-size: 21px; }
  .controls { gap: 6px; }
  .search, .filter-wrap { height: 38px; }
  .search { gap: 5px; padding: 0 7px; }
  .search kbd { display: none; }
  .filter-wrap { width: 125px; flex: none; padding: 0 8px; }
  .filter-wrap select, .search input { font-size: 10px; }
  .boss-list { grid-template-columns: 1fr; gap: 7px; padding: 9px; }
  .boss-row { min-height: 112px; padding: 11px; }
  .boss-name-copy strong { font-size: 11px; }
  .boss-crest { width: 33px; height: 33px; border-radius: 9px 3px 9px 3px; }
  .panel-foot { min-height: 37px; padding: 0 10px; font-size: 6px; letter-spacing: .35px; }
  .panel-foot > span:last-child { display: none; }
  footer { padding: 20px 1px 26px; font-size: 7px; letter-spacing: .6px; }
}
@media (max-width: 360px) {
  .overview-card { gap: 6px; padding: 7px; }
  .overview-icon { width: 27px; height: 27px; }
  .filter-wrap { width: 111px; }
  .search { padding: 0 5px; }
  .search > span { 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; }
}
