* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #07080b;
  color: #e8e4dc;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(90,120,180,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(140,80,160,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212,175,55,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 20s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(212,175,55,0.15), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(180,160,220,0.1), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(232,228,220,0.08), transparent),
    radial-gradient(1px 1px at 80% 60%, rgba(212,175,55,0.1), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(140,180,220,0.08), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(232,228,220,0.06), transparent),
    radial-gradient(1px 1px at 50% 90%, rgba(212,175,55,0.08), transparent),
    radial-gradient(2px 2px at 70% 10%, rgba(180,140,200,0.07), transparent);
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 0;
  animation: starDrift 60s linear infinite;
  opacity: 0.8;
}

@keyframes ambientShift {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

@keyframes starDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(25%, 25%); }
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(212,175,55,0.08);
  position: relative;
  z-index: 10;
  background: rgba(7,8,11,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.game-header-logo {
  height: 60px;
  width: auto;
}

.game-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.game-header-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(232,228,220,0.6);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.game-header-nav a:hover {
  color: #D4AF37;
}

.game-hub-hero {
  text-align: center;
  padding: 100px 24px 50px;
  position: relative;
  z-index: 1;
}

.game-hub-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, rgba(140,100,180,0.03) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.game-hub-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: #e8e4dc;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(212,175,55,0.15);
}

.game-hub-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: rgba(232,228,220,0.5);
  font-style: italic;
  margin-bottom: 48px;
}

.game-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 28px 32px;
  margin: 0 auto 60px;
  max-width: 700px;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 16px;
  background: rgba(212,175,55,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(212,175,55,0.06);
}

.game-stat {
  text-align: center;
}

.game-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #D4AF37;
  line-height: 1;
}

.game-stat-label {
  font-size: 0.7rem;
  color: rgba(232,228,220,0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.game-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.game-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.3;
  transition: all 0.5s ease;
}

.game-badge.earned {
  border-color: #D4AF37;
  opacity: 1;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 30px rgba(212,175,55,0.5); }
}

.game-realms {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 0 48px 80px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.realm-card {
  width: 340px;
  border: 1px solid rgba(212,175,55,0.08);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12,13,18,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.realm-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.06);
}

.realm-card.locked {
  opacity: 0.5;
  pointer-events: none;
}

.realm-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.realm-card.completed {
  border-color: rgba(212,175,55,0.5);
}

.realm-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.realm-visual-awareness {
  background: linear-gradient(160deg, #0d1520 0%, #12203a 40%, #1a3050 70%, #0f2040 100%);
}

.realm-visual-inspiration {
  background: linear-gradient(160deg, #1a0f28 0%, #2a1540 40%, #3d1f4a 70%, #251038 100%);
}

.realm-visual-embodiment {
  background: linear-gradient(160deg, #0f1f18 0%, #1a3025 40%, #254035 70%, #162a20 100%);
}

.realm-visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  animation: orbPulse 4s ease-in-out infinite;
}

.realm-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.06) 0%, transparent 60%);
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

.realm-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}

.realm-lock-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.realm-lock-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}

.realm-content {
  padding: 28px;
}

.realm-path-label {
  font-size: 0.65rem;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.realm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #e8e4dc;
  margin-bottom: 12px;
}

.realm-description {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

.realm-progress-bar {
  height: 3px;
  background: rgba(212,175,55,0.15);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.realm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37, #f0d060);
  border-radius: 2px;
  transition: width 1s ease;
}

.realm-xp {
  font-size: 0.75rem;
  color: rgba(212,175,55,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.realm-enter-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.4);
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.realm-enter-btn:hover {
  background: rgba(212,175,55,0.1);
  border-color: #D4AF37;
}

.realm-completed-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  color: #D4AF37;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-locked-state {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  z-index: 1;
}

.game-locked-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.5;
}

.game-locked-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: rgba(232,228,220,0.5);
  margin-bottom: 12px;
}

.game-locked-message {
  font-size: 0.9rem;
  color: rgba(232,228,220,0.35);
  max-width: 400px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.game-locked-back {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  color: rgba(212,175,55,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.game-locked-back:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}

.game-footer {
  text-align: center;
  padding: 24px 48px;
  border-top: 1px solid rgba(212,175,55,0.1);
  font-size: 0.75rem;
  color: rgba(232,228,220,0.3);
  position: relative;
  z-index: 1;
}

.game-completion-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
}

.game-completion-overlay.visible {
  display: flex;
  animation: fadeIn 0.6s ease;
}

.completion-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 32px;
  box-shadow: 0 0 60px rgba(212,175,55,0.3);
  animation: completionPulse 2s ease-in-out infinite;
}

@keyframes completionPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(212,175,55,0.3); transform: scale(1); }
  50% { box-shadow: 0 0 80px rgba(212,175,55,0.5); transform: scale(1.05); }
}

.completion-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #e8e4dc;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.completion-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(232,228,220,0.5);
  font-style: italic;
  margin-bottom: 8px;
}

.completion-xp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #D4AF37;
  font-weight: 600;
  margin-bottom: 32px;
}

.completion-next-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 8px;
  color: #D4AF37;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.completion-next-btn:hover {
  background: rgba(212,175,55,0.1);
}

.game-enter-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border: 1.5px solid #D4AF37;
  border-radius: 8px;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
  margin-top: 20px;
}

.game-enter-cta:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
  box-shadow: 0 0 30px rgba(212,175,55,0.15);
  transform: translateY(-2px);
}

.game-enter-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1.5px solid #D4AF37;
  border-radius: 8px;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
  margin-top: 20px;
}

.game-enter-cta-light:hover {
  background: rgba(212,175,55,0.06);
  box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

.gx-screen {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.5s ease;
}

.gx-screen-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.gx-path-label {
  font-size: 0.7rem;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.gx-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #e8e4dc;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-shadow: 0 0 50px rgba(212,175,55,0.12);
}

.gx-hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: rgba(232,228,220,0.5);
  font-style: italic;
  margin-bottom: 24px;
}

.gx-xp-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #D4AF37;
  background: rgba(212,175,55,0.04);
  margin-bottom: 40px;
}

.gx-mode-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: rgba(232,228,220,0.6);
  margin-bottom: 28px;
}

.gx-mode-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.gx-mode-card {
  width: 280px;
  padding: 36px 28px;
  background: rgba(12,13,18,0.7);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  color: #e8e4dc;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.gx-mode-card:hover {
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.05);
}


.gx-mode-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #e8e4dc;
}

.gx-mode-desc {
  font-size: 0.82rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.6;
}

.gx-mode-recommended {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.03);
}

.gx-mode-badge {
  font-size: 0.6rem;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.gx-screen-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #e8e4dc;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(212,175,55,0.08);
}

.gx-screen-text {
  font-size: 1.05rem;
  color: rgba(232,228,220,0.62);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 28px;
}

.gx-name-form {
  text-align: left;
  max-width: 380px;
  margin: 0 auto 28px;
}

.gx-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(232,228,220,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.gx-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(7,8,11,0.6);
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 10px;
  color: #e8e4dc;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gx-input:focus {
  outline: none;
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 0 20px rgba(212,175,55,0.06);
}

.gx-input::placeholder {
  color: rgba(232,228,220,0.25);
}

.gx-btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.gx-btn-primary {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.4);
  color: #D4AF37;
  box-shadow: 0 0 20px rgba(212,175,55,0.06);
}

.gx-btn-primary:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(212,175,55,0.1));
  box-shadow: 0 0 40px rgba(212,175,55,0.12), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.gx-btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.gx-btn-secondary {
  background: transparent;
  border: 1px solid rgba(232,228,220,0.2);
  color: rgba(232,228,220,0.6);
}

.gx-btn-secondary:hover {
  border-color: rgba(232,228,220,0.4);
  color: #e8e4dc;
}

.gx-round-counter {
  font-size: 0.7rem;
  color: rgba(212,175,55,0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.gx-pillar-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid;
}

.gx-pillar-mind { border-color: rgba(91,141,239,0.5); color: #5b8def; box-shadow: 0 0 16px rgba(91,141,239,0.1); }
.gx-pillar-emotions { border-color: rgba(224,108,117,0.5); color: #e06c75; box-shadow: 0 0 16px rgba(224,108,117,0.1); }
.gx-pillar-body { border-color: rgba(152,195,121,0.5); color: #98c379; box-shadow: 0 0 16px rgba(152,195,121,0.1); }
.gx-pillar-spirit { border-color: rgba(198,120,221,0.5); color: #c678dd; box-shadow: 0 0 16px rgba(198,120,221,0.1); }

.gx-pass-screen {
  background: rgba(11,12,15,0.98);
}


@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes assess-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 24px rgba(212,175,55,0.35);
  }
  50% {
    transform: scale(1.055);
    box-shadow: 0 8px 40px rgba(212,175,55,0.65);
  }
}

.gx-turn-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.gx-turn-player {
  background: rgba(91,141,239,0.12);
  border: 1px solid rgba(91,141,239,0.4);
  color: #5b8def;
}

.gx-turn-partner {
  background: rgba(198,120,221,0.12);
  border: 1px solid rgba(198,120,221,0.4);
  color: #c678dd;
}

.gx-scenario-counter {
  font-size: 0.7rem;
  color: rgba(232,228,220,0.35);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.gx-scenario-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #e8e4dc;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 30px rgba(232,228,220,0.06);
}

.gx-scenario-context {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: rgba(232,228,220,0.4);
  font-style: italic;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.gx-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.gx-option {
  width: 100%;
  padding: 18px 24px;
  background: rgba(12,13,18,0.7);
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 14px;
  color: rgba(232,228,220,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gx-option:hover {
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.04);
  color: #e8e4dc;
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.gx-option.selected {
  border-color: rgba(212,175,55,0.6);
  background: rgba(212,175,55,0.08);
  color: #D4AF37;
  transform: scale(0.98);
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
}

.gx-reveal-screen {
  min-height: auto;
  padding: 40px 24px;
  align-items: flex-start;
}

.gx-reveal-inner {
  max-width: 720px;
}

.gx-reveal-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
  text-align: left;
}

.gx-reveal-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.08);
  background: rgba(12,13,18,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInUp 0.5s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.gx-reveal-card.gx-match {
  border-color: rgba(152,195,121,0.4);
  background: rgba(152,195,121,0.04);
}

.gx-reveal-card.gx-mismatch {
  border-color: rgba(224,108,117,0.3);
  background: rgba(224,108,117,0.03);
}

.gx-reveal-card.gx-solo-card {
  border-color: rgba(212,175,55,0.2);
  background: rgba(212,175,55,0.03);
}

.gx-reveal-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.gx-match .gx-reveal-status {
  color: #98c379;
}

.gx-mismatch .gx-reveal-status {
  color: #e06c75;
}

.gx-reveal-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(232,228,220,0.6);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.4;
}

.gx-reveal-answers {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gx-reveal-answer {
  flex: 1;
  min-width: 200px;
  padding: 14px;
  background: rgba(11,12,15,0.6);
  border-radius: 8px;
}

.gx-reveal-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(232,228,220,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.gx-reveal-text {
  font-size: 0.88rem;
  color: #e8e4dc;
  line-height: 1.4;
}

.gx-reveal-insight {
  font-size: 0.82rem;
  color: rgba(212,175,55,0.7);
  font-style: italic;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid rgba(212,175,55,0.1);
}

.gx-round-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.gx-round-score-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #D4AF37;
}

.gx-round-score-label {
  font-size: 0.8rem;
  color: rgba(232,228,220,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gx-results-screen {
  min-height: 80vh;
}

.gx-results-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.4));
  animation: resultIconGlow 3s ease-in-out infinite alternate;
}

@keyframes resultIconGlow {
  0% { filter: drop-shadow(0 0 30px rgba(212,175,55,0.3)); }
  100% { filter: drop-shadow(0 0 50px rgba(212,175,55,0.5)); }
}

.gx-final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.gx-final-score-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #D4AF37;
}

.gx-final-score-label {
  font-size: 0.8rem;
  color: rgba(232,228,220,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gx-rating {
  padding: 28px 32px;
  background: rgba(20,21,26,0.9);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 14px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.gx-rating-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #D4AF37;
  margin-bottom: 10px;
}

.gx-rating-desc {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.5);
  line-height: 1.6;
}

.gx-xp-earned {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 32px;
  animation: xpBounce 0.6s ease;
}

@keyframes xpBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.gx-bonus-challenge {
  padding: 32px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02));
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.gx-bonus-label {
  font-size: 0.6rem;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  opacity: 0.8;
}

.gx-bonus-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #e8e4dc;
  margin-bottom: 12px;
}

.gx-bonus-desc {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.6);
  line-height: 1.7;
}

.gx-switch-roles {
  padding: 24px;
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.gx-switch-text {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.6;
  margin-bottom: 16px;
}

.game-already-done {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  z-index: 1;
}

.already-done-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}

.already-done-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #D4AF37;
  margin-bottom: 12px;
}

