/* sDev | Public Safety ERS. Same tokens as the in-game loading screen: dark, quiet, one accent. */
:root {
  color-scheme: dark;
  --font-ui: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --bg: #05070a;
  --text: #e6e8eb;
  --text-2: #a3a9b2;
  --text-3: #6f7680;
  --accent: #4f8fe8;
  --red: #e0453f;
  --amber: #e8b04f;
  --green: #3fd07a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --panel: rgba(10, 13, 17, 0.72);
  --panel-solid: #0b0f15;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
code, kbd { font-family: var(--font-mono); }
[hidden] { display: none !important; }
.muted { color: var(--text-2); }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 20; padding: 12px 18px; border-radius: 6px; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* ---------- The night (fixed behind everything) ---------- */
.night { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #03050a 0%, #071022 46%, #0e1a33 68%, #1a2238 80%, #0a0d14 100%); }
.stars { position: absolute; inset: 0 0 40% 0; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #cfd9ff; opacity: 0.5; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.12; } }
.glow { position: absolute; bottom: 6%; width: 70vw; height: 46vh; border-radius: 50%; filter: blur(70px); opacity: 0; mix-blend-mode: screen; }
.glow.red { left: -10vw; background: radial-gradient(closest-side, rgba(224, 69, 63, 0.75), rgba(224, 69, 63, 0)); animation: red 1.6s steps(1) infinite, drift 18s ease-in-out infinite alternate; }
.glow.blue { right: -10vw; background: radial-gradient(closest-side, rgba(60, 120, 255, 0.8), rgba(60, 120, 255, 0)); animation: blue 1.6s steps(1) infinite, drift 22s ease-in-out infinite alternate-reverse; }
@keyframes red { 0%, 12% { opacity: 0.85; } 13%, 25% { opacity: 0.1; } 26%, 37% { opacity: 0.8; } 38%, 100% { opacity: 0.12; } }
@keyframes blue { 0%, 49% { opacity: 0.12; } 50%, 62% { opacity: 0.85; } 63%, 75% { opacity: 0.1; } 76%, 87% { opacity: 0.8; } 88%, 100% { opacity: 0.12; } }
@keyframes drift { to { transform: translateX(6vw); } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; }
.skyline .far { fill: #0b1222; }
.skyline .near { fill: #04060b; }
.skyline .win { fill: #f3d58a; opacity: 0.55; }
.skyline .win.cool { fill: #9fc3ff; opacity: 0.4; }
.skyline .beacon { fill: #ff4b45; animation: beacon 2.4s ease-in-out infinite; }
@keyframes beacon { 50% { opacity: 0.15; } }
.haze { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 5, 9, 0.9) 0%, rgba(3, 5, 9, 0.5) 45%, rgba(3, 5, 9, 0.1) 80%), linear-gradient(0deg, rgba(3, 5, 9, 0.85) 0%, rgba(3, 5, 9, 0) 30%); }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0.045; background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 6vw; background: rgba(5, 7, 10, 0.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; }
.brand-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name { color: var(--text-2); font-size: 13px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); font-size: 14px; transition: color 160ms, background 160ms; }
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.topbar-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 6px; font: 600 12px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); transition: color 160ms, border-color 160ms; }
.topbar-link:hover { color: var(--text); border-color: var(--accent); }
/* Discord */
.topbar-discord { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 6px; background: #5865f2; color: #fff; font-size: 13px; font-weight: 600; transition: background 160ms; }
.topbar-discord:hover { background: #4752c4; }
.topbar-discord svg { width: 18px; height: 18px; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 6px 24px rgba(88, 101, 242, 0.3); }
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }
.discord-card { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 20px; border: 1px solid rgba(88, 101, 242, 0.55); border-radius: 9px; background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(88, 101, 242, 0.06)); color: #fff; transition: border-color 160ms, transform 160ms; }
.discord-card:hover { border-color: #8891f7; transform: translateY(-1px); }
.discord-card svg { flex: none; color: #fff; }
.discord-card > span:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
.discord-card strong { font-size: 16px; }
.discord-card > span:nth-child(2) span { color: #c9cdfb; font-size: 13.5px; line-height: 1.45; }
.discord-go { font-size: 20px; color: #c9cdfb; }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--text-3); }
.status-dot.up { background: var(--green); animation: ping 2s ease-out infinite; }
.status-dot.down { background: var(--red); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 122, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 208, 122, 0); } }

/* ---------- Hero ---------- */
main { width: min(1080px, calc(100% - 12vw)); margin-inline: auto; }
.hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding-block: 6vh 10vh; max-width: 720px; }
.seal-row { display: flex; align-items: center; gap: 14px; animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.seal { width: 44px; height: 44px; flex: none; color: var(--accent); filter: drop-shadow(0 0 18px rgba(79, 143, 232, 0.45)); }
.kicker { margin: 0; font: 600 12px var(--font-mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 22px 0 0; font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; animation: rise 900ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.h-dim { color: var(--text-3); font-weight: 700; }
.lede { margin: 22px 0 0; max-width: 580px; font-size: 18px; line-height: 1.6; color: var(--text-2); animation: rise 900ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lede em { font-style: normal; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise 900ms 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.live { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; font: 500 13px var(--font-mono); color: var(--text-2); animation: rise 900ms 350ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.live strong { color: var(--text); font-weight: 600; }
.live-card { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); width: 100%; animation: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; font: 600 15px var(--font-ui); cursor: pointer; transition: background 160ms, border-color 160ms, transform 160ms; }
.btn-primary { background: var(--accent); color: #04070c; box-shadow: 0 6px 24px rgba(79, 143, 232, 0.28); }
.btn-primary:hover { background: #6aa2ee; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); background: rgba(10, 13, 17, 0.5); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 13px; border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-small:hover { border-color: var(--accent); }
.btn-wide { width: 100%; margin-top: 16px; }

/* Dispatch ticker */
.cad { margin-top: 44px; max-width: 560px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 8px; backdrop-filter: blur(6px); animation: rise 900ms 400ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cad-head { display: flex; align-items: center; gap: 8px; font: 600 11px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.cad-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: beacon 1.6s ease-in-out infinite; }
.cad-time { margin-left: auto; letter-spacing: 0.08em; }
.cad-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0 0; min-height: 24px; font-size: 15px; line-height: 1.5; }
.cad-line.swap { animation: swap 600ms ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } }
.pri { padding: 1px 7px; border-radius: 3px; font: 600 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pri.p1 { background: rgba(224, 69, 63, 0.18); color: #ff8a84; }
.pri.p2 { background: rgba(232, 176, 79, 0.16); color: #f2c878; }
.pri.p3 { background: rgba(79, 143, 232, 0.16); color: #8fb8f2; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: -4vh 0 28px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat { display: grid; align-content: start; gap: 6px; padding: 24px 22px; background: var(--panel); backdrop-filter: blur(10px); }
.stat-n { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--text-2); font-size: 13px; line-height: 1.5; }

/* ---------- Panels ---------- */
.panel { margin-bottom: 28px; padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(10px); scroll-margin-top: 80px; }
.section-title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.section-title span { font: 600 12px var(--font-mono); letter-spacing: 0.14em; color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 26px; }
.section-head .section-title { margin: 0; }
.section-sub { margin: 0; max-width: 540px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.fine { margin: 16px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.55; }
h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p { overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); font: 500 14px var(--font-ui); cursor: pointer; transition: all 160ms; }
.tab:hover { color: var(--text); border-color: rgba(79, 143, 232, 0.6); }
.tab.on { background: var(--accent); border-color: var(--accent); color: #04070c; font-weight: 600; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: 0.8; }
.ticks strong { color: var(--text); font-weight: 600; }

/* ---------- NCIC / CLETS terminal (light, like the in-game Classic theme) ---------- */
.mdt { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #f3f5f8; color: #1d2733; border: 1px solid #c9d1db; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); font-size: 13px; }
.mdt-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border-bottom: 1px solid #d5dce5; }
.mdt-brand { font-weight: 800; color: #1f4f8f; font-size: 12px; letter-spacing: 0.04em; }
.mdt-title { color: #4a5767; font-size: 12px; margin-right: auto; }
.mdt-unit, .mdt-st { white-space: nowrap; padding: 3px 8px; border: 1px solid #c9d1db; border-radius: 4px; font: 600 11px var(--font-mono); }
.mdt-st.on { background: #2e8b47; border-color: #2e8b47; color: #fff; }
.mdt-tab { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #24508c; color: #fff; font-weight: 600; font-size: 12px; }
.mdt-tab-note { font-weight: 400; opacity: 0.75; }
.q-form { padding: 14px; background: #fff; border-bottom: 1px solid #d5dce5; }
.q-types { display: inline-flex; border: 1px solid #c9d1db; border-radius: 5px; overflow: hidden; margin-bottom: 12px; }
.q-type { padding: 7px 12px; border: 0; background: #fff; color: #4a5767; font: 600 12px var(--font-mono); cursor: pointer; }
.q-type + .q-type { border-left: 1px solid #c9d1db; }
.q-type.on { background: #24508c; color: #fff; }
.q-row { display: flex; align-items: flex-end; gap: 10px; }
.q-field { flex: 1; display: grid; gap: 4px; min-width: 0; font-size: 11px; color: #4a5767; }
.q-field input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #b9c3cf; border-radius: 5px; background: #fff; color: #1d2733; font: 500 15px var(--font-mono); text-transform: uppercase; }
.q-field input::placeholder { text-transform: none; color: #8994a2; }
.q-field input:focus { outline: 2px solid #24508c; outline-offset: 0; border-color: #24508c; }
.q-send { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 5px; background: #24508c; color: #fff; font: 600 14px var(--font-ui); cursor: pointer; }
.q-send:hover { background: #1c4277; }
.q-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: #6b7684; }
.q-try > span:first-child { margin-right: 2px; }
.q-try > span:last-child { display: contents; }
.q-link { padding: 3px 9px; border: 1px solid #b9c7da; border-radius: 4px; background: #eef3fa; color: #1f4f8f; font: 600 12px var(--font-mono); cursor: pointer; }
.q-link:hover { background: #dfe9f6; border-color: #24508c; }
.q-out { min-height: 380px; padding: 14px; }
.mdt-empty { display: grid; place-content: center; min-height: 340px; text-align: center; color: #6b7684; }
.mdt-empty p { margin: 4px 0; }
.ret { display: grid; gap: 12px; animation: swap 400ms ease both; }
.ret-head { display: flex; justify-content: space-between; padding: 8px 12px; background: #e6ebf2; border: 1px solid #d5dce5; border-radius: 5px; font-weight: 700; font-size: 12.5px; }
.ret-time { font: 500 12px var(--font-mono); color: #6b7684; }
.person, .vcard { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 14px; background: #fff; border: 1px solid #d5dce5; border-radius: 6px; }
.mug { display: grid; gap: 4px; align-content: start; }
.mug svg { width: 100px; height: 118px; border: 1px solid #b9c3cf; border-radius: 3px; }
.mug span { font: 600 8.5px var(--font-mono); text-align: center; color: #6b7684; letter-spacing: 0.08em; }
.p-name { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.p-aka { margin: 2px 0 0; color: #6b7684; font-size: 12px; font-weight: 600; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.flag { display: inline-block; padding: 2px 6px; border: 1px solid; border-radius: 3px; font: 700 10px var(--font-mono); letter-spacing: 0.04em; white-space: nowrap; }
.flag.red { color: #b3261e; border-color: #e5a29d; background: #fdecea; }
.flag.amber { color: #8a5a00; border-color: #e7c789; background: #fff6e0; }
.flag.blue { color: #1f4f8f; border-color: #b9c7da; background: #eef3fa; }
.flag.green { color: #1e6b37; border-color: #a6d9b6; background: #e9f7ee; }
.person dl, .vcard dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.person dl .wide, .vcard dl .wide { grid-column: span 3; }
.person dt, .vcard dt { font-size: 10px; color: #6b7684; text-transform: uppercase; letter-spacing: 0.06em; }
.person dd, .vcard dd { margin: 2px 0 0; font-weight: 700; font-size: 12.5px; overflow-wrap: anywhere; }
.vcard dd .q-link { font-size: 12px; }
.plate { display: grid; align-content: center; justify-items: center; gap: 2px; width: 100px; height: 54px; border: 2px solid #1d2733; border-radius: 6px; background: linear-gradient(#fff, #eef1f5); }
.plate-state { font: italic 700 9px var(--font-ui); color: #b3261e; }
.plate-num { font: 800 15px var(--font-mono); letter-spacing: 0.04em; color: #12234a; }
.clets { margin: 0; padding: 12px; min-height: 120px; border-radius: 6px; background: #071009; color: #5cf08a; font: 500 11.5px/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.clets .hot { color: #ffd166; }
.ret-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.ret-box { padding: 12px 14px; background: #fff; border: 1px solid #d5dce5; border-radius: 6px; }
.ret-box h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #24508c; }
.ret-box table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ret-box td { padding: 5px 8px 5px 0; border-top: 1px solid #edf0f4; vertical-align: top; }
.ret-box tr:first-child td { border-top: 0; }
.ret-box td.mono { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; color: #4a5767; }
.ret-box td.res { color: #6b7684; }
.none { margin: 0; color: #8994a2; font-style: italic; }
.veh-row { margin: 0 0 6px; font-size: 12.5px; }
.contacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.contacts li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 2px 12px; padding-top: 8px; border-top: 1px solid #edf0f4; font-size: 12.5px; }
.contacts li:first-child { border-top: 0; padding-top: 0; }
.c-date { grid-row: span 2; font: 500 11.5px var(--font-mono); color: #6b7684; }
.c-note { color: #4a5767; line-height: 1.5; }
.ret-tip { margin: 0; padding: 10px 12px; border-left: 3px solid #e7a93a; background: #fff6e0; border-radius: 0 5px 5px 0; color: #5c4200; font-size: 13px; line-height: 1.5; }
.matches { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.matches li { padding: 10px 12px; background: #fff; border: 1px solid #d5dce5; border-radius: 6px; font-size: 12.5px; color: #4a5767; }

.beyond { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.beyond h3 { font-size: 20px; margin-bottom: 10px; }
.beyond p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* ---------- Departments ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dept { padding: 26px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 9px; background: rgba(255, 255, 255, 0.02); }
.dept.fire { border-top-color: var(--red); }
.dept-tag { margin: 0 0 10px; font: 600 11px var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.dept.fire .dept-tag { color: #ff8a84; }
.dept h3 { font-size: 21px; margin-bottom: 18px; }
.dept-part + .dept-part { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.dept-part h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.dept.fire .ticks li::before { background: var(--red); }

/* ---------- Calls ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip-filter { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); font: 500 14px var(--font-ui); cursor: pointer; }
.chip-filter span { margin-left: 4px; font: 600 11px var(--font-mono); opacity: 0.7; }
.chip-filter.on { color: var(--text); border-color: var(--accent); background: rgba(79, 143, 232, 0.14); }
.call-list { columns: 2; column-gap: 10px; }
.call { break-inside: avoid; margin-bottom: 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(255, 255, 255, 0.025); transition: background 160ms; }
.call.fire { border-left-color: var(--red); }
.call.hide { display: none; }
.call[open] { background: rgba(255, 255, 255, 0.045); }
.call summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.call summary::-webkit-details-marker { display: none; }
.call summary::after { content: "+"; flex: none; width: 14px; text-align: center; color: var(--text-3); font: 500 18px var(--font-mono); }
.call[open] summary::after { content: "−"; }
.call-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.call-units { color: var(--text-3); font: 500 12px var(--font-mono); white-space: nowrap; }
.call-body { padding: 0 16px 16px; }
.call-what { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.6; }
.call-ways-h { margin: 0 0 8px; font: 600 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.call.fire .call-ways-h { color: #ff8a84; }
.call-ways { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.call-ways li { position: relative; padding-left: 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.call-ways li::before { content: "→"; position: absolute; left: 0; color: var(--text-3); }
.call-then { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: #f2c878; font-size: 13px; font-style: italic; }

/* ---------- Kit ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.kit-grid li { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 70%); text-align: center; animation: swap 400ms ease both; transition: border-color 160ms, transform 160ms; }
.kit-grid li:hover { border-color: rgba(79, 143, 232, 0.55); transform: translateY(-2px); }
.kit-grid img { width: 64px; height: 64px; }
.kit-grid span { font-size: 13px; font-weight: 600; line-height: 1.3; }
.kit-grid small { color: var(--text-3); font-size: 12px; line-height: 1.4; }

/* ---------- Shift ---------- */
.shift { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.shift li { position: relative; padding: 20px 18px 22px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.02); }
.shift li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -15px; width: 16px; height: 1px; background: var(--line-2); }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border: 1px solid rgba(79, 143, 232, 0.45); border-radius: 50%; font: 700 13px var(--font-mono); color: #8fb8f2; }
.shift p, .feature p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.feature { padding: 24px; background: var(--panel-solid); }

/* ---------- Join ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
.spec-list { margin: 0; padding: 0; list-style: none; }
.spec-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.spec-list li:first-child { padding-top: 0; }
.spec-list li > span:first-child { font: 600 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.22); border-bottom-width: 2px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.05); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.connect-card { padding: 22px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.connect-card > p.muted { margin: 0 0 12px; font-size: 14px; }
.connect-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 7px; background: #03050a; }
.connect-row code { flex: 1; min-width: 0; font-size: 14px; color: #cfe0f7; overflow-wrap: anywhere; }
.copy-status { margin: 8px 0 0; min-height: 18px; font-size: 12px; }
.note { margin: 18px 0 0; padding: 14px 16px; border-left: 2px solid var(--amber); border-radius: 0 6px 6px 0; background: rgba(232, 176, 79, 0.07); color: var(--text-2); font-size: 14px; line-height: 1.6; }
.note strong { color: #f2c878; }

.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 4px 56px; font-size: 13px; }
.text-link { color: var(--accent); }
.text-link:hover { color: var(--text); }

/* ---------- Narrower screens ---------- */
@media (max-width: 960px) {
  .topnav { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift li::after { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .beyond, .ret-grid { grid-template-columns: minmax(0, 1fr); }
  .call-list { columns: 1; }
  .two-col { gap: 40px; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 16px; gap: 8px; }
  .brand-name { display: none; }
  .topbar-discord span { display: none; }
  .topbar-discord { padding: 8px 10px; margin-left: auto; }
  main { width: calc(100% - 32px); }
  .hero { min-height: auto; padding-block: 8vh 48px; }
  .lede { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { margin-top: 0; }
  .stat { padding: 18px 16px; }
  .stat-n { font-size: 30px; }
  .panel { padding: 24px 18px; border-radius: 10px; }
  .section-title { font-size: 22px; margin-bottom: 22px; }
  .dept-grid, .shift, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .dept { padding: 20px; }
  .spec-list li { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .haze { background: linear-gradient(0deg, rgba(3, 5, 9, 0.9) 0%, rgba(3, 5, 9, 0.55) 100%); }
  .mdt-tab-note, .mdt-title { display: none; }
  .mdt-brand { margin-right: auto; }
  .q-out { padding: 10px; }
  .person, .vcard { grid-template-columns: minmax(0, 1fr); }
  .mug { grid-template-columns: 76px auto; align-items: end; justify-content: start; gap: 10px; }
  .mug svg { width: 76px; height: 90px; }
  .person dl, .vcard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person dl .wide, .vcard dl .wide { grid-column: span 2; }
  .contacts li { grid-template-columns: minmax(0, 1fr); }
  .c-date { grid-row: auto; }
  .call-units { display: none; }
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glow { opacity: 0.35; }
}
