/* Haulora MP - same theme as haulora.net: deep navy, ice-blue accent, Barlow Condensed
   uppercase headings over DM Sans, clipped-corner buttons, panels with a scan-line texture. */
:root {
  --bg: #08071E;
  --bg-1: #1D224F;
  --bg-2: #0B0E33;
  --panel: rgb(11, 14, 51);
  --input: rgb(29, 34, 79);
  --ink: #DCE1FA;
  --ink-2: #9BA1B5;
  --ink-3: #838B9F;
  --line: #1E2130;
  --line-2: #272C3D;
  --accent: #0098D6;
  --accent-deep: #00688F;
  --accent-hi: #00B8E8;
  --accent-dim: rgba(0, 152, 214, .12);
  --ok: #22C55E;
  --err: #EF4444;
  --shadow-panel: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  --gradient-drive: linear-gradient(45deg, var(--bg) 0%, var(--bg-2) 32%, #00435E 58%, var(--accent-deep) 80%, var(--accent-hi) 100%);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --clip: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  color-scheme: dark;
  /* cookie notice (cookie-notice.css) */
  --tm-cookie-bg: var(--panel);
  --tm-cookie-fg: var(--ink);
  --tm-cookie-muted: var(--ink-2);
  --tm-cookie-accent: var(--accent);
  --tm-cookie-accent-fg: #fff;
  --tm-cookie-border: var(--line-2);
  --tm-cookie-radius: 10px;
  --tm-cookie-font: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
/* thin navy scrollbars like haulora.net: standard properties for Firefox and Chromium 121+,
   the pseudo-elements for Safari */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #5fd3f3; }
h1, h2, h3, .h2, .h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: .06em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .85em; }
.muted { color: var(--ink-3); }
.small { font-size: .8125rem; }
.mt { margin-top: 1.5rem; }
.mt-sm { margin-top: .75rem; }
.center { text-align: center; }
.pre { white-space: pre-line; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-deep); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* small uppercase label with a static dot (haulora's hero-tag / section-tag) */
.hero-tag, .section-tag, .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .875rem;
  font: 500 .6875rem/1 var(--font); text-transform: uppercase; letter-spacing: .25em; color: var(--accent-hi);
}
.hero-tag::before, .section-tag::before, .eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 8px var(--accent);
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20; height: 56px;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 max(1.25rem, calc((100vw - var(--wrap)) / 2));
  background: rgba(8, 7, 30, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--accent-hi); }