.already-done-subtitle {
  font-size: 0.9rem;
  color: rgba(232,228,220,0.5);
  margin-bottom: 32px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gx-screen-transition {
  animation: screenTransition 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes screenTransition {
  0% { opacity: 0; transform: scale(0.96) translateY(16px); filter: blur(4px); }
  40% { filter: blur(0px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.gx-portal-flash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 900;
  pointer-events: none;
  animation: portalFlash 0.8s ease-out forwards;
}

@keyframes portalFlash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

.gx-portal-flash-mind { background: radial-gradient(circle at 50% 50%, rgba(91,141,239,0.15) 0%, transparent 70%); }
.gx-portal-flash-emotions { background: radial-gradient(circle at 50% 50%, rgba(224,108,117,0.15) 0%, transparent 70%); }
.gx-portal-flash-body { background: radial-gradient(circle at 50% 50%, rgba(152,195,121,0.15) 0%, transparent 70%); }
.gx-portal-flash-spirit { background: radial-gradient(circle at 50% 50%, rgba(198,120,221,0.15) 0%, transparent 70%); }
.gx-portal-flash-gold { background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.18) 0%, transparent 70%); }

.gx-option-enter {
  animation: optionSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.gx-option-enter:nth-child(1) { animation-delay: 0.05s; }
.gx-option-enter:nth-child(2) { animation-delay: 0.12s; }
.gx-option-enter:nth-child(3) { animation-delay: 0.19s; }
.gx-option-enter:nth-child(4) { animation-delay: 0.26s; }

@keyframes optionSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.gx-pillar-atmosphere {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  opacity: 0;
}

.gx-pillar-atmosphere.active {
  opacity: 1;
}

.gx-pillar-atmosphere-mind {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91,141,239,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(60,100,200,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(91,141,239,0.03) 0%, transparent 70%);
}

.gx-pillar-atmosphere-emotions {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(224,108,117,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(200,80,120,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(224,108,117,0.03) 0%, transparent 70%);
}

.gx-pillar-atmosphere-body {
  background:
    radial-gradient(ellipse at 40% 80%, rgba(152,195,121,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(100,180,100,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(152,195,121,0.03) 0%, transparent 70%);
}

.gx-pillar-atmosphere-spirit {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(198,120,221,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(160,100,200,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(198,120,221,0.03) 0%, transparent 70%);
}

.gx-pillar-symbol {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px currentColor);
  animation: symbolFloat 4s ease-in-out infinite;
}

@keyframes symbolFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.gx-pillar-symbol-mind { color: rgba(91,141,239,0.7); }
.gx-pillar-symbol-emotions { color: rgba(224,108,117,0.7); }
.gx-pillar-symbol-body { color: rgba(152,195,121,0.7); }
.gx-pillar-symbol-spirit { color: rgba(198,120,221,0.7); }

.gx-journey-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 20px 0;
}

.gx-journey-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid rgba(232,228,220,0.12);
  background: rgba(12,13,18,0.8);
  color: rgba(232,228,220,0.3);
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.gx-journey-node.completed {
  border-color: rgba(212,175,55,0.6);
  background: rgba(212,175,55,0.12);
  color: #D4AF37;
  box-shadow: 0 0 16px rgba(212,175,55,0.2);
}

.gx-journey-node.active {
  border-color: currentColor;
  background: rgba(255,255,255,0.05);
  transform: scale(1.15);
  box-shadow: 0 0 24px currentColor;
  animation: nodeActivePulse 2s ease-in-out infinite;
}

@keyframes nodeActivePulse {
  0%, 100% { box-shadow: 0 0 16px currentColor; }
  50% { box-shadow: 0 0 28px currentColor; }
}

.gx-journey-node-mind.active { color: #5b8def; border-color: #5b8def; }
.gx-journey-node-emotions.active { color: #e06c75; border-color: #e06c75; }
.gx-journey-node-body.active { color: #98c379; border-color: #98c379; }
.gx-journey-node-spirit.active { color: #c678dd; border-color: #c678dd; }

.gx-journey-connector {
  width: 40px;
  height: 2px;
  background: rgba(232,228,220,0.08);
  position: relative;
  z-index: 1;
}

.gx-journey-connector.completed {
  background: linear-gradient(90deg, rgba(212,175,55,0.5), rgba(212,175,55,0.3));
}

.gx-journey-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: rgba(232,228,220,0.3);
}

.gx-journey-node.active .gx-journey-label {
  color: rgba(232,228,220,0.6);
}

.gx-journey-node.completed .gx-journey-label {
  color: rgba(212,175,55,0.6);
}

.gx-round-intro-pillar {
  text-align: center;
  margin-bottom: 8px;
}

.gx-reaction-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 800;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gx-reaction-ripple {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid;
  animation: reactionRipple 0.8s ease-out forwards;
}

@keyframes reactionRipple {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

.gx-reaction-ripple-mind { border-color: rgba(91,141,239,0.25); }
.gx-reaction-ripple-emotions { border-color: rgba(224,108,117,0.25); }
.gx-reaction-ripple-body { border-color: rgba(152,195,121,0.25); }
.gx-reaction-ripple-spirit { border-color: rgba(198,120,221,0.25); }

.gx-mode-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
  margin: 0 auto 24px;
}

.gx-scenario-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gx-scenario-theme-line {
  width: 32px;
  height: 1px;
  flex-shrink: 0;
}

.gx-scenario-theme-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
}

.gx-scenario-theme-mind .gx-scenario-theme-label { color: rgba(91,141,239,0.6); }
.gx-scenario-theme-mind .gx-scenario-theme-line { background: linear-gradient(90deg, transparent, rgba(91,141,239,0.3)); }
.gx-scenario-theme-emotions .gx-scenario-theme-label { color: rgba(224,108,117,0.6); }
.gx-scenario-theme-emotions .gx-scenario-theme-line { background: linear-gradient(90deg, transparent, rgba(224,108,117,0.3)); }
.gx-scenario-theme-body .gx-scenario-theme-label { color: rgba(152,195,121,0.6); }
.gx-scenario-theme-body .gx-scenario-theme-line { background: linear-gradient(90deg, transparent, rgba(152,195,121,0.3)); }
.gx-scenario-theme-spirit .gx-scenario-theme-label { color: rgba(198,120,221,0.6); }
.gx-scenario-theme-spirit .gx-scenario-theme-line { background: linear-gradient(90deg, transparent, rgba(198,120,221,0.3)); }

.gx-scenario-pillar-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.gx-scenario-pillar-accent-mind { background: linear-gradient(90deg, transparent, rgba(91,141,239,0.5), transparent); }
.gx-scenario-pillar-accent-emotions { background: linear-gradient(90deg, transparent, rgba(224,108,117,0.5), transparent); }
.gx-scenario-pillar-accent-body { background: linear-gradient(90deg, transparent, rgba(152,195,121,0.5), transparent); }
.gx-scenario-pillar-accent-spirit { background: linear-gradient(90deg, transparent, rgba(198,120,221,0.5), transparent); }

.gx-cinematic {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 28px;
  padding: 40px 24px;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.gx-cinematic-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.gx-cinematic-mind .gx-cinematic-overlay {
  background: linear-gradient(135deg, rgba(91,141,239,0.06) 0%, rgba(12,13,18,0.9) 40%, rgba(91,141,239,0.04) 100%);
  border: 1px solid rgba(91,141,239,0.08);
}
.gx-cinematic-emotions .gx-cinematic-overlay {
  background: linear-gradient(135deg, rgba(224,108,117,0.06) 0%, rgba(12,13,18,0.9) 40%, rgba(224,108,117,0.04) 100%);
  border: 1px solid rgba(224,108,117,0.08);
}
.gx-cinematic-body .gx-cinematic-overlay {
  background: linear-gradient(135deg, rgba(152,195,121,0.06) 0%, rgba(12,13,18,0.9) 40%, rgba(152,195,121,0.04) 100%);
  border: 1px solid rgba(152,195,121,0.08);
}
.gx-cinematic-spirit .gx-cinematic-overlay {
  background: linear-gradient(135deg, rgba(198,120,221,0.06) 0%, rgba(12,13,18,0.9) 40%, rgba(198,120,221,0.04) 100%);
  border: 1px solid rgba(198,120,221,0.08);
}

.gx-cinematic-text {
  position: relative;
  z-index: 1;
}

.gx-cinematic-atmosphere {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.4;
  margin-bottom: 12px;
}

.gx-cinematic-visual {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(232,228,220,0.5);
  animation: cinematicFade 1.5s ease-out;
}

@keyframes cinematicFade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.gx-reflection-screen {
  background: rgba(7,8,11,0.98);
}

.gx-reflection-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.gx-reflection-breath {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  border: 1px solid rgba(212,175,55,0.12);
  margin-bottom: 40px;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

.gx-reflection-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(232,228,220,0.7);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.gx-reflection-subtext {
  font-size: 0.8rem;
  color: rgba(232,228,220,0.3);
  max-width: 360px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.gx-ai-insight {
  margin-top: 24px;
  margin-bottom: 4px;
  padding: 16px 20px;
  background: rgba(201,174,113,0.05);
  border: 1px solid rgba(201,174,113,0.2);
  border-radius: 8px;
  max-width: 460px;
  width: 100%;
  text-align: left;
}

.gx-ai-insight-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,174,113,0.55);
  margin-bottom: 9px;
}

.gx-ai-insight-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.68;
  color: rgba(232,228,220,0.85);
}

.gx-ai-insight-loading {
  color: rgba(232,228,220,0.28);
  font-style: italic;
  animation: gxInsightPulse 1.6s ease-in-out infinite;
}

@keyframes gxInsightPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

.gx-ai-insight-reveal {
  animation: gxInsightFadein 0.7s ease forwards;
}

@keyframes gxInsightFadein {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.gx-reflection-btn {
  margin-top: 20px;
}

.gx-archetype-screen {
  background: rgba(7,8,11,0.98);
}

.gx-archetype-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(212,175,55,0.5);
  margin-bottom: 28px;
}

.gx-archetype-card {
  position: relative;
  max-width: 420px;
  margin: 0 auto 32px;
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  animation: archetypeReveal 1s ease-out;
}

@keyframes archetypeReveal {
  0% { opacity: 0; transform: scale(0.95) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gx-archetype-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: archetypeGlow 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes archetypeGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
}

.gx-archetype-mind { background: rgba(91,141,239,0.04); border: 1px solid rgba(91,141,239,0.12); }
.gx-archetype-mind .gx-archetype-glow { background: radial-gradient(circle, rgba(91,141,239,0.1) 0%, transparent 70%); }
.gx-archetype-emotions { background: rgba(224,108,117,0.04); border: 1px solid rgba(224,108,117,0.12); }
.gx-archetype-emotions .gx-archetype-glow { background: radial-gradient(circle, rgba(224,108,117,0.1) 0%, transparent 70%); }
.gx-archetype-body { background: rgba(152,195,121,0.04); border: 1px solid rgba(152,195,121,0.12); }
.gx-archetype-body .gx-archetype-glow { background: radial-gradient(circle, rgba(152,195,121,0.1) 0%, transparent 70%); }
.gx-archetype-spirit { background: rgba(198,120,221,0.04); border: 1px solid rgba(198,120,221,0.12); }
.gx-archetype-spirit .gx-archetype-glow { background: radial-gradient(circle, rgba(198,120,221,0.1) 0%, transparent 70%); }

.gx-archetype-symbol {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px currentColor);
  animation: symbolFloat 4s ease-in-out infinite;
}

.gx-archetype-mind .gx-archetype-symbol { color: rgba(91,141,239,0.6); }
.gx-archetype-emotions .gx-archetype-symbol { color: rgba(224,108,117,0.6); }
.gx-archetype-body .gx-archetype-symbol { color: rgba(152,195,121,0.6); }
.gx-archetype-spirit .gx-archetype-symbol { color: rgba(198,120,221,0.6); }

.gx-archetype-name {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #e8e4dc;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.gx-archetype-desc {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  color: rgba(232,228,220,0.55);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

.gx-challenge-screen {
  background: rgba(7,8,11,0.98);
}

.gx-challenge-badge {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.gx-challenge-badge-mind { background: rgba(91,141,239,0.08); color: rgba(91,141,239,0.7); border: 1px solid rgba(91,141,239,0.15); }
.gx-challenge-badge-emotions { background: rgba(224,108,117,0.08); color: rgba(224,108,117,0.7); border: 1px solid rgba(224,108,117,0.15); }
.gx-challenge-badge-body { background: rgba(152,195,121,0.08); color: rgba(152,195,121,0.7); border: 1px solid rgba(152,195,121,0.15); }
.gx-challenge-badge-spirit { background: rgba(198,120,221,0.08); color: rgba(198,120,221,0.7); border: 1px solid rgba(198,120,221,0.15); }

.gx-challenge-title {
  margin-bottom: 24px;
}

.gx-challenge-instruction {
  font-size: 0.95rem;
  color: rgba(232,228,220,0.6);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 16px;
}

.gx-challenge-desc-box {
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  background: rgba(232,228,220,0.02);
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 12px;
}

.gx-challenge-desc-text {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.7;
  margin: 0;
}

/* On the Inner Compass intro (light parchment background), make the
   description fully readable in dark ink against the warm panel. */
body.ic-game-active .gx-challenge-desc-box,
body.realm-inner-compass .gx-challenge-desc-box {
  background: rgba(245, 240, 230, 0.75);
  border-color: rgba(36, 50, 74, 0.18);
}
body.ic-game-active .gx-challenge-desc-text,
body.realm-inner-compass .gx-challenge-desc-text {
  color: #1A1A1A;
  font-size: 0.95rem;
}

.gx-challenge-retry-banner {
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 16px 24px;
  background: rgba(212,175,55,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(212,175,55,0.75);
  line-height: 1.5;
}

.gx-challenge-start-btn {
  margin-top: 8px;
}

.gx-outcome-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,8,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gx-outcome-visible {
  opacity: 1;
  pointer-events: auto;
}

.gx-outcome-inner {
  text-align: center;
  animation: outcomeEnter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes outcomeEnter {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gx-outcome-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gx-outcome-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: ringDraw 0.8s ease-out 0.2s forwards;
}

@keyframes ringDraw {
  0% { border-color: transparent; transform: scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.gx-outcome-ring-success {
  background: rgba(152,195,121,0.06);
}

.gx-outcome-ring-success::before {
  border-color: rgba(152,195,121,0.4);
}

.gx-outcome-ring-success::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152,195,121,0.08) 0%, transparent 70%);
  animation: outcomeGlow 1.5s ease-out;
}

@keyframes outcomeGlow {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.gx-outcome-ring-incomplete {
  background: rgba(212,175,55,0.04);
}

.gx-outcome-ring-incomplete::before {
  border-color: rgba(212,175,55,0.3);
}

.gx-outcome-icon {
  font-size: 2rem;
  position: relative;
  z-index: 1;
  animation: iconReveal 0.5s ease-out 0.3s both;
}

@keyframes iconReveal {
  0% { opacity: 0; transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.gx-outcome-success .gx-outcome-icon {
  color: rgba(152,195,121,0.9);
}

.gx-outcome-incomplete .gx-outcome-icon {
  color: rgba(212,175,55,0.7);
}

.gx-outcome-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #e8e4dc;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.gx-outcome-text {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.4);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.5;
}

.gx-sort-timer {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(212,175,55,0.8);
  margin-bottom: 4px;
  transition: color 0.3s;
}

.gx-sort-timer-urgent {
  color: rgba(224,108,117,0.9);
  animation: timerPulse 0.5s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.gx-sort-progress {
  font-size: 0.7rem;
  color: rgba(232,228,220,0.3);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.gx-sort-item-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #e8e4dc;
  padding: 28px 20px;
  margin-bottom: 24px;
  min-height: 48px;
}

.gx-sort-item-enter {
  animation: sortItemPop 0.3s ease-out;
}

@keyframes sortItemPop {
  0% { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gx-sort-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}

.gx-sort-btn {
  padding: 14px 36px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gx-sort-btn-need {
  background: rgba(91,141,239,0.12);
  color: rgba(91,141,239,0.9);
  border: 1px solid rgba(91,141,239,0.2);
}

.gx-sort-btn-need:hover {
  background: rgba(91,141,239,0.2);
  transform: scale(1.03);
}

.gx-sort-btn-want {
  background: rgba(212,175,55,0.1);
  color: rgba(212,175,55,0.9);
  border: 1px solid rgba(212,175,55,0.2);
}

.gx-sort-btn-want:hover {
  background: rgba(212,175,55,0.18);
  transform: scale(1.03);
}

.gx-sort-piles {
  display: flex;
  gap: 16px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.gx-sort-pile {
  flex: 1;
  text-align: left;
}

.gx-sort-pile-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(232,228,220,0.3);
  margin-bottom: 8px;
}

.gx-sort-pile-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gx-sort-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(232,228,220,0.04);
  border: 1px solid rgba(232,228,220,0.08);
  color: rgba(232,228,220,0.5);
  animation: sortItemPop 0.2s ease-out;
}

.gx-sort-result-stat {
  font-size: 0.75rem;
  color: rgba(232,228,220,0.35);
  margin-bottom: 20px;
}

.gx-sort-results {
  display: flex;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto 8px;
  text-align: left;
}

.gx-sort-result-col {
  flex: 1;
}

.gx-sort-result-header {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212,175,55,0.5);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232,228,220,0.06);
}

.gx-sort-result-item {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.65);
  padding: 6px 0;
  border-bottom: 1px solid rgba(232,228,220,0.04);
}

.gx-sort-result-empty {
  font-size: 0.75rem;
  color: rgba(232,228,220,0.2);
  font-style: italic;
}

.gx-tot-progress {
  font-size: 0.7rem;
  color: rgba(232,228,220,0.3);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.gx-tot-timer-bar {
  width: 200px;
  height: 3px;
  background: rgba(232,228,220,0.06);
  border-radius: 2px;
  margin: 0 auto 28px;
  overflow: hidden;
}

.gx-tot-timer-fill {
  height: 100%;
  background: rgba(212,175,55,0.6);
  border-radius: 2px;
  width: 100%;
}

.gx-tot-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 100px;
}

.gx-tot-option {
  flex: 1;
  max-width: 200px;
  padding: 20px 16px;
  background: rgba(232,228,220,0.03);
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 10px;
  color: #e8e4dc;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.gx-tot-option:hover {
  background: rgba(232,228,220,0.06);
  border-color: rgba(212,175,55,0.25);
  transform: scale(1.02);
}

.gx-tot-option-enter {
  animation: sortItemPop 0.3s ease-out;
}

.gx-tot-option-selected {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.4);
}

.gx-tot-vs {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(232,228,220,0.2);
}

.gx-tot-results {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.gx-tot-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232,228,220,0.04);
}

.gx-tot-result-item {
  flex: 1;
  font-size: 0.82rem;
  color: rgba(232,228,220,0.35);
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
}

.gx-tot-chosen {
  color: #e8e4dc;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.15);
}

.gx-tot-skipped {
  color: rgba(232,228,220,0.15);
  font-style: italic;
}

.gx-tot-result-vs {
  font-size: 0.65rem;
  color: rgba(232,228,220,0.15);
  flex-shrink: 0;
}

.gx-energy-grid {
  max-width: 480px;
  margin: 0 auto 24px;
}

.gx-energy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232,228,220,0.04);
}

.gx-energy-label {
  flex: 0 0 120px;
  font-size: 0.8rem;
  color: rgba(232,228,220,0.6);
  text-align: right;
}

.gx-energy-levels {
  display: flex;
  gap: 6px;
  flex: 1;
}

.gx-energy-level {
  width: 36px;
  height: 36px;
  background: rgba(232,228,220,0.03);
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.gx-energy-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(152,195,121,0.15);
  transition: background 0.15s ease;
}

.gx-energy-level:hover {
  border-color: rgba(152,195,121,0.3);
}

.gx-energy-level-active {
  border-color: rgba(152,195,121,0.4);
}

.gx-energy-level-active .gx-energy-bar-fill {
  background: rgba(152,195,121,0.35);
}

.gx-energy-selected {
  flex: 0 0 50px;
  font-size: 0.65rem;
  color: rgba(152,195,121,0.6);
  text-align: left;
}

.gx-energy-results {
  max-width: 440px;
  margin: 0 auto 8px;
}

.gx-energy-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.gx-energy-result-label {
  flex: 0 0 120px;
  font-size: 0.8rem;
  color: rgba(232,228,220,0.55);
  text-align: right;
}

.gx-energy-result-bar {
  flex: 1;
  height: 8px;
  background: rgba(232,228,220,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.gx-energy-result-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(152,195,121,0.4), rgba(152,195,121,0.7));
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.gx-energy-low .gx-energy-result-fill {
  background: linear-gradient(90deg, rgba(224,108,117,0.4), rgba(224,108,117,0.7));
}

.gx-energy-result-value {
  flex: 0 0 40px;
  font-size: 0.7rem;
  color: rgba(232,228,220,0.4);
}

.gx-energy-insight {
  max-width: 440px;
  margin: 12px auto 4px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(224,108,117,0.06);
  border: 1px solid rgba(224,108,117,0.12);
  font-size: 0.82rem;
  color: rgba(224,108,117,0.7);
  text-align: left;
}

.gx-energy-insight-good {
  background: rgba(152,195,121,0.06);
  border-color: rgba(152,195,121,0.12);
  color: rgba(152,195,121,0.7);
}

.gx-energy-insight-label {
  font-weight: 600;
}

.gx-auction-coins {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(212,175,55,0.8);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.gx-auction-coins-empty {
  color: rgba(232,228,220,0.3);
}

.gx-auction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 24px;
}

.gx-auction-item {
  background: rgba(232,228,220,0.02);
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.gx-auction-item-bid {
  background: rgba(198,120,221,0.04);
  border-color: rgba(198,120,221,0.15);
}

.gx-auction-value-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #e8e4dc;
  margin-bottom: 6px;
}

.gx-auction-bid-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(198,120,221,0.7);
  margin-bottom: 8px;
}

.gx-auction-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.gx-auction-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(232,228,220,0.12);
  background: rgba(232,228,220,0.03);
  color: rgba(232,228,220,0.6);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gx-auction-btn:hover {
  background: rgba(232,228,220,0.08);
  border-color: rgba(198,120,221,0.3);
}

.gx-auction-results {
  max-width: 400px;
  margin: 0 auto 8px;
}

.gx-auction-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.gx-auction-result-name {
  flex: 0 0 90px;
  font-size: 0.85rem;
  color: rgba(232,228,220,0.6);
  text-align: right;
}

.gx-auction-result-bar {
  flex: 1;
  height: 8px;
  background: rgba(232,228,220,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.gx-auction-result-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(198,120,221,0.4), rgba(198,120,221,0.7));
  border-radius: 4px;
}

.gx-auction-result-coins {
  flex: 0 0 20px;
  font-size: 0.8rem;
  color: rgba(198,120,221,0.6);
  font-weight: 600;
}

.gx-auction-zero {
  max-width: 400px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(232,228,220,0.02);
  border: 1px solid rgba(232,228,220,0.05);
  text-align: left;
}

.gx-auction-zero-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(232,228,220,0.25);
  margin-bottom: 8px;
}

.gx-auction-zero-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gx-auction-zero-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(232,228,220,0.03);
  color: rgba(232,228,220,0.3);
}

body.gx-stage-awakening {
  background-color: #07080b;
}
body.gx-stage-deepening {
  background-color: #080a0e;
}
body.gx-stage-expanding {
  background-color: #0a0c10;
}
body.gx-stage-integrating {
  background-color: #0c0e13;
}

@media (max-width: 768px) {
  .game-header {
    padding: 16px 20px;
  }

  .game-header-logo {
    height: 40px;
  }

  .game-hub-title {
    font-size: 2rem;
  }

  .game-stats-bar {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .game-realms {
    padding: 0 20px 60px;
  }

  .realm-card {
    width: 100%;
    max-width: 400px;
  }

  .gx-hero-title {
    font-size: 2rem;
  }

  .gx-mode-cards {
    flex-direction: column;
    align-items: center;
  }

  .gx-mode-card {
    width: 100%;
    max-width: 320px;
  }

  .gx-scenario-prompt {
    font-size: 1.25rem;
  }

  .gx-option {
    padding: 16px 20px;
    font-size: 0.85rem;
  }

  .gx-reveal-answers {
    flex-direction: column;
  }

  .gx-reveal-card {
    padding: 20px;
  }

  .gx-screen {
    padding: 40px 16px;
  }

  .gx-screen-title {
    font-size: 1.7rem;
  }

  .gx-journey-map {
    gap: 0;
    transform: scale(0.85);
    margin-bottom: 20px;
  }

  .gx-journey-node {
    width: 36px;
    height: 36px;
    font-size: 0.6rem;
  }

  .gx-journey-connector {
    width: 24px;
  }

  .gx-journey-label {
    font-size: 0.45rem;
  }

  .gx-pillar-symbol {
    font-size: 2.2rem;
  }
}

.gx-partner-disclaimer {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border-left: 2px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.03);
  border-radius: 0 8px 8px 0;
}

.gx-disclaimer-text {
  font-size: 0.82rem;
  color: rgba(232,228,220,0.5);
  line-height: 1.75;
  margin: 0;
}

.gx-disclaimer-text strong {
  color: rgba(212,175,55,0.8);
  font-weight: 500;
}

.gx-btn-ghost {
  background: transparent;
  border: 1px solid rgba(232,228,220,0.15);
  color: rgba(232,228,220,0.5);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.gx-btn-ghost:hover {
  border-color: rgba(212,175,55,0.4);
  color: rgba(232,228,220,0.8);
}

.gx-share-section {
  padding: 32px;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02));
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.gx-share-label {
  font-size: 0.6rem;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.gx-share-text {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.55);
  line-height: 1.7;
  margin-bottom: 16px;
}

.gx-share-textarea {
  width: 100%;
  background: rgba(11,12,15,0.6);
  border: 1px solid rgba(232,228,220,0.12);
  border-radius: 8px;
  color: rgba(232,228,220,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.gx-share-textarea:focus {
  outline: none;
  border-color: rgba(212,175,55,0.4);
}

.gx-copy-feedback {
  font-size: 0.78rem;
  color: #D4AF37;
  margin-top: 8px;
  min-height: 1.2em;
}

.game-standalone-tools {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 40px 60px;
}

.standalone-tool-card {
  width: 100%;
  max-width: 600px;
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12,13,18,0.6);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.standalone-tool-card:hover {
  border-color: rgba(212,175,55,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,175,55,0.04);
}

.standalone-tool-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.standalone-tool-visual-radar {
  background: radial-gradient(ellipse at center, rgba(224,108,117,0.04) 0%, rgba(7,8,11,0.95) 70%);
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224,108,117,0.08);
}

.radar-ring-1 {
  width: 60px; height: 60px;
  animation: radarPulse 3s ease-out infinite;
}
.radar-ring-2 {
  width: 110px; height: 110px;
  animation: radarPulse 3s ease-out 0.5s infinite;
}
.radar-ring-3 {
  width: 160px; height: 160px;
  animation: radarPulse 3s ease-out 1s infinite;
}

@keyframes radarPulse {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.4); }
}

.radar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(224,108,117,0.7);
  box-shadow: 0 0 12px rgba(224,108,117,0.4);
  z-index: 1;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.standalone-tool-content {
  padding: 28px 32px;
  text-align: center;
}

.standalone-tool-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(224,108,117,0.5);
  margin-bottom: 10px;
}

.standalone-tool-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #e8e4dc;
  margin-bottom: 10px;
}

.standalone-tool-desc {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.pr-radar-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Brass compass on the chamber intro — replaces the old radar pulse.
   The image carries True North / E / S / W markings on its face. */
.pr-compass-visual {
  position: relative;
  width: clamp(220px, 38vmin, 320px);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45))
          drop-shadow(0 0 22px rgba(198, 161, 91, 0.18));
  animation: prCompassFloat 6.5s ease-in-out infinite;
}
.pr-compass-visual img {
  width: 100%;
  height: auto;
  display: block;
}
/* Full-bleed variant: the compass commands the screen.
   Uses min(width, height) so the image stays uncropped on every viewport,
   capping near the edges with a tiny breathing margin. */
.pr-compass-visual.pr-compass-fullbleed {
  width: min(96vw, 78vh);
  max-width: 820px;
  margin: 0 auto 18px;
}
.pr-compass-visual.pr-compass-fullbleed img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}
@keyframes prCompassFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(0.8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pr-compass-visual { animation: none !important; }
}

.pr-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224,108,117,0.1);
}

.pr-ring-1 { width: 40px; height: 40px; animation: radarPulse 3s ease-out infinite; }
.pr-ring-2 { width: 75px; height: 75px; animation: radarPulse 3s ease-out 0.5s infinite; }
.pr-ring-3 { width: 110px; height: 110px; animation: radarPulse 3s ease-out 1s infinite; }

.pr-center-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(224,108,117,0.7);
  box-shadow: 0 0 12px rgba(224,108,117,0.4);
  z-index: 1;
  animation: dotPulse 2s ease-in-out infinite;
}

.pr-scan-progress {
  font-size: 0.65rem;
  color: rgba(232,228,220,0.25);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.pr-scan-category {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(224,108,117,0.5);
  margin-bottom: 28px;
}

.pr-scan-prompt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(232,228,220,0.75);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 32px;
  animation: cinematicFade 0.4s ease-out;
}

.pr-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.pr-level-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(232,228,220,0.02);
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e8e4dc;
  font-family: 'Inter', sans-serif;
}

.pr-level-btn:hover {
  background: rgba(232,228,220,0.04);
  border-color: rgba(232,228,220,0.12);
}

.pr-level-selected {
  border-color: rgba(224,108,117,0.4);
  background: rgba(224,108,117,0.06);
}

.pr-level-indicator {
  flex: 1;
  height: 6px;
  background: rgba(232,228,220,0.04);
  border-radius: 3px;
  overflow: hidden;
}

.pr-level-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.pr-level-0 .pr-level-fill { background: rgba(152,195,121,0.5); }
.pr-level-1 .pr-level-fill { background: rgba(152,195,121,0.35); }
.pr-level-2 .pr-level-fill { background: rgba(212,175,55,0.45); }
.pr-level-3 .pr-level-fill { background: rgba(224,108,117,0.45); }
.pr-level-4 .pr-level-fill { background: rgba(224,108,117,0.7); }

