body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
  margin: 0;
  padding: 30px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #bbb;
  margin-bottom: 20px;
}

.readout {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.compass-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.compass {
  position: relative;
  width: 600px;
  height: 600px;
  max-width: 90vw;
  max-height: 90vw;
  aspect-ratio: 1 / 1;
  border: 2px solid #ddd;
  overflow: hidden;
  cursor: crosshair;
  background: conic-gradient(from 270deg,
      /* #F9BBBB 0deg 90deg,
    #40ACFF 90deg 180deg,
    #F5F5A8 180deg 270deg,
    #C9E5BD 270deg 360deg */
      #c71313 0deg 90deg,
      #1c5179 90deg 180deg,
      #c2c200 180deg 270deg,
      #3cc900 270deg 360deg);
}

.zone-shape {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.zone-label {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 0.7rem;
  font-weight: bold;
  color: #111;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}

.axis-x,
.axis-y {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
}

.axis-x {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.axis-y {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.labels span {
  position: absolute;
  font-weight: bold;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.user-dot,
.ideology-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.user-dot {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #000;
  z-index: 5;
}

.ideology-dot {
  width: 12px;
  height: 12px;
  background: #000;
  border: 2px solid #fff;
  z-index: 4;
}

.ideology-hitbox {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  z-index: 6;
}

.ideology-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.78rem;
  white-space: nowrap;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  padding: 3px 6px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 7;
}

.ideology-label.visible {
  opacity: 1;
}

.zone-info {
  margin: 0 auto 24px;
  max-width: 700px;
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 16px;
}

.zone-info h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.zone-info p {
  margin: 0;
  color: #ddd;
  line-height: 1.5;
}

.legend {
  margin-top: 10px;
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 16px;
}

.legend h2 {
  margin-top: 0;
}

.legend p {
  color: #bbb;
  margin-top: 0;
}

.legend ul {
  margin: 0;
  padding-left: 20px;
}

.legend li {
  margin-bottom: 8px;
}