.wordmark img { display: block; border-radius: 4px; }
.wordmark span { font: 800 1.125rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; }
.wordmark b { font-weight: 800; color: var(--ink); margin-left: .35em; }
.wordmark:hover { color: var(--accent-hi); }
.wordmark-sm span { font-size: 1rem; color: var(--ink-3); }
.wordmark-sm b { color: var(--ink-3); }
.main-nav { display: flex; gap: .25rem; flex: 1; }
.main-nav a { color: var(--ink-2); text-decoration: none; padding: .4rem .75rem; font-size: .8125rem; font-weight: 500; border-radius: 2px; }
.main-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.main-nav a[aria-current] { color: var(--accent-hi); box-shadow: inset 0 -2px 0 var(--accent); }
.header-end { display: flex; align-items: center; gap: .625rem; }
/* header dropdowns: language + account share one look (pill summary with chevron, panel menu) */
.lang, .me-menu { position: relative; }
.lang summary, .me-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .5rem .2rem .2rem; border-radius: 999px; color: var(--ink); font-size: .8125rem; font-weight: 500; }
.lang summary::-webkit-details-marker, .me-menu summary::-webkit-details-marker { display: none; }
.lang summary::after, .me-menu summary::after { content: ""; width: 6px; height: 6px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-left: .15rem; flex: none; }
.lang summary:hover, .lang[open] summary, .me-menu summary:hover, .me-menu[open] summary { background: rgba(255, 255, 255, .04); }
.lang-globe { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--bg-1); border: 1px solid var(--line-2); color: var(--ink-2); }
.lang-code { text-transform: uppercase; letter-spacing: .08em; }
.lang ul, .me-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; margin: 0; padding: .375rem; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; min-width: 190px; box-shadow: var(--shadow-panel); }
.lang li a, .me-menu li a, .me-menu li button { display: block; width: 100%; padding: .45rem .6rem; border: 0; border-radius: 4px; background: none; color: var(--ink); text-decoration: none; font: 400 .8125rem/1.4 var(--font); text-align: left; cursor: pointer; }
.lang li a:hover, .lang li a[aria-current], .me-menu li a:hover, .me-menu li button:hover, .me-menu li a[aria-current] { background: var(--accent-dim); color: var(--accent-hi); }
.me-menu .me-sep { margin-top: .25rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.me-menu form { margin: 0; }
.me { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-size: .8125rem; font-weight: 500; max-width: 200px; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me img, .me-blank { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--bg-1); display: inline-block; border: 1px solid var(--line-2); }

/* buttons: clipped corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border: 0; clip-path: var(--clip);
  font: 500 .8125rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { padding: .45rem .875rem; font-size: .75rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: .875rem; }
.btn-primary { background: var(--accent-deep); color: var(--ink); }
.btn-primary:hover { background: #005E85; color: #fff; }
.btn-primary:disabled { background: var(--bg-1); color: var(--ink-3); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); clip-path: none; border: 1px solid var(--line-2); border-radius: 2px; }
.btn-ghost:hover { color: var(--accent-hi); border-color: var(--accent-deep); }
.btn-login img { border-radius: 3px; }
.btn-danger { background: rgba(239, 68, 68, .12); color: #FCA5A5; }
.btn-danger:hover { background: rgba(239, 68, 68, .22); color: #fff; }
.i { flex: none; }

/* alerts */
.alerts { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 1.25rem; }
.alert { margin: 0 0 .5rem; padding: .75rem 1rem; border: 1px solid var(--line-2); border-left-width: 2px; border-radius: 2px; background: var(--bg-2); font-size: .875rem; }
.alert-ok { border-left-color: var(--accent); }
.alert-err { border-left-color: var(--err); }

/* toast: flash messages after a redirect (logged in, saved, ...) */
.toast {
  position: fixed; top: calc(56px + 1rem); right: 1rem; z-index: 40; width: min(360px, calc(100vw - 2rem));
  display: flex; align-items: center; gap: .75rem; padding: .75rem .5rem .75rem .875rem;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  border-radius: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  animation: toast-in .3s cubic-bezier(.16, 1, .3, 1) both;
}
.toast p { margin: 0; flex: 1; font-size: .8125rem; line-height: 1.45; }
.toast-icon { flex: none; display: grid; place-items: center; width: 16px; height: 16px; color: var(--accent-hi); font: 800 .875rem/1 var(--head); }
.toast-err { border-left-color: var(--err); }
.toast-err .toast-icon { color: #FCA5A5; }
.toast-close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink-3); cursor: pointer; }
.toast-close:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.toast.is-leaving { animation: toast-out .2s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* layout blocks */
main { min-height: 60vh; }
.section { padding: 5rem 1.75rem; }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section.narrow > * { max-width: 860px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-hd { margin-bottom: 2.5rem; max-width: 680px; }
.section-inner > .section-hd { margin-left: 0; }
.section-title { margin: 0; }
.section-lead { color: var(--ink-2); margin: .875rem 0 0; }
.lead { font-size: 1rem; color: var(--ink-2); max-width: 620px; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-panel);
}
.card { padding: 1.5rem; }
.card > :last-child { margin-bottom: 0; }
.panel { overflow: hidden; }
.panel-header {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1.25rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 152, 214, .08), transparent 60%);
}
.panel-header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 25%; height: 1px; background: var(--accent); }
.panel-title { margin: 0; font: 700 .9375rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; }
.panel-body { padding: 1.25rem; margin: 0; color: var(--ink-2); }
.empty { color: var(--ink-3); padding: 1.5rem; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; font-size: .875rem; }
.chip { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 2px; font: 600 .6875rem/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-1); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip-amber { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); color: #FCD34D; }
.chip-green { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #86EFAC; }
.chip-red { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #FCA5A5; }

/* subpage heading */
.page-head { max-width: calc(860px + 3.5rem); margin: 0 auto; padding: 4rem 1.75rem 0; }
.page-head.wide { max-width: calc(var(--wrap) + 3.5rem); }
.page-head h1 { margin-bottom: .75rem; }
.page-head + .section { padding-top: 2rem; }
.page-head.center { text-align: center; padding-top: 6rem; padding-bottom: 6rem; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- hero: headline over the two game maps ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(0, 104, 143, .35), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(29, 34, 79, .8), transparent 70%);
}
.hero-grid { max-width: calc(var(--wrap) + 3.5rem); margin: 0 auto; padding: 5rem 1.75rem 0; }
.hero-content { max-width: 640px; }
.hero-headline { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: .98; margin: 0 0 1.125rem; }
.hero-headline em { font-style: normal; color: var(--accent-hi); }
.hero-sub { color: var(--ink-2); font-size: 1rem; max-width: 560px; margin-bottom: 1.5rem; }
.hero-auth { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero-auth-note { color: var(--ink-3); font-size: .8125rem; margin: 0; }
.hero-grid:has(.live-board) { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 360px); justify-content: space-between; align-items: start; gap: 2.5rem; }

/* live board: drivers on the road + the first servers, top right of the hero */
.live-board {
  position: relative; overflow: hidden; margin-top: .25rem;
  background: rgba(11, 14, 51, .78); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 1rem 1.125rem 1.125rem; box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: board-in .9s .2s cubic-bezier(.16, 1, .3, 1) both;
}
.live-board::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 152, 214, .03) 0, transparent 2px); background-size: 100% 7px;
}
.live-board::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; pointer-events: none;
  border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); opacity: .5;
}
.live-board > * { position: relative; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .875rem; }
.live-label { display: inline-flex; align-items: center; gap: .5rem; font: 700 .75rem/1 var(--head); text-transform: uppercase; letter-spacing: .2em; color: #86EFAC; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ok); animation: live-ping 2s ease-out infinite; }
.is-quiet .live-label { color: var(--ink-3); }
.is-quiet .live-dot { background: var(--ink-3); box-shadow: none; }
.is-quiet .live-dot::after { display: none; }
.live-all { font-size: .75rem; color: var(--ink-2); text-decoration: none; }
.live-all:hover { color: var(--accent-hi); }
.live-total { display: flex; align-items: baseline; gap: .625rem; margin: 0; }
.live-num { font: 800 3.5rem/1 var(--head); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.live-total span { font: 600 .9375rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-hi); }
.live-sub { margin: .375rem 0 0; font-size: .8125rem; color: var(--ink-3); }
.live-servers { list-style: none; margin: 1rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--line-2); display: grid; gap: .625rem; }
.live-server { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .625rem; font-size: .8125rem; }
.live-server .tag { font-size: .625rem; padding: .15rem .375rem; min-width: 2.75rem; text-align: center; }
.live-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.live-count { display: inline-flex; align-items: center; }
.live-count .fill { width: 56px; margin-right: .5rem; }
.live-count .num { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.live-server.is-off { opacity: .45; }
@keyframes live-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes board-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the two game maps, rendered from the game data (tools/render_map.py) */
.hero-maps {
  position: relative; z-index: -1; width: 100%; max-width: 1640px; margin: -3rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3%; padding: 0 2% 2.5rem;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px);
  mask-image: linear-gradient(180deg, transparent 0, #000 140px);
}
.map { margin: 0; display: flex; flex-direction: column; }
.map-ets2 { align-items: flex-end; }
.map-ats { align-items: flex-start; }
.map img {
  display: block; width: auto; max-width: 100%; height: auto;
  max-height: max(300px, calc(100svh - 360px));
  animation: map-in 1.8s cubic-bezier(.16, 1, .3, 1) both;
}
.map-ats img { animation-delay: .15s; }
@keyframes map-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- feature cards (haulora's tile shell) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem; }
.feature-card {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem 1.25rem 1.375rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .3s;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 152, 214, .03) 0, transparent 2px); background-size: 100% 7px;
}
.feature-card::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; pointer-events: none;
  border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); opacity: .5;
}
.feature-card:hover { border-color: rgba(0, 152, 214, .35); }
.feature-card > * { position: relative; }
.section-alt .feature-card { background: var(--bg); }
.feature-icon-chip {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: .875rem;
}
.feature-title { margin: 0 0 .5rem; font: 700 .875rem/1.25 var(--head); text-transform: uppercase; letter-spacing: .08em; }
.feature-desc { margin: 0; font-size: .8125rem; color: var(--ink-2); line-height: 1.65; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem; }
.step-num { display: block; margin-bottom: .75rem; font: 800 1.75rem/1 var(--head); color: var(--accent-hi); letter-spacing: .04em; }

