:root { --sidebar-width: 280px; --bg-main: #111; --bg-side: #1a1a1a; --card: #222; --card-hov:#333; --text: #eee; --accent: #88f; } /* Placeholder text in chat input should be white */ .chat-input::placeholder { color: #fff; opacity: 0.7; } html { margin: 0; height: 100%; width: 100%; } body { margin: 0; height: 100%; display: flex; overflow: hidden; font-family: "Segoe UI", sans-serif; background: var(--bg-main); color: var(--text); } /* ---------- sort buttons --------------------------------------- */ .sort-buttons { display: flex; gap: 4px; margin: 12px 16px 8px; } .sort-buttons .btn { flex: 1; padding: 6px 8px; background: #222; color: #eee; border: 1px solid #555; border-radius: 4px; text-align: center; cursor: pointer; user-select: none; font-size: 0.9rem; } .sort-buttons .btn.active { background: var(--accent); color: #111; border-color: var(--accent); } /* ---------- sidebar --------------------------------------------- */ #sidebar { width: var(--sidebar-width); scrollbar-width: none; background: var(--bg-side); border-right: 2px solid #333; box-sizing: border-box; padding: 18px 16px; overflow-y: auto; } #sidebar h2 { margin: 8px 0 12px; font-size: 1.25rem; color: var(--accent); } #playerList { list-style: none; margin: 0; padding: 0; } #playerList li { margin: 4px 0; padding: 6px 8px; background: var(--card); border-left: 4px solid #555; cursor: pointer; } #playerList li:hover { background: var(--card-hov); } #playerList li.selected { background: #454545; } /* ---------- map container --------------------------------------- */ #mapContainer { flex: 1; min-width: 0; min-height: 0; position: relative; overflow: hidden; background: #000; cursor: grab; } #mapContainer.dragging { cursor: grabbing; } #mapGroup { position: absolute; top: 0; left: 0; transform-origin: 0 0; } #map { display: block; user-select: none; pointer-events: none; } /* ---------- dots ------------------------------------------------ */ #dots { position: absolute; top: 0; left: 0; pointer-events: none; } .dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; border: 1px solid #000; transform: translate(-50%, -50%); /* enable events on each dot */ pointer-events: auto; cursor: pointer; } .dot.highlight { width: 10px; height: 10px; animation: blink 0.6s step-end infinite; } @keyframes blink { 50% { opacity: 0; } } /* ---------- tooltip --------------------------------------------- */ .tooltip { position: absolute; display: none; background: rgba(0, 0, 0, 0.8); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; pointer-events: none; white-space: nowrap; z-index: 1000; } /* make each row a flex container */ /* 2-column flex layout for each player row */ /* make each row a flex container */ /* make each row a vertical stack */ /* make each player row into a 3×2 grid */ #playerList li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto auto; grid-template-areas: "name loc" "kills kph" "rares meta" "onlinetime deaths"; gap: 4px 8px; margin: 6px 0; padding: 8px 10px; background: var(--card); border-left: 4px solid transparent; transition: background 0.15s; font-size: 0.85rem; } /* assign each span into its grid cell */ .player-name { grid-area: name; font-weight: 600; color: var(--text); } .player-loc { grid-area: loc; font-size: 0.75rem; color: #aaa; } .stat.kills { grid-area: kills; } .stat.kph { grid-area: kph; } .stat.rares { grid-area: rares; } .stat.meta { grid-area: meta; } .stat.onlinetime { grid-area: onlinetime; } .stat.deaths { grid-area: deaths; } /* pill styling */ #playerList li .stat { background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 12px; display: inline-block; font-size: 0.75rem; white-space: nowrap; color: var(--text); } /* icons & suffixes */ .stat.kills::before { content: "⚔️ "; } .stat.kph::after { content: " KPH"; font-size:0.7em; color:#aaa; } .stat.rares::after { content: " Rares"; font-size:0.7em; color:#aaa; } /* metastate pill colors are assigned dynamically: green for “good” states, red otherwise */ #playerList li .stat.meta { /* fallback */ background: var(--accent); color: #111; } #playerList li .stat.meta.green { background: #2ecc71; /* pleasant green */ color: #111; } #playerList li .stat.meta.red { background: #e74c3c; /* vivid red */ color: #fff; } /* ---------- chat window styling ------------------------------- */ .chat-btn, .stats-btn { margin-top: 4px; padding: 2px 6px; background: var(--accent); color: #111; border: none; border-radius: 3px; font-size: 0.75rem; cursor: pointer; } .chat-window, .stats-window { position: absolute; top: 10px; /* position window to start just right of the sidebar */ left: calc(var(--sidebar-width) + 10px); /* increase default size for better usability */ width: 760px; /* increased width for larger terminal area */ height: 300px; background: var(--card); border: 1px solid #555; display: flex; flex-direction: column; z-index: 10000; } .chat-header { display: flex; justify-content: space-between; align-items: center; background: var(--accent); padding: 4px; color: #111; cursor: move; /* indicates the header is draggable */ } .chat-close-btn { background: transparent; border: none; font-size: 1.2rem; line-height: 1; cursor: pointer; } .chat-messages { flex: 1; overflow-y: auto; padding: 4px; font-size: 0.85rem; color: #fff; /* reserve space so messages aren't hidden behind the input */ padding-bottom: 40px; } .chat-form { display: flex; border-top: 1px solid #333; /* fix input area to the bottom of the chat window */ position: absolute; left: 0; right: 0; bottom: 0; background: #333; z-index: 10; } .chat-input { flex: 1; padding: 4px 6px; border: none; background: #333; color: #fff; outline: none; } /* Prevent text selection while dragging chat windows */ body.noselect, body.noselect * { user-select: none !important; } .stat.onlinetime::before { content: "🕑 "} .stat.deaths::before { content: "💀 "} /* hover & selected states */ #playerList li:hover { background: var(--card-hov); } #playerList li.selected { background: #454545; } /* trails paths */ #trails { position: absolute; top: 0; left: 0; pointer-events: none; } .trail-path { fill: none; stroke-width: 2px; stroke-opacity: 0.7; stroke-linecap: round; stroke-linejoin: round; } /* -------------------------------------------------------- */ /* Stats window: 2×2 iframe grid and flexible height */ .stats-window { /* allow height to expand to fit two rows of panels */ height: auto; } .stats-window .chat-messages { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 10px; padding: 10px; overflow: visible; background: #f7f7f7; color: #000; } .stats-window iframe { width: 350px; height: 200px; border: none; }