/* Focus — Immersive study environment */

:root {
  --panel-bg: rgba(12, 12, 18, 0.85);
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-radius: 16px;
  --accent: #8a7cff;
  --accent-soft: rgba(138, 124, 255, 0.15);
  --text: #eee;
  --muted: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: "Inter", sans-serif;
  background: #0b0b12;
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ── Scene backgrounds ──────────────────────────────────── */
.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: background 2s ease;
  overflow: hidden;
}
.scene-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
}
.scene-layer.active { opacity: 1; }

/* Airplane */
body[data-scene="airplane"] .scene-bg {
  background: linear-gradient(180deg, #0f1b33 0%, #1a2a4a 30%, #2d4a6a 60%, #4a6a8a 100%);
}
.clouds {
  background:
    radial-gradient(ellipse 140px 50px at 12% 35%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 200px 60px at 40% 55%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 160px 45px at 70% 25%, rgba(255,255,255,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 220px 55px at 88% 65%, rgba(255,255,255,0.06) 0%, transparent 70%);
  animation: drift-clouds 80s linear infinite;
}
@keyframes drift-clouds {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-250px); }
}

/* Train */
body[data-scene="train"] .scene-bg {
  background: linear-gradient(180deg, #0a0a1a 0%, #121228 40%, #1a1a2e 70%, #0d0d1a 100%);
}
.stars {
  background-image:
    radial-gradient(1px 1px at 8% 15%, rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1px 1px at 42% 12%, rgba(255,255,255,0.6) 50%, transparent),
    radial-gradient(1px 1px at 58% 38%, rgba(255,255,255,0.3) 50%, transparent),
    radial-gradient(1px 1px at 75% 22%, rgba(255,255,255,0.5) 50%, transparent),
    radial-gradient(1px 1px at 88% 55%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1.5px 1.5px at 15% 65%, rgba(255,255,255,0.5) 50%, transparent),
    radial-gradient(1px 1px at 65% 72%, rgba(255,255,255,0.3) 50%, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.landscape {
  background: linear-gradient(0deg, rgba(20, 40, 20, 0.6) 0%, transparent 30%);
  animation: landscape-scroll 20s linear infinite;
}
@keyframes landscape-scroll {
  0%   { background-position: 0 0; }
  100% { background-position: -500px 0; }
}

/* Cafe */
body[data-scene="cafe"] .scene-bg {
  background: linear-gradient(180deg, #1a1410 0%, #2a2018 30%, #3d2e1a 55%, #2a1f12 100%);
}

/* Library */
body[data-scene="library"] .scene-bg {
  background: linear-gradient(180deg, #12100e 0%, #1e1a15 30%, #2a2418 55%, #1a1610 100%);
}

/* Rain overlay */
.rain-layer {
  background-image:
    linear-gradient(transparent 0%, transparent 94%, rgba(100, 140, 255, 0.25) 100%),
    linear-gradient(transparent 0%, transparent 91%, rgba(100, 140, 255, 0.18) 100%);
  background-size: 2px 90px, 3px 130px;
  background-position: 15% 0, 55% -40px;
  animation: rain-fall 0.7s linear infinite;
}
@keyframes rain-fall {
  0%   { background-position: 15% 0, 55% -40px; }
  100% { background-position: 15% 90px, 55% 90px; }
}

/* ── Window view (cruise) ──────────────────────────────── */
.window-view {
  position: absolute;
  top: 60px; right: 24px;
  z-index: 11;
  animation: fade-in 1s ease 0.5s both;
  pointer-events: none;
}
.window-frame {
  width: 180px; height: 120px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  background: #0d1525;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}
.window-scene {
  position: absolute; inset: 0;
  overflow: hidden;
}
.window-glare {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
  border-radius: 14px;
  pointer-events: none;
}

/* Airplane window */
body[data-scene="airplane"] .window-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1a3a6a 0%, #2a5a8a 40%, #4a8aba 70%, #7ab4da 100%);
}
body[data-scene="airplane"] .window-clouds-far {
  position: absolute; bottom: 20%; left: 0; right: 0; height: 40%;
  background:
    radial-gradient(ellipse 80px 20px at 20% 60%, rgba(255,255,255,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 120px 25px at 60% 40%, rgba(255,255,255,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 90px 22px at 85% 70%, rgba(255,255,255,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 70px 18px at 40% 80%, rgba(255,255,255,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 100px 24px at 110% 50%, rgba(255,255,255,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60px 16px at 150% 65%, rgba(255,255,255,0.35) 0%, transparent 70%);
  animation: clouds-drift-far 25s linear infinite;
}
body[data-scene="airplane"] .window-clouds-near {
  position: absolute; bottom: 5%; left: 0; right: 0; height: 50%;
  background:
    radial-gradient(ellipse 100px 30px at 10% 70%, rgba(255,255,255,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 140px 35px at 55% 55%, rgba(255,255,255,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 110px 28px at 90% 75%, rgba(255,255,255,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 80px 25px at 130% 60%, rgba(255,255,255,0.65) 0%, transparent 70%),
    radial-gradient(ellipse 120px 32px at 170% 70%, rgba(255,255,255,0.55) 0%, transparent 70%);
  animation: clouds-drift-near 12s linear infinite;
}
body[data-scene="airplane"] .window-ground,
body[data-scene="airplane"] .window-trees,
body[data-scene="airplane"] .window-poles { display: none; }

@keyframes clouds-drift-far {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-180px); }
}
@keyframes clouds-drift-near {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-180px); }
}

/* Train window */
body[data-scene="train"] .window-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d1020 0%, #151a30 30%, #1f2a45 50%, #2a3a55 100%);
}
body[data-scene="train"] .window-clouds-far {
  position: absolute; top: 10%; left: 0; right: 0; height: 30%;
  background:
    radial-gradient(ellipse 60px 15px at 25% 50%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 80px 18px at 65% 40%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50px 14px at 120% 55%, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: clouds-drift-far 40s linear infinite;
}
body[data-scene="train"] .window-clouds-near { display: none; }

body[data-scene="train"] .window-ground {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(0deg, #1a2a15 0%, #1e3018 50%, #223520 80%, transparent 100%);
}
body[data-scene="train"] .window-trees {
  position: absolute; bottom: 20%; left: 0; width: 400%; height: 25%;
  background:
    radial-gradient(ellipse 18px 24px at 5% 80%, #1a3a18 0%, transparent 70%),
    radial-gradient(ellipse 14px 20px at 10% 85%, #15301a 0%, transparent 70%),
    radial-gradient(ellipse 20px 26px at 18% 75%, #1e4020 0%, transparent 70%),
    radial-gradient(ellipse 12px 18px at 24% 82%, #163518 0%, transparent 70%),
    radial-gradient(ellipse 16px 22px at 30% 78%, #1a3a1c 0%, transparent 70%),
    radial-gradient(ellipse 18px 25px at 38% 76%, #1b3e1a 0%, transparent 70%),
    radial-gradient(ellipse 14px 19px at 44% 84%, #173218 0%, transparent 70%),
    radial-gradient(ellipse 20px 28px at 52% 74%, #1e4220 0%, transparent 70%),
    radial-gradient(ellipse 15px 20px at 58% 82%, #163818 0%, transparent 70%),
    radial-gradient(ellipse 17px 23px at 66% 77%, #1a3c1c 0%, transparent 70%),
    radial-gradient(ellipse 19px 26px at 74% 80%, #1d4020 0%, transparent 70%),
    radial-gradient(ellipse 13px 18px at 80% 85%, #153218 0%, transparent 70%);
  animation: train-scroll 6s linear infinite;
}
body[data-scene="train"] .window-poles {
  position: absolute; bottom: 15%; left: 0; width: 400%; height: 50%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 88px,
      rgba(80,70,60,0.5) 88px, rgba(80,70,60,0.5) 90px,
      transparent 90px, transparent 180px
    );
  animation: train-scroll 3s linear infinite;
}

@keyframes train-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* Hide window in stay mode */
body[data-scene="cafe"] .window-view,
body[data-scene="library"] .window-view,
body[data-scene="none"] .window-view { display: none; }

/* ── Screens ────────────────────────────────────────────── */
.screen {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: screen-enter 0.5s ease both;
  overflow: hidden;
}
@keyframes screen-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Welcome ────────────────────────────────────────────── */
.welcome-card {
  text-align: center;
  max-width: 420px;
  animation: fade-in-up 0.6s ease both;
}
.welcome-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.welcome-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.welcome-choices {
  display: flex;
  gap: 16px;
}
.choice-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: var(--panel-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  animation: fade-in-up 0.5s ease both;
}
.choice-card:nth-child(1) { animation-delay: 0.2s; }
.choice-card:nth-child(2) { animation-delay: 0.35s; }
.choice-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(138, 124, 255, 0.15);
}
.choice-card:active {
  transform: translateY(0) scale(0.97);
}
.choice-icon { font-size: 32px; display: flex; align-items: center; justify-content: center; }
.choice-icon svg { width: 32px; height: 32px; }
.pill-icon { display: inline-flex; vertical-align: middle; }
.pill-icon svg { width: 16px; height: 16px; }
[data-icon] svg { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.choice-label { font-size: 16px; font-weight: 700; }
.choice-desc { font-size: 12px; color: var(--muted); }

/* ── Setup cards ────────────────────────────────────────── */
.setup-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 32px;
  backdrop-filter: blur(16px);
  max-width: 440px;
  width: 100%;
  position: relative;
}

/* ── Travel setup: fullscreen globe + floating panel ───── */
#screenTravelSetup {
  padding: 0;
  position: relative;
}
.globe-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.globe-fullscreen canvas { display: block; width: 100%; height: 100%; }
.setup-float {
  position: relative;
  z-index: 10;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 28px;
  backdrop-filter: blur(20px);
  width: 320px;
  align-self: flex-end;
  margin: 24px 24px 24px auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: fade-in 0.4s ease;
}
.setup-float .setup-title { font-size: 18px; margin-bottom: 20px; }
.setup-float .btn.primary {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 14px;
}
.globe-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 12px;
  color: var(--muted);
  background: rgba(12,12,18,0.7);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  animation: fade-in 1s ease 0.5s both;
  white-space: nowrap;
}

.back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 11;
}
.back-btn:hover { color: var(--text); }
.setup-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.setup-group {
  margin-bottom: 20px;
}
.setup-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Pill row */
.pill-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}


/* Route info */
.route-info {
  text-align: center;
  margin: 16px 0;
  padding: 14px;
  background: var(--surface);
  border-radius: 10px;
}
.route-display {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.route-arrow { color: var(--accent); margin: 0 10px; }
.route-duration { font-size: 13px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { background: var(--surface-hover); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { opacity: 0.9; }
.btn.primary:disabled { opacity: 0.4; pointer-events: none; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.pill { padding: 8px 18px; font-size: 13px; border-radius: 20px; }
.btn.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-icon {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.btn-icon:hover { background: var(--surface-hover); color: var(--text); }
.btn-icon svg { width: 16px; height: 16px; }

.setup-card .btn.primary {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 15px;
}

/* ── Mini-game ──────────────────────────────────────────── */
.mg-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  animation: fade-in-up 0.5s ease both;
}

/* Ambient window — shows a scene-appropriate animated view */
.mg-window {
  height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
}
.mg-window.airplane-board {
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a6a 50%, #4a6a8a 100%);
}
.mg-window.airplane-arrive {
  background: linear-gradient(135deg, #2d4a6a 0%, #4a6a8a 40%, #7a9ab0 100%);
}
.mg-window.train-board {
  background: linear-gradient(135deg, #0a0a1a 0%, #121228 50%, #1a1a2e 100%);
}
.mg-window.train-arrive {
  background: linear-gradient(135deg, #121228 0%, #1e1e3a 50%, #2a2a4a 100%);
}
/* Window ambient elements */
/* .mg-window-icon styles are in the SVG icon section below */
@keyframes float-gentle {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-55%) translateX(-8px); }
}
.mg-window-clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100px 35px at 15% 40%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 140px 40px at 55% 60%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80px 30px at 80% 30%, rgba(255,255,255,0.10) 0%, transparent 70%);
  animation: drift-clouds 40s linear infinite;
}
.mg-window-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1px 1px at 58% 15%, rgba(255,255,255,0.6) 50%, transparent),
    radial-gradient(1.5px 1.5px at 78% 45%, rgba(255,255,255,0.5) 50%, transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.3) 50%, transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.mg-window-route {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.mg-window-route .route-arrow { color: var(--accent); font-size: 11px; }

/* Content area below window */
.mg-content {
  padding: 24px 28px 28px;
  text-align: center;
}

/* Progress dots */
.mg-progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.mg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: all 0.4s ease;
}
.mg-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(138, 124, 255, 0.5);
  transform: scale(1.2);
}
.mg-dot.done {
  background: #4ade80;
}

.mg-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
  animation: fade-in 0.3s ease;
}
.mg-instruction {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  animation: fade-in 0.4s ease;
  letter-spacing: -0.01em;
}
.mg-scene {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Mini-game items — cards with icon + label */
.mg-item {
  width: 120px;
  padding: 20px 12px 16px;
  border: 1.5px solid var(--panel-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  touch-action: none;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: visible;
}
.mg-item-icon {
  font-size: 36px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.mg-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.mg-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(138, 124, 255, 0.2);
}
.mg-item:hover .mg-item-icon { transform: scale(1.1); }
.mg-item:hover .mg-item-label { color: var(--text); }
.mg-item:active {
  transform: translateY(0) scale(0.96);
}
.mg-item.done {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  pointer-events: none;
  animation: bounce-done 0.5s ease both;
}
.mg-item.done::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  background: #4ade80;
  color: #0b0b12;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  animation: pop-in 0.3s ease both;
}
.mg-item.draggable {
  cursor: grab;
  border-style: solid;
  border-color: var(--accent);
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.mg-item.dragging {
  opacity: 0.9;
  transform: scale(1.1) rotate(3deg);
  z-index: 100;
  box-shadow: 0 12px 40px rgba(138, 124, 255, 0.3);
}

/* dropzone styles removed — replaced by stow-bin and seat-picker */

/* Particle burst */
.mg-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: particle-burst 0.7s ease-out both;
}

/* SVG icons in mini-game cards */
.mg-item-icon svg, .mg-window-icon svg {
  width: 100%;
  height: 100%;
}
.mg-item-icon {
  width: 36px;
  height: 36px;
  color: var(--text);
  transition: transform 0.3s ease;
}
.mg-window-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0.15;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  animation: float-gentle 4s ease-in-out infinite;
}

/* ── Seat picker ─────────────────────────────────────── */
.seat-cabin {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  animation: fade-in 0.4s ease both;
}
.seat-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.seat-row-num {
  width: 22px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.seat-aisle {
  width: 16px;
}
.seat-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(138, 124, 255, 0.35);
  border-radius: 8px;
  background: rgba(138, 124, 255, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.seat-btn .seat-icon {
  width: 18px;
  height: 18px;
  display: flex;
}
.seat-btn .seat-icon svg {
  width: 100%;
  height: 100%;
}
.seat-btn:hover:not(.taken):not(.selected) {
  border-color: var(--accent);
  background: rgba(138, 124, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(138, 124, 255, 0.3);
}
.seat-btn.taken {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.15);
  cursor: default;
}
.seat-btn.selected {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  animation: bounce-done 0.5s ease both;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}
.seat-btn.dimmed {
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.seat-btn.wrong {
  animation: shake 0.3s ease;
  border-color: #ff5d7a;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.seat-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 14px;
  animation: fade-in 0.4s ease 0.2s both;
}
.seat-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.seat-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--panel-border);
  background: var(--surface);
}
.seat-swatch.taken {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}
.seat-swatch.free {
  background: rgba(138, 124, 255, 0.08);
  border-color: rgba(138, 124, 255, 0.35);
}

/* ── Stow luggage ────────────────────────────────────── */
.stow-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fade-in 0.4s ease both;
}
.stow-bin {
  width: 200px;
  padding: 20px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stow-bin-icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: all 0.3s;
}
.stow-bin-icon svg { width: 100%; height: 100%; }
.stow-bin-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.stow-bin.hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(138, 124, 255, 0.15);
}
.stow-bin.hover .stow-bin-icon { color: var(--accent); }
.stow-bin.filled {
  border-color: #4ade80;
  border-style: solid;
  background: rgba(74, 222, 128, 0.1);
  animation: bounce-done 0.5s ease both;
}
.stow-bin.filled .stow-bin-icon { color: #4ade80; }
.stow-bin.filled .stow-bin-label { color: #4ade80; }
.stow-bag {
  width: 120px;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.6); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bounce-done {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
@keyframes particle-burst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── Cruising screen — 3D cabin ─────────────────────────── */
#screenCruising {
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* 3D cabin canvas */
.cabin-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cabin-3d canvas { display: block; width: 100%; height: 100%; }

/* Tools overlay — laptop screen when zoomed */
.tools-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background: rgba(2, 2, 8, 0.80);
  animation: tools-appear 0.4s ease both;
}
@keyframes tools-appear {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Laptop frame */
.tools-inner {
  position: relative;
  width: min(92%, 820px);
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0a0a16;
  border: 2.5px solid #1a1a2e;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 8px 40px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.03);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0;
}
/* Notch / camera dot at top */
.tools-inner::before {
  content: "";
  grid-column: 1 / -1;
  height: 28px;
  background: #0a0a16;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tools-inner::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a1a28;
  box-shadow: inset 0 0 2px rgba(100,140,255,0.15);
  z-index: 1;
}

.tool-card {
  background: rgba(14, 14, 26, 0.95);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-radius: 0;
  padding: 18px 16px;
  animation: fade-in 0.35s ease both;
}
.tool-card:nth-child(2) { animation-delay: 0.05s; }
.tool-card:nth-child(3) { animation-delay: 0.08s; border-right: none; }
.tool-card:nth-child(4) { animation-delay: 0.10s; }
.tool-card:nth-child(5) { animation-delay: 0.12s; border-right: none; border-bottom: none; }
/* Last row items — no bottom border */
.tool-card:last-child { border-bottom: none; }

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tool-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}
.tool-timer .timer-time { font-size: 34px; }
.tool-timer .timer-display { margin-bottom: 8px; }
.tool-tasks .todo-list { max-height: 180px; }
.tool-mixer {
  padding: 14px 16px;
  grid-column: span 2;
  border-right: none !important;
}

/* Back button — top bar of laptop */
.cabin-back-btn {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px 8px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
  margin: 0;
}
.cabin-back-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }

/* Break & session controls */
.tool-break {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 14px 16px !important;
  grid-column: span 2;
  border-right: none !important;
}
.break-buttons { display: flex; gap: 8px; width: 100%; }
.break-buttons .btn { flex: 1; }
.break-btn { display: flex; align-items: center; gap: 6px; justify-content: center; }
.break-btn svg { opacity: 0.5; }
.break-actions {
  display: flex; gap: 12px; justify-content: center;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
  width: 100%; padding-top: 8px;
}
.break-actions .btn { font-size: 0.72rem; opacity: 0.5; }
.break-actions .btn:hover { opacity: 1; }
.danger-btn { color: rgba(255,100,100,0.7) !important; }
.danger-btn:hover { color: rgba(255,100,100,1) !important; }

/* Break overlay */
.break-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(4,4,12,0.94);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  animation: fade-in 0.5s ease both;
}
.break-overlay.hidden { display: none; }
.break-content { text-align: center; max-width: 400px; }
.break-scene {
  width: 360px; height: 220px; margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #08080f;
  border: 1px solid rgba(255,255,255,0.05);
}
.break-scene canvas { display: block; width: 100%; height: 100%; }
.break-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.break-sub { color: var(--text-dim); font-size: 0.82rem; margin: 0 0 18px; }
.break-content .btn { margin: 4px; }
.rest-timer {
  display: block; font-size: 2.4rem; font-weight: 800;
  color: var(--accent); margin: 0 0 24px;
  font-variant-numeric: tabular-nums;
}

/* Toilet HUD — small pill at bottom center during walk */
.toilet-hud {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: rgba(8, 8, 18, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 8px 20px;
  text-align: center;
  animation: fade-in 0.4s ease both;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.toilet-hud.hidden { display: none !important; }
.toilet-hud-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}
.toilet-hud-btns {
  display: flex;
  gap: 6px;
}
.toilet-hud-btns .btn {
  padding: 4px 12px;
  font-size: 11px;
}

/* Laptop scrollbar */
.tools-inner::-webkit-scrollbar { width: 4px; }
.tools-inner::-webkit-scrollbar-track { background: transparent; }
.tools-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Stay mode: no 3D cabin, just tools centered (same fullscreen feel) */
.tools-overlay.stay-tools {
  background: rgba(6, 6, 16, 0.60);
  animation: fade-in 0.5s ease both;
}

/* Hide old elements */
.globe-cruise { display: none; }
.window-view { display: none; }
.cruise-header { display: none; }

/* Route chips */
.route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 2px 0;
}
.route-chip {
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.route-chip:hover { border-color: rgba(255,255,255,0.15); background: var(--surface-hover); }
.route-chip.active { border-color: var(--accent); background: var(--accent-soft); }
.route-chip .chip-time { font-weight: 400; color: var(--muted); margin-left: 4px; }

/* Panel header (used in tray items) */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.panel-header h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* Timer */
.timer-display { text-align: center; margin-bottom: 10px; }
.timer-time {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.timer-phase { font-size: 11px; color: var(--muted); margin-top: 2px; }
.timer-controls { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.timer-stats { text-align: center; font-size: 10px; color: var(--muted); }
.timer-settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--panel-border); }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.setting-row input {
  width: 48px; padding: 4px; border: 1px solid var(--panel-border);
  border-radius: 6px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 12px; text-align: center;
}

/* To-do */
.task-count {
  font-size: 10px; background: var(--accent-soft); padding: 2px 7px;
  border-radius: 8px; color: var(--accent); font-weight: 600;
}
.todo-form {
  display: flex; gap: 0; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--panel-border);
  border-radius: 10px; overflow: hidden; transition: border-color 0.2s;
}
.todo-form:focus-within { border-color: var(--accent); }
.todo-form input {
  flex: 1; padding: 8px 10px; border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 12px; min-width: 0;
}
.todo-form input::placeholder { color: var(--muted); }
.todo-form input:focus { outline: none; }
.todo-form button {
  width: 30px; height: auto; border-radius: 0; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--accent); border: none; color: #fff; cursor: pointer;
  padding: 0; transition: background 0.15s;
}
.todo-form button:hover { background: #7b6be6; }
.todo-list { list-style: none; max-height: 160px; overflow-y: auto; }
.todo-list::-webkit-scrollbar { width: 4px; }
.todo-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.todo-empty {
  text-align: center; padding: 12px 0; color: var(--muted); font-size: 11px;
  opacity: 0.6;
}
.todo-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; margin-bottom: 4px; border-radius: 8px;
  background: var(--surface); transition: background 0.15s;
  animation: fade-in 0.2s ease;
}
.todo-item:hover { background: var(--surface-hover); }
.todo-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0;
  cursor: pointer;
}
.todo-item span { flex: 1; font-size: 12px; line-height: 1.3; }
.todo-item.done { opacity: 0.5; }
.todo-item.done span { text-decoration: line-through; }
.todo-item .del-btn {
  background: none; border: none; color: var(--muted); font-size: 13px;
  cursor: pointer; padding: 2px 5px; opacity: 0; transition: opacity 0.15s;
  border-radius: 4px;
}
.todo-item:hover .del-btn { opacity: 0.6; }
.todo-item .del-btn:hover { opacity: 1; color: #ff5d7a; }

/* Mixer */
.mixer-channels { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.channel { display: flex; align-items: center; gap: 8px; }
.channel-icon { font-size: 14px; width: 22px; text-align: center; display: flex; align-items: center; justify-content: center; }
.channel-icon svg { width: 16px; height: 16px; }
.channel-name { font-size: 11px; color: var(--muted); width: 55px; flex-shrink: 0; }
.channel .slider { flex: 1; }

.rain-control {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
}
.rain-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.rain-control .slider { flex: 1; }

/* Spotify */
.spotify-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--panel-border); }
.spotify-connect { text-align: center; padding: 4px 0; }
.spotify-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1db954; color: #fff; border: none; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 11px;
  transition: background 0.2s, transform 0.1s;
}
.spotify-btn:hover { background: #1ed760; }
.spotify-btn:active { transform: scale(0.97); }
.spotify-logo { width: 14px; height: 14px; flex-shrink: 0; }
.sp-now-playing { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-art {
  width: 36px; height: 36px; border-radius: 6px; object-fit: cover;
  background: var(--surface); flex-shrink: 0;
}
.sp-track-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.sp-track { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-artist { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-controls { display: flex; align-items: center; gap: 4px; justify-content: center; }
.sp-controls .btn-icon {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
}
.sp-controls .btn-icon:hover { background: var(--surface-hover); }
.sp-controls .btn-icon svg { width: 14px; height: 14px; }
.sp-controls .sp-play {
  width: 30px; height: 30px; background: #fff; border-radius: 50%;
  color: #0b0b12;
}
.sp-controls .sp-play:hover { background: #e0e0e0; }
.sp-controls .sp-play svg { width: 14px; height: 14px; }
.sp-controls .sp-small {
  width: 24px; height: 24px; opacity: 0.4; transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.sp-controls .sp-small svg { width: 12px; height: 12px; }
.sp-controls .sp-small:hover { opacity: 0.7; }
.sp-controls .sp-small.sp-active { opacity: 1; color: #1db954; }
.sp-controls .sp-small.sp-active::after {
  content: ""; width: 3px; height: 3px; border-radius: 50%; background: #1db954;
  position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
}
.sp-controls .sp-small.sp-repeat-one::before {
  content: "1"; font-size: 7px; font-weight: 800; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #1db954; pointer-events: none;
}

.master-volume {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--panel-border);
}
.vol-label { font-size: 11px; font-weight: 600; color: var(--muted); width: 44px; }
.vol-value { font-size: 11px; color: var(--muted); width: 30px; }

/* Toggle switch */
.toggle-track {
  position: relative; width: 32px; height: 18px;
  background: rgba(255,255,255,0.1); border-radius: 9px;
  display: inline-block; flex-shrink: 0; transition: background 0.2s;
}
.toggle-track input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s;
  pointer-events: none;
}
.toggle-track input:checked ~ .toggle-thumb { transform: translateX(14px); background: var(--accent); }
.toggle-track:has(input:checked) { background: var(--accent-soft); }

/* Sliders */
.slider {
  -webkit-appearance: none; appearance: none; height: 4px;
  border-radius: 2px; background: var(--surface); outline: none; cursor: pointer;
}
.slider:disabled { opacity: 0.3; cursor: default; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
}

/* Lo-fi player */
.lofi-section {
  padding-top: 10px; border-top: 1px solid var(--panel-border); margin-top: 10px;
}
.lofi-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.lofi-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.lofi-label svg { width: 14px; height: 14px; }
.lofi-play-btn svg { width: 14px; height: 14px; }

/* Spotify */
.spotify-section {
  padding-top: 10px; border-top: 1px solid var(--panel-border); margin-top: 10px;
}
.spotify-disconnected { text-align: center; }
.spotify-disconnected .btn { gap: 6px; }
.spotify-icon { flex-shrink: 0; }
.spotify-now-playing {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.spotify-art {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover;
  background: var(--surface); flex-shrink: 0;
}
.spotify-track-info { flex: 1; min-width: 0; }
.spotify-track {
  display: block; font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spotify-artist {
  display: block; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spotify-controls {
  display: flex; justify-content: center; gap: 8px;
}
.spotify-play-btn svg { width: 20px; height: 20px; }

/* Focus mode panel */
.focus-panel {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 1000;
  width: 300px;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius); backdrop-filter: blur(20px);
  animation: fade-in-up 0.4s ease both;
  overflow: hidden;
}
.focus-panel-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px; font-weight: 700;
}
.focus-panel-icon { font-size: 16px; display: inline-flex; }
.focus-panel-icon svg { width: 16px; height: 16px; }
.focus-panel-close { margin-left: auto; }
.focus-panel-body { padding: 14px; }
.focus-ready {
  display: flex; gap: 8px; justify-content: center;
}
.focus-setup-text {
  font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.5;
}
.focus-setup-steps {
  font-size: 12px; color: var(--text); margin: 0 0 14px 18px; line-height: 1.7;
}
.focus-setup-steps code {
  background: var(--surface); padding: 1px 5px; border-radius: 4px; font-size: 11px;
}
.focus-setup-steps em { color: var(--muted); font-style: normal; }
.focus-setup { text-align: center; }
.focus-setup .btn { margin: 4px; }

/* ── Session complete ───────────────────────────────────── */
.complete-card {
  text-align: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 40px;
  backdrop-filter: blur(16px);
  max-width: 400px;
  animation: fade-in-up 0.6s ease both;
}
.complete-stats .stat {
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.complete-stats .stat:nth-child(1) { animation-delay: 0.3s; }
.complete-stats .stat:nth-child(2) { animation-delay: 0.45s; }
.complete-stats .stat:nth-child(3) { animation-delay: 0.6s; }
.complete-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.complete-city { color: var(--muted); margin-bottom: 24px; }
.complete-stats { display: flex; gap: 24px; justify-content: center; margin-bottom: 28px; }
.stat { text-align: center; }
.stat-val { display: block; font-size: 22px; font-weight: 800; }
.stat-label { font-size: 11px; color: var(--muted); }
.complete-actions { display: flex; justify-content: center; gap: 12px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .setup-float { width: 280px; }
  .tools-inner { width: 94%; }
}
@media (max-width: 600px) {
  .screen { padding: 16px; }
  #screenCruising { padding: 0; }
  #screenTravelSetup { padding: 0; }
  .setup-float {
    width: 100%;
    margin: auto 0 0 0;
    border-radius: 20px 20px 0 0;
    max-height: 55vh;
  }
  .globe-hint { bottom: auto; top: 16px; }
  .tools-inner { grid-template-columns: 1fr; width: 96%; border-radius: 10px; }
  .tool-break { grid-column: span 1; }
  .welcome-choices { flex-direction: column; }
  .timer-time { font-size: 28px; }
  .complete-stats { gap: 16px; }
}
