.hidden {
  display: none !important;
}

.circle-session-layout {
  display: grid;
  gap: 1.5rem;
}

.circle-intro p,
.circle-message p {
  color: var(--muted);
  margin-top: 0.4rem;
}

.circle-board-card {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.circle-board {
  position: relative;
  --circle-zoom: 1;
  width: min(1080px, 100%);
  min-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  transform: scale(var(--circle-zoom));
  transform-origin: top center;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background:
    radial-gradient(ellipse at center, rgba(44, 44, 84, 0.08) 0 25%, transparent 26%),
    var(--surface-alt);
}

.circle-center-label {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-weight: 800;
  text-align: center;
  width: 34%;
  line-height: 1.3;
}

.circle-center-label span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.circle-player {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(72px, 10.5%, 118px);
  min-height: 42px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.45rem 0.6rem;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.circle-player.dead {
  border-color: #888;
  background: #eeeeee;
  color: var(--muted);
  opacity: 0.72;
  text-decoration: line-through;
}

.circle-player.boeren-burgemeester {
  border-color: #9a6a05;
  background: #fff8dc;
  color: #5f3d00;
  box-shadow: 0 0 0 4px rgba(243, 207, 97, 0.55), var(--shadow);
}

.neighbor-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  margin-top: 0.85rem;
}

.neighbor-field {
  display: grid;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 800;
}

.neighbor-field input,
.neighbor-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.neighbor-search-button {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 800;
  padding: 0.82rem 1.1rem;
}

.neighbor-search-button:hover {
  background: var(--primary-light);
}

.neighbor-result {
  margin-top: 1rem;
}

.neighbor-result-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  padding: 1rem;
}

.neighbor-result-card.dead {
  opacity: 0.82;
}

.neighbor-result-name {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.neighbor-result-status {
  color: var(--muted);
  font-weight: 700;
  margin: -0.25rem 0 0.75rem;
}

.neighbor-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.neighbor-result-grid.single {
  grid-template-columns: 1fr;
}

.neighbor-result-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
}

.neighbor-result-label {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.neighbor-result-value {
  color: var(--primary);
  font-weight: 900;
}

.neighbor-result-empty {
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.circle-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

@media (max-width: 900px) {
  .circle-board {
    width: 900px;
    min-width: 900px;
  }

  .circle-player {
    width: 92px;
    min-height: 38px;
    font-size: 0.78rem;
  }
}

@media (max-width: 650px) {
  .circle-board-card {
    padding: 1rem 0.75rem 1.25rem;
  }

  .circle-board {
    width: 920px;
    min-width: 920px;
    aspect-ratio: 16 / 9;
    border-width: 2px;
  }

  .circle-center-label {
    font-size: 0.9rem;
  }

  .circle-player {
    width: 86px;
    min-height: 36px;
    font-size: 0.72rem;
    padding: 0.3rem 0.4rem;
  }

  .neighbor-search,
  .neighbor-result-grid {
    grid-template-columns: 1fr;
  }
}
