:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141f;
  --bg-tertiary: #1e1e2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent: #00d4ff;
  --accent-secondary: #00ff88;
  --gold: #ffcc44;
  --danger: #ff4466;
  --focus-ring: #00d4ff;
  --focus-glow: rgba(0, 212, 255, 0.4);
  --radius-md: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#app { width: 100%; height: 100%; position: relative; }
.screen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; flex-direction: column; }
.screen.hidden { display: none; }
.focusable { transition: all 0.15s ease; border: 2px solid transparent; cursor: pointer; outline: none; }
.focusable:focus { border-color: var(--focus-ring); box-shadow: 0 0 20px var(--focus-glow); }
.hidden { display: none !important; }

/* ---- shared layout ---- */
.screen-head {
  flex: none;
  padding: 22px 28px 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid #23233a;
  background: var(--bg-primary);
}
.screen-head h2 { font-size: 26px; font-weight: 700; }
.head-hint { font-size: 14px; color: var(--text-muted); }
.content {
  flex: 1; overflow-y: auto;
  padding: 18px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.content::-webkit-scrollbar { width: 0; }
.footer {
  flex: none; padding: 16px 24px 22px;
  border-top: 1px solid #23233a;
  background: var(--bg-primary);
}
.footer-row { display: flex; gap: 12px; }
.footer-row .btn { flex: 1; }

/* ---- buttons ---- */
.btn {
  width: 100%;
  min-height: 88px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 22px; font-weight: 600;
  padding: 0 18px;
}
.btn-primary {
  background: linear-gradient(135deg, #0d2f3a, #103a2e);
  color: var(--accent);
  border: 2px solid #1f5566;
}
.btn-primary.focusable:focus { border-color: var(--focus-ring); }

/* ---- home ---- */
#home { justify-content: space-between; padding: 40px 30px 26px; }
.home-top { text-align: center; margin-top: 26px; }
.home-icon { font-size: 46px; letter-spacing: 6px; }
.home-title {
  font-size: 44px; font-weight: 800; margin-top: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-sub { font-size: 19px; color: var(--text-secondary); margin-top: 8px; }
.home-buttons { display: flex; flex-direction: column; gap: 14px; }
.hint-bar { text-align: center; font-size: 14px; color: var(--text-muted); }

/* ---- presets ---- */
.preset-row { display: flex; gap: 10px; }
.chip {
  flex: 1; min-height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--text-secondary);
  text-align: center; padding: 0 6px;
}

/* ---- steppers ---- */
.stepper {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-height: 88px;
}
.stepper-label { font-size: 15px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.stepper-value {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 2px;
}
.stepper-value .val { font-size: 28px; font-weight: 700; }
.stepper-value .arrow { font-size: 30px; color: var(--text-muted); width: 36px; text-align: center; }
.stepper-hint { font-size: 14px; color: var(--text-muted); }
.stepper.adjusting { border-color: var(--accent-secondary); box-shadow: 0 0 20px rgba(0,255,136,0.35); }
.stepper.adjusting .arrow { color: var(--accent-secondary); }
.stepper.adjusting .stepper-hint { color: var(--accent-secondary); }

/* ---- schedule summary ---- */
.sched-summary {
  flex: none;
  padding: 14px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid #23233a;
}
.sum-line { font-size: 20px; font-weight: 700; }
.sum-dir { color: var(--accent); }
.sum-sub { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }

/* ---- day cards ---- */
.day-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px 16px 16px;
  border-left: 5px solid var(--accent);
}
.day-card.west { border-left-color: var(--accent-secondary); }
.day-card.note { border-left-color: var(--gold); }
.day-card.arrival { border-left-color: var(--accent); background: var(--bg-tertiary); }
.day-top { display: flex; align-items: center; justify-content: space-between; }
.day-label { font-size: 17px; font-weight: 700; }
.day-delta { font-size: 18px; font-weight: 700; color: var(--gold); }
.day-times {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 10px;
}
.time-block { text-align: center; }
.time-cap { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.time-val { font-size: 30px; font-weight: 800; }
.time-arrow { font-size: 24px; color: var(--text-muted); }
.day-light { font-size: 15px; color: var(--text-secondary); line-height: 1.4; }
.arrival-list { list-style: none; margin-top: 6px; }
.arrival-list li {
  font-size: 15px; color: var(--text-secondary); line-height: 1.45;
  padding-left: 18px; position: relative; margin-bottom: 6px;
}
.arrival-list li::before { content: "•"; color: var(--accent); position: absolute; left: 2px; }

/* ---- tips ---- */
.tip-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.tip-h { font-size: 19px; font-weight: 700; }
.tip-b { font-size: 15px; color: var(--text-secondary); line-height: 1.45; margin-top: 6px; }
