/* ── GAME MY CITY · Screen Component Styles ── */

/* ── BACK BUTTON ── */
.back-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-raj);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--gold); }

/* ── STEP DOTS ── */
.step-dots { display: flex; gap: 6px; }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: all 0.2s; }
.sdot.on { background: var(--gold); width: 18px; border-radius: 3px; }

/* ── PERSONA SCREENS ── */
.method-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.method-card:hover { border-color: var(--gold-border-hi); }
.method-card.selected { border-color: var(--gold); background: rgba(212,168,39,0.06); }
.method-icon { font-size: 28px; }
.method-label { font-family: var(--font-raj); font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.method-card.selected .method-label { color: var(--gold); }

.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.avatar-opt {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-opt:hover { border-color: var(--gold); }
.avatar-opt.picked { border-color: var(--gold); background: rgba(212,168,39,0.1); }

.traits-row { display: flex; gap: 8px; flex-wrap: wrap; }
.trait-chip {
  font-family: var(--font-raj);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.trait-chip:hover { border-color: var(--gold); color: var(--gold); }
.trait-chip.selected { border-color: var(--gold); color: var(--gold); background: rgba(212,168,39,0.08); }

.confirm-avatar-wrap { position: relative; }
.confirm-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212,168,39,0.1);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto;
}

/* ── MODE CARDS ── */
.mode-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.mode-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); opacity: 0; transition: opacity 0.2s; }
.mode-card.chosen { border-color: var(--gold); background: rgba(212,168,39,0.05); }
.mode-card.chosen::after { opacity: 1; }
.mode-card-check {
  position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold);
  display: none; align-items: center; justify-content: center;
  font-size: 11px; color: #0A0A0C;
}
.mode-card.chosen .mode-card-check { display: flex; }
.mode-card-icon { font-size: 32px; margin-bottom: 10px; }
.mode-card-name { font-family: var(--font-raj); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mode-card-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ── MISSION PROFILE GRID ── */
.mission-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mission-card {
  background: var(--surface);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mission-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-accent, var(--gold)); opacity: 0; transition: opacity 0.2s; }
.mission-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }
.mission-card.chosen { border-color: var(--card-accent, var(--gold)); background: rgba(212,168,39,0.04); }
.mission-card.chosen::before { opacity: 1; }
.mission-card-check {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  display: none; align-items: center; justify-content: center; font-size: 10px; color: #0A0A0C;
}
.mission-card.chosen .mission-card-check { display: flex; }
.mission-card-icon { font-size: 28px; line-height: 1; }
.mission-card-name { font-family: var(--font-raj); font-size: 15px; font-weight: 700; color: var(--text); }
.mission-card-stops { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.5px; }

.intensity-pill {
  flex: 1;
  padding: 9px 0;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  background: transparent;
  font-family: var(--font-raj);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.intensity-pill:hover { border-color: var(--gold); color: var(--gold); }
.intensity-pill.active { background: var(--gold); color: #0A0A0C; border-color: var(--gold); }

/* ── SQUAD INVITE ── */
.qr-frame {
  width: 210px;
  height: 210px;
  background: var(--surface);
  border: 1.5px solid rgba(212,168,39,0.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.qr-scan-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,168,39,0.6), transparent);
  animation: qrscan 2.5s ease-in-out infinite;
}
@keyframes qrscan { 0% { top: 12px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 198px; opacity: 0; } }

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}
.code-copy-btn {
  font-family: var(--font-raj);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.code-copy-btn:hover { border-color: var(--gold); color: var(--gold); }

.share-small-btn {
  flex: 1;
  padding: 11px 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 11px;
  font-family: var(--font-raj);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.share-small-btn:hover { border-color: var(--gold-border-hi); color: var(--text); }

/* ── SQUAD LOBBY ── */
.lobby-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.3s;
}
.lobby-slot.filled { background: var(--surface); border: 0.5px solid var(--border); }
.lobby-slot.you { border-color: rgba(212,168,39,0.4); }
.lobby-slot.joining { background: var(--surface); border: 0.5px solid var(--green-border); animation: popIn 0.4s ease both; }
.slot-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0.5px dashed rgba(212,168,39,0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.slot-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.08); }
.slot-name { font-family: var(--font-raj); font-size: 16px; font-weight: 700; color: var(--text); }
.slot-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.3px; }