.pr-level-label {
  flex: 0 0 90px;
  font-size: 0.78rem;
  text-align: right;
  color: rgba(232,228,220,0.5);
}

/* Inner Compass results — Cartographer's Atelier (cream parchment, indigo ink, brass).
   Sized up per brief — body copy felt cramped at the prior 0.8–0.9rem range. */
.pr-results-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(198,161,91,0.95);
  font-weight: 600;
  margin-bottom: 14px;
}

.pr-overall-meter {
  max-width: 460px;
  margin: 28px auto;
}

.pr-overall-track {
  height: 10px;
  background: rgba(36,50,74,0.08);
  border-radius: 5px;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(198,161,91,0.18);
}

/* Reactivity meter — token-only gradient: parchment → brass → ember */
.pr-overall-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(221,210,191,0.85) 0%, rgba(198,161,91,0.9) 55%, rgba(168,106,58,0.95) 100%);
  transition: width 1.2s ease-out;
}

.pr-overall-marker {
  position: absolute;
  top: -5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F5F0E6 0%, #C6A15B 70%, #A86A3A 100%);
  border: 2px solid rgba(36,50,74,0.55);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(198,161,91,0.45);
  transition: left 1.2s ease-out;
}

.pr-overall-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(36,50,74,0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pr-reading-desc {
  font-size: 1.05rem;
  color: rgba(36,50,74,0.82);
  line-height: 1.7;
  max-width: 540px;
  margin: 22px auto 32px;
}

.pr-category-breakdown {
  max-width: 500px;
  margin: 0 auto 22px;
}

.pr-cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(198,161,91,0.22);
}

.pr-cat-label {
  flex: 0 0 110px;
  font-size: 0.92rem;
  color: rgba(36,50,74,0.85);
  text-align: right;
  font-weight: 500;
}

.pr-cat-bar {
  flex: 1;
  height: 10px;
  background: rgba(36,50,74,0.08);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(198,161,91,0.18);
}

.pr-cat-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease-out;
}

/* Category fill levels — token gradient parchment → brass → ember */
.pr-cat-fill-0 { background: rgba(221,210,191,0.85); }
.pr-cat-fill-1 { background: rgba(198,161,91,0.55);  }
.pr-cat-fill-2 { background: rgba(198,161,91,0.85);  }
.pr-cat-fill-3 { background: rgba(168,106,58,0.7);   }
.pr-cat-fill-4 { background: rgba(168,106,58,0.95);  }

.pr-cat-level {
  flex: 0 0 92px;
  font-size: 0.82rem;
  color: rgba(36,50,74,0.65);
  text-align: left;
  letter-spacing: 0.04em;
}

.pr-cat-high .pr-cat-label {
  color: rgba(168,106,58,0.95);
  font-weight: 600;
}

.pr-insights {
  max-width: 500px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-insight {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.96rem;
  text-align: left;
  line-height: 1.55;
}

.pr-insight-alert {
  background: rgba(168,106,58,0.06);
  border: 1px solid rgba(168,106,58,0.32);
  color: rgba(36,50,74,0.88);
}
.pr-insight-alert .pr-insight-label { color: rgba(168,106,58,0.95); }

.pr-insight-calm {
  background: rgba(198,161,91,0.06);
  border: 1px solid rgba(198,161,91,0.32);
  color: rgba(36,50,74,0.88);
}
.pr-insight-calm .pr-insight-label { color: rgba(198,161,91,0.95); }

.pr-insight-label {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Inner Compass Card Preview (Game Room) ─────────────────── */

.pgr-radar-preview {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgr-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.22);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ic-pulse 3.2s ease-in-out infinite;
}

.pgr-radar-ring-1 { width: 100px; height: 100px; animation-delay: 0s; }
.pgr-radar-ring-2 { width: 66px;  height: 66px;  animation-delay: 0.55s; }
.pgr-radar-ring-3 { width: 34px;  height: 34px;  animation-delay: 1.1s; border-color: rgba(212,175,55,0.45); }

@keyframes ic-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.75; }
}

.pgr-radar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
  z-index: 1;
  animation: dotPulse 2.2s ease-in-out infinite;
}

/* ── Inner Compass Enhancements ─────────────────────────────── */

@keyframes pr-question-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pr-question-enter {
  animation: pr-question-enter 0.28s ease-out forwards;
}

.pr-scan-header {
  margin-bottom: 28px;
}

.pr-progress-track {
  max-width: 340px;
  margin: 8px auto 0;
  height: 2px;
  background: rgba(232,228,220,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.pr-progress-fill {
  height: 100%;
  background: rgba(212,175,55,0.5);
  border-radius: 1px;
  transition: width 0.4s ease-out;
}

@keyframes pr-breath-outer {
  0%, 100% { transform: scale(1);    border-color: rgba(212,175,55,0.12); }
  50%       { transform: scale(1.18); border-color: rgba(212,175,55,0.28); }
}

@keyframes pr-breath-inner {
  0%, 100% { transform: scale(1);    background: rgba(212,175,55,0.2); }
  50%       { transform: scale(0.82); background: rgba(212,175,55,0.08); }
}

.pr-breath-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pr-breath-outer 4.5s ease-in-out infinite;
}

.pr-breath-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(212,175,55,0.2);
  animation: pr-breath-inner 4.5s ease-in-out infinite;
}

.pr-mode-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 8px;
  text-align: left;
}

.pr-mode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(232,228,220,0.02);
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: #e8e4dc;
  font-family: 'Inter', sans-serif;
  text-align: left;
  width: 100%;
}

.pr-mode-card:hover {
  background: rgba(232,228,220,0.04);
  border-color: rgba(212,175,55,0.25);
}

.pr-mode-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(212,175,55,0.7);
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.12);
}

.pr-mode-card-body {
  flex: 1;
}

.pr-mode-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(232,228,220,0.9);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.pr-mode-card-desc {
  font-size: 0.78rem;
  color: rgba(232,228,220,0.4);
  line-height: 1.55;
}

.pr-mode-card-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: rgba(212,175,55,0.35);
  transition: transform 0.2s ease, color 0.2s ease;
}

.pr-mode-card:hover .pr-mode-card-arrow {
  transform: translateX(4px);
  color: rgba(212,175,55,0.65);
}

.pr-email-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.pr-email-input {
  background: rgba(232,228,220,0.04);
  border: 1px solid rgba(232,228,220,0.12);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #e8e4dc;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.pr-email-input::placeholder {
  color: rgba(232,228,220,0.22);
}

.pr-email-input:focus {
  border-color: rgba(212,175,55,0.35);
}

.pr-email-skip {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(232,228,220,0.28);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.pr-email-skip:hover {
  color: rgba(232,228,220,0.55);
}

@keyframes pr-state-reveal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    letter-spacing: 0.1em;
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pr-state-reveal {
  animation: pr-state-reveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pr-share-card {
  max-width: 380px;
  margin: 28px auto 8px;
  padding: 26px 30px;
  background: rgba(245,240,230,0.6);
  border: 1px solid rgba(198,161,91,0.45);
  border-radius: 12px;
  text-align: center;
}

.pr-share-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(198,161,91,0.95);
  font-weight: 600;
  margin-bottom: 10px;
}

.pr-share-state {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #24324A;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.pr-share-row {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.5;
  color: rgba(36,50,74,0.85);
}
.pr-share-row strong { color: #24324A; }

.pr-share-reactive strong { color: rgba(168,106,58,0.95); }
.pr-share-grounded  strong { color: rgba(198,161,91,0.95); }

.pr-share-hint {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(36,50,74,0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pr-personalized-bridge {
  max-width: 500px;
  margin: 22px auto 8px;
  padding: 18px 22px;
  background: rgba(245,240,230,0.55);
  border-left: 3px solid rgba(198,161,91,0.65);
  color: rgba(36,50,74,0.9);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.pr-personalized-bridge strong {
  color: rgba(168,106,58,0.95);
  font-weight: 600;
}

/* ── End Inner Compass Enhancements ─────────────────────────── */

.standalone-tool-visual-wheel {
  background: radial-gradient(ellipse at center, rgba(91,141,239,0.04) 0%, rgba(212,175,55,0.03) 30%, rgba(7,8,11,0.95) 70%);
}

.standalone-tool-label-wheel {
  color: rgba(91,141,239,0.5) !important;
}

.wol-preview-wheel {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  animation: wolPreviewSpin 20s linear infinite;
  box-shadow: 0 0 20px rgba(91,141,239,0.08), 0 0 20px rgba(212,175,55,0.06);
}

@keyframes wolPreviewSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wol-preview-segment {
  position: absolute;
  width: 50%;
  height: 50%;
}

.wol-seg-mind { top: 0; right: 0; background: linear-gradient(135deg, #5B8DEF, #3A6BD4); }
.wol-seg-emotions { bottom: 0; right: 0; background: linear-gradient(225deg, #E06C75, #C0525B); }
.wol-seg-body { bottom: 0; left: 0; background: linear-gradient(315deg, #98C379, #6FA34E); }
.wol-seg-spirit { top: 0; left: 0; background: linear-gradient(45deg, #D4AF37, #B8941D); }

.wol-preview-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a1b20;
  border: 2px solid rgba(255,255,255,0.15);
  z-index: 2;
}

.wol-player-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.wol-player-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wol-player-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91,141,239,0.1);
  border: 1px solid rgba(91,141,239,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(91,141,239,0.7);
  flex-shrink: 0;
}

.wol-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(232,228,220,0.03);
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 10px;
  color: #e8e4dc;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.wol-input:focus {
  border-color: rgba(91,141,239,0.3);
}

.wol-input::placeholder {
  color: rgba(232,228,220,0.2);
}

.wol-scoreboard {
  margin-bottom: 20px;
}

.wol-scores {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.wol-score-item {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(232,228,220,0.03);
  border: 1px solid rgba(232,228,220,0.06);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 80px;
}

.wol-score-active {
  border-color: rgba(91,141,239,0.3);
  background: rgba(91,141,239,0.06);
}

.wol-score-name {
  display: block;
  font-size: 0.72rem;
  color: rgba(232,228,220,0.5);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.wol-score-pts {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e8e4dc;
}

.wol-turn-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(91,141,239,0.5);
  margin-bottom: 8px;
}

.wol-wheel-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.wol-wheel-container canvas {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(91,141,239,0.08), 0 0 60px rgba(0,0,0,0.3);
}

.wol-spin-btn {
  margin-top: 16px;
}

.wol-spin-hint {
  font-size: 0.75rem;
  color: rgba(232,228,220,0.25);
  margin-top: 8px;
}

.wol-q-pillar {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
  font-weight: 600;
}

.wol-q-timer {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: rgba(232,228,220,0.6);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.wol-q-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: rgba(232,228,220,0.8);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.wol-q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.wol-q-option {
  padding: 14px 18px;
  background: rgba(232,228,220,0.03);
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 10px;
  color: rgba(232,228,220,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wol-q-option:hover:not(:disabled) {
  background: rgba(232,228,220,0.06);
  border-color: rgba(232,228,220,0.15);
}

.wol-q-option:disabled {
  cursor: default;
}

.wol-q-correct {
  border-color: rgba(152,195,121,0.5) !important;
  background: rgba(152,195,121,0.08) !important;
  color: rgba(152,195,121,0.9) !important;
}

.wol-q-wrong {
  border-color: rgba(224,108,117,0.5) !important;
  background: rgba(224,108,117,0.06) !important;
  color: rgba(224,108,117,0.8) !important;
}

.wol-result-banner {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: cinematicFade 0.4s ease-out;
}

.wol-result-correct {
  background: rgba(152,195,121,0.08);
  border: 1px solid rgba(152,195,121,0.2);
  color: rgba(152,195,121,0.85);
}

.wol-result-wrong {
  background: rgba(224,108,117,0.06);
  border: 1px solid rgba(224,108,117,0.15);
  color: rgba(224,108,117,0.75);
}

.wol-result-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.wol-final-scores {
  max-width: 400px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wol-final-score-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(232,228,220,0.03);
  border: 1px solid rgba(232,228,220,0.06);
}

.wol-place-1 {
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
}

.wol-final-place {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232,228,220,0.35);
  width: 40px;
}

.wol-place-1 .wol-final-place {
  color: rgba(212,175,55,0.7);
}

.wol-final-name {
  flex: 1;
  font-size: 0.95rem;
  color: rgba(232,228,220,0.8);
}

.wol-final-pts {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #e8e4dc;
}

.wol-final-pillar-note {
  font-size: 0.75rem;
  color: rgba(232,228,220,0.25);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.gx-path-guide {
  margin-top: 48px;
  text-align: left;
}

.gx-path-guide-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.25), transparent);
  margin: 36px auto;
}

.gx-path-guide-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #e8e4dc;
  text-align: center;
  margin-bottom: 16px;
}

.gx-path-guide-summary {
  font-size: 0.92rem;
  color: rgba(232,228,220,0.6);
  line-height: 1.7;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
}

.gx-path-guide-intro {
  font-size: 0.85rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.7;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 28px;
}

.gx-path-guide-takeaway {
  padding: 24px;
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 14px;
  background: rgba(212,175,55,0.02);
  margin: 0 auto 8px;
  max-width: 520px;
}

.gx-path-guide-takeaway-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212,175,55,0.5);
  margin-bottom: 10px;
  text-align: center;
}

.gx-path-guide-takeaway-text {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.55);
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.gx-path-guide-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.gx-path-guide-card {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 24px 20px;
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 14px;
  background: rgba(232,228,220,0.02);
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gx-path-guide-card:hover {
  border-color: rgba(232,228,220,0.12);
  background: rgba(232,228,220,0.035);
}

.gx-path-guide-card-current {
  border-color: rgba(212,175,55,0.2);
  background: rgba(212,175,55,0.03);
}

.gx-path-guide-card-current:hover {
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.04);
}

.gx-path-guide-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: rgba(212,175,55,0.6);
}

.gx-path-guide-card-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e8e4dc;
  margin-bottom: 4px;
}

.gx-path-guide-card-tagline {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(232,228,220,0.35);
  margin-bottom: 12px;
}

.gx-path-guide-card-desc {
  font-size: 0.78rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.6;
  margin-bottom: 16px;
}

.gx-path-guide-card-badge {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(212,175,55,0.7);
  padding: 6px 14px;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 20px;
  background: rgba(212,175,55,0.04);
}

.gx-path-guide-card-link {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232,228,220,0.5);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 20px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.gx-path-guide-card-link:hover {
  color: #D4AF37;
  border-color: rgba(212,175,55,0.3);
}

.gx-path-guide-cta {
  text-align: center;
  padding: 28px 24px;
  border: 1px solid rgba(212,175,55,0.08);
  border-radius: 16px;
  background: rgba(212,175,55,0.015);
  margin-bottom: 32px;
}

.gx-path-guide-cta-text {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.55);
  line-height: 1.7;
  margin: 0 auto 20px;
  max-width: 460px;
}

.gx-path-guide-cta-btn {
  display: inline-block;
  margin-bottom: 12px;
  background: #D4AF37 !important;
  border: none !important;
  color: #0b0c0f !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  padding: 20px 58px !important;
  border-radius: 6px !important;
  animation: assess-breathe 2.6s ease-in-out infinite;
  cursor: pointer;
}

.gx-path-guide-cta-btn:hover {
  background: #c9a62e !important;
  color: #000 !important;
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow: 0 8px 40px rgba(212,175,55,0.7) !important;
}

.gx-path-guide-uni-link {
  display: block;
  font-size: 0.72rem;
  color: rgba(232,228,220,0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gx-path-guide-uni-link:hover {
  color: rgba(212,175,55,0.6);
}

.prep-intro-body {
  text-align: center;
  margin: 20px 0;
}

.prep-intro-text {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.55);
  line-height: 1.7;
  margin-bottom: 14px;
}

.prep-intro-highlight {
  padding: 20px 24px;
  border: 1px solid rgba(224,108,117,0.12);
  border-radius: 14px;
  background: rgba(224,108,117,0.03);
  margin: 24px 0;
}

.prep-intro-highlight-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(224,108,117,0.6);
  margin-bottom: 8px;
}

.prep-intro-highlight-text {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.6);
  line-height: 1.7;
  margin: 0;
}

.prep-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prep-q-count {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232,228,220,0.35);
}

.prep-q-timer {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #D4AF37;
  min-width: 50px;
  text-align: right;
}

.prep-timer-bar {
  width: 100%;
  height: 4px;
  background: rgba(232,228,220,0.06);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}

.prep-timer-fill {
  height: 100%;
  background: #98C379;
  border-radius: 2px;
  transition: width 0.1s linear, background 0.3s ease;
}

.prep-q-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #e8e4dc;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 28px;
}

.prep-q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-q-option {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 10px;
  background: rgba(232,228,220,0.02);
  color: rgba(232,228,220,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.prep-q-option:hover {
  border-color: rgba(232,228,220,0.2);
  background: rgba(232,228,220,0.04);
}

.prep-option-correct {
  border-color: rgba(152,195,121,0.4) !important;
  background: rgba(152,195,121,0.08) !important;
  color: #98C379 !important;
}

.prep-option-wrong {
  border-color: rgba(224,108,117,0.4) !important;
  background: rgba(224,108,117,0.08) !important;
  color: #E06C75 !important;
}

.prep-q-feedback {
  margin-top: 20px;
  text-align: center;
  animation: cinematicFade 0.3s ease-out;
}

.prep-feedback-status {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.prep-feedback-correct { color: #98C379; }
.prep-feedback-wrong { color: #E06C75; }
.prep-feedback-timeout { color: rgba(212,175,55,0.7); }

.prep-score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
}

.prep-score-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #D4AF37;
}

.prep-score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(232,228,220,0.3);
}

.prep-timeout-note {
  font-size: 0.8rem;
  color: rgba(212,175,55,0.5);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.prep-breakdown-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(232,228,220,0.5);
  text-align: center;
  margin: 32px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prep-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prep-breakdown-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(232,228,220,0.06);
  background: rgba(232,228,220,0.015);
  text-align: left;
}

.prep-bd-correct {
  border-left: 3px solid rgba(152,195,121,0.4);
}

.prep-bd-wrong {
  border-left: 3px solid rgba(224,108,117,0.4);
}

.prep-bd-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.prep-bd-correct .prep-bd-status { color: #98C379; }
.prep-bd-wrong .prep-bd-status { color: #E06C75; }

.prep-bd-scenario {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: rgba(232,228,220,0.7);
  line-height: 1.5;
  margin-bottom: 10px;
}

.prep-bd-answer {
  font-size: 0.82rem;
  color: rgba(152,195,121,0.7);
  margin-bottom: 8px;
  line-height: 1.5;
}

.prep-bd-answer-label {
  font-weight: 600;
  color: rgba(152,195,121,0.5);
}

.prep-bd-explanation {
  font-size: 0.8rem;
  color: rgba(232,228,220,0.4);
  line-height: 1.6;
  margin: 0;
}

.mp-room-code-box {
  text-align: center;
  margin: 20px auto 24px;
  padding: 20px;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 14px;
  background: rgba(212,175,55,0.03);
  max-width: 280px;
}

.mp-room-code-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(232,228,220,0.35);
  margin-bottom: 8px;
}

.mp-room-code {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #D4AF37;
  text-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.mp-room-code-hint {
  font-size: 0.72rem;
  color: rgba(232,228,220,0.3);
  margin-top: 8px;
}

.mp-player-list {
  margin: 16px auto;
  max-width: 320px;
}

.mp-player-list-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(232,228,220,0.3);
  margin-bottom: 10px;
  text-align: center;
}

.mp-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin: 4px;
  border-radius: 20px;
  background: rgba(232,228,220,0.04);
  border: 1px solid rgba(232,228,220,0.08);
  color: rgba(232,228,220,0.7);
  font-size: 0.82rem;
}

.mp-online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #98C379;
  box-shadow: 0 0 6px rgba(152,195,121,0.5);
  margin-left: 6px;
  vertical-align: middle;
  animation: dotPulse 2s ease-in-out infinite;
}

.mp-online-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mp-option-box {
  padding: 20px;
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 12px;
  background: rgba(232,228,220,0.02);
}

.mp-option-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: #e8e4dc;
  margin-bottom: 6px;
}

.mp-option-desc {
  font-size: 0.78rem;
  color: rgba(232,228,220,0.4);
  line-height: 1.5;
  margin-bottom: 12px;
}

.mp-option-divider {
  text-align: center;
  padding: 12px 0;
  color: rgba(232,228,220,0.2);
  font-size: 0.75rem;
}

.mp-waiting {
  text-align: center;
  margin: 16px 0;
}

.mp-waiting-text {
  font-size: 0.82rem;
  color: rgba(232,228,220,0.4);
  font-style: italic;
}

.mp-watching-indicator {
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(91,141,239,0.05);
  border: 1px solid rgba(91,141,239,0.12);
  color: rgba(91,141,239,0.6);
  font-size: 0.85rem;
  text-align: center;
  animation: cinematicFade 0.4s ease-out;
}

.mp-error {
  color: rgba(224,108,117,0.7);
  font-size: 0.8rem;
  text-align: center;
  min-height: 1.2em;
  margin-top: 12px;
}

.pr-group-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}

.pr-group-card {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  padding: 20px;
  border: 1px solid rgba(232,228,220,0.06);
  border-radius: 14px;
  background: rgba(232,228,220,0.02);
}

.pr-group-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #e8e4dc;
  margin-bottom: 4px;
}

.pr-group-card-reading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(224,108,117,0.5);
  margin-bottom: 8px;
}

.pr-group-cats {
  margin-top: 8px;
}

.pr-group-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.pr-group-cat-label {
  flex: 0 0 70px;
  font-size: 0.65rem;
  color: rgba(232,228,220,0.4);
  text-align: right;
}

