/* Find the Country blank-globe quiz (BKL-743).
   Relies on pi_dan_style.css for shared header/footer; scoped to .fcg-*. */

.fcg-page {
  --fcg-cyan: #00e5ff;
  --fcg-magenta: #ff2dd6;
  --fcg-green: #35f283;
  --fcg-gold: #ffd166;
  --fcg-ink: #eaf7ff;
  --fcg-muted: #cfe8f4;
  color: var(--fcg-ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 229, 255, 0.14), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(255, 209, 102, 0.10), transparent 34%),
    linear-gradient(180deg, #030610 0%, #08111f 48%, #05070d 100%);
  min-height: 70vh;
  padding-bottom: 56px;
}

.fcg-hero {
  box-sizing: border-box;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 18px;
  text-align: center;
}

.fcg-back-link {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  color: #c4d7e4;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.72);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fcg-back-link:hover,
.fcg-back-link:focus {
  color: #f7fbff;
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.fcg-eyebrow {
  margin: 0 0 10px;
  color: var(--fcg-gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fcg-hero h1 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  line-height: 0.98;
  text-shadow:
    0 0 22px rgba(0, 229, 255, 0.34),
    0 0 34px rgba(255, 209, 102, 0.16);
}

.fcg-hero-lede {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--fcg-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.fcg-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}

.fcg-stats > div {
  min-width: 120px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 20, 40, 0.92), rgba(5, 9, 18, 0.92));
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fcg-stats dt {
  font-size: 1.9em;
  font-weight: 800;
  color: var(--fcg-green);
  text-shadow: 0 0 14px rgba(53, 242, 131, 0.4);
}

.fcg-stats dd {
  margin: 4px 0 0;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fcg-muted);
}

.fcg-game-surface {
  box-sizing: border-box;
  max-width: 1040px;
  margin: 12px auto 0;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 20, 40, 0.78), rgba(5, 9, 18, 0.82));
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.fcg-prompt {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: #f7fbff;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.fcg-selection {
  margin: 0 0 14px;
  text-align: center;
  color: var(--fcg-muted);
  font-size: 0.95rem;
}

.fcg-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(72vh, 720px);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(12, 40, 72, 0.85), rgba(2, 6, 14, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.22);
  touch-action: none;
  cursor: grab;
}

.fcg-stage.is-dragging {
  cursor: grabbing;
}

.fcg-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.fcg-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--fcg-muted);
  background: rgba(3, 6, 14, 0.55);
  pointer-events: none;
}

.fcg-loading[hidden] {
  display: none !important;
}

.fcg-result {
  min-height: 1.4em;
  margin: 14px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--fcg-gold);
}

.fcg-result.is-correct {
  color: var(--fcg-green);
}

.fcg-result.is-miss {
  color: var(--fcg-magenta);
}

.fcg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.fcg-confirm-btn,
.fcg-start-btn,
.fcg-reset-btn,
.fcg-study-btn {
  appearance: none;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.fcg-confirm-btn {
  color: #071323;
  background: var(--fcg-cyan);
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.28);
}

.fcg-confirm-btn:hover:not(:disabled),
.fcg-confirm-btn:focus-visible:not(:disabled) {
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

.fcg-confirm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.fcg-start-btn,
.fcg-reset-btn {
  color: #071323;
  background: var(--fcg-gold);
  border-color: rgba(255, 209, 102, 0.65);
}

.fcg-study-btn {
  color: #eaf7ff;
  background: rgba(4, 8, 16, 0.85);
  border-color: rgba(53, 242, 131, 0.45);
}

.fcg-study-btn[aria-pressed="true"] {
  color: #071323;
  background: var(--fcg-green);
  border-color: rgba(53, 242, 131, 0.75);
  box-shadow: 0 4px 18px rgba(53, 242, 131, 0.28);
}

.fcg-study-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.fcg-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fcg-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(7, 19, 35, 0.82);
  border: 1px solid rgba(255, 209, 102, 0.55);
  color: #ffd166;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcg-label.is-callout {
  transform: translate(0, -50%);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.18);
}

.fcg-label.is-callout::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(255, 209, 102, 0.85);
  transform: translateY(-50%);
}

.fcg-label.is-behind {
  display: none;
}

.fcg-page.is-study .fcg-confirm-btn {
  display: none;
}

.fcg-hint {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(207, 232, 244, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fcg-results-panel {
  box-sizing: border-box;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 28px 24px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 20, 40, 0.9), rgba(5, 9, 18, 0.94));
  border: 1px solid rgba(255, 209, 102, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.fcg-results-panel h2 {
  margin: 8px 0 12px;
  color: #f7fbff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.fcg-results-detail {
  color: var(--fcg-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.fcg-about {
  box-sizing: border-box;
  max-width: 840px;
  margin: 36px auto 0;
  padding: 0 24px;
  color: var(--fcg-muted);
  line-height: 1.6;
}

.fcg-about h2 {
  color: #f7fbff;
  font-size: 1.25rem;
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .fcg-game-surface {
    padding: 14px;
    border-radius: 14px;
  }

  .fcg-actions {
    flex-direction: column;
  }

  .fcg-confirm-btn,
  .fcg-start-btn,
  .fcg-reset-btn,
  .fcg-study-btn {
    width: 100%;
  }
}
