/* 中央罗盘 · 赛博朋克四方亮灯（保留八边形盘面） */

.compass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.compass__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.compass-face {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 22, 28, 0.88);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  font-size: 30px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: #4fc3f7;
  text-shadow: 0 0 12px rgba(79, 195, 247, 0.75);
  pointer-events: none;
}

.compass-face.is-green {
  color: #69f0ae;
  text-shadow: 0 0 14px rgba(105, 240, 174, 0.8);
}

.compass-face.is-yellow {
  color: #ffd54f;
  text-shadow: 0 0 14px rgba(255, 213, 79, 0.8);
}

.compass-face.is-red {
  color: #ff5252;
  text-shadow: 0 0 14px rgba(255, 82, 82, 0.85);
}

.compass-sectors {
  position: absolute;
  left: -8%;
  top: -8%;
  width: 116%;
  height: 116%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.compass-sector {
  fill: none;
  stroke: none;
  opacity: 0;
  transition: fill 0.35s ease, stroke 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.compass-sector.is-active {
  opacity: 1;
  fill: rgba(0, 255, 247, 0.22);
  stroke: rgba(0, 255, 247, 0.95);
  stroke-width: 1.4;
  filter: url(#compassCyberGlow);
  animation: compassCyberPulse 1.6s ease-in-out infinite alternate;
}

@keyframes compassCyberPulse {
  from {
    opacity: 0.82;
    fill: rgba(0, 255, 247, 0.16);
  }
  to {
    opacity: 1;
    fill: rgba(0, 255, 247, 0.34);
  }
}

/* 剩余牌数 · 罗盘右侧竖排 */
.deck-remain-mount {
  position: absolute;
  left: calc(100% + 18px);
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  pointer-events: none;
}

.deck-remain-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(8, 18, 32, 0.92) 0%, rgba(4, 10, 22, 0.96) 100%);
  border: 1px solid rgba(0, 255, 247, 0.55);
  box-shadow:
    0 0 8px rgba(0, 255, 247, 0.35),
    inset 0 0 10px rgba(0, 255, 247, 0.08);
  pointer-events: none;
}

.deck-remain-chip::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  border: 1px solid rgba(255, 0, 170, 0.22);
  pointer-events: none;
}

.deck-remain-chip__label {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff2bd6 0%, #9b1bab 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 16px;
  text-align: center;
  text-shadow: 0 0 6px rgba(255, 43, 214, 0.8);
}

.deck-remain-chip__value {
  flex: 0 0 auto;
  min-width: 0;
  color: #e0f7ff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 8px rgba(0, 255, 247, 0.75),
    0 0 2px rgba(255, 255, 255, 0.5);
}

.deck-remain-chip.is-hidden {
  display: none;
}

.ui-test-stage .zone-center .compass,
.game-table-stage .zone-center .compass {
  width: 100%;
  height: 100%;
}

.ui-test-stage .zone-center,
.game-table-stage .zone-center {
  overflow: visible;
  border: none;
  background: transparent;
}

body.show-zones .ui-test-stage .zone-center {
  border: 2px dashed var(--zone-outline);
  background: var(--zone-fill);
}

.ui-test-stage .zone-center .deck-remain-mount,
.game-table-stage .zone-center .deck-remain-mount {
  left: calc(100% + 20px);
}

.ui-test-stage .zone-center .compass-face,
.game-table-stage .zone-center .compass-face {
  width: 100%;
  height: 100%;
}