@media (max-width: 768px) {
  .standalone-tool-card {
    max-width: 100%;
  }

  .game-standalone-tools {
    padding: 0 20px 40px;
  }

  .pr-scan-prompt {
    font-size: 1.1rem;
  }

  .pr-level-label {
    flex: 0 0 70px;
    font-size: 0.7rem;
  }

  .pr-cat-label {
    flex: 0 0 80px;
    font-size: 0.72rem;
  }

  .wol-scores {
    gap: 10px;
  }

  .wol-score-item {
    min-width: 65px;
    padding: 6px 10px;
  }

  .wol-q-text {
    font-size: 1.1rem;
  }

  .wol-q-option {
    font-size: 0.82rem;
    padding: 12px 14px;
  }

  .mp-room-code {
    font-size: 1.8rem;
  }

  .pr-mode-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .pr-mode-card-desc {
    font-size: 0.73rem;
  }

  .pr-share-card {
    padding: 20px 20px;
  }

  .pr-share-state {
    font-size: 1.65rem;
  }

  .pr-personalized-bridge {
    font-size: 0.83rem;
    padding: 14px 16px;
  }

  .pr-email-input {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .pr-group-card {
    min-width: 100%;
  }

  .gx-path-guide-card {
    min-width: 100%;
    max-width: 100%;
  }

  .gx-path-guide-heading {
    font-size: 1.25rem;
  }
}

/* ── Archetype / Character Selection ─────────────────────────── */
.arch-selection-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 72px 24px 80px;
  background: #0b0c0f;
}
.arch-step-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: rgba(201,174,113,0.5);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.arch-question-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: #e8e4dc;
  text-align: center;
  max-width: 640px;
  margin-bottom: 14px;
  line-height: 1.3;
}
.arch-not-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(232,228,220,0.36);
  text-align: center;
  margin-bottom: 52px;
  max-width: 440px;
  font-style: italic;
}

/* ── Step 1: Pillar Selection Grid ── */
.arch-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 860px;
}
.arch-pillar-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.arch-pillar-card:hover {
  border-color: rgba(201,174,113,0.45);
  background: rgba(201,174,113,0.04);
  transform: translateY(-3px);
}
.arch-pillar-sym-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,174,113,0.03);
  border-bottom: 1px solid rgba(201,174,113,0.08);
  transition: background 0.3s ease;
  overflow: hidden;
}
/* Transparent symbol PNGs — circular emblems are nearly square,
   so size them by height (the wrapper's limiting dimension at 16:9)
   and let object-fit keep the aspect ratio. */
.arch-pillar-sym-wrap .arch-pillar-sym-img {
  max-height: 92%;
  max-width: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  opacity: 0.78;
  filter: drop-shadow(0 2px 6px rgba(198, 161, 91, 0.18));
}
.arch-pillar-card:hover .arch-pillar-sym-wrap {
  background: rgba(201,174,113,0.065);
}
.arch-pillar-card:hover .arch-pillar-sym-wrap .arch-pillar-sym-img {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 3px 10px rgba(198, 161, 91, 0.32));
}
.arch-pillar-info {
  padding: 20px 22px 24px;
}
.arch-pillar-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #e8e4dc;
  margin-bottom: 6px;
}
.arch-pillar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: rgba(232,228,220,0.42);
  line-height: 1.6;
}

/* ── Step 2: Character Portrait Grid ── */
.arch-cards-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #e8e4dc;
  text-align: center;
  margin-bottom: 10px;
}
.arch-cards-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(232,228,220,0.4);
  text-align: center;
  margin-bottom: 50px;
  max-width: 500px;
}
.arch-permanence-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,174,113,0.07);
  border: 1px solid rgba(201,174,113,0.22);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(201,174,113,0.85);
  text-align: left;
  max-width: 600px;
  margin-bottom: 22px;
}
.arch-permanence-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.75;
}
.arch-char-pillar-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,174,113,0.55);
  margin-bottom: 4px;
}
.arch-gallery-section {
  width: 100%;
  max-width: 960px;
  margin-bottom: 42px;
}
.arch-gallery-header {
  margin-bottom: 14px;
  border-left: 2px solid rgba(201,174,113,0.4);
  padding-left: 12px;
}
.arch-gallery-arch-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #e8e4dc;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.arch-gallery-arch-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(232,228,220,0.42);
  font-style: italic;
  letter-spacing: 0.01em;
}
.arch-char-grid {
  display: flex;
  flex-direction: row;
  gap: 22px;
  width: 100%;
  max-width: 960px;
  justify-content: center;
  flex-wrap: wrap;
}
.arch-char-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  width: 280px;
  cursor: pointer;
  transition: border-color 0.24s ease, transform 0.24s ease;
  display: flex;
  flex-direction: column;
}
.arch-char-card:hover {
  border-color: rgba(201,174,113,0.38);
  transform: translateY(-4px);
}
.arch-char-card.arch-char-selected {
  border-color: rgba(201,174,113,0.75);
  box-shadow: 0 0 0 1px rgba(201,174,113,0.25);
}
.arch-char-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.arch-char-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.82);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.arch-char-card:hover .arch-char-img {
  filter: brightness(0.95);
  transform: scale(1.03);
}
.arch-char-info {
  padding: 18px 20px 4px;
}
.arch-char-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #e8e4dc;
  margin-bottom: 6px;
  line-height: 1.2;
}
.arch-char-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: rgba(201,174,113,0.6);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2px;
}
.arch-back-btn {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(232,228,220,0.28);
  cursor: pointer;
  margin-top: 44px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
  padding: 8px 0;
}
.arch-back-btn:hover { color: rgba(232,228,220,0.6); }

/* ── Step 3: Confirmation ── */
.arch-confirm-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0c0f;
  overflow: hidden;
}
.arch-confirm-img-wrap {
  position: absolute;
  inset: 0;
}
.arch-confirm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.35);
}
.arch-confirm-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.arch-confirm-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(201,174,113,0.6);
  margin-bottom: 20px;
}
.arch-confirm-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #e8e4dc;
  margin-bottom: 24px;
  line-height: 1.15;
}
.arch-confirm-divider {
  width: 40px;
  height: 1px;
  background: rgba(201,174,113,0.45);
  margin: 0 auto 24px;
}
.arch-confirm-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(232,228,220,0.28);
  letter-spacing: 0.06em;
}

/* Portrait selection scroll */
.arch-portrait-scroll {
  display: flex;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  padding: 16px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,174,113,0.3) transparent;
  cursor: grab;
  user-select: none;
}
.arch-portrait-scroll:active { cursor: grabbing; }
.arch-portrait-scroll::-webkit-scrollbar { height: 4px; }
.arch-portrait-scroll::-webkit-scrollbar-track { background: transparent; }
.arch-portrait-scroll::-webkit-scrollbar-thumb { background: rgba(201,174,113,0.25); border-radius: 2px; }

.arch-portrait-item {
  flex: 0 0 auto;
  width: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.03);
}
.arch-portrait-item:hover {
  border-color: rgba(201,174,113,0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.arch-portrait-item.arch-portrait-selected {
  border-color: #c9ae71;
  box-shadow: 0 0 0 3px rgba(201,174,113,0.22), 0 10px 32px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.arch-portrait-img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 700px) {
  .arch-pillar-grid { grid-template-columns: 1fr; }
  .arch-char-grid { flex-direction: column; align-items: center; }
  .arch-char-card { width: 100%; max-width: 360px; }
  .arch-question-heading { font-size: 1.6rem; }
  .arch-cards-heading { font-size: 1.6rem; }
  .arch-confirm-name { font-size: 2rem; }
  .arch-portrait-item { width: 140px; }
}

/* =========================================================
   INNER COMPASS: DRAG SLIDER
   ========================================================= */
.pr-slider-wrap {
  width: 100%;
  max-width: 440px;
  margin: 24px auto 0;
  padding: 0 4px;
}

.pr-slider-current-label {
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pr-slider-hint {
  font-size: 0.75rem;
  color: rgba(232,228,220,0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pr-slider-level-name {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.pr-slider-level-0 { color: #98C379; }
.pr-slider-level-1 { color: #a8c98a; }
.pr-slider-level-2 { color: #D4AF37; }
.pr-slider-level-3 { color: #e08c4a; }
.pr-slider-level-4 { color: #E06C75; }

.pr-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(152,195,121,0.5) 0%,
    rgba(212,175,55,0.5) 50%,
    rgba(224,108,117,0.5) 100%);
  outline: none;
  cursor: pointer;
  margin: 0;
}

.pr-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8e4dc;
  cursor: grab;
  border: 2px solid rgba(11,12,15,0.6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(212,175,55,0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pr-range-input::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 4px 18px rgba(0,0,0,0.6), 0 0 0 6px rgba(212,175,55,0.18);
}

.pr-range-input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8e4dc;
  cursor: grab;
  border: 2px solid rgba(11,12,15,0.6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.pr-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.pr-scale-label {
  font-size: 0.65rem;
  color: rgba(232,228,220,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pr-slider-confirming .pr-range-input::-webkit-slider-thumb {
  box-shadow: 0 0 0 8px rgba(212,175,55,0.25);
  transition: box-shadow 0.3s ease;
}

/* =========================================================
   INNER COMPASS — PARCHMENT MODE OVERRIDES
   The Inner Compass now runs on body.realm-inner-compass
   (an aged-ivory background). The default radar styles
   were written for a dark theme — invisible on parchment.
   These rules restore legibility without affecting the
   dark-theme standalone uses (Kumaya Insight, etc.).
   ========================================================= */
body.realm-inner-compass .pr-slider-hint {
  color: rgba(36, 50, 74, 0.65);
}
body.realm-inner-compass .pr-scale-label {
  color: rgba(36, 50, 74, 0.72);
  font-weight: 500;
}
/* Vertical tick marks above each scale label so the 5 discrete
   stops are visually obvious as positions on the track. */
body.realm-inner-compass .pr-scale-label {
  position: relative;
  padding-top: 10px;
}
body.realm-inner-compass .pr-scale-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 6px;
  background: rgba(36, 50, 74, 0.4);
  transform: translateX(-50%);
}
body.realm-inner-compass .pr-range-input {
  background: linear-gradient(90deg,
    rgba(152, 195, 121, 0.85) 0%,
    rgba(198, 161, 91, 0.85) 50%,
    rgba(224, 108, 117, 0.85) 100%);
  height: 8px;
  border-radius: 4px;
}
body.realm-inner-compass .pr-range-input::-webkit-slider-thumb {
  background: #F5F0E6;
  border: 2px solid #24324A;
  box-shadow: 0 2px 12px rgba(36, 50, 74, 0.35);
  width: 36px;
  height: 36px;
}
body.realm-inner-compass .pr-range-input::-webkit-slider-thumb:active {
  box-shadow: 0 4px 18px rgba(36, 50, 74, 0.45),
              0 0 0 8px rgba(198, 161, 91, 0.28);
}
body.realm-inner-compass .pr-range-input::-moz-range-thumb {
  background: #F5F0E6;
  border: 2px solid #24324A;
  box-shadow: 0 2px 12px rgba(36, 50, 74, 0.35);
}

/* Email capture screen — the input and skip button were both
   invisible on parchment (cream text on cream background). */
body.realm-inner-compass .pr-email-input {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(36, 50, 74, 0.35);
  color: #24324A;
  font-size: 1rem;
}
body.realm-inner-compass .pr-email-input::placeholder {
  color: rgba(36, 50, 74, 0.45);
}
body.realm-inner-compass .pr-email-input:focus {
  border-color: #C6A15B;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}
body.realm-inner-compass .pr-email-skip {
  color: rgba(36, 50, 74, 0.7);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(198, 161, 91, 0.55);
  letter-spacing: 0.04em;
  padding: 8px 14px;
}
body.realm-inner-compass .pr-email-skip:hover,
body.realm-inner-compass .pr-email-skip:focus-visible {
  color: #24324A;
  text-decoration-color: #C6A15B;
}

/* =========================================================
   INNER COMPASS: CATEGORY TRANSITION SCREENS
   ========================================================= */
@keyframes prCatEnterKf {
  0% { opacity: 0; transform: scale(0.94); }
  30% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.pr-cat-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  animation: prCatEnterKf 1.8s ease forwards;
}

.pr-cat-transition-inner {
  text-align: center;
  padding: 40px 24px;
}

.pr-cat-transition-num {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.5);
  margin-bottom: 12px;
}

.pr-cat-transition-entering {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.35);
  margin-bottom: 10px;
}

.pr-cat-transition-name {
  font-size: 2.4rem;
  font-weight: 700;
  color: #e8e4dc;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* =========================================================
   INNER COMPASS: LIVE NERVOUS SYSTEM BAR
   ========================================================= */
.pr-live-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.pr-live-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #98C379, #D4AF37, #E06C75);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================================
   INNER COMPASS: ATMOSPHERIC OVERLAY
   ========================================================= */
.pr-atmosphere-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 2s ease;
  background: transparent;
}

/* =========================================================
   INNER COMPASS: RAPID SCAN
   ========================================================= */
.pr-rapid-timer {
  font-size: 1rem;
  font-weight: 700;
  color: #D4AF37;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
  transition: color 0.3s ease;
}

.pr-rapid-timer.pr-rapid-urgent {
  color: #E06C75;
  animation: rapidPulse 0.5s ease infinite alternate;
}

@keyframes rapidPulse {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

.pr-rapid-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(224,108,117,0.15);
  color: #E06C75;
  border: 1px solid rgba(224,108,117,0.3);
  border-radius: 3px;
  padding: 2px 5px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
}

.pr-rapid-icon {
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #E06C75;
}

.pr-mode-card-rapid {
  border-color: rgba(224,108,117,0.25) !important;
}

.pr-mode-card-rapid:hover {
  border-color: rgba(224,108,117,0.5) !important;
}

.pr-rapid-mode-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(224,108,117,0.7);
  margin-left: 8px;
  vertical-align: middle;
}

/* =========================================================
   INNER COMPASS: ENVIRONMENT — Sacred Library Constellation
   The launched game stays inside the same chamber as the entry,
   so palette never breaks. Tokens only:
   #24324A indigo · #35506B night-sky · #F5F0E6 ivory ·
   #DDD2BF parchment · #C6A15B gold · #A86A3A ember
   ========================================================= */
/* =========================================================
   INNER COMPASS — CARTOGRAPHER'S ATELIER (in-game)
   Cream parchment chamber that persists from entry through scan
   through results. Distinct from the Game Room's indigo Constellation.
   Palette: #24324A indigo · #35506B night-sky · #F5F0E6 ivory ·
            #DDD2BF parchment · #C6A15B brass · #A86A3A ember
   ========================================================= */
body.ic-game-active {
  background: #F5F0E6;
  color: #24324A;
}

body.ic-game-active .gx-game-root,
body.ic-game-active .gx-screen {
  background: transparent;
}

/* Vellum noise + soft warm-light wash across the whole chamber */
body.ic-game-active::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 22%, rgba(245,240,230,0.9) 0%, rgba(245,240,230,0) 75%),
    radial-gradient(ellipse 90% 65% at 50% 115%, rgba(198,161,91,0.08) 0%, rgba(245,240,230,0) 65%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  background-blend-mode: normal, normal, multiply;
  opacity: 1;
}
body.ic-game-active .gx-game-root,
body.ic-game-active #ic-game-wrapper { position: relative; z-index: 1; }

/* Headings + body copy — indigo ink, larger by default */
body.ic-game-active .gx-screen-title,
body.ic-game-active .gx-scene-title {
  color: #24324A;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
body.ic-game-active .gx-reflection-text,
body.ic-game-active .gx-screen-text {
  color: rgba(36,50,74,0.82);
  font-size: clamp(1rem, 1.7vw, 1.15rem) !important;
  line-height: 1.7;
}
body.ic-game-active .gx-screen-inner {
  max-width: 720px;
}

/* =========================================================
   INNER COMPASS: RADAR VISUAL — brass on parchment
   ========================================================= */
body.ic-game-active .pr-radar-visual { filter: drop-shadow(0 8px 18px rgba(36,50,74,0.12)); }
body.ic-game-active .pr-ring        { border-color: rgba(36,50,74,0.18); }
body.ic-game-active .pr-ring-1      { border-color: rgba(198,161,91,0.55); }
body.ic-game-active .pr-ring-2      { border-color: rgba(198,161,91,0.32); }
body.ic-game-active .pr-ring-3      { border-color: rgba(198,161,91,0.18); }

body.ic-game-active .pr-center-dot {
  background: radial-gradient(circle at 35% 30%, #F5F0E6 0%, #C6A15B 55%, #A86A3A 100%);
  box-shadow: 0 0 18px rgba(198,161,91,0.55), 0 0 36px rgba(198,161,91,0.22);
}

/* =========================================================
   INNER COMPASS: MODE SELECTOR — Atelier card tiles
   Parchment-cream tiles with brass borders, indigo type,
   gold edge-light on hover. Larger type per brief.
   ========================================================= */
body.ic-game-active .pr-mode-card {
  background: linear-gradient(160deg, rgba(245,240,230,0.92) 0%, rgba(221,210,191,0.55) 100%);
  border: 1px solid rgba(198,161,91,0.45);
  border-radius: 4px;
  color: #24324A;
  box-shadow: 0 10px 24px -8px rgba(36,50,74,0.18), inset 0 1px 0 rgba(245,240,230,0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
body.ic-game-active .pr-mode-card:hover {
  background: linear-gradient(160deg, rgba(245,240,230,1) 0%, rgba(221,210,191,0.75) 100%);
  border-color: rgba(198,161,91,0.95);
  box-shadow: 0 14px 30px -10px rgba(36,50,74,0.25), 0 0 18px rgba(198,161,91,0.28), inset 0 1px 0 rgba(245,240,230,0.8);
  transform: translateY(-1px);
}
body.ic-game-active .pr-mode-card-icon {
  color: #C6A15B;
  background: rgba(198,161,91,0.10);
  border: 1px solid rgba(198,161,91,0.45);
}
body.ic-game-active .pr-mode-card-title {
  color: #24324A;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem !important;
  font-weight: 500;
  letter-spacing: 0.03em;
}
body.ic-game-active .pr-mode-card-desc {
  color: rgba(36,50,74,0.78);
  font-size: 0.95rem !important;
  line-height: 1.55;
}
body.ic-game-active .pr-mode-card-arrow {
  color: rgba(198,161,91,0.7);
}
body.ic-game-active .pr-mode-card:hover .pr-mode-card-arrow {
  color: #A86A3A;
}
/* Rapid card uses a quiet ember accent (sparing per brief) */
body.ic-game-active .pr-mode-card-rapid {
  border-color: rgba(168,106,58,0.55) !important;
}
body.ic-game-active .pr-mode-card-rapid:hover {
  border-color: rgba(168,106,58,0.95) !important;
  box-shadow: 0 14px 30px -10px rgba(36,50,74,0.25), 0 0 22px rgba(168,106,58,0.32), inset 0 1px 0 rgba(245,240,230,0.8);
}
body.ic-game-active .pr-rapid-badge,
body.ic-game-active .pr-rapid-mode-tag {
  color: rgba(168,106,58,0.95);
  background: rgba(168,106,58,0.08);
  border: 1px solid rgba(168,106,58,0.3);
}

/* =========================================================
   INNER COMPASS: MODE CARD STAGGER ANIMATION
   ========================================================= */
@keyframes prCardEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pr-mode-card-stagger {
  opacity: 0;
  animation: prCardEnter 0.38s ease-out forwards;
}

/* Selection flash — gold instead of violet */
@keyframes prModeSelectFlash {
  0%   { border-color: rgba(198,161,91,0.32); }
  40%  { border-color: rgba(198,161,91,0.95); box-shadow: 0 0 26px rgba(198,161,91,0.45), inset 0 0 0 1px rgba(245,240,230,0.4); }
  100% { border-color: rgba(198,161,91,0.7);  box-shadow: 0 0 18px rgba(198,161,91,0.3); }
}

.pr-mode-selecting {
  animation: prModeSelectFlash 0.38s ease-out forwards !important;
  opacity: 1 !important;
  transform: scale(1.015);
  transition: transform 0.2s ease;
}

.pr-mode-faded {
  opacity: 0.25 !important;
  transition: opacity 0.28s ease;
}

/* =========================================================
   INNER COMPASS: CATEGORY TRANSITION COLORS
   ========================================================= */
.pr-cat-enter {
  position: relative;
  overflow: hidden;
}

.pr-cat-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: prCatBgReveal 2s ease forwards;
}

@keyframes prCatBgReveal {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Category accent halos — re-tinted to Sacred Library tokens.
   Each category gets a different mix of indigo / night-sky / parchment / gold / ember
   so they remain distinguishable without leaving the 6-token palette. */
.pr-cat-world::before    { background: radial-gradient(ellipse at 50% 40%, rgba(53,80,107,0.32) 0%, transparent 65%); }
.pr-cat-money::before    { background: radial-gradient(ellipse at 50% 40%, rgba(198,161,91,0.22) 0%, transparent 65%); }
.pr-cat-people::before   { background: radial-gradient(ellipse at 50% 40%, rgba(168,106,58,0.18) 0%, transparent 65%); }
.pr-cat-noise::before    { background: radial-gradient(ellipse at 50% 40%, rgba(221,210,191,0.16) 0%, transparent 65%); }
.pr-cat-unknown::before  { background: radial-gradient(ellipse at 50% 40%, rgba(245,240,230,0.10) 0%, transparent 65%); }

/* Category accent text color — token-only family */
.pr-cat-world    .pr-cat-transition-name { color: rgba(221,210,191,0.92); }
.pr-cat-money    .pr-cat-transition-name { color: rgba(198,161,91,0.95); }
.pr-cat-people   .pr-cat-transition-name { color: rgba(168,106,58,0.95); }
.pr-cat-noise    .pr-cat-transition-name { color: rgba(245,240,230,0.92); }
.pr-cat-unknown  .pr-cat-transition-name { color: rgba(221,210,191,0.78); }

/* Decorative line below category name */
.pr-cat-transition-line {
  width: 0;
  height: 1px;
  margin: 18px auto 0;
  animation: prCatLineGrow 0.7s ease 0.4s forwards;
}
@keyframes prCatLineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

.pr-cat-world    .pr-cat-transition-line { background: rgba(221,210,191,0.45); }
.pr-cat-money    .pr-cat-transition-line { background: rgba(198,161,91,0.55); }
.pr-cat-people   .pr-cat-transition-line { background: rgba(168,106,58,0.5);  }
.pr-cat-noise    .pr-cat-transition-line { background: rgba(245,240,230,0.45); }
.pr-cat-unknown  .pr-cat-transition-line { background: rgba(221,210,191,0.4); }

/* Category label color on scan questions — gold token */
body.ic-game-active .pr-scan-category { color: rgba(198,161,91,0.7); }

/* Scan prompt — indigo on parchment for clear contrast */
body.ic-game-active .pr-scan-prompt {
  color: #24324A;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(245,240,230,0.6);
}

/* Breath ring — burnished gold tint in IC game */
body.ic-game-active .pr-breath-ring {
  border-color: rgba(198,161,91,0.18);
  box-shadow: 0 0 0 2px rgba(198,161,91,0.06);
}

/* =========================================================
   INNER COMPASS — REFINED QUESTION LAYOUT
   The scan question screen is composed of three vertical
   blocks separated by generous whitespace:
     1. Header strip (counter + thin progress rule)
     2. Route compass (chamber dots)
     3. Question card — a rectangular parchment plate that
        owns the prompt
     4. Controls card — the slider with its scale, beneath
   ========================================================= */
.pr-question-screen {
  /* anchor everything to a calm vertical rhythm */
  padding-top: clamp(12px, 3vh, 28px);
  padding-bottom: clamp(20px, 4vh, 40px);
}
.pr-question-inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.2vh, 36px);
}

/* The question card — clean rectangle, parchment surface, brass hairline */
body.ic-game-active .pr-q-card,
body.realm-inner-compass .pr-q-card {
  background: linear-gradient(180deg, rgba(251,246,236,0.96) 0%, rgba(245,240,230,0.92) 100%);
  border: 1px solid rgba(198,161,91,0.32);
  border-radius: 6px;
  padding: clamp(28px, 4.5vh, 44px) clamp(22px, 4vw, 38px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 18px 40px -28px rgba(36,50,74,0.35),
    0 2px 6px rgba(36,50,74,0.06);
  text-align: center;
  /* corner brass ornaments */
  position: relative;
}
body.ic-game-active .pr-q-card::before,
body.ic-game-active .pr-q-card::after,
body.realm-inner-compass .pr-q-card::before,
body.realm-inner-compass .pr-q-card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(198,161,91,0.45);
  pointer-events: none;
}
body.ic-game-active .pr-q-card::before,
body.realm-inner-compass .pr-q-card::before {
  top: 8px; left: 8px;
  border-right: none; border-bottom: none;
}
body.ic-game-active .pr-q-card::after,
body.realm-inner-compass .pr-q-card::after {
  bottom: 8px; right: 8px;
  border-left: none; border-top: none;
}

/* When the card owns the layout, drop the prompt's old margins
   so the card padding controls all internal spacing. */
body.ic-game-active .pr-q-card .pr-scan-category,
body.realm-inner-compass .pr-q-card .pr-scan-category {
  margin: 0 0 14px;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(198,161,91,0.85);
}
body.ic-game-active .pr-q-card .pr-scan-prompt,
body.realm-inner-compass .pr-q-card .pr-scan-prompt {
  margin: 0 auto;
  max-width: 480px;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.55;
  color: #1A2335;
  font-weight: 500;
  text-shadow: none;
}

/* Controls card — sits below the question card with its own breathing room */
body.ic-game-active .pr-q-controls,
body.realm-inner-compass .pr-q-controls {
  background: rgba(245,240,230,0.6);
  border: 1px solid rgba(198,161,91,0.22);
  border-radius: 6px;
  padding: clamp(20px, 3vh, 28px) clamp(20px, 4vw, 32px);
}
body.ic-game-active .pr-q-controls .pr-slider-wrap,
body.realm-inner-compass .pr-q-controls .pr-slider-wrap {
  margin: 0;
}

/* Hide the busy breath ring on question screens — the card carries focus now */
body.ic-game-active .pr-question-screen .pr-breath-ring,
body.realm-inner-compass .pr-question-screen .pr-breath-ring { display: none; }

/* Tighten the route compass against the header on question screens */
.pr-question-screen .pr-route-compass {
  margin-top: 4px;
}

/* =========================================================
   INNER COMPASS: NAMED PATTERN IDENTITY
   ========================================================= */
.pr-pattern-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198,161,91,0.85);
  margin: -6px 0 16px;
  animation: cinematicFade 0.8s ease 0.4s both;
}

.pr-pattern-desc {
  font-size: 0.82rem;
  color: rgba(232,228,220,0.45);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px;
  text-align: center;
  animation: cinematicFade 0.8s ease 0.6s both;
}

.pr-results-mode-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168,106,58,0.95);
  margin-left: 8px;
  vertical-align: middle;
}

/* =========================================================
   WHEEL OF LIFE: WINNER REVEAL
   ========================================================= */
@keyframes wolWinnerIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  60% { opacity: 1; transform: scale(1.04) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.wol-winner-reveal-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.wol-winner-flash {
  text-align: center;
  padding: 40px 24px;
  animation: wolWinnerIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wol-winner-flash-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.6);
  margin-bottom: 14px;
}

.wol-winner-flash-name {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 700;
  color: #e8e4dc;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.wol-winner-flash-score {
  font-size: 1.1rem;
  color: rgba(212,175,55,0.75);
  font-weight: 500;
}

/* =========================================================
   THE WHEEL OF LIVING
   ========================================================= */
.wlv-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,174,113,0.8);
  border: 1px solid rgba(201,174,113,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.wlv-setup-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.wlv-setup-row { display: flex; align-items: center; gap: 12px; }
.wlv-pnum {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,228,220,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: rgba(232,228,220,0.5);
  flex-shrink: 0;
}
.wlv-setup-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,228,220,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(232,228,220,0.85);
  outline: none;
  transition: border-color 0.2s;
}
.wlv-setup-input:focus { border-color: rgba(201,174,113,0.4); }
.wlv-setup-input::placeholder { color: rgba(232,228,220,0.25); }

.wlv-add-btn {
  background: none;
  border: 1px dashed rgba(232,228,220,0.2);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(232,228,220,0.4);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.wlv-add-btn:hover { border-color: rgba(201,174,113,0.4); color: rgba(201,174,113,0.7); }

.wlv-rounds-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.35);
  margin-bottom: 10px;
}
.wlv-rounds-row { display: flex; gap: 8px; }
.wlv-round-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,228,220,0.12);
  border-radius: 8px;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(232,228,220,0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.wlv-round-btn:hover { background: rgba(255,255,255,0.07); }
.wlv-round-active {
  background: rgba(201,174,113,0.12) !important;
  border-color: rgba(201,174,113,0.45) !important;
  color: rgba(201,174,113,0.9) !important;
}

/* Game Layout */
.wlv-game-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 12px;
  min-height: 100%;
}
.wlv-scoreboard { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.wlv-score-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 8px;
  padding: 7px 18px;
  text-align: center;
  transition: border-color 0.3s;
}
.wlv-score-active { border-color: rgba(201,174,113,0.4) !important; }
.wlv-score-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.38);
  margin-bottom: 2px;
}
.wlv-score-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: rgba(201,174,113,0.85);
  line-height: 1;
}
.wlv-msg-banner {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(232,228,220,0.5);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 10px;
  text-align: center;
}
.wlv-turn-info { text-align: center; margin-bottom: 16px; }
.wlv-whose-turn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: rgba(232,228,220,0.8);
  margin-bottom: 2px;
}
.wlv-turn-progress {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.3);
}

