:root {
  --bg: #0c0c0c;
  --panel: #141414;
  --line: #2a2a2a;
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #750851;
  --t: #e07a3a;
  --ct: #5a8fd4;
  --local: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  min-height: 100vh;
}

a { color: inherit; }

.top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #101010;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
}

.brand span { color: var(--accent); }

.status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
  min-height: calc(100vh - 48px);
}

.radar-box {
  position: relative;
  width: min(92vw, 820px);
  aspect-ratio: 1 / 1;
  background: #111;
  border: 1px solid var(--line);
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.overlay-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #1a1a1a;
  color: var(--text);
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
}

.btn:hover { border-color: var(--accent); }

.home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.home-brand {
  font-size: 28px;
  letter-spacing: 0.2em;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.discord-btn svg {
  width: 22px;
  height: 22px;
}

.discord-btn:hover {
  background: #4752c4;
}

.legend {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.t { background: var(--t); }
.dot.ct { background: var(--ct); }
.dot.you { background: var(--local); box-shadow: 0 0 0 2px #fff3; }
