:root {
--bg: #0a0e16;
--panel: rgba(15, 20, 31, 0.86);
--panel-solid: #121826;
--panel-2: rgba(255, 255, 255, 0.04);
--border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.16);
--text: #e7ecf5;
--muted: #8a94a8;
--faint: #7c879c;
--accent: #5aa2ff;
--accent-soft: rgba(90, 162, 255, 0.16);
--good: #34d399;
--warn: #f5b942;
--bad: #f16063;
--radius: 12px;
--radius-sm: 8px;
--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
--mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.glass {
background: var(--panel);
backdrop-filter: blur(14px) saturate(140%);
-webkit-backdrop-filter: blur(14px) saturate(140%);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.btn {
display: inline-flex; align-items: center; gap: 6px;
height: 34px; padding: 0 12px;
background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); text-decoration: none; }
.btn.primary { background: var(--accent-soft); border-color: rgba(90, 162, 255, .4); color: #cfe3ff; }
.btn.icon { width: 34px; padding: 0; justify-content: center; }
.btn svg { width: 16px; height: 16px; }
.btn:focus-visible, .world-btn:focus-visible, .list-item:focus-visible, .seg-btn:focus-visible, .coords:focus-visible,
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.input:focus-visible { border-color: var(--accent); }
.copy { cursor: copy; }
.chip {
display: inline-flex; align-items: center; gap: 6px;
padding: 2px 8px; border-radius: 999px; font-size: 12px;
background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
}
.chip.good { color: var(--good); border-color: rgba(52, 211, 153, .3); }
.chip.warn { color: var(--warn); border-color: rgba(245, 185, 66, .3); }
.chip.bad { color: var(--bad); border-color: rgba(241, 96, 99, .35); }
#map { position: fixed; inset: 0; background: #06080d; }
.leaflet-container { background: #06080d; font: inherit; }
.leaflet-tile { image-rendering: pixelated; image-rendering: crisp-edges; }
.leaflet-control-attribution { display: none; }
.leaflet-control-zoom { border: none !important; box-shadow: var(--shadow) !important; }
.leaflet-top.leaflet-right { top: calc(64px + env(safe-area-inset-top)); right: max(2px, env(safe-area-inset-right)); }
.leaflet-control-zoom a {
background: var(--panel) !important; color: var(--text) !important; border-color: var(--border) !important;
backdrop-filter: blur(12px); width: 34px !important; height: 34px !important; line-height: 32px !important;
}
.leaflet-control-zoom a:hover { background: rgba(40, 48, 66, .95) !important; }
.topbar {
position: fixed; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); z-index: 1000;
display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; height: 46px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand-title { font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--muted); }
.worlds { position: relative; display: flex; padding: 5px; height: 46px; min-width: 0; max-width: min(60vw, 420px); }
.world-current { max-width: 100%; min-width: 0; }
.world-current span:not(.world-dot):not(.caret) { overflow: hidden; text-overflow: ellipsis; }
.caret { font-size: 11px; opacity: .7; }
.world-menu {
position: absolute; top: 50px; left: 0; min-width: 220px; max-width: min(360px, calc(100vw - 16px));
max-height: min(60vh, 420px); overflow-y: auto; padding: 5px; display: flex; flex-direction: column; gap: 2px; z-index: 1100;
}
.world-menu .world-btn { width: 100%; justify-content: flex-start; height: 38px; }
.world-menu .grow { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.world-btn {
display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer; color: var(--muted);
white-space: nowrap;
}
.world-btn:hover { background: var(--panel-2); color: var(--text); }
.world-btn.active { background: var(--accent-soft); border-color: rgba(90, 162, 255, .35); color: #dbeaff; }
.world-dot { width: 9px; height: 9px; border-radius: 50%; }
.spacer { flex: 1; }
.top-actions { display: flex; gap: 6px; padding: 6px; height: 46px; }
.sidebar {
position: fixed; top: calc(70px + env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); bottom: calc(60px + env(safe-area-inset-bottom)); width: 300px; z-index: 999;
display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, opacity .25s;
}
.sidebar.collapsed { transform: translateX(-330px); opacity: 0; pointer-events: none; }
.side-search { padding: 10px; border-bottom: 1px solid var(--border); }
.input {
width: 100%; height: 36px; padding: 0 12px 0 34px;
background: rgba(0, 0, 0, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 16px;
border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); outline: none;
}
.input:focus { border-color: rgba(90, 162, 255, .5); }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 0 10px; }
.side-scroll::-webkit-scrollbar { width: 8px; }
.side-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 8px; }
.section-head {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 14px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); font-weight: 600;
}
.list-item {
display: flex; align-items: center; gap: 10px; padding: 7px 14px; cursor: pointer; border-radius: 0;
}
.list-item:hover { background: var(--panel-2); }
.list-item.active { background: var(--accent-soft); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item.sel { background: var(--accent-soft); }
.list-item mark { background: none; color: var(--accent); font-weight: 650; }
.stats span { margin-left: 8px; display: inline-flex; align-items: center; gap: 2px; }
.setting select { width: auto; height: 30px; padding: 0 8px; font-size: 13px; }
.follow-pill {
position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 58px); left: 50%; transform: translateX(-50%); z-index: 1000;
display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; border-radius: 999px; max-width: calc(100vw - 24px);
}
.follow-pill .head { width: 24px; height: 24px; }
.follow-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-pill .btn { width: 28px; height: 28px; border-radius: 999px; font-size: 18px; }
.grab { display: none; }
.crosshair { display: none; }
.leaflet-control-scale-line {
background: var(--panel); color: var(--text); border-color: var(--muted); font: 11px var(--font); padding: 0 6px; text-shadow: none;
}
.head { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; background: #1c2333; flex: none; }
.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; background: var(--bad); }
.empty { padding: 6px 14px; color: var(--faint); font-size: 13px; }
.toggle { position: relative; width: 34px; height: 20px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; background: rgba(255, 255, 255, .12); border-radius: 20px; transition: .2s; pointer-events: none; }
.toggle span::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #cdd5e4; border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(14px); background: #fff; }
.bottombar {
position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1000;
display: flex; gap: 10px; align-items: flex-end; pointer-events: none;
}
.bottombar > * { pointer-events: auto; }
.coords { display: flex; gap: 14px; align-items: center; padding: 8px 14px; font-size: 13px; }
.coords b { color: var(--muted); font-weight: 500; margin-right: 4px; }
.status { display: flex; gap: 12px; align-items: center; padding: 8px 14px; font-size: 13px; }
.status .sep { width: 1px; height: 16px; background: var(--border); }
.pm-player { position: relative; }
.pm-player .ph {
width: 26px; height: 26px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
image-rendering: pixelated; background: #1c2333; display: block;
}
.pm-player .pn, .pm-label {
position: absolute; left: 50%; top: -24px; transform: translateX(-50%);
padding: 1px 7px; border-radius: 6px; background: rgba(8, 11, 18, .85); border: 1px solid var(--border);
font-size: 12px; white-space: nowrap; color: #fff; pointer-events: none;
}
.pm-player .pd {
position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none;
}
.pm-player .pd::after {
content: ""; position: absolute; left: -5px; top: -24px; border: 5px solid transparent; border-bottom: 8px solid #fff;
}
.pm-icon { position: relative; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.pm-icon svg { display: block; }
.pm-label { top: auto; bottom: -22px; font-size: 11px; }
.pm-icon.labelled .pm-label { font-weight: 600; font-size: 12px; }
.leaflet-popup-content-wrapper {
background: var(--panel-solid); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius);
box-shadow: var(--shadow);
}
.leaflet-popup-tip { background: var(--panel-solid); border: 1px solid var(--border-strong); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; min-width: 180px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pop-title { font-weight: 650; font-size: 14px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.pop-title .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pop-line { color: var(--muted); }
.pop-foot { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.toast {
position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%) translateY(20px); opacity: 0;
padding: 8px 14px; z-index: 2000; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.bubble-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.pm-bubble {
position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); max-width: 220px; width: max-content;
padding: 5px 9px; border-radius: 10px; background: #fff; color: #111; font-size: 12px; line-height: 1.3;
box-shadow: 0 4px 14px rgba(0, 0, 0, .45); white-space: normal; pointer-events: none; animation: bubble-in .15s ease-out;
}
.pm-bubble::after {
content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
border: 6px solid transparent; border-top-color: #fff; border-bottom: 0;
}
@keyframes bubble-in { from { opacity: 0; transform: translate(-50%, 4px); } }
.input.plain { background-image: none; padding-left: 12px; }
.chat {
position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: calc(64px + env(safe-area-inset-bottom)); width: 360px; height: min(480px, calc(100vh - 150px)); height: min(480px, calc(100dvh - 150px)); z-index: 1001;
display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.chat-head .spacer { flex: 1; }
.chat-head .btn { height: 28px; padding: 0 8px; font-size: 12px; flex: none; }
.chat-head .btn.icon { width: 28px; padding: 0; }
#chat-user { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 12px; }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.chat-msg { line-height: 1.35; word-wrap: break-word; }
.chat-msg .t { color: var(--faint); font-size: 11px; margin-right: 6px; }
.chat-msg .n { font-weight: 600; margin-right: 4px; }
.chat-msg.web .n { color: #8fd1ff; }
.mc-k { filter: blur(3px); }
.chat-msg span[style*="color"] { text-shadow: 0 0 2px rgba(255, 255, 255, .35); }
.chat-msg.sys { color: var(--muted); font-style: italic; }
.chat-row { display: flex; gap: 6px; }
.chat-row .input { flex: 1; }
.chat-send, .chat-login { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.chat-send { flex-direction: row; }
.chat-login code { color: var(--text); }
.chat-error { color: var(--bad); font-size: 12px; min-height: 1em; }
.code-input { text-transform: uppercase; letter-spacing: 3px; }
.seg { display: flex; gap: 2px; padding: 3px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.seg-btn { flex: 1; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.seg-btn.active { background: var(--accent-soft); color: #dbeaff; }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.login-form[hidden] { display: none; }
.chat-login { overflow-y: auto; }
#btn-chat { position: relative; }
.badge {
position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
background: var(--bad); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
@media (max-width: 760px) {
.brand { padding: 6px; }
.brand > div { display: none; }
.brand-logo { width: 34px; height: 34px; }
.sidebar { top: auto; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); width: auto; max-height: 55vh; z-index: 1001; }
.sidebar.collapsed { transform: translateY(110%); }
.grab { display: block; height: 16px; flex: none; cursor: pointer; }
.grab::before { content: ""; display: block; width: 40px; height: 4px; margin: 7px auto 0; border-radius: 4px; background: var(--border-strong); }
.list-item { min-height: 44px; }
.topbar { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); gap: 6px; }
.bottombar { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
.follow-pill { top: calc(max(8px, env(safe-area-inset-top)) + 54px); }
.status .opt, .coords .opt { display: none; }
.leaflet-control-zoom { display: none; }
.chat { left: 8px; right: 8px; width: auto; bottom: calc(60px + env(safe-area-inset-bottom)); }
.input { font-size: 16px; }
}
.pop-actions { display: flex; gap: 6px; margin-top: 8px; }
.pop-actions .btn { height: 28px; padding: 0 10px; font-size: 12px; }
body.embed .topbar, body.embed .sidebar, body.embed .chat, body.embed .bottombar, body.embed .follow-pill { display: none !important; }
body.embed .leaflet-top.leaflet-right { top: 8px; }
.pm-ping {
position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(90, 162, 255, .9); animation: pdc-ping 1.2s ease-out 3;
pointer-events: none;
}
@keyframes pdc-ping { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.leaflet-night-pane { z-index: 250; pointer-events: none; }
.leaflet-grid-pane { z-index: 260; pointer-events: none; }
.night { position: absolute; background: #0b1640; mix-blend-mode: multiply; opacity: 0; transition: opacity 4s linear; }
#weather { position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden; }
#weather::before {
content: ""; position: absolute; inset: -50% -50% 0 -50%;
background-image:
repeating-linear-gradient(105deg, transparent 0 46px, rgba(170, 200, 255, .22) 46px 47px, transparent 47px 91px),
repeating-linear-gradient(105deg, transparent 0 71px, rgba(170, 200, 255, .14) 71px 72px, transparent 72px 133px);
background-size: 100% 180px, 100% 260px;
animation: pdc-rain .55s linear infinite;
}
#weather.storm::before { animation-duration: .38s; }
#weather.storm { background: rgba(10, 14, 30, .18); }
#weather.flash::after { content: ""; position: absolute; inset: 0; background: #e8f0ff; animation: pdc-flash .9s ease-out forwards; }
@keyframes pdc-rain { from { transform: translateY(0); } to { transform: translateY(180px); } }
@keyframes pdc-flash { 0% { opacity: 0; } 8% { opacity: .55; } 16% { opacity: .1; } 24% { opacity: .4; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
#weather::before, body.party *, .pm-ping, .theme-lcars.red-alert .glass { animation: none !important; }
#weather.flash::after { display: none; }
}
@media (pointer: coarse) {
.crosshair {
display: block; position: fixed; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; z-index: 450; pointer-events: none;
background: linear-gradient(#fff, #fff) center / 2px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
opacity: .75; filter: drop-shadow(0 0 1px #000);
}
body.embed .crosshair { display: none; }
}
#warp {
position: fixed; inset: -50%; z-index: 1500; pointer-events: none;
background: repeating-conic-gradient(from 3deg, transparent 0 5deg, rgba(200, 225, 255, .55) 5deg 5.4deg, transparent 5.4deg 11deg);
-webkit-mask: radial-gradient(circle, transparent 8%, #000 45%); mask: radial-gradient(circle, transparent 8%, #000 45%);
animation: pdc-warp 1.2s ease-in forwards;
}
@keyframes pdc-warp { from { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
body.party .leaflet-tile-pane { animation: pdc-hue 3s linear infinite; }
body.party .pm-player .ph { animation: pdc-bounce .45s ease-in-out infinite alternate; }
body.party .pm-icon svg { animation: pdc-wiggle .6s ease-in-out infinite alternate; }
@keyframes pdc-hue { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes pdc-bounce { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-10px) rotate(8deg); } }
@keyframes pdc-wiggle { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
body.no-players .pm-player { display: none !important; }
.coords .biome { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .team { font-weight: 600; }
.list-item .quests { color: var(--good); }
.measure-tip {
background: var(--panel-solid); color: var(--text); border: 1px solid var(--border-strong);
border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 12px;
}
.measure-tip::before { display: none; }
@media (max-width: 760px) { .coords .biome { max-width: 130px; } }
@media (max-width: 760px) {
.bottombar { flex-wrap: wrap-reverse; gap: 6px; }
.bottombar .spacer { display: none; }
.bottombar .coords { min-width: 0; max-width: 100%; }
.bottombar .status { margin-left: auto; max-width: 100%; }
}
@font-face { font-family: "Antonio"; src: url("../lib/antonio.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
body.theme-lcars {
--bg: #000; --panel: #000; --panel-solid: #000; --panel-2: rgba(255, 153, 0, .1);
--border: rgba(153, 153, 204, .35); --border-strong: #9999cc;
--text: #ffcc99; --muted: #cc99cc; --faint: #9999cc; --accent: #ff9900; --accent-soft: rgba(255, 153, 0, .2);
--good: #99ccff; --warn: #ff9966; --bad: #cc6666;
--radius: 22px; --radius-sm: 16px; --shadow: none;
--font: "Antonio", "Arial Narrow", sans-serif-condensed, sans-serif; --mono: var(--font);
font-size: 15px;
}
.theme-lcars .glass { background: #000; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.theme-lcars .btn, .theme-lcars .chip, .theme-lcars .section-head, .theme-lcars .world-btn, .theme-lcars .seg-btn,
.theme-lcars .brand-title, .theme-lcars .status, .theme-lcars .coords, .theme-lcars .pop-title, .theme-lcars .chat-head b {
text-transform: uppercase; letter-spacing: .06em;
}
.theme-lcars .btn { background: #9999cc; color: #000; border: 0; border-radius: 999px; font-weight: 600; }
.theme-lcars .btn:hover { background: #ffcc99; }
.theme-lcars .btn.primary, .theme-lcars .top-actions .btn:first-child { background: #ff9900; color: #000; }
.theme-lcars .top-actions .btn:nth-child(2) { background: #cc99cc; }
.theme-lcars .top-actions .btn:nth-child(3) { background: #99ccff; }
.theme-lcars .chip { border: 0; background: #9999cc; color: #000; font-weight: 600; }
.theme-lcars .chip.good { background: #99ccff; color: #000; }
.theme-lcars .chip.warn { background: #ff9966; color: #000; }
.theme-lcars .chip.bad { background: #cc6666; color: #000; }
.theme-lcars .input { background-color: #111; border-color: #9999cc; border-radius: 999px; color: #ffcc99; }
.theme-lcars .brand { background: #ff9900; color: #000; border-radius: 999px 6px 6px 999px; }
.theme-lcars .brand-sub { color: #000; opacity: .75; }
.theme-lcars .worlds, .theme-lcars .top-actions { background: transparent; }
.theme-lcars .world-current { background: #ff9900; color: #000; border: 0; border-radius: 6px 999px 999px 6px; }
.theme-lcars .world-menu { background: #000; gap: 4px; }
.theme-lcars .world-menu .world-btn { background: #9999cc; color: #000; border: 0; border-radius: 6px 999px 999px 6px; }
.theme-lcars .world-menu .world-btn:nth-child(3n + 2) { background: #cc99cc; }
.theme-lcars .world-menu .world-btn:nth-child(3n) { background: #99ccff; }
.theme-lcars .world-menu .world-btn.active, .theme-lcars .world-menu .world-btn:hover { background: #ff9900; }
.theme-lcars .world-dot { box-shadow: 0 0 0 2px #000; }
.theme-lcars .sidebar { background: #ff9900; padding: 20px 0 0 14px; border-radius: 44px 0 0 0; }
.theme-lcars .sidebar > * { background: #000; }
.theme-lcars .side-search { border: 0; border-top-left-radius: 26px; padding-left: 14px; }
.theme-lcars .side-scroll { counter-reset: lc 46; }
.theme-lcars .section-head {
counter-increment: lc; background: var(--lc, #cc99cc); color: #000; margin: 10px 10px 4px 0; padding: 3px 12px;
border-radius: 0 999px 999px 0; font-size: 13px; font-weight: 600;
}
.theme-lcars .section-head > span:first-child::before { content: counter(lc) "-"; margin-right: 6px; opacity: .65; }
.theme-lcars .section-head .chip { background: #000; color: #ffcc99; }
.theme-lcars .chat { background: #cc99cc; padding: 20px 14px 0 0; border-radius: 0 44px 0 0; }
.theme-lcars .chat > * { background: #000; }
.theme-lcars .chat-head { border: 0; border-top-right-radius: 26px; }
.theme-lcars .list-item:hover { background: rgba(153, 153, 204, .15); }
.theme-lcars .toggle span { border-radius: 6px; background: #333; }
.theme-lcars .toggle span::after { border-radius: 3px; background: #9999cc; }
.theme-lcars .toggle input:checked + span { background: #ff9900; }
.theme-lcars .toggle input:checked + span::after { background: #000; }
.theme-lcars .coords, .theme-lcars .status { border-left: 14px solid #cc99cc; border-right: 14px solid #cc99cc; border-radius: 999px; }
.theme-lcars .coords b { color: #ff9900; }
.theme-lcars .leaflet-control-zoom a { background: #9999cc !important; color: #000 !important; border: 0 !important; }
.theme-lcars .leaflet-control-zoom-in { border-radius: 999px 999px 4px 4px !important; margin-bottom: 3px; }
.theme-lcars .leaflet-control-zoom-out { border-radius: 4px 4px 999px 999px !important; }
.theme-lcars .leaflet-control-scale-line { background: #000; color: #ffcc99; border-color: #ff9900; }
.theme-lcars .leaflet-popup-content-wrapper, .theme-lcars .measure-tip { border: 0; border-left: 10px solid #ff9900; border-radius: 4px 22px 22px 4px; }
.theme-lcars .leaflet-popup-tip { border-color: #ff9900; }
.theme-lcars .follow-pill { border-left: 14px solid #99ccff; }
.theme-lcars .stardate { color: #ff9900; user-select: none; -webkit-user-select: none; cursor: default; }
.theme-lcars.red-alert .glass { animation: lc-alert 2.4s ease-in-out infinite; }
.theme-lcars.red-alert .brand, .theme-lcars.red-alert .sidebar { background: #cc6666; }
@keyframes lc-alert { 50% { box-shadow: 0 0 0 2px #cc6666, 0 0 22px rgba(204, 102, 102, .8); } }
.leaflet-cttracks-pane, .leaflet-ctdyn-pane { pointer-events: none; }
.trains-panel .section-head { gap: 8px; }
.trains-toggle {
display: inline-flex; align-items: center; gap: 7px; padding: 2px 6px 2px 2px; margin: -2px 0 -2px -2px;
background: none; border: 0; border-radius: 6px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.trains-toggle::before {
content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0;
transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
.trains-panel.collapsed .trains-toggle::before { transform: rotate(-45deg); }
.trains-toggle:focus-visible, .train-row:focus-visible, .trains-tools .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trains-tools { display: flex; gap: 6px; padding: 2px 14px 6px; }
.trains-tools .input { min-width: 0; }
.trains-tools #trains-search { flex: 1 1 0; }
.trains-tools select { flex: 0 1 auto; width: auto; max-width: 45%; padding-right: 4px; font-size: 13px; }
@media (max-width: 760px) { .trains-tools select { font-size: 16px; } }
.trains-list { max-height: min(38vh, 300px); overflow-y: auto; }
.trains-list::-webkit-scrollbar { width: 8px; }
.trains-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 8px; }
.train-ico { display: inline-flex; flex: none; width: 20px; height: 20px; }
.train-row.other-world { opacity: .55; }
.train-row.other-world .train-ico { filter: grayscale(1); }
.sub-layer { padding-left: 30px; }
.sub-layer .title { color: var(--muted); }
.ct-station {
position: relative; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
background: var(--c, #5aa2ff); border: 2px solid #fff; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}
.ct-station svg { display: block; }
.ct-train { position: relative; width: 22px; height: 22px; --c: #34d399; }
.ct-arrow {
display: block; width: 22px; height: 22px; fill: var(--c); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); transform-origin: 50% 50%;
}
.ct-dot { display: none; position: absolute; inset: 3px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.ct-nodir .ct-arrow, .ct-derailed .ct-arrow { display: none; }
.ct-nodir .ct-dot, .ct-derailed .ct-dot { display: block; }
.ct-followed .ct-arrow { stroke: #ffe27a; stroke-width: 2.2; }
.ct-followed .ct-dot { border-color: #ffe27a; }
.ct-name {
display: none; position: absolute; left: 50%; top: -24px; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px;
background: rgba(8, 11, 18, .85); border: 1px solid var(--border); font-size: 12px; white-space: nowrap; color: #fff; pointer-events: none;
max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}
.ct-station .ct-name { top: 26px; }
.ct-station-labels .ct-station .ct-name, .ct-train-labels .ct-train .ct-name { display: block; }
.pop-val { color: var(--text); }
.pop-sub { margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); }
.pop-foot .btn { height: 28px; padding: 0 10px; font-size: 12px; }