/* ---------- the two games ---------- */
.tag { display: inline-block; padding: .2rem .5rem; border-radius: 2px; font: 700 .6875rem/1.3 var(--head); letter-spacing: .12em; color: var(--ink); vertical-align: middle; }
.tag-ETS2 { background: var(--accent-deep); }
.tag-ATS { background: #1D4ED8; }
.game-panel .panel-body { font-size: .875rem; }

/* ---------- roadmap ---------- */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.roadmap::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-2); }
.roadmap li { position: relative; padding-top: 1.75rem; }
.rm-dot { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.roadmap .is-current .rm-dot { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 0 10px var(--accent); }
.roadmap .is-done .rm-dot { background: var(--accent); border-color: var(--accent); }
.roadmap li:not(.is-current) .feature-title { color: var(--ink-2); }
.roadmap p { color: var(--ink-3); font-size: .8125rem; margin: 0; }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; }
.faq { display: grid; gap: .5rem; align-content: start; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.faq details[open] { border-color: rgba(0, 152, 214, .3); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 500; font-size: .9375rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-hi); font: 700 1.25rem/1 var(--head); }
.faq details[open] summary::after { content: '-'; }
.faq details p { padding: 0 1.25rem 1.125rem; margin: 0; color: var(--ink-2); font-size: .875rem; max-width: 62ch; }

/* ---------- closing strip ---------- */
.cta-strip { background: var(--gradient-drive); border-top: 1px solid var(--line); padding: 4rem 1.75rem; }
.cta-inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner .section-title { margin-bottom: .5rem; }
.cta-inner p { color: var(--ink); margin: 0; max-width: 560px; }

/* rules */
.rules { list-style: none; counter-reset: r; margin-top: 0; margin-bottom: 2rem; padding: 0; display: grid; gap: .75rem; }
.rules li { counter-increment: r; position: relative; padding: 1.25rem 1.375rem 1.25rem 4.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 1.375rem; top: 1.125rem; font: 800 1.5rem/1 var(--head); color: var(--accent-hi); }
.rules h2 { font-size: 1rem; letter-spacing: .08em; margin-bottom: .375rem; }
.rules p { margin: 0; color: var(--ink-2); font-size: .875rem; }
.note { border-color: rgba(0, 152, 214, .35); }

/* download */
.download-main { display: grid; grid-template-columns: auto 1fr auto; gap: 1.125rem; align-items: center; }
.download-main h2 { font-size: 1.375rem; margin-bottom: .25rem; }
.download-main p { margin: 0; }
.hash { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; gap: .625rem; flex-wrap: wrap; align-items: baseline; }
.hash span { font: 500 .625rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.hash code { word-break: break-all; color: var(--ink-2); }
.download h3 { margin-top: 1.25rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--ink-2); font-size: .875rem; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--accent-hi); border-bottom: 2px solid var(--accent-hi); transform: rotate(-45deg); }