/* Wheel */
.wlv-wheel-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.wlv-pointer {
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid #c9ae71;
  margin-bottom: -2px;
  filter: drop-shadow(0 2px 6px rgba(201,174,113,0.5));
  z-index: 2;
}
.wlv-canvas {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 80px rgba(0,0,0,0.3), 0 0 0 2px rgba(201,174,113,0.15);
}
.wlv-spin-btn {
  background: linear-gradient(135deg, #c9ae71, #a08a4a);
  color: #09090d;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 50%;
  width: 86px; height: 86px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,174,113,0.4), 0 0 0 4px rgba(201,174,113,0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wlv-spin-btn:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(201,174,113,0.6), 0 0 0 6px rgba(201,174,113,0.15); }
.wlv-spin-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

/* Board */
.wlv-board-header {
  padding: 18px 20px 14px;
  text-align: center;
  border-bottom: 3px solid;
}
.wlv-board-pillar-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.wlv-board-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(232,228,220,0.45);
}
.wlv-board { padding: 14px 12px; max-width: 500px; margin: 0 auto; }
.wlv-board-row { display: grid; grid-template-columns: 48px 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; align-items: center; }
.wlv-cat-row { margin-bottom: 8px; }
.wlv-cat-cell {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.38);
  text-align: center;
  padding: 3px;
}
.wlv-board-val-cell {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 600;
}
.wlv-tile {
  min-height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.wlv-tile:hover:not(:disabled) { background: rgba(255,255,255,0.08); border-color: rgba(201,174,113,0.35); transform: scale(1.04); }
.wlv-tile-pts { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.wlv-tile-used { opacity: 0.15; cursor: default; border-style: dashed; }

/* Question */
.wlv-q-screen { padding: 22px 16px; max-width: 520px; margin: 0 auto; }
.wlv-q-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.wlv-q-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.32;
  color: rgba(232,228,220,0.92);
  margin-bottom: 26px;
}
.wlv-options { display: flex; flex-direction: column; gap: 9px; }
.wlv-option-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 8px;
  padding: 13px 16px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(232,228,220,0.75);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  line-height: 1.45;
}
.wlv-option-btn:hover:not(:disabled) { background: rgba(255,255,255,0.07); border-color: rgba(201,174,113,0.3); transform: translateX(3px); }
.wlv-option-correct { background: rgba(91,173,111,0.14) !important; border-color: rgba(91,173,111,0.5) !important; color: #82dfa0 !important; }
.wlv-option-wrong { background: rgba(224,108,117,0.1) !important; border-color: rgba(224,108,117,0.35) !important; color: rgba(224,108,117,0.75) !important; }
.wlv-option-reveal { background: rgba(91,173,111,0.07) !important; border-color: rgba(91,173,111,0.3) !important; }

/* Reveal */
.wlv-reveal-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(232,228,220,0.08); }
.wlv-reveal-correct-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fd89a;
  margin-bottom: 8px;
}
.wlv-reveal-wrong-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224,108,117,0.8);
  margin-bottom: 8px;
}
.wlv-reveal-answer {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(232,228,220,0.7);
  background: rgba(91,173,111,0.07);
  border: 1px solid rgba(91,173,111,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.wlv-reveal-insight {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(232,228,220,0.62);
  line-height: 1.55;
  margin-bottom: 14px;
}
.wlv-points-award {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  text-align: center;
  margin-bottom: 18px;
}

/* Final Screen */
.wlv-final-screen { padding: 36px 24px; max-width: 480px; margin: 0 auto; text-align: center; }
.wlv-final-scores { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.wlv-final-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,228,220,0.1);
  border-radius: 10px;
  padding: 12px 18px;
}
.wlv-final-winner {
  background: rgba(201,174,113,0.08) !important;
  border-color: rgba(201,174,113,0.35) !important;
}
.wlv-final-rank {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.35);
  width: 30px;
}
.wlv-final-winner .wlv-final-rank { color: rgba(201,174,113,0.7); }
.wlv-final-name { flex: 1; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: rgba(232,228,220,0.75); text-align: left; }
.wlv-final-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: rgba(201,174,113,0.8);
}

/* =========================================================
   CRT: STREAK COUNTER
   ========================================================= */
.prep-streak {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #98C379;
  background: rgba(152,195,121,0.1);
  border: 1px solid rgba(152,195,121,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  animation: cinematicFade 0.3s ease;
}

.prep-streak-flash {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #98C379;
  margin-left: 8px;
  animation: cinematicFade 0.4s ease;
}

.prep-streak-result {
  display: inline-block;
  font-size: 0.82rem;
  color: rgba(152,195,121,0.8);
  background: rgba(152,195,121,0.08);
  border: 1px solid rgba(152,195,121,0.2);
  border-radius: 6px;
  padding: 8px 16px;
  margin: 0 auto 16px;
  text-align: center;
}

/* =========================================================
   BODY MAP — AURORA FIELD
   ========================================================= */
.gx-screen.bm-aurora-host {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  overflow: hidden;
}

.bm-aurora-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2e082b 0%, #5d1c3a 35%, #b55048 70%, #d88965 100%);
  z-index: 0;
  pointer-events: none;
}

/* Back Home link, top-left of every Body Map screen. Sits on top of the
   Aurora gradient — translucent white pill, subtle blur, no contrast
   against the deep plum so it never competes with the practice itself. */
.bm-aurora-back-home {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 9px 16px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.bm-aurora-back-home:hover,
.bm-aurora-back-home:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.bm-aurora-back-home-arrow {
  font-size: 0.85rem;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-1px);
}
@media (max-width: 380px) {
  .bm-aurora-back-home {
    top: 12px;
    left: 12px;
    padding: 8px 14px 8px 12px;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
  }
}

.bm-aurora-host .bm-aurora-title,
.bm-aurora-host .bm-aurora-pattern-title,
.bm-aurora-host .bm-aurora-sheet-title {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
}

.bm-aurora-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 48px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.bm-aurora-title {
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 28px;
}

.bm-aurora-intro-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  margin: 0 auto 40px;
  max-width: 320px;
}

.bm-aurora-begin-btn {
  appearance: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.bm-aurora-begin-btn:hover { background: rgba(255,255,255,0.2); }

.bm-aurora-map-screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 28px;
  min-height: 100vh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.bm-aurora-prompt {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  line-height: 1.55;
  margin: 8px 24px 4px;
}

.bm-aurora-subprompt {
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  margin: 0 24px 24px;
  letter-spacing: 0.02em;
}

.bm-aurora-body-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* Body is locked to the silhouette image's intrinsic aspect ratio
   (768 × 1408) so that absolutely-positioned hit-points expressed as
   top/left percentages map directly onto anatomical landmarks of the
   silhouette — no longer drifting because the image was contained in
   a wider/taller box than the dots' coordinate system assumed. */
.bm-aurora-body {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 65vh;
  aspect-ratio: 768 / 1408;
  margin: 0 auto;
}

.bm-aurora-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bm-aurora-hit {
  position: absolute;
  transform: translate(-50%, -50%);
}

.bm-aurora-dot {
  appearance: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
}
.bm-aurora-dot:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

.bm-aurora-dot-core {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.bm-aurora-hit[data-level] .bm-aurora-dot-core {
  width: 8px;
  height: 8px;
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.6);
}

.bm-aurora-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  z-index: 1;
}
.bm-aurora-hit[data-level="Light"] .bm-aurora-glow {
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(254,215,170,0.7) 0%, rgba(251,191,36,0.3) 45%, transparent 75%);
  filter: blur(10px);
  animation: bmAuroraPulseLight 5s ease-in-out infinite;
  opacity: 1;
}
.bm-aurora-hit[data-level="Present"] .bm-aurora-glow {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(251,146,60,0.85) 0%, rgba(244,114,182,0.4) 45%, transparent 75%);
  filter: blur(12px);
  animation: bmAuroraPulsePresent 4s ease-in-out infinite;
  opacity: 1;
}
.bm-aurora-hit[data-level="Intense"] .bm-aurora-glow {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(236,72,153,0.95) 0%, rgba(139,92,246,0.55) 45%, transparent 75%);
  filter: blur(16px);
  animation: bmAuroraPulseIntense 3s ease-in-out infinite alternate;
  opacity: 1;
}

@keyframes bmAuroraPulseLight {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.55; }
  50%  { transform: translate(-50%, -50%) scale(1.08); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.55; }
}
@keyframes bmAuroraPulsePresent {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.7;  }
  50%  { transform: translate(-50%, -50%) scale(1.14); opacity: 0.9;  }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7;  }
}
@keyframes bmAuroraPulseIntense {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
  50%  { transform: translate(-50%, -50%) scale(1.22); opacity: 1;    }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
}

.bm-aurora-chip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.bm-aurora-chip-right { left: calc(100% + 4px); }
.bm-aurora-chip-left  { right: calc(100% + 4px); }
.bm-aurora-hit[data-level] .bm-aurora-chip { opacity: 1; }

.bm-aurora-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 0 24px;
}

.bm-aurora-primary-btn {
  appearance: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 24px;
  width: 100%;
  max-width: 360px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}
.bm-aurora-primary-btn:hover { background: rgba(255,255,255,0.2); }

.bm-aurora-clear-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 16px;
  transition: color 0.25s ease;
}
.bm-aurora-clear-btn:hover { color: rgba(255,255,255,0.85); }

.bm-aurora-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: bmAuroraFadeIn 0.2s ease-out;
}
.bm-aurora-sheet-overlay[hidden] { display: none; }

@keyframes bmAuroraFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bm-aurora-sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 16px 16px;
  padding: 24px 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(58,14,54,0.96), rgba(93,28,58,0.96));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: bmAuroraSheetUp 0.25s ease-out;
}

@keyframes bmAuroraSheetUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bm-aurora-sheet-eyebrow {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 4px;
}

.bm-aurora-sheet-title {
  text-align: center;
  font-weight: 300;
  font-size: 1.55rem;
  color: #fff;
  margin: 0 0 18px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.bm-aurora-sheet-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.bm-aurora-sheet-opt {
  appearance: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bm-aurora-sheet-opt:hover { background: rgba(255,255,255,0.2); }
.bm-aurora-sheet-opt-selected {
  background: #fff;
  color: #3a0e36;
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.bm-aurora-sheet-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bm-aurora-sheet-meta {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.2s ease;
}
.bm-aurora-sheet-meta:hover { color: rgba(255,255,255,0.85); }
.bm-aurora-sheet-meta:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bm-aurora-results {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
}

.bm-aurora-results-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.bm-aurora-pattern-title {
  font-weight: 300;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: left;
}

.bm-aurora-pattern-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  text-align: left;
  margin: 0 0 32px;
}

.bm-result-zones {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 20px 0 28px;
  text-align: left;
}

.bm-result-zone-row {
  border-left: 1px solid rgba(255,255,255,0.22);
  padding: 6px 0 6px 16px;
  animation: cinematicFade 0.5s ease both;
}

.bm-result-zone-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bm-result-zone-intense {
  border-left-color: rgba(255,255,255,0.55);
}

.bm-result-zone-tag {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
}

.bm-result-zone-meaning {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  font-weight: 300;
}

@media (max-height: 720px) {
  .bm-aurora-intro { padding: 48px 32px 32px; }
  .bm-aurora-title { font-size: 2rem; margin-bottom: 20px; }
  .bm-aurora-intro-text { margin-bottom: 28px; }
  .bm-aurora-map-screen { padding: 20px 16px 20px; }
  .bm-aurora-prompt { font-size: 0.86rem; }
  .bm-aurora-subprompt { margin-bottom: 16px; }
  /* Body sizing is handled by aspect-ratio + max-height:65vh on the
     base rule — no override needed here. */
  .bm-aurora-actions { margin-top: 12px; gap: 6px; }
  .bm-aurora-primary-btn { padding: 13px 22px; }
}

@media (max-width: 380px) {
  .bm-aurora-body { max-width: 280px; }
  .bm-aurora-chip { font-size: 0.55rem; padding: 2px 6px; letter-spacing: 0.14em; }
}

/* =========================================================
   BREATHING GAME
   ========================================================= */
.bg-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 32px;
}

.bg-orb-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(152,195,121,0.3) 0%, rgba(152,195,121,0.06) 60%, transparent 100%);
  border: 1px solid rgba(152,195,121,0.3);
  animation: bgOrbPreview 4s ease-in-out infinite;
}

@keyframes bgOrbPreview {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; }
}

.bg-countdown-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.bg-countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  font-weight: 300;
  color: rgba(232,228,220,0.8);
  line-height: 1;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.bg-countdown-tick {
  transform: scale(0.88);
}

.bg-countdown-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.35);
}

.bg-game-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}

.bg-cycle-counter {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.35);
  margin-bottom: 48px;
}

.bg-orb-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.bg-guide-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(152,195,121,0.25);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.bg-orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(152,195,121,0.12) 0%, rgba(152,195,121,0.03) 70%, transparent 100%);
  border: 1.5px solid rgba(152,195,121,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.bg-orb-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(152,195,121,0.35) 0%, rgba(152,195,121,0.1) 60%, transparent 100%);
  transition: opacity 0.6s ease;
}

.bg-orb-held {
  border-color: rgba(152,195,121,0.8);
  box-shadow: 0 0 40px rgba(152,195,121,0.25), 0 0 80px rgba(152,195,121,0.1);
}

.bg-phase-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(232,228,220,0.85);
  letter-spacing: 0.04em;
  min-height: 44px;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
}

