/* ===== DeckLog Game CSS ===== */
:root {
  --navy: #0a1628;
  --navy-mid: #162240;
  --navy-light: #1e3352;
  --ocean: #0f4c75;
  --accent: #e8912d;
  --accent-dark: #c47a22;
  --wood: #8b5e3c;
  --wood-light: #b8845a;
  --white: #f4f7fb;
  --steel: #7a8fa8;
  --safety-red: #e05a4e;
  --safety-green: #3eb870;
  --text: #d8e2ef;
  --text-dim: #7a8fa8;
  --glow: rgba(232, 145, 45, 0.6);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ===== Title Screen ===== */
#screen-title, #screen-tier-select, #screen-game, #screen-completion {
  display: none;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen-active { display: flex !important; }

#screen-title {
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.title-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 80px, rgba(255,255,255,0.03) 80px, rgba(255,255,255,0.03) 81px),
    repeating-linear-gradient(0deg, transparent 0, transparent 80px, rgba(255,255,255,0.03) 80px, rgba(255,255,255,0.03) 81px);
}

.title-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(15,76,117,0.4), transparent);
}

.title-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 72px;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 60px rgba(15,76,117,0.8);
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.title-subtitle {
  font-size: 16px;
  color: var(--steel);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 16px 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  margin: 8px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 145, 45, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--steel);
  border: 1px solid rgba(122,143,168,0.4);
  padding: 12px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  margin: 8px;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--steel);
  border: none;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.btn-ghost:hover { color: var(--accent); }

/* ===== Tier Select ===== */
#screen-tier-select {
  background: var(--navy);
  overflow-y: auto;
}

.tier-select-header {
  padding: 40px;
  text-align: center;
  border-bottom: 1px solid rgba(122,143,168,0.15);
  width: 100%;
}

.tier-select-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--white);
  margin-bottom: 8px;
}

.tier-select-header p {
  color: var(--steel);
  font-size: 15px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
}

.tier-card {
  background: var(--navy-mid);
  border: 1px solid rgba(122,143,168,0.2);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  transition: all 0.2s;
}

.tier-card.unlocked {
  cursor: pointer;
  border-color: rgba(232,145,45,0.3);
}

.tier-card.unlocked:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.tier-card.locked {
  opacity: 0.5;
}

.tier-rank {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--steel);
  margin-bottom: 8px;
}

.tier-name {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 6px;
}

.tier-ship-size {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 16px;
}

.tier-progress {
  margin-top: 16px;
}

.tier-progress-label {
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.tier-progress-bar {
  height: 6px;
  background: rgba(122,143,168,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.lock-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--steel);
}

.tier-cert-badge {
  display: inline-block;
  background: rgba(232,145,45,0.15);
  color: var(--accent);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.back-btn-wrap {
  padding: 20px 40px;
  width: 100%;
}

/* ===== Game Screen ===== */
#screen-game {
  background: var(--navy);
  flex-direction: row;
  padding: 0;
}

.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(10,22,40,0.95), transparent);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 10;
  gap: 20px;
}

.hud-tier-name {
  font-size: 13px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hud-xp {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.hud-rep {
  font-size: 14px;
  font-weight: 600;
  color: var(--safety-green);
}

.hud-tasks-done {
  font-size: 13px;
  color: var(--steel);
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.interact-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,22,40,0.9);
  border: 1px solid rgba(232,145,45,0.4);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  z-index: 20;
  display: none;
}

.interact-hint span {
  color: var(--accent);
  font-weight: 700;
}

/* ===== Minigame Modal ===== */
#minigame-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#minigame-overlay.active { display: flex; }

.minigame-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(122,143,168,0.3);
  border-radius: 12px;
  padding: 40px;
  max-width: 560px;
  width: 90%;
  position: relative;
}

.minigame-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 4px;
}

.minigame-desc {
  font-size: 14px;
  color: var(--steel);
  margin-bottom: 24px;
}

.minigame-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--steel);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.minigame-close:hover { color: var(--white); }

.minigame-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Minigame: Coil Rope */
.mg-coil-bar {
  width: 100%;
  height: 28px;
  background: var(--navy-light);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  cursor: pointer;
  user-select: none;
}

.mg-coil-green {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40%;
  width: 20%;
  background: var(--safety-green);
  border-radius: 14px;
}

.mg-coil-indicator {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 10px;
  background: var(--white);
  border-radius: 5px;
  transition: left 0.02s linear;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.mg-coil-result { font-size: 16px; font-weight: 600; margin-top: 16px; min-height: 24px; }

/* Minigame: Secure Cargo */
.mg-cargo-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 12px;
  margin: 16px 0;
}