.lobby-code-chip {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lobby-code-chip:hover { border-color: var(--gold-border-hi); }

/* ── GENERATING ── */
.orb-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,168,39,0.2);
  animation: rexpand 2.5s ease-out infinite;
}
.orb-ring.r2 { animation-delay: 1.1s; }
.orb-ring.r3 { animation-delay: 2.2s; border-color: rgba(212,168,39,0.1); }
.orb-core {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212,168,39,0.08);
  border: 1.5px solid rgba(212,168,39,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
  z-index: 2;
}

.gen-log {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.log-line { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.log-line:last-child { margin-bottom: 0; }
.log-prefix { font-family: var(--font-mono); font-size: 10px; color: var(--gold); flex-shrink: 0; }
.log-text { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); line-height: 1.5; letter-spacing: 0.3px; transition: color 0.3s; }
.log-text.active { color: var(--text); }
.log-text.done { color: rgba(39,174,96,0.7); }
.cursor { display: inline-block; width: 6px; height: 11px; background: var(--gold); margin-left: 2px; animation: blink 0.8s step-end infinite; vertical-align: middle; }

/* ── MISSION BRIEF ── */
.brief-stamp {
  position: absolute;
  top: 46px;
  right: 22px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(212,168,39,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
}
.stamp-text { font-family: var(--font-raj); font-size: 7px; font-weight: 700; color: rgba(212,168,39,0.6); letter-spacing: 1px; text-align: center; line-height: 1.4; text-transform: uppercase; }
.intel-row { display: flex; gap: 12px; align-items: flex-start; }
.intel-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; width: 22px; text-align: center; }

.stops-row { display: flex; align-items: center; }
.stop-pip { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.sp-dot {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-dot span { transform: rotate(45deg); font-size: 12px; display: block; line-height: 1; }
.sp-active { background: rgba(212,168,39,0.15); border-color: var(--gold); }
.sp-locked { background: rgba(255,255,255,0.02); border-color: #1e2840; }
.sp-name { font-family: var(--font-raj); font-size: 9px; font-weight: 700; color: var(--text-dim); text-align: center; line-height: 1.2; }
.sp-name-dim { color: rgba(255,255,255,0.3); }
.stop-conn { flex: 1; height: 1px; background: rgba(212,168,39,0.12); margin-bottom: 14px; }

.squad-av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 1.5px solid rgba(212,168,39,0.3); background: rgba(212,168,39,0.08); }

/* ── ACTIVE MAP ── */
.hud-bar {
  background: rgba(10,10,18,0.96);
  border-bottom: 0.5px solid var(--border);
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.map-area {
  position: relative;
  background: #0D1117;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.map-water { position: absolute; background: #080E14; }
.map-major { position: absolute; background: #1B2535; }
.map-minor { position: absolute; background: #141D2A; }
.map-block { position: absolute; background: #111820; border: 0.5px solid #0D1520; }

.map-pin {
  position: absolute;
  transform: translateX(-50%);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.mp-dot {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-dot span { transform: rotate(45deg); font-size: 12px; display: block; line-height: 1; }
.mp-stem { width: 2px; height: 7px; }
.mp-label {
  font-family: var(--font-raj);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
  text-transform: uppercase;
  border: 0.5px solid;
}

.player-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(212,168,39,0.25);
  animation: rexpand 2.8s ease-out infinite;
}
.player-ring.r2 { animation-delay: 1.3s; border-color: rgba(212,168,39,0.1); }
.player-heading {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 9px solid rgba(212,168,39,0.55);
}
.player-core { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #0D1117; position: relative; z-index: 2; }

.squad-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #0D1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transform: translate(-50%, -50%);
  z-index: 17;
  cursor: pointer;
}
.sq-dot-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-raj);
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
  background: rgba(10,10,18,0.85);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.compass {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 34px;
  height: 34px;
  background: rgba(10,10,18,0.88);
  border: 0.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.compass-tick { width: 1.5px; height: 4px; background: var(--gold); margin-bottom: 2px; }

.dist-float {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,18,0.9);
  border: 0.5px solid rgba(212,168,39,0.5);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--font-raj);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 20;
}

.action-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: rgba(14,16,24,0.9);
  font-family: var(--font-raj);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.2s;
}
.action-btn:hover { border-color: var(--gold); color: var(--text); }
.action-btn.primary-action { background: var(--gold); color: #0A0A0C; border-color: var(--gold); flex: 1.8; }
.action-btn.primary-action:hover { background: #E8B82A; }

/* squad strip */
.sq-member { display: flex; align-items: center; gap: 8px; flex: 1; }
.sq-av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.sq-info { flex: 1; }
.sq-name { font-family: var(--font-raj); font-size: 12px; font-weight: 700; color: var(--text); }
.sq-bar-track { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 3px; }
.sq-bar { height: 100%; border-radius: 2px; }
.sq-sep { width: 0.5px; background: rgba(212,168,39,0.1); align-self: stretch; }

/* reel bar */
.reel-live-bar {
  background: rgba(10,10,18,0.97);
  border-top: 0.5px solid rgba(212,168,39,0.12);
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.rlb-frames { display: flex; gap: 6px; flex: 1; overflow: hidden; }
.rlb-frame {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(212,168,39,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; background: var(--surface);
}
.rlb-frame.new { border-color: rgba(39,174,96,0.5); animation: popIn 0.4s ease both; }
.rlb-add {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px dashed rgba(212,168,39,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-dim); flex-shrink: 0; cursor: pointer;
}

/* ── TASK SCREENS ── */
.task-header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 18px 14px;
  flex-shrink: 0;
}
.task-dots { display: flex; gap: 5px; }
.task-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.task-dot.active-dot { background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
.task-dot.done { background: var(--green); }

.task-type-card {
  background: var(--surface);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  border-top: 3px solid var(--task-color, var(--gold));
  padding: 14px 14px 12px;
}
.task-type-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.photo-frame {
  width: 100%;
  height: 160px;
  background: #060810;
  border: 0.5px solid rgba(212,168,39,0.2);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.photo-frame:hover { border-color: rgba(212,168,39,0.5); }
.photo-frame.taken { background: #0D1520; }
.photo-taken-content { text-align: center; }
.photo-taken-label { font-family: var(--font-raj); font-size: 14px; font-weight: 700; color: var(--green); margin-top: 8px; }
.photo-taken-sub { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); margin-top: 4px; letter-spacing: 1px; }

.riddle-box {
  background: var(--surface2);
  border: 0.5px solid rgba(142,68,173,0.25);
  border-left: 2.5px solid #8E44AD;
  border-radius: 0 12px 12px 0;
  padding: 14px 14px;
  transition: border-color 0.3s;
}

.scavenge-item {
  background: var(--surface);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.scavenge-item.found { border-color: rgba(39,174,96,0.35); background: rgba(39,174,96,0.04); }
.si-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; transition: all 0.2s;
  color: var(--green);
}
.scavenge-item.found .si-check { border-color: var(--green); background: rgba(39,174,96,0.15); }
.si-label { font-size: 13px; color: var(--text); flex: 1; }
.scavenge-item.found .si-label { color: var(--text-dim); text-decoration: line-through; }

/* ── SABOTEUR EVENT ── */
.saboteur-modal {
  background: #0D1117;
  border: 0.5px solid rgba(192,57,43,0.45);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: popIn 0.4s ease both;
}

/* ── DEBRIEF ── */
.debrief-hero {
  background: #0D1117;
  padding: 28px 22px 22px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.debrief-stats-row {
  display: flex;
  background: rgba(10,10,18,0.7);
  border: 0.5px solid rgba(212,168,39,0.1);
  border-radius: 14px;
}
.dstat { flex: 1; padding: 12px 8px; text-align: center; border-right: 0.5px solid rgba(212,168,39,0.08); }
.dstat:last-child { border-right: none; }
.dstat-val { font-family: var(--font-raj); font-size: 24px; font-weight: 700; line-height: 1; }
.dstat-lbl { font-family: var(--font-mono); font-size: 8px; color: var(--text-dim); letter-spacing: 1px; margin-top: 4px; text-transform: uppercase; }

.sec-header { font-family: var(--font-mono); font-size: 9px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }

.secret-card {
  background: var(--surface);
  border-left: 2.5px solid var(--gold);
  border-top: 0.5px solid var(--border);
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s;
}
.secret-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.secret-location { font-family: var(--font-raj); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.secret-text { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.secret-tag { font-family: var(--font-mono); font-size: 9px; color: var(--gold); margin-top: 6px; letter-spacing: 0.5px; }

/* passport */
.passport-stamp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.passport-stamp {
  background: #0D1117;
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.passport-stamp.earned { border: 0.5px solid rgba(212,168,39,0.3); }
.passport-stamp.earned::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; background: var(--gold); }
.passport-stamp.locked { border: 0.5px solid rgba(255,255,255,0.04); opacity: 0.45; }
.stamp-icon { font-size: 26px; line-height: 1; }
.stamp-name { font-family: var(--font-raj); font-size: 11px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.2; }
.stamp-name.dim { color: var(--text-dim); }
.stamp-sub { font-family: var(--font-mono); font-size: 8px; color: var(--text-dim); text-align: center; letter-spacing: 0.3px; line-height: 1.4; }
.stamp-lock-icon { position: absolute; top: 8px; right: 8px; font-size: 10px; opacity: 0.4; }

/* leaderboard */
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 0.5px solid rgba(212,168,39,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.lb-row.you-row { border-color: rgba(212,168,39,0.35); background: rgba(212,168,39,0.04); }
.lb-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 12px; opacity: 0.06; }
.lb-rank { font-family: var(--font-raj); font-size: 20px; font-weight: 700; color: var(--text-dim); width: 24px; flex-shrink: 0; text-align: center; }
.lb-rank.gold-rank { color: var(--gold); }
.lb-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.lb-name { font-family: var(--font-raj); font-size: 15px; font-weight: 700; color: var(--text); }
.lb-role { font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); margin-top: 1px; letter-spacing: 0.5px; }
.lb-score { font-family: var(--font-raj); font-size: 18px; font-weight: 700; }
.you-badge { font-family: var(--font-raj); font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--gold); background: rgba(212,168,39,0.1); border: 0.5px solid rgba(212,168,39,0.3); border-radius: 20px; padding: 2px 7px; margin-left: 6px; }

/* role reveal */
.role-reveal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.role-card {
  background: #0D1117;
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.role-card.flipped { border-color: var(--rc, rgba(212,168,39,0.5)); }
.role-card.flipped::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rc, var(--gold)); }
.rc-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1.5px solid rgba(255,255,255,0.08); }
.rc-name { font-family: var(--font-raj); font-size: 13px; font-weight: 700; color: var(--text); text-align: center; }
.rc-hidden { font-family: var(--font-mono); font-size: 8px; color: var(--text-dim); letter-spacing: 1px; text-align: center; }
.rc-role-name { font-family: var(--font-raj); font-size: 12px; font-weight: 700; text-align: center; }
.rc-perk { font-family: var(--font-mono); font-size: 8px; padding: 2px 7px; border-radius: 20px; border: 0.5px solid var(--rc, var(--gold)); color: var(--rc, var(--gold)); text-align: center; }
.rc-emoji { font-size: 20px; }

/* saboteur / generic overlays */
.saboteur-overlay, .generic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  animation: fadeIn 0.3s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.generic-modal {
  background: #0D1117;
  border: 0.5px solid rgba(212,168,39,0.3);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  animation: popIn 0.4s ease both;
}
.sab-modal-tag { font-family: var(--font-mono); font-size: 9px; color: #E57368; letter-spacing: 2px; margin-bottom: 10px; }
.sab-modal-title { font-family: var(--font-raj); font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.1; }
.sab-modal-body { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; }

/* ── SOUVENIR REEL ── */
.vp-frame {
  flex: 1;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-right: 1px solid #0A0A0F;
  position: relative;
}
.vp-frame:last-child { border-right: none; }
.vp-frame-label { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 7px; color: rgba(212,168,39,0.5); letter-spacing: 0.5px; }

.clip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.clip-item {
  background: var(--surface);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.clip-item.highlight { border-color: rgba(212,168,39,0.25); background: rgba(212,168,39,0.04); }
.clip-item.faded { opacity: 0.35; }
.clip-icon { font-size: 18px; line-height: 1; }
.clip-label { font-family: var(--font-raj); font-size: 10px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.2; }
.clip-dur { font-family: var(--font-mono); font-size: 8px; color: var(--text-dim); letter-spacing: 0.5px; }

.share-opt {
  background: var(--surface);
  border: 0.5px solid rgba(212,168,39,0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.share-opt:hover { border-color: rgba(212,168,39,0.3); }
.so-icon { font-size: 22px; flex-shrink: 0; }
.so-name { font-family: var(--font-raj); font-size: 13px; font-weight: 700; color: var(--text); }
.so-sub { font-size: 10px; color: var(--text-dim); margin-top: 1px; font-family: var(--font-mono); letter-spacing: 0.3px; }

/* ── MOMENTS MAP ── */
.moments-map-area {
  position: relative;
  height: 280px;
  background: #0D1117;
  overflow: hidden;
  flex-shrink: 0;
}
.mt-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 0; cursor: pointer; }
.mt-left { display: flex; flex-direction: column; align-items: center; width: 30px; }
.mt-dot {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mt-dot span { transform: rotate(45deg); font-size: 11px; display: block; line-height: 1; }
.mt-line { width: 1px; flex: 1; min-height: 18px; margin: 3px 0; background: rgba(212,168,39,0.1); }
.mt-body { flex: 1; padding-bottom: 16px; }
.mt-title { font-family: var(--font-raj); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.mt-text { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.mt-time { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.5px; }

/* ── LOBBY SLOT JOINING ANIMATION ── */
@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── EN ROUTE SCREEN ── */
.enroute-compass-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,39,0.3);
  box-shadow: 0 0 0 8px rgba(212,168,39,0.06), inset 0 0 30px rgba(212,168,39,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: compassSpin 8s linear infinite;
}
.enroute-compass-arrow {
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 12px rgba(212,168,39,0.5);
}
@keyframes compassSpin {
  0%   { box-shadow: 0 0 0 8px rgba(212,168,39,0.06), inset 0 0 30px rgba(212,168,39,0.04); }
  50%  { box-shadow: 0 0 0 12px rgba(212,168,39,0.12), inset 0 0 30px rgba(212,168,39,0.08); }
  100% { box-shadow: 0 0 0 8px rgba(212,168,39,0.06), inset 0 0 30px rgba(212,168,39,0.04); }
}
.enroute-maps-card {
  width: 100%;
  background: rgba(14,16,24,0.8);
  border: 0.5px solid rgba(212,168,39,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s;
}
.enroute-maps-card:active { border-color: var(--gold); }

/* ── Return-to-app banner ── */
#return-banner {
  position: fixed;
  bottom: 90px;
  left: 16px; right: 16px;
  z-index: 9000;
  background: rgba(20,20,28,0.97);
  border: 0.5px solid rgba(212,168,39,0.45);
  border-radius: 12px;
  padding: 14px 14px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: auto;
}
#return-banner.return-banner--in {
  transform: translateY(0);
  opacity: 1;
}

/* ── GPS arrival toast ── */
.arrival-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 9100;
  background: var(--green, #27ae60);
  color: #fff;
  border-radius: 40px;
  padding: 12px 22px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  white-space: nowrap;
}
.arrival-toast.arrival-toast--in {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