.bg-hold-hint {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(232,228,220,0.28);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.bg-sync-indicator {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 22px;
  transition: color 0.3s ease;
}

.bg-sync-on {
  color: #98C379;
}

.bg-sync-off {
  color: rgba(232,228,220,0.25);
}

.bg-score-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 24px auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-score-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-score-svg circle:last-child {
  transition: stroke-dasharray 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-score-num {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #D4AF37;
  z-index: 1;
}

/* Tool card visuals for new games */
.bm-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  position: relative;
  overflow: hidden;
}

.bm-card-figure {
  width: 48px;
  height: 80px;
  border-radius: 50% 50% 36% 36% / 36% 36% 28% 28%;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
  position: relative;
}

.bm-card-figure::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
  background: rgba(212,175,55,0.05);
}

.bg-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(152,195,121,0.08), rgba(152,195,121,0.02));
}

.bg-card-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(152,195,121,0.35);
  background: radial-gradient(ellipse at center, rgba(152,195,121,0.15) 0%, transparent 70%);
  animation: bgOrbPreview 3.5s ease-in-out infinite;
}

/* =========================================================
   EMAIL RESULTS SECTION (shared across all games)
   ========================================================= */
.er-section {
  margin: 24px 0 4px;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.er-label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.28);
  text-align: center;
  margin-bottom: 12px;
}

.er-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: stretch;
  max-width: 400px;
  margin: 0 auto;
}

.er-email-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 10px 14px;
  color: #e8e4dc;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.er-email-input:focus {
  border-color: rgba(212,175,55,0.45);
}

.er-email-input::placeholder {
  color: rgba(232,228,220,0.22);
}

.er-send-btn {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(201,174,113,0.75);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.er-send-btn:hover:not(:disabled) {
  border-color: rgba(212,175,55,0.75);
  color: #D4AF37;
}

.er-send-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.er-status {
  font-size: 0.72rem;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
  color: rgba(232,228,220,0.3);
}

.er-status-ok {
  color: #98C379;
}

.er-status-error {
  color: #E06C75;
}

/* ── Assessment Verify Section ── */
.av-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(232,228,220,0.06);
}

.av-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(232,228,220,0.7);
  text-align: center;
  margin-bottom: 5px;
}

.av-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(232,228,220,0.3);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
}

.av-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: stretch;
  max-width: 400px;
  margin: 0 auto;
}

.av-email-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 10px 14px;
  color: #e8e4dc;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.av-email-input:focus {
  border-color: rgba(212,175,55,0.4);
}

.av-email-input::placeholder {
  color: rgba(232,228,220,0.2);
}

.av-verify-btn {
  background: transparent;
  border: 1px solid rgba(201,174,113,0.35);
  color: rgba(201,174,113,0.75);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.av-verify-btn:hover:not(:disabled) {
  border-color: rgba(201,174,113,0.8);
  color: #c9ae71;
}

.av-verify-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.av-msg {
  font-size: 0.72rem;
  margin-top: 8px;
  text-align: center;
  min-height: 16px;
  color: rgba(232,228,220,0.3);
}

.av-attempt2 {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(232,228,220,0.04);
}

.av-retry-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(232,228,220,0.4);
  text-align: center;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════
   INSIGHT SUITE — Clarity Suite games
══════════════════════════════════════════════════════ */
.is-game-icon {
  font-size: 2.4rem;
  color: rgba(201, 174, 113, 0.4);
  margin-bottom: 20px;
  display: block;
  text-align: center;
}
.is-game-screen {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 60vh;
  justify-content: center;
}
.is-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
}
.is-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.is-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 228, 220, 0.12);
  transition: background 0.25s, transform 0.25s;
}
.is-dot-active {
  background: rgba(201, 174, 113, 0.9);
  transform: scale(1.3);
}
.is-dot-done {
  background: rgba(201, 174, 113, 0.35);
}
.is-q-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(232, 228, 220, 0.3);
  text-transform: uppercase;
}
.is-scenario-card {
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(201, 174, 113, 0.1);
  border-radius: 8px;
  padding: 24px 22px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.is-scenario-ctx {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 174, 113, 0.55);
  margin-bottom: 12px;
}
.is-scenario-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(232, 228, 220, 0.9);
  font-style: italic;
}
.is-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  max-width: 440px;
}
.is-choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 228, 220, 0.12);
  border-radius: 6px;
  padding: 13px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(232, 228, 220, 0.75);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.is-choice-btn:hover {
  background: rgba(201, 174, 113, 0.08);
  border-color: rgba(201, 174, 113, 0.3);
  color: rgba(232, 228, 220, 0.95);
}
.is-choice-btn.is-choice-selected {
  background: rgba(201, 174, 113, 0.12);
  border-color: rgba(201, 174, 113, 0.55);
  color: #c9ae71;
}
.is-binary-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 440px;
}
.is-binary-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 228, 220, 0.11);
  border-radius: 7px;
  padding: 18px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(232, 228, 220, 0.7);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.is-binary-btn:hover {
  background: rgba(201, 174, 113, 0.09);
  border-color: rgba(201, 174, 113, 0.35);
  color: rgba(232, 228, 220, 0.95);
}
.is-binary-btn.is-choice-selected {
  background: rgba(201, 174, 113, 0.14);
  border-color: rgba(201, 174, 113, 0.6);
  color: #c9ae71;
}
.is-binary-or {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.2);
  padding: 8px 0;
}
.is-slider-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.is-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(232, 228, 220, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.is-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c9ae71;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(201, 174, 113, 0.4);
  transition: transform 0.15s;
}
.is-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.is-slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.is-slider-labels span {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(232, 228, 220, 0.28);
  text-align: center;
  flex: 1;
}
.is-slider-val {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 174, 113, 0.7);
  min-height: 18px;
}
.is-next-btn {
  margin-top: 8px;
}
.is-pressure-bars {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 20px;
}
.is-pbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.is-pbar-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(232, 228, 220, 0.5);
  width: 88px;
  flex-shrink: 0;
  text-align: right;
}
.is-pbar-track {
  flex: 1;
  height: 4px;
  background: rgba(232, 228, 220, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.is-pbar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(201,174,113,0.5), rgba(201,174,113,0.9));
  border-radius: 2px;
  transition: width 0.8s ease;
}
.is-pbar-pct {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: rgba(201, 174, 113, 0.55);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}
.is-avg-meter {
  width: 100%;
  max-width: 440px;
  margin: 8px 0 20px;
}
.is-avg-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.3);
  margin-bottom: 8px;
}
.is-avg-pct {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: rgba(201, 174, 113, 0.6);
  margin-top: 6px;
  text-align: right;
}
.is-cta-section {
  margin: 28px 0 16px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.is-cta-line {
  width: 48px;
  height: 1px;
  background: rgba(201, 174, 113, 0.25);
  margin: 0 auto 22px;
}
.is-cta-bridge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: rgba(232, 228, 220, 0.75);
  margin-bottom: 8px;
}
.is-cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(232, 228, 220, 0.3);
  margin-bottom: 20px;
}
.is-cta-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0ebe0;
  text-decoration: none;
  border: 1px solid rgba(201, 174, 113, 0.5);
  padding: 13px 36px;
  border-radius: 3px;
  background: transparent;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: pointer;
}
.is-cta-btn:hover {
  border-color: rgba(201, 174, 113, 0.9);
  color: #c9ae71;
  background: rgba(201, 174, 113, 0.06);
}
.is-back-btn {
  margin-top: 8px;
  opacity: 0.35;
  font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════════════
   INNER COMPASS — EXPERIENTIAL PASS
   Cartographer's Atelier scan + results: parchment level buttons
   with ink-bleed selection, parchment seal-break entrance for the
   results screen, brass cartouche framing for the pattern name,
   and a live brass needle inside the overall meter.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Scan: parchment level buttons (overrides indigo-chamber default) ── */
body.ic-game-active .pr-scan-category {
  color: rgba(168,106,58,0.85);
}
body.ic-game-active .pr-level-btn {
  position: relative;
  background: rgba(245,240,230,0.55);
  border: 1px solid rgba(198,161,91,0.32);
  border-radius: 4px;
  color: #24324A;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}
body.ic-game-active .pr-level-btn::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(198,161,91,0);
  pointer-events: none;
  transition: border-color 0.35s ease;
}
body.ic-game-active .pr-level-btn:hover {
  background: rgba(245,240,230,0.85);
  border-color: rgba(198,161,91,0.6);
  transform: translateY(-1px);
}
body.ic-game-active .pr-level-btn:hover::before {
  border-color: rgba(198,161,91,0.35);
}
body.ic-game-active .pr-level-selected {
  background: linear-gradient(145deg, rgba(245,240,230,0.95) 0%, rgba(221,210,191,0.85) 100%);
  border-color: rgba(168,106,58,0.75);
  box-shadow: 0 0 18px rgba(198,161,91,0.25), inset 0 1px 0 rgba(245,240,230,0.7);
}
body.ic-game-active .pr-level-selected::before {
  border-color: rgba(168,106,58,0.55);
}
body.ic-game-active .pr-level-label {
  color: rgba(36,50,74,0.7);
  font-weight: 500;
}
body.ic-game-active .pr-level-indicator {
  background: rgba(36,50,74,0.08);
  border: 1px solid rgba(198,161,91,0.18);
}
/* Token-only fills: parchment → brass → ember (no off-palette green/red) */
body.ic-game-active .pr-level-0 .pr-level-fill { background: rgba(221,210,191,0.85); }
body.ic-game-active .pr-level-1 .pr-level-fill { background: rgba(198,161,91,0.6); }
body.ic-game-active .pr-level-2 .pr-level-fill { background: rgba(198,161,91,0.85); }
body.ic-game-active .pr-level-3 .pr-level-fill { background: rgba(168,106,58,0.75); }
body.ic-game-active .pr-level-4 .pr-level-fill { background: rgba(168,106,58,0.95); }

/* Ink-bleed bloom from the click point: a parchment ink-blot absorbs
   into the button. JS appends a span.ic-ink with --x/--y on press. */
body.ic-game-active .pr-level-btn .ic-ink {
  position: absolute;
  width: 18px; height: 18px;
  margin-left: -9px; margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(168,106,58,0.55) 0%,
    rgba(198,161,91,0.30) 45%,
    rgba(245,240,230,0) 75%);
  pointer-events: none;
  animation: icScanInk 0.95s ease-out forwards;
}
@keyframes icScanInk {
  0%   { transform: scale(0); opacity: 0.95; }
  70%  { opacity: 0.55; }
  100% { transform: scale(20); opacity: 0; }
}