.mg-cargo-slot {
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(122,143,168,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mg-cargo-slot.filled {
  border-color: var(--safety-green);
  background: rgba(62,184,112,0.1);
}

.mg-cargo-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.15s;
  user-select: none;
}

.mg-cargo-item:active { cursor: grabbing; transform: scale(1.1); }

.mg-cargo-item.small { background: #8b6914; border-radius: 4px; }
.mg-cargo-item.medium { background: #5a7fa8; border-radius: 6px; }
.mg-cargo-item.large { background: #7a5a8b; border-radius: 8px; }

.mg-cargo-palette {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.mg-cargo-result { font-size: 16px; font-weight: 600; margin-top: 12px; min-height: 24px; }

/* Minigame: Check Life Vest */
.mg-vest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.mg-vest-item {
  background: var(--navy-light);
  border: 2px solid rgba(122,143,168,0.2);
  border-radius: 8px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  transition: all 0.15s;
  user-select: none;
}

.mg-vest-item:hover {
  border-color: rgba(232,145,45,0.5);
  transform: scale(1.05);
}

.mg-vest-item.checked {
  border-color: var(--steel);
  background: rgba(122,143,168,0.1);
}

.mg-vest-item.faulty {
  border-color: var(--safety-red);
  background: rgba(224,90,78,0.2);
}

.mg-vest-timer {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.mg-vest-result { font-size: 16px; font-weight: 600; margin-top: 12px; min-height: 24px; }

/* Minigame: Pump Bilge */
.mg-bilge-gauge {
  width: 40px;
  height: 200px;
  background: var(--navy-light);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(122,143,168,0.3);
  margin: 20px 0;
}

.mg-bilge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--ocean), var(--safety-green));
  border-radius: 20px;
  transition: height 0.1s;
}

.mg-bilge-fill.danger { background: linear-gradient(to top, #b84a3e, var(--safety-red)); }

.mg-bilge-label {
  font-size: 12px;
  color: var(--steel);
  text-align: center;
  margin: 8px 0;
}

.mg-bilge-instructions {
  font-size: 14px;
  color: var(--steel);
  text-align: center;
  margin-top: 12px;
}

.mg-bilge-instructions strong { color: var(--accent); }

.mg-bilge-progress {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.mg-bilge-pip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(122,143,168,0.3);
  background: transparent;
  transition: all 0.3s;
}

.mg-bilge-pip.done {
  background: var(--safety-green);
  border-color: var(--safety-green);
}

.mg-bilge-result { font-size: 16px; font-weight: 600; margin-top: 12px; min-height: 24px; }

/* Minigame: Signal Flags */
.mg-flags-sequence {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
}

.mg-flags-blank {
  width: 60px;
  height: 80px;
  border: 2px dashed rgba(122,143,168,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--steel);
}

.mg-flags-choices {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.mg-flags-choice {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: all 0.15s;
  border: 2px solid transparent;
  user-select: none;
}

.mg-flags-choice:hover { transform: scale(1.1); border-color: var(--accent); }

.mg-flags-result { font-size: 16px; font-weight: 600; margin-top: 12px; min-height: 24px; }

/* Minigame: Clean Deck */
.mg-clean-area {
  width: 400px;
  height: 200px;
  background: var(--wood);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  margin: 16px 0;
}

.mg-clean-dirt {
  position: absolute;
  border-radius: 50%;
  background: rgba(90,60,30,0.6);
}

.mg-clean-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--navy-light);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}

.mg-clean-progress-fill {
  height: 100%;
  background: var(--safety-green);
  border-radius: 6px;
  transition: width 0.2s;
}

.mg-clean-result { font-size: 16px; font-weight: 600; margin-top: 12px; min-height: 24px; }

/* ===== Completion Screen ===== */
#screen-completion {
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.completion-cert {
  background: linear-gradient(135deg, #1a2d4a, #162240);
  border: 2px solid rgba(232,145,45,0.4);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  max-width: 520px;
  width: 90%;
  position: relative;
  z-index: 1;
}

.cert-ribbon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}

.cert-ribbon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 20px;
  background: var(--accent-dark);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.cert-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--steel);
  margin-bottom: 16px;
  margin-top: 24px;
}

.cert-name {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.cert-rank {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.cert-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid rgba(122,143,168,0.2);
  border-bottom: 1px solid rgba(122,143,168,0.2);
  margin-bottom: 32px;
}

.cert-stat { text-align: center; }
.cert-stat-value { font-size: 28px; font-weight: 700; color: var(--white); }
.cert-stat-label { font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: 1px; }

.cert-next {
  background: rgba(62,184,112,0.15);
  border: 1px solid rgba(62,184,112,0.3);
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  color: var(--safety-green);
  margin-bottom: 24px;
}

.cert-next-locked {
  color: var(--steel);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Simulation HUD ===== */
#screen-game {
  position: relative;
}

.sim-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(to bottom, rgba(10,22,40,0.9) 0%, transparent 100%);
  z-index: 10;
  gap: 12px;
}

.sim-hud-clock {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  background: rgba(10,22,40,0.6);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(122,143,168,0.3);
}

.sim-hud-warnings {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--steel);
  background: rgba(10,22,40,0.6);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(122,143,168,0.3);
}

.sim-warning-icon { font-size: 16px; }

.sim-hud-mood {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--steel);
  background: rgba(10,22,40,0.6);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(122,143,168,0.3);
}

