/* moco loco: phone first, one hand, big thumbs.
   Two looks, picked by the clock (see js/theme.js): sunny day, starry night. */
:root {
  /* Day: egg yolk and warm toast. */
  --bg: #ffe27a;
  --bg-2: #ffc845;
  --card: #ffffff;
  --ink: #1d1b3a;
  --ink-soft: #6e4b1f;
  --brand: #ff5d73;
  --brand-ink: #ffffff;
  --brand-shadow: #c23a52;
  --alt: #21c7a8;
  --alt-ink: #0d2b26;
  --alt-shadow: #129177;
  --sun: #ffd23f;
  --line: #1d1b3a;
  --danger: #ffe3e3;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
:root[data-theme="night"] {
  --bg: #1b1938;
  --bg-2: #262352;
  --card: #2b2856;
  --ink: #fdf6ff;
  --ink-soft: #c3bfe6;
  --line: #0e0c22;
  --alt-ink: #062019;
  --danger: #4a2032;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 0%, var(--bg-2) 0, transparent 55%);
  color: var(--ink);
  font: 18px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
code { font-size: .85em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 8px);
}

.top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: .5px; }
.back {
  font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0;
  min-height: 48px; padding: 0 12px 0 0; cursor: pointer;
}

.screen { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.art { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 8px 0 18px; }
.px { image-rendering: pixelated; display: inline-block; flex: none; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -.3px; outline: none; }
h2 { font-size: 24px; margin: 8px 0 6px; }
.sub { color: var(--ink-soft); margin: 0 0 12px; font-size: 19px; }
.sub b, .card b { color: var(--ink); }
.calm { color: var(--ink-soft); font-size: 17px; }
.fine { color: var(--ink-soft); font-size: 15px; margin: 4px 0 0; }

.hero { display: flex; justify-content: center; width: 100%; }
.scene { height: min(21dvh, 220px); width: auto; max-width: 100%; aspect-ratio: 160 / 64; image-rendering: pixelated; image-rendering: crisp-edges; }

/* Thumb zone: the answers sit at the bottom of the screen. */
.actions { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 12px; }
.row2, .row3 { display: grid; gap: 10px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }

.big {
  font: inherit; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 64px; padding: 10px 14px;
  color: var(--brand-ink); background: var(--brand);
  border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--line);
  cursor: pointer; touch-action: manipulation;
  transition: transform .06s ease, box-shadow .06s ease;
}
.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.big:focus-visible, .link:focus-visible, .wheel-list:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
a.big { text-decoration: none; }
.calm.small { font-size: 15px; }
.big.alt { background: var(--alt); color: var(--alt-ink); }
.big.danger { background: var(--danger); color: var(--ink); }
.row3 .big { font-size: 18px; padding: 8px 6px; }
.link {
  font: inherit; color: var(--ink-soft); background: none; border: 0; text-decoration: underline;
  text-underline-offset: 3px; min-height: 44px; cursor: pointer;
}
.link.small { font-size: 16px; align-self: center; }

.welcome { display: flex; flex-direction: column; gap: 14px; }
.welcome label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
.welcome input {
  font: inherit; font-size: 19px; color: var(--ink); background: var(--card);
  border: 3px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 56px;
}

.card {
  background: var(--card); border: 3px solid var(--line); border-radius: 22px;
  box-shadow: 0 6px 0 var(--line); padding: 16px; margin: 6px 0 16px;
}
.card p { margin: 0 0 12px; }
.card-art { display: flex; align-items: flex-end; gap: 4px; }
.card.ride p { margin: 0; font-size: 19px; }
.card .row2 .big { font-size: 17px; min-height: 56px; }
.maplink { white-space: nowrap; font-size: 16px; }

.countdown {
  display: inline-block; background: var(--sun); color: #1d1b3a; font-weight: 800;
  border: 3px solid var(--line); border-radius: 999px; padding: 4px 14px; font-variant-numeric: tabular-nums;
}
.big-stat { font-size: 28px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }

.pickups { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.pickups small { color: var(--ink-soft); font-size: 15px; }
.pickups li { display: flex; align-items: center; gap: 8px; background: var(--card); border: 3px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.big-list li { font-size: 20px; flex-wrap: wrap; }
.big-list .time { font-weight: 800; background: var(--sun); color: #1d1b3a; border-radius: 8px; padding: 0 8px; font-variant-numeric: tabular-nums; }

.facts { padding-left: 20px; color: var(--ink-soft); font-size: 17px; }
.facts li { margin-bottom: 8px; }

/* Scroll wheel */
.seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-weight: 700; }
.seats .wheel { width: 96px; }
.wheel-wrap { display: flex; justify-content: center; }
.wheel-wrap .wheel { width: 100%; max-width: 280px; }
.wheel { position: relative; height: 156px; }
.wheel-list {
  height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none;
  overscroll-behavior: contain;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-pad { height: 52px; }
.wheel-item {
  height: 52px; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; font-size: 22px; font-weight: 700; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; cursor: pointer; user-select: none;
}
.wheel-item.on { color: var(--ink); font-size: 28px; font-weight: 800; }
.wheel-lens {
  position: absolute; left: 0; right: 0; top: 52px; height: 52px; pointer-events: none;
  border: 3px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--sun) 25%, transparent);
}

.bounce { animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bounce { animation: none; } .big { transition: none; } }

.foot { text-align: center; font-size: 13px; color: var(--ink-soft); padding: 4px 0; }
.foot .link { font-size: 13px; min-height: 32px; }

/* /source/ page */
.source-page .source { max-width: 640px; margin: 0 auto; padding: 24px 16px; }
.source ul { line-height: 1.9; }