/* ── Category transition cartouche (parchment slide-up reveal) ── */
body.ic-game-active .pr-cat-enter {
  background: #F5F0E6 !important;
}
body.ic-game-active .pr-cat-transition-inner {
  position: relative;
  padding: 36px 56px;
  border: 1px solid rgba(198,161,91,0.55);
  background: linear-gradient(160deg, rgba(245,240,230,0.96) 0%, rgba(221,210,191,0.78) 100%);
  box-shadow: 0 18px 40px -16px rgba(36,50,74,0.3), inset 0 1px 0 rgba(245,240,230,0.7);
  animation: icCartoucheRise 0.8s cubic-bezier(0.34, 1.2, 0.5, 1) forwards;
}
body.ic-game-active .pr-cat-transition-inner::before,
body.ic-game-active .pr-cat-transition-inner::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid rgba(198,161,91,0.7);
}
body.ic-game-active .pr-cat-transition-inner::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
body.ic-game-active .pr-cat-transition-inner::after  { bottom: 6px; right: 6px; border-left: none; border-top: none; }
@keyframes icCartoucheRise {
  0%   { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}
body.ic-game-active .pr-cat-transition-num,
body.ic-game-active .pr-cat-transition-entering {
  color: rgba(168,106,58,0.85);
}
body.ic-game-active .pr-cat-transition-name {
  color: #24324A;
  font-family: 'Cormorant Garamond', serif;
}
body.ic-game-active .pr-cat-transition-line {
  background: rgba(198,161,91,0.6);
}

/* ── Results: seal-break parchment entrance ──
   The results screen unfurls — a hairline brass crack opens vertically,
   parchment swells in behind it, then the cartouche settles. */
body.ic-game-active .pr-results-screen,
body.ic-game-active [data-screen="results"],
body.ic-game-active .gx-screen-active.pr-results {
  position: relative;
  animation: icSealBreak 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes icSealBreak {
  0%   { opacity: 0; transform: scale(0.985); filter: blur(3px); clip-path: inset(0 50% 0 50%); }
  35%  { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: scale(1);     filter: blur(0);  clip-path: inset(0 0 0 0); }
}
/* Brass hairline that flashes along the seam as the seal opens */
body.ic-game-active .pr-results-screen::before,
body.ic-game-active .gx-screen-active.pr-results::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(198,161,91,0) 0%,
    rgba(198,161,91,0.85) 50%,
    rgba(198,161,91,0) 100%);
  pointer-events: none;
  animation: icSealLine 1.1s ease-out forwards;
}
@keyframes icSealLine {
  0%   { opacity: 0; transform: scaleY(0); }
  20%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* Brass cartouche frame around the pattern name (the "map title") */
body.ic-game-active .pr-pattern-name {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  margin: 6px auto 18px;
  font-family: 'Cormorant Garamond', serif !important;
  color: #24324A !important;
  border-top: 1px solid rgba(198,161,91,0.6);
  border-bottom: 1px solid rgba(198,161,91,0.6);
  background: linear-gradient(180deg,
    rgba(245,240,230,0) 0%,
    rgba(198,161,91,0.08) 50%,
    rgba(245,240,230,0) 100%);
}
body.ic-game-active .pr-pattern-name::before,
body.ic-game-active .pr-pattern-name::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 22px; height: 1px;
  background: rgba(198,161,91,0.7);
}
body.ic-game-active .pr-pattern-name::before { left: -28px; }
body.ic-game-active .pr-pattern-name::after  { right: -28px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.ic-game-active .pr-level-btn,
  body.ic-game-active .pr-cat-transition-inner,
  body.ic-game-active .pr-results-screen,
  body.ic-game-active [data-screen="results"],
  body.ic-game-active .gx-screen-active.pr-results,
  body.ic-game-active .pr-results-screen::before,
  body.ic-game-active .gx-screen-active.pr-results::before { animation: none !important; transition: none !important; }
  body.ic-game-active .pr-level-btn .ic-ink { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   INNER COMPASS — LEGIBILITY PASS
   The Atelier sits on cream parchment, but several legacy text
   colors were tuned for the old dark indigo chamber and ended up
   cream-on-cream (or very low-contrast) on the new background.
   Force every readable surface up to AA contrast against #F5F0E6.
   ═══════════════════════════════════════════════════════════════════ */

/* Pattern description (the line under the named pattern) */
body.ic-game-active .pr-pattern-desc {
  color: rgba(36,50,74,0.82) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
}

/* Mode-card body copy — was 0.78, lift to 0.88 indigo */
body.ic-game-active .pr-mode-card-desc {
  color: rgba(36,50,74,0.88) !important;
}

/* Level button label ("Not at all" / "Slightly" / etc) — was 0.7, lift */
body.ic-game-active .pr-level-label {
  color: #24324A !important;
  font-weight: 600;
}

/* Selected-state label gets ember accent for clearer feedback */
body.ic-game-active .pr-level-selected .pr-level-label {
  color: #A86A3A !important;
}

/* Category labels + level readouts on results bars */
body.ic-game-active .pr-cat-label  { color: #24324A !important; font-weight: 600; }
body.ic-game-active .pr-cat-level  { color: rgba(36,50,74,0.85) !important; font-weight: 500; }
body.ic-game-active .pr-cat-row    { border-bottom-color: rgba(198,161,91,0.32); }

/* Scan category eyebrow (above prompt) — bump from 0.7 to fully readable brass */
body.ic-game-active .pr-scan-category {
  color: #A86A3A !important;
  font-weight: 700;
}

/* Results label "Your Inner Compass" — bump from 0.95 brass to ember for stronger anchor */
body.ic-game-active .pr-results-label {
  color: #A86A3A !important;
  font-weight: 700;
}

/* Insight panels — lift body copy + label */
body.ic-game-active .pr-insight,
body.ic-game-active .pr-insight-alert,
body.ic-game-active .pr-insight-calm {
  color: #24324A !important;
  font-weight: 500;
}
body.ic-game-active .pr-insight-label {
  color: #A86A3A !important;
  font-weight: 700;
}

/* Share-card lines + personalized bridge */
body.ic-game-active .pr-share-row,
body.ic-game-active .pr-share-row strong,
body.ic-game-active .pr-personalized-bridge {
  color: #24324A !important;
}
body.ic-game-active .pr-share-hint,
body.ic-game-active .pr-personalized-bridge strong {
  color: #A86A3A !important;
  font-weight: 700;
}

/* Reading description — already indigo 0.82 base, force in case of cascade */
body.ic-game-active .pr-reading-desc {
  color: #24324A !important;
  font-weight: 500;
}

/* "Return to Game Hub" CTA — base gx-btn-primary uses off-token old gold
   which reads weakly on cream. Re-skin to indigo-on-parchment with brass
   border, matching the rest of the Atelier. */
body.ic-game-active .gx-btn,
body.ic-game-active .gx-btn-primary,
body.ic-game-active .gx-btn-secondary {
  background: linear-gradient(180deg, rgba(245,240,230,1) 0%, rgba(221,210,191,0.85) 100%) !important;
  border: 1px solid rgba(198,161,91,0.7) !important;
  color: #24324A !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 0 rgba(36,50,74,0.06), inset 0 1px 0 rgba(245,240,230,0.7) !important;
  text-shadow: none !important;
}
body.ic-game-active .gx-btn:hover,
body.ic-game-active .gx-btn-primary:hover,
body.ic-game-active .gx-btn-secondary:hover {
  background: linear-gradient(180deg, rgba(245,240,230,1) 0%, rgba(221,210,191,1) 100%) !important;
  border-color: #A86A3A !important;
  color: #A86A3A !important;
  box-shadow: 0 4px 14px -4px rgba(36,50,74,0.18), inset 0 1px 0 rgba(245,240,230,0.85) !important;
  transform: translateY(-1px);
}

/* Catch-all: any nested text that inherits a pale cream color from
   legacy rules should still read on cream. Forces inheritance of indigo
   ink for unstyled .gx-screen-text, .gx-reflection-text descendants. */
body.ic-game-active .gx-screen-text,
body.ic-game-active .gx-reflection-text {
  color: rgba(36,50,74,0.88) !important;
}

/* Reduced motion — keep contrast overrides unconditional */

/* ═══════════════════════════════════════════════════════════════════
   PATH GUIDE + EMAIL RESULTS — readable on parchment (IC active)
   These render after the personalized-bridge sentence and were
   inheriting the chamber's pale text colors against the cream Atelier.
   ═══════════════════════════════════════════════════════════════════ */

body.ic-game-active .gx-path-guide {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(198,161,91,0.4);
}
body.ic-game-active .gx-path-guide-divider {
  height: 1px; margin: 0 0 24px;
  background: linear-gradient(90deg, transparent, rgba(198,161,91,0.55), transparent);
}
body.ic-game-active .gx-path-guide-heading {
  color: #24324A !important;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-weight: 600; font-style: italic;
  font-size: 1.55rem; line-height: 1.3;
  margin-bottom: 14px;
}
body.ic-game-active .gx-path-guide-summary {
  color: rgba(36,50,74,0.92) !important;
  font-size: 1rem; line-height: 1.65; margin-bottom: 20px;
}
body.ic-game-active .gx-path-guide-takeaway {
  background: linear-gradient(180deg, rgba(245,240,230,0.7), rgba(221,210,191,0.55));
  border: 1px solid rgba(198,161,91,0.5);
  border-radius: 4px; padding: 18px 22px; margin-bottom: 24px;
}
body.ic-game-active .gx-path-guide-takeaway-text {
  color: #24324A !important;
  font-size: 1rem; line-height: 1.65; margin: 0;
}
body.ic-game-active .gx-path-guide-cta-text {
  color: rgba(36,50,74,0.85) !important;
  opacity: 1 !important;
  font-size: 0.95rem !important; margin-bottom: 18px !important;
}
body.ic-game-active .gx-path-guide-cta-btn {
  display: inline-block; text-decoration: none; padding: 14px 30px;
}

/* Email Results form */
body.ic-game-active .er-section {
  margin-top: 28px; padding: 22px 24px;
  background: rgba(245,240,230,0.55);
  border: 1px solid rgba(198,161,91,0.4);
  border-radius: 4px;
}
body.ic-game-active .er-label {
  color: #A86A3A !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
}
body.ic-game-active .er-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
body.ic-game-active .er-email-input {
  flex: 1; min-width: 200px;
  background: rgba(245,240,230,0.95);
  border: 1px solid rgba(198,161,91,0.6);
  border-radius: 3px;
  color: #24324A;
  padding: 12px 14px; font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}
body.ic-game-active .er-email-input::placeholder { color: rgba(36,50,74,0.45); }
body.ic-game-active .er-email-input:focus {
  outline: none; border-color: #A86A3A;
  box-shadow: 0 0 0 2px rgba(168,106,58,0.18);
}
body.ic-game-active .er-send-btn {
  background: linear-gradient(180deg, #C6A15B, #A86A3A) !important;
  color: #F5F0E6 !important; border: none !important;
  border-radius: 3px;
  padding: 12px 24px;
  font-weight: 700 !important; letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 0.78rem !important; cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(168,106,58,0.28);
  text-shadow: none !important;
}
body.ic-game-active .er-send-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.ic-game-active .er-send-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
body.ic-game-active .er-status {
  margin-top: 10px; font-size: 0.88rem;
  color: #24324A; font-weight: 500;
}
body.ic-game-active .er-status-ok { color: #2D5F3F !important; }
body.ic-game-active .er-status-error { color: #8C2A2A !important; }

/* Share-card eyebrow + state line */
body.ic-game-active .pr-share-eyebrow {
  color: #A86A3A !important; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
body.ic-game-active .pr-share-state { color: #24324A !important; }

/* Results title */
body.ic-game-active .pr-state-reveal,
body.ic-game-active .pr-results-screen .gx-screen-title {
  color: #24324A !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ARCHETYPE FLOW — dark royal middle-ground
   The Pillars + Archetype screens sit between the cream Atelier and
   the chamber. A black/indigo gradient with brass accents creates the
   sense of crossing a threshold. Always-on (not gated by ic-active).
   ═══════════════════════════════════════════════════════════════════ */

.arch-selection-wrap {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(36,50,74,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(168,106,58,0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0e1118 0%, #050608 100%) !important;
  min-height: 100vh;
  color: #F5F0E6 !important;
  position: relative;
}
.arch-selection-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(245,240,230,0.04) 1px, transparent 2px),
    radial-gradient(circle at 72% 64%, rgba(245,240,230,0.03) 1px, transparent 2px),
    radial-gradient(circle at 41% 82%, rgba(245,240,230,0.025) 1px, transparent 2px);
  background-size: 280px 280px, 360px 360px, 220px 220px;
  opacity: 0.6;
}
.arch-step-label {
  color: #C6A15B !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  opacity: 0.9;
}
.arch-question-heading,
.arch-cards-heading {
  color: #F5F0E6 !important;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-weight: 400 !important;
  font-style: italic;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.arch-cards-sub {
  color: rgba(245,240,230,0.72) !important;
}
.arch-permanence-notice {
  background: linear-gradient(180deg, rgba(198,161,91,0.08), rgba(198,161,91,0.04)) !important;
  border: 1px solid rgba(198,161,91,0.35) !important;
  color: rgba(245,240,230,0.88) !important;
  border-radius: 4px;
}
.arch-permanence-icon { color: #C6A15B !important; }
.arch-pillar-card {
  background: linear-gradient(180deg, rgba(36,50,74,0.4), rgba(10,12,20,0.7)) !important;
  border: 1px solid rgba(198,161,91,0.32) !important;
  color: #F5F0E6 !important;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 4px;
}
.arch-pillar-card:hover {
  border-color: #C6A15B !important;
  box-shadow: 0 8px 32px rgba(198,161,91,0.2),
              inset 0 0 0 1px rgba(198,161,91,0.15) !important;
  transform: translateY(-2px);
}
.arch-pillar-label { color: #F5F0E6 !important; font-weight: 500; }
.arch-pillar-desc { color: rgba(245,240,230,0.65) !important; }
/* Pillar symbol icons are now standalone PNGs (transparent ornate emblems);
   no theming needed here. */
.arch-gallery-arch-name {
  color: #C6A15B !important;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-style: italic;
}
.arch-gallery-arch-tagline { color: rgba(245,240,230,0.72) !important; }
.arch-portrait-item {
  border: 1px solid rgba(198,161,91,0.22);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.arch-portrait-item:hover {
  border-color: #C6A15B;
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(198,161,91,0.18);
}
.arch-portrait-selected {
  border-color: #C6A15B !important;
  box-shadow: 0 0 0 2px rgba(198,161,91,0.55), 0 0 24px rgba(198,161,91,0.3) !important;
}
.arch-back-btn {
  background: transparent !important;
  border: 1px solid rgba(198,161,91,0.4) !important;
  color: rgba(245,240,230,0.85) !important;
  padding: 11px 22px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; border-radius: 3px;
  margin-top: 24px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.arch-back-btn:hover { border-color: #C6A15B; color: #C6A15B; }

.arch-confirm-wrap {
  position: relative; min-height: 100vh;
  background: #050608 !important;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.arch-confirm-img {
  filter: brightness(0.85) contrast(1.05);
}
.arch-confirm-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(5,6,8,0.55) 50%, rgba(5,6,8,0.92) 100%) !important;
  color: #F5F0E6 !important;
}
.arch-confirm-eyebrow {
  color: #C6A15B !important;
  letter-spacing: 0.32em !important;
  font-weight: 700;
  text-transform: uppercase;
}
.arch-confirm-name {
  color: #F5F0E6 !important;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-weight: 400 !important;
  font-style: italic;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
}
.arch-confirm-sub {
  color: rgba(245,240,230,0.72) !important;
}
.arch-confirm-divider {
  background: linear-gradient(90deg, transparent, #C6A15B, transparent) !important;
  height: 1px !important;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════
   THE KUMAYA GATE — ceremonial entrance to a game
   Two ornate doors meet at a central crest bearing the Kumaya
   wordmark. After ~1.6s the doors swing open in 3D, light spills
   through the seam, and the next surface is revealed.
   ═══════════════════════════════════════════════════════════════════ */

.kw-gate-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(ellipse at center, #0a0e16 0%, #000 75%);
  display: block; overflow: hidden;
  opacity: 0; pointer-events: none;
  perspective: 1600px;
  transition: opacity 0.55s ease;
}
.kw-gate-overlay.kw-gate-active { opacity: 1; pointer-events: auto; }
.kw-gate-overlay.kw-gate-fade { opacity: 0; transition: opacity 0.85s ease 0.1s; }

/* Doors — a single arched, iron-studded wooden door photograph
   shown full-bleed on both panels and split with clip-path so the
   image keeps its native aspect ratio (no distortion). Each panel
   covers the entire viewport with `cover` sizing; the visible half
   of each is carved out by a clip-path inset and the rotation pivot
   sits on the panel's outer screen edge. */
.kw-gate-door {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 1;
  background-image: url('assets/kumaya-gate-door.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-color: #1a0e07;
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  transition: transform 2.8s cubic-bezier(0.6, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.kw-gate-door-l {
  transform-origin: 0% 50%;
  /* Show only the left half via clip-path so the image keeps its
     native aspect via the parent's `cover` sizing. */
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
  /* Soft inner-edge shadow so the seam reads as a real meeting line */
  box-shadow:
    inset -8px 0 24px rgba(0, 0, 0, 0.55),
    inset 0 0 120px rgba(0, 0, 0, 0.5);
}
.kw-gate-door-r {
  transform-origin: 100% 50%;
  clip-path: inset(0 0 0 50%);
  -webkit-clip-path: inset(0 0 0 50%);
  box-shadow:
    inset 8px 0 24px rgba(0, 0, 0, 0.55),
    inset 0 0 120px rgba(0, 0, 0, 0.5);
}

/* ── Game-like animation aesthetic on the closed gate ──
   Two layered effects play while the doors are still shut:
   1) A warm torchlight flicker dances across the wood (::after)
   2) A pulsing amber glow leaks from the center seam, as though
      something is burning behind the gate (::before)
   Both fade out the moment .kw-gate-open is added so the swing
   animation is uncluttered. */
.kw-gate-door::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 60% 45% at 50% 28%, rgba(255, 184, 96, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 30% 72%, rgba(255, 132, 56, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 72% 80%, rgba(255, 158, 80, 0.10) 0%, transparent 55%);
  mix-blend-mode: overlay;
  animation: kwGateTorchFlicker 4.6s ease-in-out infinite;
  transition: opacity 0.45s ease;
}
.kw-gate-door-l::before,
.kw-gate-door-r::before {
  content: '';
  position: absolute;
  top: 6%; bottom: 6%;
  width: 38px;
  pointer-events: none;
  z-index: 3;
  animation: kwGateSeamGlow 2.6s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.kw-gate-door-l::before {
  right: -1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 176, 86, 0.0) 60%, rgba(255, 196, 110, 0.42) 100%);
}
.kw-gate-door-r::before {
  left: -1px;
  background: linear-gradient(270deg, transparent 0%, rgba(255, 176, 86, 0.0) 60%, rgba(255, 196, 110, 0.42) 100%);
}
.kw-gate-active.kw-gate-open .kw-gate-door::after,
.kw-gate-active.kw-gate-open .kw-gate-door::before {
  opacity: 0;
}
@keyframes kwGateTorchFlicker {
  0%, 100% { opacity: 0.85; }
  14%      { opacity: 1.0;  }
  27%      { opacity: 0.62; }
  38%      { opacity: 0.92; }
  52%      { opacity: 0.7;  }
  64%      { opacity: 1.0;  }
  79%      { opacity: 0.78; }
  91%      { opacity: 0.95; }
}
@keyframes kwGateSeamGlow {
  0%, 100% { opacity: 0.55; transform: scaleX(0.85); }
  50%      { opacity: 1.0;  transform: scaleX(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .kw-gate-door::after,
  .kw-gate-door-l::before,
  .kw-gate-door-r::before { animation: none !important; }
}

.kw-gate-active.kw-gate-open .kw-gate-door-l {
  transform: rotateY(-115deg);
}
.kw-gate-active.kw-gate-open .kw-gate-door-r {
  transform: rotateY(115deg);
}

/* ────────────────────────────────────────────
   Door handle seals — one per door, anchored to
   the INNER edge of each door so they read as
   the brass handles that open the gate. The
   bottom-third "Official Seal of Kumaya World"
   text band on the source PNG is cropped out
   via background-size + center-top positioning.
   Brass disc plate gives a premium, embossed,
   handle-on-blackwood feel.
   ──────────────────────────────────────────── */
.kw-gate-door-seal {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: clamp(120px, 22vmin, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  /* Brass plate behind the disc — gives the embossed-handle look */
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 244, 214, 0.55) 0%, rgba(255, 244, 214, 0) 38%),
    radial-gradient(circle at 50% 50%, #C6A15B 0%, #8E6A30 70%, #5B4220 100%);
  box-shadow:
    /* outer warm halo */
    0 0 22px rgba(232, 199, 126, 0.42),
    0 0 56px rgba(198, 161, 91, 0.22),
    /* embossed lift off the door */
    0 10px 26px rgba(0, 0, 0, 0.6),
    /* inner bevel — top highlight, bottom shade */
    inset 0 2px 3px rgba(255, 244, 214, 0.6),
    inset 0 -4px 10px rgba(0, 0, 0, 0.45),
    /* polished brass rim */
    inset 0 0 0 2px rgba(91, 66, 32, 0.55),
    inset 0 0 0 3px rgba(232, 199, 126, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.9);
  animation: kwGateSealIntro 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s forwards,
             kwGateSealBreath 4.5s ease-in-out 1.7s infinite;
}
/* Inner disc bears the cropped lion+shield artwork.
   Source PNG has "Official Seal of Kumaya World" text in its
   bottom third — scaling to ~155% and anchoring to top crops
   it cleanly so only the lions+shield show. */
.kw-gate-door-seal-disc {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background-image: url('assets/kumaya-seal-lions.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 155% auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
/* Position handles at the INNER edge of each door (not centered).
   Left door handle sits near its right edge; right door handle near
   its left edge — so the two seals appear as the meeting handles. */
.kw-gate-door-seal-l {
  right: 8%;
  left: auto;
}
.kw-gate-door-seal-r {
  left: 8%;
  right: auto;
}
@keyframes kwGateSealIntro {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.82); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes kwGateSealBreath {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(232, 199, 126, 0.42),
      0 0 56px rgba(198, 161, 91, 0.22),
      0 10px 26px rgba(0, 0, 0, 0.6),
      inset 0 2px 3px rgba(255, 244, 214, 0.6),
      inset 0 -4px 10px rgba(0, 0, 0, 0.45),
      inset 0 0 0 2px rgba(91, 66, 32, 0.55),
      inset 0 0 0 3px rgba(232, 199, 126, 0.35);
  }
  50% {
    box-shadow:
      0 0 36px rgba(232, 199, 126, 0.65),
      0 0 92px rgba(198, 161, 91, 0.4),
      0 10px 26px rgba(0, 0, 0, 0.6),
      inset 0 2px 3px rgba(255, 244, 214, 0.7),
      inset 0 -4px 10px rgba(0, 0, 0, 0.45),
      inset 0 0 0 2px rgba(91, 66, 32, 0.55),
      inset 0 0 0 3px rgba(232, 199, 126, 0.5);
  }
}
/* As the doors swing open, the handles fade so the chamber
   behind doesn't have to fight for attention. */
.kw-gate-active.kw-gate-open .kw-gate-door-seal {
  animation: none;
  opacity: 0;
  transition: opacity 0.7s ease 0.1s;
}
@media (prefers-reduced-motion: reduce) {
  .kw-gate-door-seal {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1) !important;
  }
}

/* Center crest with Kumaya wordmark */
.kw-gate-crest {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateY(8px) scale(0.96);
  z-index: 5; text-align: center;
  opacity: 0;
  transition: opacity 0.9s ease 0.25s, transform 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.25s;
  pointer-events: none;
}
.kw-gate-active .kw-gate-crest {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}
.kw-gate-active .kw-gate-handle {
  pointer-events: auto;
}
.kw-gate-active.kw-gate-open .kw-gate-crest {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.kw-gate-crest-mark {
  width: 110px; height: 110px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(198,161,91,0.5));
  animation: kwCrestPulse 3.6s ease-in-out infinite;
}
@keyframes kwCrestPulse {
  0%, 100% { filter: drop-shadow(0 4px 18px rgba(198,161,91,0.45)); }
  50% { filter: drop-shadow(0 4px 28px rgba(198,161,91,0.75)); }
}
.kw-gate-crest-word {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 500; font-size: 2.4rem;
  letter-spacing: 0.45em;
  color: #C6A15B;
  text-transform: uppercase; line-height: 1;
  text-shadow: 0 2px 14px rgba(198,161,91,0.4),
               0 0 28px rgba(168,106,58,0.25);
  padding-left: 0.45em; /* visually center letter-spaced text */
}
.kw-gate-crest-rule {
  width: 70px; height: 1px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, #C6A15B, transparent);
}
.kw-gate-crest-sub {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: rgba(245,240,230,0.6);
  text-transform: uppercase;
}
/* Gate handle — the polished crest is the door handle.
   Tap it to open the doors. */
.kw-gate-handle {
  position: relative;
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  outline: none;
  opacity: 0;
  animation: prThresholdFadeIn 1.2s ease 0.5s forwards;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.kw-gate-handle-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(198,161,91,0.35))
    drop-shadow(0 0 42px rgba(168,106,58,0.18));
  transition: filter 0.5s ease, transform 0.5s ease;
}
/* Lions seal — uses background-image so we can crop out
   the "Official Seal of Kumaya World" text that lives in
   the bottom third of the source PNG. */
.kw-gate-handle-seal {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('assets/kumaya-seal-lions.png');
  background-repeat: no-repeat;
  background-position: center 0%;
  /* Source is ~square; the lions+shield occupy the top ~62%.
     Scaling to ~155% and anchoring to top crops the text cleanly. */
  background-size: 155% auto;
  filter:
    drop-shadow(0 0 18px rgba(198,161,91,0.45))
    drop-shadow(0 0 48px rgba(168,106,58,0.22))
    drop-shadow(0 4px 18px rgba(0,0,0,0.45));
  transition: filter 0.5s ease, transform 0.5s ease;
}
.kw-gate-handle-halo {
  position: absolute;
  inset: -18%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(232,199,126,0.22) 0%,
    rgba(198,161,91,0.10) 38%,
    rgba(168,106,58,0) 70%);
  opacity: 0.85;
  pointer-events: none;
  animation: kwGateBreath 4.2s ease-in-out infinite;
}
.kw-gate-handle-ring {
  position: absolute;
  inset: 6%;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(198,161,91,0.28);
  pointer-events: none;
  box-shadow:
    inset 0 0 22px rgba(198,161,91,0.10),
    0 0 0 1px rgba(122,90,43,0.18);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.kw-gate-handle:hover .kw-gate-handle-img,
.kw-gate-handle:focus-visible .kw-gate-handle-img,
.kw-gate-handle:hover .kw-gate-handle-seal,
.kw-gate-handle:focus-visible .kw-gate-handle-seal {
  filter:
    drop-shadow(0 0 28px rgba(232,199,126,0.65))
    drop-shadow(0 0 64px rgba(198,161,91,0.34))
    drop-shadow(0 4px 18px rgba(0,0,0,0.45));
  transform: scale(1.05);
}
.kw-gate-handle:hover .kw-gate-handle-ring,
.kw-gate-handle:focus-visible .kw-gate-handle-ring {
  border-color: rgba(232,199,126,0.55);
  box-shadow:
    inset 0 0 32px rgba(232,199,126,0.18),
    0 0 0 1px rgba(198,161,91,0.30);
}
.kw-gate-handle:active {
  transform: scale(0.97);
}
.kw-gate-overlay.kw-gate-open .kw-gate-handle {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
@keyframes kwGateBreath {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .kw-gate-handle { animation: none !important; opacity: 1 !important; }
  .kw-gate-handle-halo { animation: none !important; }
  .kw-gate-handle-img,
  .kw-gate-handle:hover .kw-gate-handle-img,
  .kw-gate-handle-seal,
  .kw-gate-handle:hover .kw-gate-handle-seal { transition: none !important; transform: none !important; }
}
/* Soft veil that replaces the old door slabs — a single
   ceremonial darkness instead of mechanical doors. */
.kw-gate-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(36,50,74,0.25) 0%,
      rgba(10,12,16,0.92) 70%,
      #06080c 100%);
  pointer-events: none;
}
/* Light spilling through the opening seam */
.kw-gate-light {
  position: absolute; left: 50%; top: 50%;
  width: 1px; height: 1px;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s, box-shadow 1.2s ease 0.4s;
}
.kw-gate-active.kw-gate-open .kw-gate-light {
  opacity: 1;
  box-shadow:
    0 0 120px 40px rgba(245,240,230,0.28),
    0 0 320px 120px rgba(198,161,91,0.22),
    0 0 700px 280px rgba(168,106,58,0.12);
}

@media (prefers-reduced-motion: reduce) {
  .kw-gate-overlay, .kw-gate-door, .kw-gate-crest { transition: opacity 0.3s ease !important; }
  .kw-gate-active.kw-gate-open .kw-gate-door-l,
  .kw-gate-active.kw-gate-open .kw-gate-door-r { transform: none; }
  .kw-gate-crest-mark { animation: none; }
}

/* ============================================================
   PHASE 2 — INNER COMPASS: ROUTE COMPASS + CHAMBER CROSSING
   Sacred Library palette. 6 tokens only. No emoji.
   ============================================================ */

/* ---------- Persistent route compass (top of every scan question) ---------- */
.pr-route-compass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 14px auto 22px;
  max-width: 420px;
  padding: 12px 18px;
  background: rgba(245, 240, 230, 0.55);
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Each chamber is a small SQUARE box with the chamber number in its
   own caption beneath it. The flex column lets the tether align with
   the centre of the square (not the number). */
.pr-route-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pr-route-point .pr-route-box {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(53, 80, 107, 0.32);
  background: rgba(245, 240, 230, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pr-route-point .pr-route-glyph {
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: #C6A15B;
  line-height: 1;
}
.pr-route-point .pr-route-num {
  font-size: 0.7rem;
  line-height: 1;
  color: rgba(36, 50, 74, 0.55);
  letter-spacing: 0.05em;
}
.pr-route-point.pr-route-active .pr-route-box {
  background: rgba(198, 161, 91, 0.18);
  border-color: #C6A15B;
  box-shadow:
    0 0 0 3px rgba(198, 161, 91, 0.12),
    0 0 14px rgba(198, 161, 91, 0.35);
  transform: scale(1.08);
}
.pr-route-point.pr-route-active .pr-route-num {
  color: #24324A;
  font-weight: 600;
}
.pr-route-point.pr-route-sealed .pr-route-box {
  background: #C6A15B;
  border-color: #C6A15B;
}
.pr-route-point.pr-route-sealed .pr-route-glyph {
  opacity: 1;
  color: #F5F0E6;
  font-size: 0.85rem;
}
.pr-route-point.pr-route-sealed .pr-route-num {
  color: rgba(36, 50, 74, 0.7);
}
/* Tether is a horizontal hairline that aligns with the centre of the
   28px square (not the caption beneath it). */
.pr-route-tether {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(53, 80, 107, 0.22);
  min-width: 14px;
  max-width: 38px;
  align-self: flex-start;
  margin-top: 14px; /* half of square height to land on its centre */
  transition: background 0.6s ease;
}
.pr-route-tether-sealed {
  background: linear-gradient(90deg, #C6A15B, rgba(198, 161, 91, 0.4));
}

/* ---------- Chamber crossing screen (replaces old pr-cat-enter) ---------- */
.pr-cat-crossing {
  background: var(--kw-ivory, #F5F0E6);
  color: var(--kw-indigo, #24324A);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
  animation: prCrossingIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes prCrossingIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pr-crossing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.pr-crossing-rose {
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
  position: relative;
  animation: prRoseBreath 4.5s ease-in-out infinite;
}
.pr-crossing-rose-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(198, 161, 91, 0.22));
}
@keyframes prRoseBreath {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.04); opacity: 1; }
}
.pr-crossing-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #C6A15B;
  margin-bottom: 16px;
  opacity: 0;
  animation: prCrossingFade 0.8s ease 0.25s forwards;
}
.pr-crossing-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: #24324A;
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: prCrossingFade 0.9s ease 0.45s forwards;
}
.pr-crossing-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #35506B;
  margin: 0 0 24px 0;
  line-height: 1.5;
  opacity: 0;
  animation: prCrossingFade 0.9s ease 0.7s forwards;
}
.pr-crossing-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C6A15B, transparent);
  opacity: 0;
  animation: prCrossingFade 0.9s ease 0.95s forwards;
}
@keyframes prCrossingFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Tighten old per-category transition CSS so it doesn't conflict ---------- */
.pr-cat-crossing .pr-cat-transition-inner,
.pr-cat-crossing .pr-cat-transition-num,
.pr-cat-crossing .pr-cat-transition-name,
.pr-cat-crossing .pr-cat-transition-line,
.pr-cat-crossing .pr-cat-transition-entering {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pr-cat-crossing,
  .pr-crossing-rose,
  .pr-crossing-eyebrow,
  .pr-crossing-name,
  .pr-crossing-line,
  .pr-crossing-rule {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Phase 2 — route compass needs <ol> reset + reduced-motion guards */
.pr-route-compass { list-style: none; padding-left: 18px; padding-right: 18px; margin-top: 14px; }
.pr-route-compass > li { margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .pr-route-point,
  .pr-route-point.pr-route-active,
  .pr-crossing-rose,
  .pr-route-tether {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================================
   PHASE 4 — INNER COMPASS THRESHOLD (entry calibration)
   Full-viewport overlay between "Begin Scan" and Chamber One.
   Compass needle drifts and settles, eyebrow + line fade in,
   then auto-enters or user taps "Cross Threshold".
   ============================================================ */
.pr-threshold-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #1a2433 0%, #0a0f17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.pr-threshold-overlay.pr-threshold-active { opacity: 1; }
.pr-threshold-overlay.pr-threshold-fade { opacity: 0; }
.pr-threshold-inner {
  text-align: center;
  max-width: 440px;
  padding: 24px;
}
.pr-threshold-rose {
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: prThresholdFadeIn 0.9s ease 0.2s forwards;
}
.pr-threshold-rose-svg { width: 100%; height: 100%; display: block; }
.pr-threshold-needle {
  transform-origin: 50px 50px;
  transform: rotate(-78deg);
  animation: prNeedleSettle 2.4s cubic-bezier(0.34, 1.20, 0.64, 1) 0.5s forwards;
}
.pr-threshold-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #C6A15B;
  margin-bottom: 18px;
  opacity: 0;
  animation: prThresholdFadeIn 0.8s ease 1.7s forwards;
}
.pr-threshold-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  color: #F5F0E6;
  margin: 0 auto 36px;
  max-width: 360px;
  opacity: 0;
  animation: prThresholdFadeIn 0.9s ease 2.1s forwards;
}
.pr-threshold-btn {
  background: transparent;
  border: 1px solid #C6A15B;
  color: #C6A15B;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 13px 32px;
  cursor: pointer;
  opacity: 0;
  animation: prThresholdFadeIn 0.8s ease 2.6s forwards;
  transition: background 0.3s ease, color 0.3s ease;
}
.pr-threshold-btn:hover,
.pr-threshold-btn:focus-visible {
  background: #C6A15B;
  color: #1a2433;
  outline: none;
}
@keyframes prThresholdFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes prNeedleSettle {
  0%   { transform: rotate(-78deg); }
  35%  { transform: rotate(28deg); }
  65%  { transform: rotate(-12deg); }
  85%  { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

/* ============================================================
   PHASE 4 — UNSEALING (pattern name inscription)
   Letter-by-letter reveal of the named pattern, with eyebrow
   "Your pattern, named" above. Bloom fires once inscription
   completes (see game.js showRadarResults).
   ============================================================ */
.pr-pattern-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #C6A15B;
  margin: 28px 0 10px;
  opacity: 0;
  animation: prThresholdFadeIn 0.8s ease 0.5s forwards;
}
.pr-pattern-letter {
  display: inline-block;
  opacity: 0;
  animation: prInscribeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes prInscribeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-threshold-rose,
  .pr-threshold-eyebrow,
  .pr-threshold-line,
  .pr-threshold-btn,
  .pr-pattern-eyebrow,
  .pr-pattern-letter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pr-threshold-needle {
    animation: none !important;
    transform: rotate(0deg) !important;
  }
}

/* ── Phase 5 — Closing Inscription compass artifact ─────────────────── */
body.realm-inner-compass .pr-artifact-wrap {
  margin: 30px auto 18px;
  max-width: 460px;
  text-align: center;
}
body.realm-inner-compass .pr-artifact-eyebrow {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  color: #6E7C86;
  letter-spacing: 1px;
  margin-bottom: 10px;
  opacity: 0;
  animation: prArtFade 0.8s ease 0.1s forwards;
}
body.realm-inner-compass .pr-compass-artifact {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #FBF6EC 0%, #E8DEC9 100%);
  border: 2px solid #C6A15B;
  border-radius: 4px;
  padding: 22px 22px 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px rgba(198,161,91,0.35) inset,
    0 16px 40px -18px rgba(36,50,74,0.35),
    0 4px 14px -8px rgba(168,106,58,0.25);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  animation: prArtRise 1.1s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}
body.realm-inner-compass .pr-compass-artifact::before,
body.realm-inner-compass .pr-compass-artifact::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,161,91,0.55), transparent);
  pointer-events: none;
}
body.realm-inner-compass .pr-compass-artifact::before { top: 12px; }
body.realm-inner-compass .pr-compass-artifact::after  { bottom: 12px; }
body.realm-inner-compass .pr-artifact-head {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6E7C86;
  margin-bottom: 8px;
}
body.realm-inner-compass .pr-artifact-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 380px;
  margin: 0 auto;
}
body.realm-inner-compass .pr-artifact-state-row {
  margin-top: 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #46525A;
}
body.realm-inner-compass .pr-artifact-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(198,161,91,0.35);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #C6A15B;
  font-weight: 600;
}
body.realm-inner-compass .pr-artifact-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
body.realm-inner-compass .pr-artifact-btn {
  background: transparent !important;
  color: #24324A !important;
  border: 1px solid #C6A15B !important;
  letter-spacing: 1.5px;
  font-family: Georgia, 'Times New Roman', serif;
  padding: 10px 22px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
body.realm-inner-compass .pr-artifact-btn:hover:not(:disabled) {
  background: #C6A15B !important;
  color: #F5F0E6 !important;
  box-shadow: 0 4px 14px -6px rgba(198,161,91,0.6);
}
body.realm-inner-compass .pr-artifact-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
body.realm-inner-compass .pr-artifact-hint {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 12px;
  color: #6E7C86;
  min-height: 1em;
}
@keyframes prArtRise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes prArtFade {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.realm-inner-compass .pr-compass-artifact,
  body.realm-inner-compass .pr-artifact-eyebrow {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─────────────────────────────────────────────
   INNER COMPASS V2 — chamber stage (3-mechanic loop)
   First Movement / Signal Sorting / Compass Calibration
───────────────────────────────────────────── */
.ic-chamber-stage {
  background: transparent;
  padding: 18px 14px 56px;
}
/* Cartographer's plate — a single unified parchment surface that holds
   header, scenario, and mechanic block together. Subtle brass border with
   double-rule corner accents (::before / ::after) gives an atelier-page
   feel without the noise of a heavy frame. */
.ic-stage-inner {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 38px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background:
    linear-gradient(180deg, rgba(245, 240, 230, 0.72) 0%, rgba(245, 240, 230, 0.55) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(198, 161, 91, 0.07), transparent 60%);
  border: 1px solid rgba(198, 161, 91, 0.32);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(245, 240, 230, 0.5),
    0 14px 44px -18px rgba(36, 50, 74, 0.18);
}
.ic-stage-inner::before,
.ic-stage-inner::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(198, 161, 91, 0.55);
  pointer-events: none;
}
.ic-stage-inner::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}
.ic-stage-inner::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}
.ic-chamber-header {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
  animation: icFadeUp 0.6s ease-out both;
}
/* The block that ties mech-label + prompt + buttons into one unit,
   so they read as a single section rather than three loose pieces. */
.ic-mech-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  animation: icFadeUp 0.7s ease-out 0.15s both;
}
.ic-chamber-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #C6A15B;
  margin-bottom: 12px;
  font-weight: 600;
}
.ic-chamber-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.95rem;
  color: #24324A;
  letter-spacing: 0.015em;
  line-height: 1.15;
}
.ic-mech-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #A86A3A;
  text-align: center;
  margin: 0;
  font-weight: 600;
  position: relative;
  padding: 0 18px;
}
.ic-mech-label::before,
.ic-mech-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(198, 161, 91, 0.55), transparent);
}
.ic-mech-label::before { right: 100%; }
.ic-mech-label::after  { left: 100%; }
.ic-mech-label-center {
  align-self: center;
  animation: icFadeUp 0.6s ease-out 0.1s both;
}
.ic-mech-count {
  display: inline-block;
  margin-left: 12px;
  color: #6E7C86;
  letter-spacing: 0.22em;
  font-weight: 500;
  font-size: 0.6rem;
}
.ic-mech-prompt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: #46525A;
  text-align: center;
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}
.ic-scenario {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.55;
  color: #24324A;
  text-align: center;
  background: linear-gradient(180deg, #FFFDF8 0%, #F8F2E4 100%);
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 3px;
  padding: 24px 28px;
  margin: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 14px rgba(36, 50, 74, 0.06);
  animation: icFadeUp 0.7s ease-out 0.1s both;
}
.ic-move-grid,
.ic-calibrate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 4px auto 0;
}
.ic-move-btn,
.ic-restore-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #24324A;
  background: linear-gradient(180deg, #FFFDF8 0%, #F5F0E6 100%);
  border: 1px solid rgba(198, 161, 91, 0.5);
  border-radius: 3px;
  padding: 16px 14px;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(36, 50, 74, 0.05);
  transition: background 0.25s ease, transform 0.18s ease, opacity 0.35s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  text-transform: none;
}
.ic-move-btn:hover:not(.ic-fade):not(.ic-chosen),
.ic-restore-btn:hover:not(.ic-fade):not(.ic-chosen) {
  background: linear-gradient(180deg, #FFFDF8 0%, #EFE7D2 100%);
  border-color: #C6A15B;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 14px -4px rgba(198, 161, 91, 0.35);
}
.ic-move-btn.ic-chosen,
.ic-restore-btn.ic-chosen {
  background: linear-gradient(180deg, #2C3D5A 0%, #24324A 100%);
  color: #F5F0E6;
  border-color: #C6A15B;
  letter-spacing: 0.1em;
  box-shadow:
    0 0 0 1px rgba(198, 161, 91, 0.4),
    0 4px 16px -4px rgba(36, 50, 74, 0.4);
}
.ic-move-btn.ic-fade,
.ic-restore-btn.ic-fade {
  opacity: 0.2;
  pointer-events: none;
}
.ic-signal-card {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.32rem;
  font-style: italic;
  color: #24324A;
  text-align: center;
  background: linear-gradient(180deg, #FFFDF8 0%, #FAF4E5 100%);
  border: 1px solid rgba(198, 161, 91, 0.5);
  border-radius: 3px;
  padding: 34px 30px;
  margin: 0 auto;
  max-width: 460px;
  line-height: 1.5;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 4px rgba(245, 240, 230, 0.5),
    0 0 0 5px rgba(198, 161, 91, 0.2),
    0 6px 24px -6px rgba(36, 50, 74, 0.14);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  animation: icCardRise 0.55s ease-out both;
}
.ic-signal-card.ic-signal-resonant {
  border-color: #C6A15B;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 4px rgba(245, 240, 230, 0.5),
    0 0 0 5px rgba(198, 161, 91, 0.55),
    0 6px 28px -4px rgba(198, 161, 91, 0.32);
}
.ic-signal-card.ic-signal-drift {
  opacity: 0.5;
  transform: translateY(8px);
}
.ic-bin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  margin: 14px auto 0;
}
.ic-bin-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #24324A;
  background: linear-gradient(180deg, #FFFDF8 0%, #F0E8D2 100%);
  border: 1px solid rgba(198, 161, 91, 0.5);
  border-radius: 3px;
  padding: 22px 12px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(36, 50, 74, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.ic-bin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFFDF8 0%, #EBE0C2 100%);
  border-color: #C6A15B;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 14px -4px rgba(198, 161, 91, 0.35);
}
.ic-bin-btn:disabled { cursor: default; }
.ic-bin-btn.ic-bin-resonant {
  background: linear-gradient(180deg, #2C3D5A 0%, #24324A 100%);
  color: #F5F0E6;
  border-color: #C6A15B;
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(198, 161, 91, 0.4),
    0 4px 18px -4px rgba(36, 50, 74, 0.4);
}
.ic-bin-btn.ic-bin-soft {
  background: linear-gradient(180deg, rgba(168, 106, 58, 0.18) 0%, rgba(168, 106, 58, 0.10) 100%);
  border-color: rgba(168, 106, 58, 0.45);
  color: #5A4737;
  opacity: 1;
}
.ic-orb {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 253, 248, 0.85), rgba(245, 240, 230, 0) 55%),
    radial-gradient(circle at 50% 50%, rgba(198, 161, 91, 0.4), rgba(36, 50, 74, 0.1) 72%);
  border: 1px solid rgba(198, 161, 91, 0.6);
  position: relative;
  box-shadow:
    0 0 0 6px rgba(245, 240, 230, 0.45),
    0 0 0 7px rgba(198, 161, 91, 0.2),
    0 6px 22px -6px rgba(36, 50, 74, 0.2);
  animation: icOrbDrift 3.5s ease-in-out infinite;
}
.ic-orb-needle {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2px;
  height: 38px;
  background: linear-gradient(to bottom, #A86A3A 0%, #C6A15B 60%, transparent 100%);
  border-radius: 1px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-12deg);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 6px rgba(198, 161, 91, 0.4);
}
.ic-orb.ic-orb-settled {
  animation: none;
}
.ic-orb.ic-orb-settled .ic-orb-needle {
  transform: translateX(-50%) rotate(0deg);
}

/* Tighten layout on small screens — keep the cartographer feel without
   crowding. The plate becomes a slimmer card; corner accents shrink. */
@media (max-width: 540px) {
  .ic-chamber-stage { padding: 12px 8px 40px; }
  .ic-stage-inner {
    padding: 30px 22px 32px;
    gap: 24px;
    border-radius: 3px;
  }
  .ic-stage-inner::before,
  .ic-stage-inner::after { width: 16px; height: 16px; }
  .ic-stage-inner::before { top: 7px; left: 7px; }
  .ic-stage-inner::after  { bottom: 7px; right: 7px; }
  .ic-chamber-name { font-size: 1.7rem; }
  .ic-scenario { font-size: 1.12rem; padding: 20px 20px; }
  .ic-signal-card { font-size: 1.18rem; padding: 28px 22px; }
  .ic-mech-label::before,
  .ic-mech-label::after { width: 18px; }
}

/* Mood-tinted overlays per chamber — subtle, additive */
.ic-mood-world   .ic-stage-inner { background: linear-gradient(to bottom, rgba(174, 191, 204, 0.10), transparent 60%); }
.ic-mood-money   .ic-stage-inner { background: linear-gradient(to bottom, rgba(168, 106, 58, 0.08), transparent 60%); }
.ic-mood-people  .ic-stage-inner { background: linear-gradient(to bottom, rgba(168, 184, 161, 0.10), transparent 60%); }
.ic-mood-noise   .ic-stage-inner { background: linear-gradient(to bottom, rgba(198, 161, 91, 0.10), transparent 60%); }
.ic-mood-unknown .ic-stage-inner { background: linear-gradient(to bottom, rgba(53, 80, 107, 0.10), transparent 60%); }

@keyframes icFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes icCardRise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes icOrbDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .ic-chamber-header,
  .ic-scenario,
  .ic-signal-card,
  .ic-orb { animation: none; }
  .ic-orb-needle { transition: none; }
}

@media (max-width: 600px) {
  .ic-chamber-name { font-size: 1.55rem; }
  .ic-scenario { font-size: 1.1rem; padding: 18px 18px; }
  .ic-signal-card { font-size: 1.15rem; padding: 22px 18px; }
  .ic-move-grid,
  .ic-calibrate-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ───────────────────────────────────────────────────────────────────────
   INNER COMPASS V3 — Circular Orbit + Medallion (graduated from mockup)
   Used by showFirstMovement (Section I), showSignalSort (Section II),
   showCalibration (Section III). Same orbit + chips + colours across all
   three sections; only the central medallion changes:
     Section I  → Compass Face dial (cardinal letters + ticks)
     Section II → Brass Scales medallion
     Section III→ Inner Star medallion (with breathing halo)
   Coexists with the legacy .ic-* classes; only .ic-mech-block contents
   are replaced.
   ─────────────────────────────────────────────────────────────────── */
.ico-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 8px 8px 24px;
  max-width: 720px;
  overflow: visible;
}
.ic-chamber-stage:has(.ico-stage) .ic-stage-inner.ico-stage {
  /* widen the parchment plate so chips can extend beyond the orbit ring
     without being clipped by the 580px max-width default. */
  max-width: 720px;
}
.ico-orbit {
  position: relative;
  width: min(460px, 84vmin);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}
.ico-orbit-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(198,161,91,0.35);
}
.ico-face {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #FBF6EA 0%, #EFE4CD 72%, #DAC8A4 100%);
  box-shadow:
    inset 0 0 0 2px #C6A15B,
    inset 0 0 0 8px #F5F0E6,
    inset 0 0 0 9px rgba(198,161,91,0.5),
    inset 0 0 0 16px rgba(245,240,230,0.5),
    0 26px 70px -26px rgba(36,50,74,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9%;
  overflow: hidden;
}
.ico-face-cardinal {
  position: absolute;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  z-index: 2;
}
.ico-face-ticks,
.ico-face-symbol {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.ico-face-ticks { inset: 6%; }
.ico-face-symbol { inset: 0; }
.ico-face-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  width: 100%;
  max-width: 88%;
}
.ico-face-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #C6A15B;
  font-weight: 600;
}
.ico-face-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.05;
  color: #24324A;
  margin: 0;
}
.ico-face-divider {
  width: 36px; height: 1px;
  background: rgba(198,161,91,0.55);
  margin: 2px auto;
}
.ico-face-scenario {
  font-family: 'Cormorant Garamond', Georgia, serif;
  /* Bolded — this is the prompt/statement the player is responding to.
     Slightly larger than .ico-face-sub so it visually anchors the circle. */
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.38;
  color: #24324A;
  margin: 0;
}
.ico-face-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #A86A3A;
  font-weight: 600;
  margin-top: 2px;
}
.ico-face-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(36,50,74,0.85);
  margin: 0;
}

/* Orbit chips — each glows its own colour on a sweep cycle */
.ico-orbit-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #F8F2E5;
  color: #24324A;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--chip-color, #C6A15B);
  cursor: pointer;
  white-space: nowrap;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(245,240,230,0.6),
    0 0 12px -2px color-mix(in srgb, var(--chip-color, #C6A15B) 40%, transparent),
    0 4px 14px -6px rgba(36,50,74,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.3s ease;
  animation: icoChipSweep 5.5s ease-in-out infinite;
}
.ico-orbit-chip:hover:not(.ico-fade):not(.ico-chosen):not(:disabled) {
  background: #FFFAEE;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(245,240,230,0.7),
    0 0 22px -2px color-mix(in srgb, var(--chip-color, #C6A15B) 70%, transparent),
    0 6px 18px -6px rgba(36,50,74,0.4);
}
.ico-orbit-chip.ico-chosen {
  animation: none;
  background: color-mix(in srgb, var(--chip-color, #C6A15B) 22%, #FFFAEE);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--chip-color, #C6A15B) 80%, transparent),
    0 0 30px 4px color-mix(in srgb, var(--chip-color, #C6A15B) 50%, transparent),
    0 6px 18px -6px rgba(36,50,74,0.4);
}
.ico-orbit-chip.ico-fade {
  animation: none;
  opacity: 0.32;
  transform: translate(-50%, -50%) scale(0.96);
}
@keyframes icoChipSweep {
  0%, 18%, 100% {
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--chip-color, #C6A15B) 65%, transparent),
      0 0 30px 2px color-mix(in srgb, var(--chip-color, #C6A15B) 55%, transparent),
      0 0 60px 6px color-mix(in srgb, var(--chip-color, #C6A15B) 25%, transparent),
      0 6px 18px -6px rgba(36,50,74,0.4);
    background: color-mix(in srgb, var(--chip-color, #C6A15B) 12%, #FFFAEE);
  }
  25%, 95% {
    box-shadow:
      0 0 0 1px rgba(245,240,230,0.6),
      0 0 12px -2px color-mix(in srgb, var(--chip-color, #C6A15B) 40%, transparent),
      0 4px 14px -6px rgba(36,50,74,0.35);
    background: #F8F2E5;
  }
}

/* Section III — Inner Star breathing halo overlay */
.ico-star-halo {
  position: absolute;
  top: 22%; left: 50%;
  width: 28%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,233,168,0.55) 0%, rgba(255,233,168,0) 70%);
  pointer-events: none;
  z-index: 1;
  animation: icoStarBreathe 5s ease-in-out infinite;
}
@keyframes icoStarBreathe {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .ico-orbit-chip { animation: none; }
  .ico-star-halo { animation: none; }
}

/* Mobile: shrink so 5 chips don't crowd the dial */
@media (max-width: 520px) {
  .ico-orbit { width: min(380px, 92vmin); }
  .ico-orbit-chip { font-size: 0.7rem; padding: 8px 12px; }
  .ico-face-title { font-size: 1.05rem; }
  .ico-face-scenario { font-size: 0.88rem; }
  .ico-face-sub { font-size: 0.78rem; }
  .ic-stage-inner.ico-stage { padding: 22px 14px 30px; }
}

/* Route compass strip when nested inside the orbit plate — collapse the
   default top margin so it sits flush at the top of the parchment, above
   the dial. Width is auto so the strip self-centers. */
.ico-stage > .pr-route-compass {
  margin: 0 auto 6px;
  padding-left: 0;
  padding-right: 0;
  width: auto;
  align-self: center;
}
.ico-stage > .ico-orbit { align-self: center; }