/* Side panels */
.sim-panel {
  position: absolute;
  top: 70px;
  width: 120px;
  background: rgba(10,22,40,0.85);
  border: 1px solid rgba(122,143,168,0.25);
  border-radius: 8px;
  padding: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-panel-left { left: 12px; }
.sim-panel-right { right: 12px; }

.sim-panel-section {}

.sim-panel-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--steel);
  margin-bottom: 4px;
  font-weight: 700;
}

.line-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.line-label {
  font-size: 11px;
  color: var(--steel);
  font-weight: 600;
}

.line-dot {
  font-size: 14px;
  font-weight: 700;
}

.line-sep {
  width: 1px;
  height: 12px;
  background: rgba(122,143,168,0.3);
  margin: 0 4px;
}

.bilge-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bilge-bar {
  flex: 1;
  height: 8px;
  background: var(--safety-green);
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}

.bilge-pct {
  font-size: 11px;
  color: var(--steel);
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

.manifest-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.tide-status {
  font-size: 13px;
  color: var(--steel);
  font-weight: 600;
}

/* Radio call overlay */
.radio-overlay {
  position: absolute;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  background: rgba(10,22,40,0.96);
  border: 2px solid rgba(232,145,45,0.5);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 30;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -8px 32px rgba(232,145,45,0.2);
}

.radio-overlay.active {
  bottom: 80px;
}

.radio-ptt-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--steel);
}

.radio-ptt-indicator span {
  background: rgba(122,143,168,0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.radio-ptt-indicator.pulsing span {
  background: var(--accent);
  color: white;
  animation: ptt-pulse 1s ease-in-out infinite;
}

@keyframes ptt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.radio-transcript {
  background: rgba(30,51,82,0.6);
  border: 1px solid rgba(122,143,168,0.2);
  border-radius: 8px;
  padding: 12px 16px;
}

.radio-speaker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 4px;
}

.radio-msg {
  font-size: 14px;
  color: var(--white);
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
}

.radio-timer-bar {
  height: 4px;
  background: var(--safety-green);
  border-radius: 2px;
  transition: width 0.1s linear, background 0.3s;
}

.radio-responses {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-response-btn {
  background: rgba(22,34,64,0.9);
  color: var(--white);
  border: 1px solid rgba(30,51,82,0.8);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  animation: fade-in-up 0.25s ease-out both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.radio-response-btn:hover {
  border-color: var(--accent);
  background: rgba(232,145,45,0.1);
}

/* Interact prompt — screen-space overlay, positioned via JS */
.interact-prompt {
  position: fixed;
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(10,22,40,0.95);
  border: 1.5px solid rgba(232,145,45,0.7);
  border-radius: 8px;
  padding: 8px 16px 8px 10px;
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(232,145,45,0.35), 0 4px 16px rgba(0,0,0,0.5);
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.15s;
}

.interact-prompt.visible {
  display: flex;
}

.interact-key {
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  min-width: 22px;
  text-align: center;
}

.interact-label {
  font-size: 14px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Objective banner */
.objective-banner {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,22,40,0.85);
  border: 1px solid rgba(122,143,168,0.3);
  border-radius: 20px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
  max-width: 400px;
}

.obj-icon { font-size: 16px; }

.obj-text {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
}

/* Session overlay */
.session-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.session-result {
  background: rgba(10,22,40,0.96);
  border: 2px solid rgba(232,145,45,0.5);
  border-radius: 16px;
  padding: 40px 60px;
  text-align: center;
  max-width: 480px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .title-logo { font-size: 48px; }
  .tier-grid { grid-template-columns: 1fr; padding: 20px; }
  .mg-clean-area { width: 300px; height: 160px; }
}