/* ─── KIDS TIER ACCENT OVERRIDE (Phase 1) ─── */
:root {
  --cn-accent: #88BFEE;
}
.cn-trigger-btn { border-color: #88BFEE33 !important; color: #88BFEE !important; }
.cn-points-badge { color: #88BFEE !important; }

/* ═══════════════════════════════════════════════════════════
   C.U.L.T. NAVIGATOR — UI styles (mirrors NJP solar-navigator)
   ═══════════════════════════════════════════════════════════ */

/* Floating trigger button (top-left — Cultivation Points calculator slot) */
.cn-trigger-btn {
  position: fixed;
  top: 80px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0A0400;
  border: 1px solid #FF6622;
  color: #FFAA44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 12px rgba(255, 102, 34, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cn-trigger-btn:hover {
  box-shadow: 0 0 22px rgba(255, 102, 34, 0.65);
  transform: translateY(-1px);
  color: #FFE070;
  border-color: #FFAA44;
}

/* Points badge (below trigger, top-left) */
.cn-points-badge {
  position: fixed;
  top: 138px;
  left: 8px;
  background: #0A0400;
  border: 1px solid #2A1200;
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFAA44;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  border-radius: 2px;
  z-index: 999;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 5px rgba(255, 102, 34, 0.35);
}

/* Modal overlay */
.cn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal panel */
.cn-modal {
  background: #0A0400;
  border: 1px solid #FF6622;
  border-radius: 8px;
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 84vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(255, 102, 34, 0.22);
  position: relative;
}

.cn-modal-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: #FFAA44;
  margin-bottom: 4px;
  text-shadow: 0 0 6px rgba(255, 102, 34, 0.35);
}

.cn-modal-subtitle {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FF6622;
  margin-bottom: 20px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 102, 34, 0.35);
}

.cn-question-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  color: #E2D8BE;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Tier badges */
.cn-tier-badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}
.cn-tier-surface    { background: #160500; color: #886655; }
.cn-tier-atmosphere { background: #051A0A; color: #4A8A6A; }
.cn-tier-core       { background: #1A0A00; color: #FFAA44; }

.cn-points-value {
  font-size: 11px;
  color: #FFAA44;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

/* Answer option buttons */
.cn-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #0D0500;
  border: 1px solid #2A1200;
  color: #D8C8D5;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1.5;
}
.cn-option:hover {
  border-color: #DD4400;
  color: #E2D8BE;
}
.cn-option.correct {
  border-color: #FFAA44;
  background: #150700;
  color: #FFAA44;
  box-shadow: 0 0 10px rgba(255, 170, 68, 0.18);
}
.cn-option.incorrect {
  border-color: #882200;
  background: #0A0200;
  color: #886655;
}
.cn-option:disabled { cursor: default; }

/* Hint after wrong answer */
.cn-hint {
  font-size: 11px;
  color: #D0C0D0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 2px solid #FF6622;
  line-height: 1.6;
  background: rgba(255, 102, 34, 0.04);
}

/* Points-earned animation */
.cn-points-earned {
  font-size: 22px;
  color: #FFAA44;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  padding: 12px;
  text-shadow: 0 0 8px rgba(255, 170, 68, 0.4);
  animation: cnFadeIn 0.3s ease;
}

/* Close button */
.cn-close-btn {
  background: transparent;
  border: 1px solid #2A1200;
  color: #886655;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  float: right;
  margin-top: 16px;
  transition: border-color 0.2s, color 0.2s;
}
.cn-close-btn:hover {
  border-color: #DD4400;
  color: #FFAA44;
}

/* Passport grid */
.cn-passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.cn-passport-planet {
  text-align: center;
  padding: 9px 6px;
  border: 1px solid #1E0800;
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #4A3A40;
  background: #080300;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.cn-passport-planet:hover {
  border-color: #FF6622;
  transform: translateY(-1px);
  color: #FFAA44;
}
.cn-passport-planet.visited {
  border-color: #882200;
  color: #FFAA44;
  opacity: 1;
}
.cn-passport-planet.completed {
  border-color: #FFAA44;
  color: #FFAA44;
  background: rgba(255, 102, 34, 0.06);
  box-shadow: 0 0 8px rgba(255, 102, 34, 0.14);
}

@media (max-width: 560px) {
  .cn-passport-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Reward modal email input */
.cn-reward-email {
  width: 100%;
  background: #0a0500;
  border: 1px solid #FF6622;
  color: #E2D8BE;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  margin: 12px 0;
  outline: none;
  border-radius: 3px;
}
.cn-reward-email:focus { border-color: #FFAA44; }

/* Inline passport block (embedded on a page) */
#cult-passport-display {
  background: #0A0400;
  border: 1px solid #2A1200;
  border-radius: 8px;
  padding: 24px 26px;
  margin: 32px 0;
}
#cult-passport-display .cn-block-label {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #FF6622;
  margin-bottom: 8px;
  text-shadow: 0 0 5px rgba(255, 102, 34, 0.35);
}
#cult-passport-display .cn-block-body {
  font-size: 13px;
  color: #D0C0D0;
  line-height: 1.7;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 12px;
}
#cult-passport-display .cn-block-total {
  text-align: center;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: #FFAA44;
  text-shadow: 0 0 8px rgba(255, 170, 68, 0.35);
}
#cult-passport-display .cn-block-total small {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #886655;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin-left: 8px;
}
#cult-passport-display .cn-discount-tiers {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #1E0800;
}
#cult-passport-display .cn-discount-tier {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 8px 12px; margin-bottom: 6px;
  border: 1px solid #1E0800; border-radius: 3px;
  background: rgba(255, 102, 34, 0.02);
}
#cult-passport-display .cn-discount-tier.unlocked {
  border-color: #FFAA44;
  background: rgba(255, 170, 68, 0.06);
  box-shadow: 0 0 10px rgba(255, 102, 34, 0.18);
}
#cult-passport-display .cn-discount-tier-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: #E2D8BE;
}
#cult-passport-display .cn-discount-tier-pts {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFAA44;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}
#cult-passport-display .cn-discount-tier-status {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #886655;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  border: 1px solid #2A1200;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
#cult-passport-display .cn-discount-tier.unlocked .cn-discount-tier-status {
  color: #FFAA44;
  border-color: #FFAA44;
}

/* Animation */
@keyframes cnFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
