/* ==========================================================================
   CANDOR INVESTMENT GROUP x MATTYJACKS.COM
   /games/ — REAL ESTATE TRAIL TRIAL, 3D EMOJI ARCADE, CALCULATORS & WORKSHEET
   ========================================================================== */

:root {
  --rett-obsidian: #070b12;
  --rett-panel: #0f1722;
  --rett-panel-elevated: #162232;
  --rett-glass: rgba(15, 23, 34, 0.86);
  --rett-border: rgba(255, 255, 255, 0.11);
  --rett-gold: #d4af37;
  --rett-gold-soft: rgba(212, 175, 55, 0.16);
  --rett-emerald: #10b981;
  --rett-emerald-soft: rgba(16, 185, 129, 0.16);
  --rett-orange: #e8754f;
  --rett-danger: #ef4444;
  --rett-danger-soft: rgba(239, 68, 68, 0.16);
  --rett-cyan: #06b6d4;
  --rett-purple: #8b5cf6;
  --rett-text: #f8fafc;
  --rett-muted: #94a3b8;
  --rett-forest: #153b31;
}

.games-body {
  background: #f4f3ec;
  color: var(--ink, #17352d);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Sub-Navigation / Mode Switcher */
.games-subnav {
  background: var(--rett-forest);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 64px;
  z-index: 9;
  box-shadow: 0 10px 28px rgba(18, 60, 48, 0.18);
}

.games-subnav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.games-mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.games-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2ece7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.games-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.games-tab-btn.active {
  background: var(--rett-orange);
  color: #fff;
  border-color: #ff9c7a;
  box-shadow: 0 6px 18px rgba(232, 117, 79, 0.38);
}

.games-quick-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.games-util-btn {
  background: rgba(7, 11, 18, 0.45);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.18s ease;
}

.games-util-btn:hover {
  background: rgba(7, 11, 18, 0.75);
  border-color: var(--rett-gold);
}

/* Main Container */
.games-wrap {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 60px;
  flex: 1;
}

.games-view-pane {
  display: none;
}

.games-view-pane.active {
  display: block;
  animation: rettFadeIn 0.28s ease-out;
}

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

/* ==========================================================================
   LIVE RESOURCE HUD BAR (EXPEDITION TELEMETRY)
   ========================================================================== */

.rett-hud-bar {
  background: linear-gradient(135deg, #09111c 0%, #112229 100%);
  color: var(--rett-text);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 18px 42px rgba(7, 11, 18, 0.25);
}

.rett-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 12px;
}

.rett-team-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rett-avatar-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--rett-gold);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.rett-team-meta strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.rett-team-meta span {
  font-size: 12px;
  color: var(--rett-muted);
}

.rett-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rett-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rett-chip.mode-standard { background: rgba(6, 182, 212, 0.18); color: #67e8f9; border-color: rgba(6, 182, 212, 0.4); }
.rett-chip.mode-personalized { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.45); }
.rett-chip.diff-easy { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.rett-chip.diff-hard { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.rett-chip.diff-realistic { background: rgba(239, 68, 68, 0.24); color: #fca5a5; border-color: rgba(239, 68, 68, 0.5); }

.rett-meters-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.rett-meter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 12px;
  position: relative;
  overflow: hidden;
}

.rett-meter-card small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rett-muted);
}

.rett-meter-card strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin-top: 2px;
  color: #fff;
}