/* servers */
.server-group { margin-bottom: 2.5rem; }
.group-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: 1.25rem; }
.group-head small { font: 400 .8125rem/1 var(--font); text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-panel); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; font: 500 .625rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: .875rem 1rem; border-bottom: 1px solid var(--line); background: rgba(29, 34, 79, .35); white-space: nowrap; }
.table td { padding: .875rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(0, 152, 214, .04); }
.fill { width: 120px; height: 4px; border-radius: 2px; background: var(--bg-1); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: .625rem; }
.fill span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi)); }
.num { font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .8125rem; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.status-on { color: #86EFAC; }
.status-on::before { background: var(--ok); }
.status-off { color: var(--ink-3); }
.status-off::before { background: var(--line-2); }

/* player card */
.player { display: flex; gap: 1.375rem; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; flex: none; background: var(--bg-1); display: block; border: 2px solid var(--accent-deep); }
.player .h2 { margin-bottom: .25rem; overflow-wrap: anywhere; }
.player p { margin: 0 0 .5rem; }
.badges { display: flex; gap: .375rem; flex-wrap: wrap; }
.ban-card { border-color: rgba(239, 68, 68, .4); background: linear-gradient(180deg, rgba(239, 68, 68, .08), transparent), var(--panel); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0 0 .75rem; font-size: .875rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; }

/* forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .375rem; font: 500 .5625rem/1.3 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.form small { color: var(--ink-3); font-size: .75rem; letter-spacing: 0; text-transform: none; }
input, select, textarea {
  width: 100%; padding: .625rem .75rem; border-radius: 2px; border: 1px solid var(--line-2);
  background: var(--input); color: var(--ink); font: 400 .875rem/1.4 var(--font); letter-spacing: 0; text-transform: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.form .check { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.form .check input { width: auto; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-all, .form-grid .form-actions { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: .875rem 1rem 1rem; border: 1px solid var(--line-2); border-radius: 2px; min-width: 0; }
.form fieldset .span-all { grid-column: 1 / -1; }
.form legend { padding: 0 .375rem; font: 500 .5625rem/1.3 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.form fieldset p { margin: 0; }

/* admin */
.admin { max-width: calc(var(--wrap) + 3.5rem); margin: 0 auto; padding: 1.5rem 1.75rem 4.5rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; font-size: clamp(1.625rem, 3vw, 2.25rem); }

/* modal (<dialog>, opened by [data-modal-open]); as wide as the admin content area */
.modal { width: min(var(--wrap), calc(100vw - 2.5rem)); max-width: none; max-height: calc(100dvh - 2.5rem); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(4, 4, 18, .72); backdrop-filter: blur(2px); }
.modal > .card { margin: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.modal-head .h3 { margin: 0; }
.modal-x { background: none; border: 0; color: var(--ink-3); font-size: 1.75rem; line-height: 1; padding: 0 .25rem; cursor: pointer; }
.modal-x:hover { color: var(--accent-hi); }
.modal-head { margin-bottom: 1rem; }
.form-grid .modal-head { margin-bottom: 0; }
.modal-sm { width: min(640px, calc(100vw - 2.5rem)); }
.modal-confirm { width: min(460px, calc(100vw - 2.5rem)); }
.modal-confirm p { color: var(--ink-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.modal-foot form { margin: 0; }
.search { display: flex; gap: .5rem; }
.search input { min-width: 240px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .875rem; }
.tile { display: flex; flex-direction: column; padding: 1.25rem 1.375rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-panel); }
a.tile:hover { border-color: rgba(0, 152, 214, .35); color: var(--ink); }
.tile strong { font: 800 2.25rem/1 var(--head); color: var(--accent-hi); }
.tile span { color: var(--ink-3); margin-top: .5rem; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; }
.tile-warn { border-color: rgba(245, 158, 11, .45); }
.tile-warn strong { color: #FCD34D; }
.player-link { display: inline-flex; align-items: center; gap: .5rem; }
.player-link img { border-radius: 50%; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; }
.ban-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ban-list li { padding: .75rem .875rem; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: .875rem; }
.ban-list li.is-active { border-color: rgba(239, 68, 68, .4); }
.ban-list p { margin: 0 0 .375rem; }
.seg { display: flex; padding: .25rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.seg a { padding: .35rem .75rem; border-radius: 2px; color: var(--ink-3); text-decoration: none; font-size: .8125rem; }
.seg a[aria-current] { background: var(--accent-dim); color: var(--accent-hi); }
.report { margin-bottom: .75rem; }
.report header p { margin: 0 0 .25rem; }
.report header { margin-bottom: .75rem; }
.inline-form { display: flex; gap: .5rem; margin-top: .75rem; }
.inline-form input { flex: 1; }
.server-row { margin-bottom: .625rem; padding: 1rem 1.25rem; }
.server-row-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
.server-row-title { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.server-row > p { margin: .5rem 0 0; }
.server-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.server-actions form { margin: 0; }
.token-card { border-color: rgba(0, 152, 214, .45); margin-bottom: 1rem; }
.token { display: block; padding: .75rem; border-radius: 2px; background: var(--bg-2); border: 1px solid var(--line-2); word-break: break-all; user-select: all; }
.hash-cell { max-width: 220px; word-break: break-all; }
.install-cmd { margin: 0 0 1.25rem; }
.install-cmd p { margin: 0 0 .5rem; max-width: 72ch; }
.install-cmd-row { display: flex; gap: .5rem; align-items: center; }
.install-cmd-row input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: inherit; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.75rem max(1.75rem, calc((100vw - var(--wrap)) / 2)) 2rem; }
.footer-cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-cols nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-cols nav a { color: var(--ink-3); text-decoration: none; font-size: .8125rem; }
.footer-cols nav a:hover { color: var(--accent-hi); }
.footer-cols .wordmark { margin: 0 0 .75rem; }
.footer-cols p { font-size: .8125rem; }
.disclaimer { color: var(--ink-3); font-size: .75rem; max-width: 860px; }
.footer-legal a { color: var(--ink-3); }
.footer-legal a:hover { color: var(--accent-hi); }
.site-footer p:last-child { margin: 0; font-size: .75rem; color: var(--ink-3); }

/* legal pages (privacy, terms, cookies) */
.legal h2 { font-size: 1.125rem; letter-spacing: .06em; margin: 2.25rem 0 .625rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: .9375rem; letter-spacing: .04em; margin: 1.25rem 0 .375rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .375rem; }
.legal strong { color: var(--ink); }
.legal-table { overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.legal-table th, .legal-table td { text-align: left; padding: .625rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--ink-3); font-weight: 600; text-transform: uppercase; font-size: .6875rem; letter-spacing: .05em; }
.legal-table td { color: var(--ink-2); }

/* responsive */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-maps { margin-top: 1rem; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 960px) {
  .hero-grid:has(.live-board) { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .live-board { max-width: 420px; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .roadmap::before { display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; height: auto; padding-top: .625rem; padding-bottom: .375rem; gap: .5rem 1rem; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .main-nav a { padding-left: 0; margin-right: .75rem; }
  .header-end { margin-left: auto; }
  .me span { display: none; }
  .btn-login.btn-sm span { display: none; }
  .toast { top: 7rem; }
  .hero-grid { padding-top: 3rem; }
  .section { padding: 3.5rem 1.25rem; }
  .page-head { padding: 3rem 1.25rem 0; }
  .feature-grid, .steps, .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .cta-strip { padding: 3rem 1.25rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .download-main { grid-template-columns: auto 1fr; }
  .download-main .btn { grid-column: 1 / -1; }
  .player { flex-direction: column; align-items: flex-start; }
  .tiles { grid-template-columns: 1fr; }
  .search input { min-width: 0; }
  .inline-form { flex-direction: column; }
  .fill { width: 60px; }
  .admin { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .map img, .toast, .toast.is-leaving, .live-board, .live-dot::after { animation: none; } }

/* Admin > Chat: the blocked words */
.form-inline { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.form-inline input { flex: 1 1 16rem; }
.word-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.word-list form { display: flex; align-items: center; gap: .25rem; padding: .125rem .25rem .125rem .5rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.word-remove { background: none; border: 0; color: var(--ink-3, inherit); cursor: pointer; font-size: 1rem; line-height: 1; padding: .125rem .25rem; border-radius: 4px; }
.word-remove:hover, .word-remove:focus-visible { color: #FCA5A5; background: rgba(239, 68, 68, .12); }

/* Discord roles: chip in the role's own colour, lightened for the dark background */
.chip-role { --role: var(--ink-2); text-transform: none; letter-spacing: .01em; color: color-mix(in srgb, var(--role) 55%, #fff);
  background: color-mix(in srgb, var(--role) 16%, transparent); border-color: color-mix(in srgb, var(--role) 55%, transparent); }
.role-history { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.role-history li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.role-history li:first-child { border-top: 0; }
.role-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem; flex: 1 1 auto; }
.role-change { font-size: .75rem; font-weight: 600; min-width: 6.5rem; }
.role-change.is-up { color: #86EFAC; }
.role-change.is-down { color: #FCA5A5; }

/* Admin > Roles (categories + roles tables, edit modals) */
.perm-list { margin: 0 0 .75rem; padding-left: 1.1rem; font-size: .875rem; display: grid; gap: .25rem; }
.roles-table td { vertical-align: top; }
.roles-table .badges a { text-decoration: none; }
.roles-table a.chip:hover { color: var(--accent-hi); border-color: var(--accent-deep); }
.nowrap { white-space: nowrap; }
.role-level { display: block; margin-top: .375rem; }
.actions-cell { text-align: right; white-space: nowrap; }
.perm-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.perm-badge { display: inline-flex; align-items: center; padding: .15rem .5rem; border-radius: 2px; font-size: .75rem; line-height: 1.4; background: var(--accent-dim); border: 1px solid rgba(0, 152, 214, .35); color: var(--ink); white-space: nowrap; }
.perm-badge.is-added { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #86EFAC; }
.perm-badge.is-removed { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); color: #FCA5A5; text-decoration: line-through; }
/* role / category modal: categories as ticks, permissions as switches with a description */
.perm-section { margin: 1.25rem 0 .25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cat-checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cat-check { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; }
.cat-check input { width: auto; margin: 0; accent-color: var(--accent); }
.cat-check:has(input:checked) { border-color: var(--accent-deep); background: var(--accent-dim); }
.cat-check.is-locked, .perm-row.is-locked { opacity: .55; cursor: not-allowed; }
.perm-group > summary.perm-section { cursor: pointer; }
.perm-group .perm-section { margin-top: .875rem; }
.perm-grid { display: grid; gap: 0; margin-top: .5rem; border-top: 1px solid var(--line); }
.perm-row { display: flex; gap: .875rem; align-items: flex-start; padding: .75rem .25rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.perm-text { display: grid; gap: .2rem; min-width: 0; }
.perm-label { font-weight: 600; font-size: .875rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.perm-desc { color: var(--ink-3); font-size: .8125rem; }
.perm-src { font-weight: 400; font-size: .75rem; }
.perm-src-cat { color: var(--ink-3); }
.perm-src-added { color: #86EFAC; }
.perm-src-removed { color: #FCA5A5; }
.switch { position: relative; flex: none; width: 36px; height: 20px; margin-top: .1rem; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: inherit; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .15s, background .15s; }
.switch input:checked + .switch-track { background: var(--accent-deep); }
.switch input:checked + .switch-track::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.h3 .mono { text-transform: none; letter-spacing: 0; }

/* Admin > Livemap (livemap.js): the map fills the width, layer panel floats top-left */
.admin-wide { max-width: none; }
.livemap { position: relative; height: calc(100vh - 15rem); min-height: 480px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #242f3e; box-shadow: var(--shadow-panel); }
/* .livemap prefix: maplibre-gl.css loads later and sets .maplibregl-map { position: relative } */
.livemap .livemap-map { position: absolute; inset: 0; }
.livemap-panel { position: absolute; top: .75rem; left: .75rem; width: 15.5rem; max-height: calc(100% - 1.5rem); overflow-y: auto; padding: .75rem .875rem; background: rgba(11, 14, 51, .92); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-panel); backdrop-filter: blur(6px); }
.livemap-panel-title { margin: 0 0 .5rem; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font); font-weight: 600; }
.livemap-layer { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .8125rem; color: var(--ink); cursor: pointer; }
.livemap-layer input { width: auto; padding: 0; flex: none; accent-color: var(--accent); margin: 0; }
.livemap-layer-main { font-weight: 600; }
.livemap-sub { padding-left: 1.25rem; border-left: 1px solid var(--line-2); margin-left: .375rem; }
.livemap-sub.is-off { opacity: .45; }
.livemap-count { margin-left: auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); }
.livemap-swatch { width: .75rem; height: .75rem; border-radius: 2px; background: var(--zc); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.livemap-note { margin: .625rem 0 0; font-size: .6875rem; line-height: 1.45; color: var(--ink-3); }
.livemap-error { color: #FCA5A5; }
.zone-company { --zc: #00B8E8; } .zone-repair { --zc: #F59E0B; } .zone-fuel { --zc: #22C55E; } .zone-garage { --zc: #A78BFA; } .zone-bus { --zc: #F472B6; } .zone-ferry { --zc: #EF4444; }
.livemap .maplibregl-popup-content { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: .75rem .875rem; font-family: var(--font); font-size: .8125rem; box-shadow: var(--shadow-panel); }
.livemap .maplibregl-popup-tip { border-top-color: var(--panel); border-bottom-color: var(--panel); }
.livemap .maplibregl-popup-close-button { color: var(--ink-3); font-size: 1.125rem; padding: 0 .375rem; }
.livemap-popup-cats { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: .375rem; padding-right: 1rem; }
.livemap-chip { font-size: .6875rem; padding: .1rem .45rem; border-radius: 999px; color: var(--zc); border: 1px solid var(--zc); background: color-mix(in srgb, var(--zc) 14%, transparent); }
.livemap-popup-name { display: block; font-size: .9375rem; margin-bottom: .25rem; }
.livemap-popup dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; margin: .375rem 0 0; }
.livemap-popup dt { color: var(--ink-3); }
.livemap-popup dd { margin: 0; overflow-wrap: anywhere; }
.livemap-popup dd.mono { font-family: var(--mono); font-size: .6875rem; }
@media (max-width: 720px) {
  .livemap { height: 70vh; }
  .livemap-panel { top: auto; bottom: .75rem; width: auto; right: .75rem; max-height: 40%; }
}

/* Public live map (/map, map.js): the map under the header, server pick + search float top-left */
/* The map page has no footer: header on top, the map fills the rest of the window */
body.page-map { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.page-map main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pubmap-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pubmap { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.pubmap-panel { position: absolute; top: .75rem; left: .75rem; width: min(20rem, calc(100% - 4.5rem)); display: flex; flex-direction: column; gap: .5rem;
  padding: .625rem; background: rgba(11, 14, 51, .92); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-panel); backdrop-filter: blur(6px); z-index: 2; }
.pubmap-field select, .pubmap-search input { width: 100%; font-size: .875rem; }
.pubmap-search { position: relative; }
.pubmap-results { position: absolute; top: calc(100% + .25rem); left: 0; right: 0; margin: 0; padding: .25rem; list-style: none; max-height: 18rem; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow-panel); }
.pubmap-results li { display: flex; flex-direction: column; gap: .1rem; padding: .4rem .55rem; border-radius: 6px; cursor: pointer; }
.pubmap-results li[aria-selected="true"], .pubmap-results li:hover { background: var(--accent-dim); }
.pubmap-results li.pubmap-none { cursor: default; color: var(--ink-3); font-size: .8125rem; }
.pubmap-results li.pubmap-none:hover { background: none; }
.pubmap-hit-name { font-weight: 600; color: var(--ink); font-size: .875rem; overflow-wrap: anywhere; }
.pubmap-hit-where { font-size: .75rem; color: var(--ink-3); }
.pubmap-status { margin: 0; font-size: .75rem; color: var(--ink-2); font-family: var(--mono); min-height: 1em; }
.pubmap-follow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem; font-size: .8125rem;
  border: 1px solid #A3E635; border-radius: 6px; background: rgba(163, 230, 53, .1); }
.pubmap-follow[hidden] { display: none; }
.pubmap-follow b { color: #A3E635; overflow-wrap: anywhere; }
.pubmap-follow button { background: none; border: 0; color: var(--ink); font-size: 1.125rem; line-height: 1; padding: 0 .25rem; cursor: pointer; }
.pubmap-zones { border-top: 1px solid var(--line-2); padding-top: .4rem; max-height: 50vh; overflow-y: auto; }
.pubmap-zones summary { cursor: pointer; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: .15rem 0; }

/* Admin > Crash reports: a log preview (scrolls inside, lines kept as they are) */
.logbox { max-height: 60vh; overflow: auto; margin: .5rem 0 0; padding: .75rem 1rem; background: var(--bg-2); border: 1px solid var(--line-2);
  font: 12px/1.5 var(--mono); white-space: pre; color: var(--ink); }
.crash-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: 1rem 0; }
.crash-facts dt { color: var(--ink-3); }
.crash-facts dd { margin: 0; overflow-wrap: anywhere; }

/* ban appeals (appeals.go) */
.kv-left dd { text-align: left; }
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.msg { padding: .75rem .875rem; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.msg p { margin: 0 0 .375rem; }
.msg p:last-child { margin-bottom: 0; }
.msg-staff { border-color: rgba(0, 152, 214, .35); }
.msg-decision { border-color: rgba(245, 158, 11, .45); }
.msg-head { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; }
.case-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }

/* ---------- Control Panel (body.cp): haulora.net's admin layout ----------
   Fixed sidebar (230px) with grouped icon links, thin top bar, compact panels and tables, all from
   haulora/web public/assets/css/dashboard.css (.sidebar, .nav-item, .topbar, .panel, .admin-table,
   .stat-card). Under 900px the sidebar turns into a bottom bar like haulora.net on phones. */
.cp { --sidebar-w: 230px; --nav: rgb(12, 15, 57); --row-hover: rgb(29, 34, 79); font-size: .875rem; }
.cp-app { display: flex; min-height: 100vh; }
.cp-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--sidebar-w);
  display: flex; flex-direction: column; background: var(--nav); border-right: 1px solid var(--line);
}
.cp-sidebar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent-hi); opacity: .85; }
.cp-logo { position: relative; flex: none; height: 56px; display: flex; align-items: center; gap: .5rem; padding: 0 1rem 0 1.125rem; border-bottom: 1px solid var(--line); }
.cp-logo::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40%; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.cp-logo-text { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-hi); text-decoration: none; }
.cp-logo-text span { font: 800 1rem/1 var(--head); letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; text-shadow: 0 0 12px rgba(0, 184, 232, .35); }
.cp-logo-text b { color: var(--ink); font-weight: 800; margin-left: .3em; text-shadow: none; }
.cp-logo-text:hover { color: var(--accent-hi); }
.cp-nav { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 1.125rem .75rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cp-nav::-webkit-scrollbar { display: none; }
.cp-group { display: flex; flex-direction: column; gap: 2px; }
.cp-group-label { padding: 0 .75rem .375rem; font: 500 .5rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.cp-item {
  position: relative; display: flex; align-items: center; gap: .625rem; padding: .5625rem .75rem; border-radius: 2px;
  color: var(--ink-2); text-decoration: none; font-size: .8125rem; font-weight: 500; transition: background .15s, color .15s;
}
.cp-item:hover { color: var(--ink); background: var(--bg-2); }
.cp-team > summary { list-style: none; cursor: pointer; }
.cp-team > summary::-webkit-details-marker { display: none; }
.cp-chev { margin-left: auto; flex: none; color: var(--ink-3); transition: transform .15s; }
.cp-team[open] > summary .cp-chev { transform: rotate(90deg); }
.cp-team[open] > summary { color: var(--ink); }
.cp-team-menu { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 .375rem 1.75rem; }
.cp-subitem { font-size: .75rem; padding: .4375rem .75rem; }
.cp-subitem:hover { background: var(--row-hover); }
.cp-ico { flex: none; }
.cp-item[aria-current] {
  color: var(--accent); background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 100%);
  text-shadow: 0 0 10px rgba(0, 152, 214, .4);
}
.cp-item[aria-current]::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 152, 214, .8), 0 0 20px rgba(0, 152, 214, .4);
}
.cp-item[aria-current]::after { content: ''; position: absolute; right: 0; top: 0; width: 6px; height: 6px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); opacity: .6; }
.cp-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.cp-topbar {
  position: sticky; top: 0; z-index: 20; height: 56px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  padding: 0 1.75rem; background: var(--nav); border-bottom: 1px solid var(--line);
}
.cp-topbar::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 35%; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.cp .alerts { max-width: none; margin: 1rem 1.75rem 0; padding: 0; }
.cp-content { flex: 1; min-height: 0; padding: 1.75rem; }
.cp .admin { max-width: none; margin: 0; padding: 0 0 2rem; }
.cp .admin-head { margin-bottom: 1.25rem; }
.cp .admin-head h1 { font: 700 1.375rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.cp .admin-head h1 small { font: 400 .8125rem/1 var(--font); letter-spacing: 0; text-transform: none; }
.cp h2.h3, .cp .card > .h3:first-child { font: 700 .9375rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.cp .toast { top: calc(56px + 1rem); }
/* panels: haulora's corner brackets (top left, bottom right) */
.cp .card, .cp .table-wrap, .cp .tile { border-radius: 12px; }
.cp .card::before, .cp .card::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: .4; }
.cp .card::before { top: -1px; left: -1px; border-top: 1px solid var(--accent-hi); border-left: 1px solid var(--accent-hi); border-top-left-radius: 12px; }
.cp .card::after { right: -1px; bottom: -1px; border-right: 1px solid var(--accent-hi); border-bottom: 1px solid var(--accent-hi); border-bottom-right-radius: 12px; }
.cp .card { padding: 1.25rem 1.375rem; }
/* tables: haulora's .admin-table */
.cp .table { font-size: .8125rem; }
.cp .table thead { background: linear-gradient(90deg, rgba(0, 152, 214, .06) 0%, transparent 60%); }
.cp .table th { font: 500 .5rem/1 var(--font); letter-spacing: .22em; padding: .75rem 1.375rem; background: none; }
.cp .table td { padding: .75rem 1.375rem; color: var(--ink-2); }
.cp .table td a, .cp .table td strong { color: var(--ink); }
.cp .table td a:not(.btn):not(.chip) { text-decoration: none; }
.cp .table td a:hover { color: var(--accent-hi); }
.cp .table tbody tr:hover td { background: var(--row-hover); }
/* stat tiles: haulora's .stat-card (scan lines, big condensed number) */
.cp .tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.cp .tile { position: relative; overflow: hidden; padding: 1.375rem 1.5rem 1.25rem; }
.cp .tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 152, 214, .06) 0px, transparent 2px); background-size: 100% 4px; }
.cp .tile > * { position: relative; }
.cp .tile strong { order: 2; font-size: 2.5rem; color: var(--ink); transition: color .2s, text-shadow .2s; }
.cp .tile span { order: 1; margin: 0 0 .75rem; font-size: .5rem; letter-spacing: .22em; }
.cp a.tile:hover strong { color: var(--accent-hi); text-shadow: 0 0 18px rgba(0, 184, 232, .45); }
.cp .tile-warn strong { color: #f5a524; }
/* buttons: haulora's admin buttons (bright primary with glow, blue-edged ghost) */
.cp .btn { padding: .5rem 1.125rem; letter-spacing: .03em; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.cp .btn-sm { padding: .3rem .75rem; font-size: .75rem; }
.cp .btn-primary { background: var(--accent); color: #080A0D; font-weight: 600; }
.cp .btn-primary:hover { background: var(--accent-hi); color: #080A0D; box-shadow: 0 0 24px rgba(0, 152, 214, .45), 0 0 8px rgba(0, 152, 214, .3); transform: translateY(-1px); }
.cp .btn-primary:disabled { background: var(--bg-1); color: var(--ink-3); box-shadow: none; transform: none; }
.cp .btn-ghost { border-color: rgba(0, 152, 214, .25); }
.cp .btn-ghost:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(0, 152, 214, .2); }
.cp .btn-danger { background: transparent; clip-path: none; border: 1px solid rgba(255, 77, 77, .35); border-radius: 2px; color: #ff4d4d; }
.cp .btn-danger:hover { background: rgba(255, 77, 77, .08); color: #ff6b6b; }
/* inputs: haulora's .form-input */
.cp input, .cp select, .cp textarea { padding: .5rem .75rem; font-size: .8125rem; }
.cp .search input { min-width: 280px; }
.cp .seg { border-radius: 2px; }
.cp .seg a[aria-current] { color: var(--accent-hi); }
.cp .livemap { height: calc(100vh - 56px - 9rem); }
.cp .pubmap { flex: none; min-height: 480px; border: 1px solid var(--line); border-radius: 12px; }
.cp-menu-btn { display: none; margin-right: auto; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--ink-2); cursor: pointer; }
.cp-menu-btn:hover { color: var(--accent-hi); border-color: var(--accent-deep); }
.cp-scrim { display: none; }
@media (max-width: 900px) {
  .cp-menu-btn { display: inline-grid; }
  .cp-sidebar { width: min(280px, 85vw); transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .cp-nav-open .cp-sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .cp-nav-open .cp-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(4, 4, 18, .6); }
  .cp-main { margin-left: 0; }
  .cp-topbar { padding: 0 1rem; }
  .cp-content { padding: 1rem; }
  .cp .alerts { margin: 1rem 1rem 0; }
  .cp .search input { min-width: 0; }
  .cp .livemap { height: 65vh; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .cp-sidebar { transition: none; } }

/* Control Panel > Overview */
.cp-overview { display: flex; flex-direction: column; gap: 1rem; }
.cp-overview > h1 { margin-bottom: 0; }
.cp-section { margin: .75rem 0 0; font: 600 .625rem/1.2 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.cp-list .cp-section { margin: 0; }
.tile-note { order: 3; margin-top: .5rem; font-style: normal; font-size: .75rem; color: var(--ink-3); }
.cp-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; margin-top: .75rem; }
.cp-overview-grid > .card { min-width: 0; }
.cp-list { display: flex; flex-direction: column; gap: .75rem; }
.cp-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cp-list-head a { color: var(--accent-hi); text-decoration: none; }
.cp-list .empty { margin: 0; }
.cp-rows { list-style: none; margin: 0; padding: 0; }
.cp-rows li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .625rem 0; border-top: 1px solid var(--line); font-size: .8125rem; }
.cp-rows li:first-child { border-top: 0; padding-top: 0; }
.cp-row-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cp-row-main a { color: var(--ink); text-decoration: none; }
.cp-row-main a:hover { color: var(--accent-hi); }
.cp-row-side { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.cp-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .cp-overview-grid { grid-template-columns: 1fr; }
  .cp-overview .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .cp-overview .tile { padding: 1rem 1.125rem; }
  .cp-overview .tile strong { font-size: 2rem; }
  .cp-rows li { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .cp-row-side { justify-content: flex-start; text-align: left; }
}

/* ban evidence (evidence.go) */
.evidence { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; align-items: flex-start; }
.evidence-thumb img { display: block; width: 160px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); }
.evidence-video { width: 320px; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #000; }
.evidence-edit { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.evidence-edit form.inline { display: inline; }
.evidence-upload { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.evidence-upload input[type=file] { max-width: 100%; font-size: .8125rem; }

/* report tickets (reports.go): the decision form shows the ban fields only for "Ban the player" */
.report-decide { margin-top: .75rem; }
.report-decide .decide-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.report-decide .decide-choice legend { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .375rem; }
.report-decide .decide-ban { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.report-decide .decide-ban p { grid-column: 1 / -1; margin: 0; }
.report-decide:not(:has(input[value="ban"]:checked)) .decide-ban { display: none; }
