/* Coordinate Command — plot coordinates on a real (x, y) plane to find treasure */

.cc-setup {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cc-setup h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.cc-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  min-width: 170px;
  text-align: left;
}

.cc-pick strong { font-size: 1rem; }
.cc-pick small { color: var(--color-text-soft); }

.cc-pick[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: rgba(79, 216, 224, 0.12);
}

.cc-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cc-start-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.cc-rewards {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.cc-rewards strong { color: var(--color-text); }

.cc-play {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 202, 92, 0.14), rgba(191, 128, 34, 0.14));
  border: 1px solid var(--color-border);
}

.cc-theme-jungleruins { background: linear-gradient(180deg, rgba(102, 187, 106, 0.16), rgba(27, 94, 32, 0.16)); }
.cc-theme-piratecove { background: linear-gradient(180deg, rgba(79, 216, 224, 0.14), rgba(1, 87, 155, 0.18)); }
.cc-theme-sunkencity { background: linear-gradient(180deg, rgba(38, 166, 154, 0.16), rgba(13, 40, 74, 0.22)); }
.cc-theme-lostkingdom { background: linear-gradient(180deg, rgba(255, 213, 79, 0.18), rgba(94, 53, 177, 0.18)); }

.cc-banner {
  text-align: center;
  font-weight: 700;
}

.cc-banner--good {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--color-success);
  font-size: 1.05rem;
}

.cc-retry {
  margin-top: 6px;
  text-align: center;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.cc-plane-wrap {
  display: flex;
  justify-content: center;
}

.cc-plane {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-position: -1px -1px;
  cursor: crosshair;
}

.cc-plane:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.cc-axis {
  position: absolute;
  background: var(--color-primary);
  opacity: 0.55;
}

.cc-axis--v {
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-1px);
}

.cc-axis--h {
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-1px);
}

.cc-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cc-marker--found {
  background: rgba(255, 213, 79, 0.9);
  border: 2px solid #bf8600;
}

.cc-marker--wrong {
  background: rgba(238, 111, 168, 0.85);
  border: 2px solid var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.cc-marker--cursor {
  width: 20px;
  height: 20px;
  background: transparent;
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 216, 224, 0.25);
}

.cc-cursor-readout {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