.rett-meter-card.positive strong { color: #34d399; }
.rett-meter-card.negative strong { color: #f87171; }
.rett-meter-card.gold strong { color: #fbbf24; }

.rett-progress-mini {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.rett-progress-mini > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   MAIN GAME GRID (3D STAGE + COMMAND DECK)
   ========================================================================== */

.rett-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

/* Left Column: 3D Three.js Stage & Trail Map */
.rett-stage-card {
  background: var(--rett-obsidian);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(7, 11, 18, 0.32);
  position: relative;
}

.rett-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(15, 23, 34, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  flex-wrap: wrap;
}

.rett-stage-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.rett-scene-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rett-scene-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

.rett-scene-btn.active,
.rett-scene-btn:hover {
  background: var(--rett-gold);
  color: #070b12;
  border-color: var(--rett-gold);
}

.rett-canvas-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  background: radial-gradient(circle at 50% 25%, #162836 0%, #070b12 78%);
  overflow: hidden;
}

/* Suppress background stage HUD overlays whenever mini-arcade is engaged */
.rett-canvas-wrap:has(.rett-arcade-overlay.active) .rett-canvas-hud-top,
.rett-canvas-wrap:has(.rett-arcade-overlay.active) .rett-3d-toast,
.rett-arcade-mode-active .rett-canvas-hud-top,
.rett-arcade-mode-active .rett-3d-toast {
  display: none !important;
}

#rett-webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#rett-webgl-canvas:active {
  cursor: grabbing;
}

/* Floating 3D Stage Overlays */
.rett-canvas-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 10px;
}

.rett-corridor-banner {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 8px 13px;
  border-radius: 12px;
  pointer-events: auto;
}

.rett-corridor-banner small {
  display: block;
  font-size: 10px;
  color: var(--rett-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rett-corridor-banner strong {
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
}

.rett-weather-pill {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: auto;
}

/* Floating 3D Toast / Score Popups */
.rett-3d-toast {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(9, 17, 28, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
}

/* 5-Stage Bootcamp Progress Stepper & 6-Corridor Map Strip */
.rett-trail-stepper {
  background: #0b131e;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rett-phase-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.rett-phase-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
  color: var(--rett-muted);
  font-size: 11px;
  font-weight: 800;
  transition: 0.2s;
}

.rett-phase-node.completed {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.rett-phase-node.current {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--rett-gold);
  color: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.rett-corridor-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.rett-corridor-stop {
  padding: 6px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: 0.18s;
}

.rett-corridor-stop:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.rett-corridor-stop.active {
  background: var(--rett-forest);
  border-color: #34d399;
  color: #fff;
}

/* Operational Posture Controls (Pacing, Management, Reserves) */
.rett-posture-bar {
  background: #fffefa;
  border: 1px solid var(--line, #d7dfd7);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rett-posture-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4c6557;
  margin-bottom: 5px;
}

.rett-posture-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd9ce;
  background: #f7f5ee;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   RIGHT COLUMN: SCENARIO DECISION ENGINE & ADVISOR MENTORSHIP
   ========================================================================== */

.rett-decision-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rett-scenario-card {
  background: #fffefa;
  border: 1px solid #cbd9ce;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(23, 53, 45, 0.08);
}

.rett-scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.rett-phase-pill {
  background: #e4ebe2;
  color: #17352d;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rett-hazard-pill {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.rett-scenario-title {
  font-family: 'Manrope', sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
  color: #123c30;
}

.rett-scenario-desc {
  font-size: 14px;
  color: #465c52;
  line-height: 1.58;
  margin: 0 0 16px;
}

/* Deal Snapshot Box Inside Scenario */
.rett-deal-snapshot {
  background: #f3f7f2;
  border: 1px solid #d2e0d5;
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 16px;
}

.rett-deal-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rett-deal-snapshot-head strong {
  font-size: 13px;
  color: #123c30;
}

.rett-deal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rett-deal-metrics div {
  background: #fff;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #e1ebe3;
}

.rett-deal-metrics small {
  display: block;
  font-size: 10px;
  color: #647d71;
  font-weight: 700;
}

.rett-deal-metrics b {
  font-size: 13px;
  color: #17352d;
}

/* Scenario Choice Buttons */
.rett-choices-list {
  display: grid;
  gap: 10px;
}

.rett-choice-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1.5px solid #cbd9ce;
  border-radius: 13px;
  padding: 13px 16px;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #17352d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.rett-choice-btn:hover {
  border-color: var(--rett-orange);
  background: #fff9f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(232, 117, 79, 0.12);
}

.rett-choice-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: none !important;
  box-shadow: none !important;
}

.rett-cost-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
}

.rett-lifeline-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.rett-lifeline-btn:hover {
  background: var(--rett-gold);
  color: #070b12;
  border-color: var(--rett-gold);
  transform: translateY(-1px);
}

.rett-choice-btn.arcade-trigger {
  background: linear-gradient(135deg, #132f26 0%, #1d473a 100%);
  color: #fff;
  border-color: var(--rett-gold);
}

.rett-choice-btn.arcade-trigger:hover {
  box-shadow: 0 12px 26px rgba(21, 59, 49, 0.28);
}

.rett-choice-emoji {
  font-size: 24px;
  line-height: 1;
  flex: none;
  margin-top: 2px;
}

.rett-choice-body {
  flex: 1;
}

.rett-choice-body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.rett-choice-body span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}

.rett-choice-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.rett-choice-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef4ea;
  color: #25513e;
}

.rett-choice-btn.arcade-trigger .rett-choice-tag {
  background: rgba(212, 175, 55, 0.22);
  color: #fde68a;
}

/* Candor Advisor Mentor Card */
.rett-advisor-card {
  background: linear-gradient(135deg, #153b31 0%, #0f2922 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.rett-advisor-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--rett-gold);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none;
}

.rett-advisor-copy small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5e6b3;
  font-weight: 800;
}

.rett-advisor-copy strong {
  display: block;
  font-size: 14px;
  margin: 2px 0 5px;
}

.rett-advisor-copy p {
  margin: 0;
  font-size: 12.5px;
  color: #f1f5f9;
  line-height: 1.5;
}

/* Expedition Log Feed */
.rett-log-card {
  background: #fffefa;
  border: 1px solid #d7dfd7;
  border-radius: 16px;
  padding: 14px 16px;
}

.rett-log-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #507568;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rett-log-list {
  max-height: 165px;
  overflow-y: auto;
  display: grid;
  gap: 7px;
  font-size: 12px;
}

.rett-log-entry {
  padding: 7px 10px;
  border-radius: 8px;
  background: #f7f5ee;
  border-left: 3px solid #153b31;
  color: #2c473c;
}

.rett-log-entry.bad { border-left-color: #ef4444; background: #fef2f2; color: #7f1d1d; }
.rett-log-entry.good { border-left-color: #10b981; background: #ecfdf5; color: #065f46; }
.rett-log-entry.warn { border-left-color: #f59e0b; background: #fffbeb; color: #78350f; }

/* ==========================================================================
   3D EMOJI MINI-ARCADE OVERLAY & PRACTICE LAB
   ========================================================================== */

.rett-arcade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.35);
  pointer-events: none;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  z-index: 5;
}

.rett-arcade-overlay.active {
  display: flex;
}

.rett-arcade-hud {
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rett-gold);
  border-radius: 12px;
  padding: 8px 14px;
  color: #fff;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rett-arcade-stats {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.rett-arcade-stat {
  font-size: 13px;
  font-weight: 800;
}

.rett-arcade-stat b {
  color: var(--rett-gold);
  font-size: 16px;
}

.rett-skip-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: auto;
  transition: 0.2s;
}

.rett-skip-btn:hover {
  background: var(--rett-orange);
  border-color: var(--rett-orange);
}

.rett-arcade-bottom-bar {
  background: rgba(7, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
  flex-wrap: wrap;
}

/* Arcade Lab Grid (Standalone Practice Tab) */
.arcade-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.arcade-game-card {
  background: #fffefa;
  border: 1px solid #cbd9ce;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.2s ease;
}

.arcade-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(23, 53, 45, 0.1);
  border-color: var(--rett-orange);
}

.arcade-game-card .arcade-icon {
  font-size: 38px;
  line-height: 1;
}

.arcade-game-card h3 {
  margin: 4px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
}

.arcade-game-card p {
  margin: 0;
  font-size: 13px;
  color: #52665d;
  line-height: 1.5;
  flex: 1;
}

/* ==========================================================================
   STANDALONE + IN-GAME REAL ESTATE CALCULATOR SUITE
   ========================================================================== */

.calc-suite-header {
  background: linear-gradient(135deg, #153b31 0%, #1d4f41 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.calc-nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.calc-pill-btn {
  background: #fffefa;
  border: 1px solid #cbd9ce;
  color: #17352d;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s;
}

.calc-pill-btn.active,
.calc-pill-btn:hover {
  background: #153b31;
  color: #fff;
  border-color: #153b31;
}

.calc-panel {
  display: none;
  background: #fffefa;
  border: 1px solid #cbd9ce;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 16px 38px rgba(23, 53, 45, 0.06);
}

.calc-panel.active {
  display: block;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calc-field label {
  font-size: 12px;
  font-weight: 800;
  color: #355245;
  display: flex;
  justify-content: space-between;
}

.calc-field input,
.calc-field select {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #bfcfc3;
  background: #f9f8f3;
  font-size: 14px;
  font-weight: 700;
  color: #17352d;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: 2px solid var(--rett-orange);
  background: #fff;
}

.calc-results-box {
  background: linear-gradient(145deg, #0d1924 0%, #132a24 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.calc-kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}

.calc-kpi small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.calc-kpi strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-top: 3px;
  color: #fff;
}

.calc-kpi.highlight strong { color: #34d399; }
.calc-kpi.gold strong { color: #fbbf24; }
.calc-kpi.warn strong { color: #f87171; }

.calc-preset-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.calc-preset-btn {
  background: #eef4ea;
  border: 1px solid #bdd0c2;
  color: #17352d;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.calc-preset-btn:hover {
  background: var(--rett-orange);
  color: #fff;
  border-color: var(--rett-orange);
}

/* ==========================================================================
   2-DAY BOOTCAMP WORKSHEET & INSTRUCTOR CONTROLS
   ========================================================================== */

.worksheet-container {
  background: #fffefa;
  border: 1px solid #cbd9ce;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(23, 53, 45, 0.06);
}

.worksheet-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.worksheet-module {
  background: #f8f7f1;
  border: 1px solid #d5e0d7;
  border-radius: 14px;
  padding: 18px;
}

.worksheet-module h3 {
  margin: 0 0 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  color: #153b31;
}

.worksheet-module textarea,
.worksheet-module input[type="text"] {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #c5d4c8;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.worksheet-module textarea {
  min-height: 76px;
  resize: vertical;
}

/* Instructor Panel */
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.instructor-card {
  background: #fffefa;
  border: 1px solid #cbd9ce;
  border-radius: 18px;
  padding: 22px;
}

.shock-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.shock-btn {
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid #cbd9ce;
  background: #f8f7f1;
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
  color: #17352d;
  transition: 0.18s;
}

.shock-btn:hover {
  background: #153b31;
  color: #fff;
  border-color: #153b31;
}

/* Setup / Mode Modal */
.rett-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 18, 0.76);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.rett-modal-backdrop.open {
  display: grid;
}

.rett-modal-card {
  background: #fffefa;
  color: #17352d;
  border-radius: 22px;
  max-width: 780px;
  width: 100%;
  padding: 28px;
  border: 2px solid var(--rett-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .rett-main-grid,
  .calc-layout,
  .worksheet-module-grid,
  .instructor-grid {
    grid-template-columns: 1fr;
  }
  .rett-meters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 680px) {
  .games-subnav { top: 56px; }
  .rett-meters-grid { grid-template-columns: repeat(2, 1fr); }
  .rett-phase-track { grid-template-columns: repeat(2, 1fr); }
  .rett-corridor-track { grid-template-columns: repeat(3, 1fr); }
  .rett-posture-bar,
  .calc-inputs-grid,
  .calc-kpi-grid,
  .shock-btn-grid,
  .rett-deal-metrics {
    grid-template-columns: 1fr;
  }
  .rett-canvas-wrap { height: 340px; }
}

/* Print Styling for 2-Day Bootcamp Workbook */
@media print {
  .nav, .games-subnav, .footer, .mobile-dock, .no-print {
    display: none !important;
  }
  .games-body {
    background: #fff !important;
    color: #000 !important;
  }
  .games-view-pane {
    display: none !important;
  }
  #pane-worksheet {
    display: block !important;
  }
  .worksheet-container {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    padding: 0 !important;
  }
  .worksheet-module {
    break-inside: avoid;
    border: 1px solid #888 !important;
  }
}
