:root {
  --royal: #2b5cff; --royal-dk: #1a3bd1; --ink: #14123d; --red: #ff2d55; --gold: #ffd23f; --pink: #ff5fa2;
  --purple: #8b5cf6; --teal: #00c2d1; --lime: #2fd673; --orange: #ff7a1a;
  --sky: #e6f3ff; --sky-2: #c7e4ff; --card: #ffffff; --muted: #5b5a8a;
  --g: #1ecb6b; --y: #ffcc1f; --o: #ff7a1a; --r: #ff2d55; --gray: #a7a9c9;
  --bd: 3px solid var(--ink); --pop: 0 5px 0 var(--ink); --pop-sm: 0 3px 0 var(--ink);
  --tabs-h: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font: 500 16px/1.35 "Nunito", system-ui, sans-serif; }
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 8%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 60%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, var(--sky-2), var(--sky) 40%, #fff5fb);
  background-size: 180px 180px, 220px 220px, 140px 140px, 100% 100%;
  background-attachment: fixed; min-height: 100vh;
}
a { color: var(--royal); }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: 24px; } h3 { font-size: 19px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .hidden { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 14px 12px; background: var(--royal); color: #fff;
  border-bottom: 4px solid var(--ink); border-radius: 0 0 26px 26px; }
.brand { display: flex; gap: 10px; align-items: center; }
.logo { font-size: 30px; filter: drop-shadow(0 2px 0 var(--ink)); }
.top h1 { font-size: 21px; text-shadow: 0 2px 0 var(--ink); } .top .sub { margin: 0; font-size: 13px; color: var(--gold); }
.top-btns { display: flex; gap: 8px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: var(--bd); background: #fff; color: var(--ink); font-size: 19px;
  box-shadow: var(--pop-sm); cursor: pointer; font-family: inherit; display: grid; place-items: center; }
.round-btn:active { transform: translateY(3px); box-shadow: none; }
.round-btn.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { max-width: 720px; margin: 0 auto; padding: 14px 12px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); }
.view { display: none; } .view.active { display: block; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }

.card { background: var(--card); border: var(--bd); border-radius: 26px; box-shadow: var(--pop); padding: 16px; margin-bottom: 16px; }
.empty { text-align: center; padding: 30px 18px; } .big-emoji { font-size: 64px; } .empty h2 { margin: 6px 0 16px; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }

/* buttons */
.btn { border: var(--bd); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 600;
  box-shadow: var(--pop-sm); cursor: pointer; white-space: nowrap; }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn.red { background: var(--red); color: #fff; } .btn.gold { background: var(--gold); } .btn.blue { background: var(--royal); color: #fff; }
.btn.small { padding: 5px 12px; font-size: 14px; } .btn.wide { width: 100%; }

/* hero */
.hero { padding: 0; overflow: hidden; background: var(--royal); color: #fff; }
.hero .pic { height: 170px; position: relative; border-bottom: var(--bd); }
.hero .badge-next { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); border: var(--bd);
  border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 14px; box-shadow: var(--pop-sm); }
.hero .wait-big { position: absolute; right: 12px; bottom: -34px; }
.hero .body { padding: 14px 16px 16px; }
.hero h2 { font-size: 27px; line-height: 1.1; padding-right: 86px; text-shadow: 0 2px 0 var(--ink); }
.hero .where { color: #cfe0ff; font-size: 14px; margin-top: 3px; }
.hero .headline { display: inline-block; margin: 12px 0; background: #fff; color: var(--ink); border: var(--bd); border-radius: 16px;
  padding: 6px 12px; font-weight: 600; box-shadow: var(--pop-sm); }
.hero .facts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero .fact { background: var(--royal-dk); border-radius: 14px; padding: 6px 10px; font-size: 15px; }
.hero .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero.none { background: var(--pink); color: var(--ink); padding: 18px; }

/* photos & fallbacks */
.pic { background-size: cover; background-position: center; display: grid; place-items: center; font-size: 56px; }
.pic.cat-Thrill { background-color: #ffd6dd; } .pic.cat-Dark-Ride { background-color: #d9d2ff; } .pic.cat-Family { background-color: #cdeeff; }
.pic.cat-Kids-Spinners { background-color: #ffe9a8; } .pic.cat-Show { background-color: #ffd9f0; } .pic.cat-Walkthrough-Play { background-color: #d6f5dd; }
.pic.cat-Transportation { background-color: #ffe2c6; } .pic.cat-Water { background-color: #c9f1f4; }
.thumb { width: 58px; height: 58px; border-radius: 18px; border: var(--bd); font-size: 28px; flex: 0 0 auto; }

/* wait bubble */
.wait { width: 52px; height: 52px; border-radius: 50%; border: var(--bd); box-shadow: var(--pop-sm); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 19px; line-height: 1; text-shadow: 0 1px 0 rgba(0,0,0,.35); flex: 0 0 auto; text-align: center; }
.wait small { display: block; font-size: 10px; font-weight: 600; }
.wait.big { width: 72px; height: 72px; font-size: 28px; box-shadow: var(--pop); }
.w-g { background: var(--g); } .w-y { background: var(--y); color: var(--ink); text-shadow: none; } .w-o { background: var(--o); } .w-r { background: var(--r); }
.w-x { background: var(--gray); font-size: 12px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 4px; vertical-align: -2px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 14px; margin: 8px 0; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink);
  vertical-align: 2px; background: #fff; color: var(--ink); }
.tag.live { background: #c9f7d8; } .tag.history { background: #cfe0ff; } .tag.disney { background: #fff0b3; }
.tag.trend { background: #ead9ff; } .tag.current { background: #eef0f6; } .tag.must { background: var(--red); color: #fff; }
.tag.would { background: var(--royal); color: #fff; } .tag.low { background: var(--g); color: #fff; } .tag.down { background: var(--o); color: #fff; }
.tag.closed { background: var(--gray); color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding: 2px 2px 6px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; }
.chip { background: #fff; border: var(--bd); box-shadow: var(--pop-sm); border-radius: 999px; padding: 6px 14px; white-space: nowrap; font-weight: 600; }

/* itinerary */
.itin { list-style: none; margin: 0; padding: 0; }
.itin li { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 8px 0; background: var(--sky); border: var(--bd);
  border-radius: 20px; touch-action: pan-y; position: relative; transition: transform .15s; }
.itin li.dragging { z-index: 5; transition: none; background: #fff6cc; box-shadow: 0 10px 0 var(--ink); }
.itin li.first { background: #fff6cc; }
.itin .num { width: 28px; height: 28px; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; font-weight: 700;
  font-size: 14px; border: 2px solid var(--ink); flex: 0 0 auto; }
.itin .info { flex: 1; min-width: 0; cursor: pointer; }
.itin .name { font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.itin .when { font-size: 13px; color: var(--muted); }
.handle { cursor: grab; font-size: 22px; padding: 4px 2px; color: var(--muted); touch-action: none; user-select: none; }
.arrows { display: flex; flex-direction: column; gap: 4px; }
.arrows button { width: 30px; height: 24px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; font-size: 12px; cursor: pointer; padding: 0; }
.arrows button:disabled { opacity: .3; }
.note { font-size: 14px; padding: 8px 12px; border-radius: 16px; background: #fff0f4; border: 2px dashed var(--pink); margin-top: 8px; }
.custom-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff6cc; border: 2px dashed var(--gold);
  border-radius: 16px; padding: 6px 12px; font-size: 14px; margin-bottom: 4px; }

/* tools */
.tools { margin-bottom: 12px; }
input[type=search], select, input[type=time] { font: inherit; color: var(--ink); background: #fff; border: var(--bd); border-radius: 999px;
  padding: 10px 16px; width: 100%; box-shadow: var(--pop-sm); outline: none; }
select { padding: 7px 12px; font-size: 14px; }
.pills { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pills button { border: var(--bd); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; color: var(--ink); }
.pills button.on { background: var(--royal); color: #fff; box-shadow: var(--pop-sm); }
.more-filters { margin-top: 8px; } .more-filters summary { cursor: pointer; color: var(--royal); font-weight: 600; font-size: 14px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .filter-row select { width: auto; }
.counts { display: flex; gap: 8px; margin-top: 10px; align-items: center; font-size: 14px; }

/* ride picker */
.ride-grid, .live-list { list-style: none; margin: 0; padding: 0; }
.ride-grid li { background: #fff; border: var(--bd); border-radius: 22px; box-shadow: var(--pop-sm); margin-bottom: 12px; padding: 10px;
  display: grid; grid-template-columns: 58px 1fr 52px; gap: 10px; align-items: center; }
.ride-grid li.picked-must { background: #ffe8ec; } .ride-grid li.picked-would { background: #e5edff; }
.ride-grid .title, .live-list .title { font-weight: 600; line-height: 1.15; }
.ride-grid .meta, .live-list .meta { font-size: 13px; color: var(--muted); }
.seg { grid-column: 1 / -1; display: flex; gap: 6px; }
.seg button { flex: 1; border: var(--bd); background: #fff; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px;
  padding: 6px 4px; cursor: pointer; color: var(--ink); }
.seg button.on[data-p=must] { background: var(--red); color: #fff; box-shadow: var(--pop-sm); }
.seg button.on[data-p=would] { background: var(--royal); color: #fff; box-shadow: var(--pop-sm); }
.seg button.on[data-p=skip] { background: var(--gray); color: #fff; }

.live-list li { background: #fff; border: var(--bd); border-radius: 22px; box-shadow: var(--pop-sm); margin-bottom: 10px; padding: 8px 10px;
  display: flex; gap: 10px; align-items: center; cursor: pointer; }
.live-list .info { flex: 1; min-width: 0; }
.trend { font-weight: 700; font-size: 15px; white-space: nowrap; }
.trend-up { color: var(--red); } .trend-down { color: var(--g); }
.lowstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; }
.lowstrip button { border: var(--bd); background: #c9f7d8; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
  box-shadow: var(--pop-sm); color: var(--ink); }

/* map */
#map { height: calc(100vh - 92px - var(--tabs-h) - 90px - env(safe-area-inset-bottom)); min-height: 340px; padding: 0; overflow: hidden; }
.map-pills { justify-content: center; }
.pin { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; font-family: Nunito, sans-serif;
  border: 3px solid var(--ink); box-shadow: 0 2px 0 var(--ink); width: 32px; height: 32px; }
.pin.w-y { color: var(--ink); }
.pin.next { width: 42px; height: 42px; font-size: 15px; outline: 4px solid var(--gold); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { outline-offset: 5px; outline-color: rgba(255,204,0,.35); } }
.leg-label { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 0 7px; font: 700 12px Nunito, sans-serif;
  white-space: nowrap; }
.leaflet-popup-content-wrapper { border: var(--bd); border-radius: 18px; font-family: Nunito, sans-serif; }

/* insights */
.ins-item { padding: 8px 0; border-top: 2px dashed var(--sky-2); } .ins-item:first-of-type { border-top: 0; }
.ins-item .ev { font-size: 12px; color: var(--muted); }
.daybars { display: flex; gap: 3px; align-items: flex-end; height: 44px; margin-top: 8px; }
.daybars i { flex: 1; background: var(--royal); border: 2px solid var(--ink); border-radius: 6px 6px 0 0; min-width: 6px; max-width: 20px; }
.sources { padding-left: 18px; } .sources li { margin: 8px 0; }

/* tabs */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: flex; justify-content: space-around; gap: 4px;
  background: #fff; border-top: 4px solid var(--ink); border-radius: 26px 26px 0 0; padding: 6px 6px env(safe-area-inset-bottom);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; border-radius: 20px; }
.tabs button span { font-size: 24px; transition: transform .15s; }
.tabs button.active { background: var(--red); color: #fff; border: 3px solid var(--ink); }
.tabs button.active span { transform: scale(1.15) rotate(-6deg); }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(13,27,76,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { background: #fff; width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; border: var(--bd); border-bottom: 0;
  border-radius: 30px 30px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); position: relative; animation: up .22s ease; }
@keyframes up { from { transform: translateY(40px); } }
.sheet .close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.sheet h2 { padding-right: 52px; }
.sheet .pic.banner { height: 160px; border-radius: 22px; border: var(--bd); margin: -2px 0 12px; position: relative; }
.credit { position: absolute; right: 8px; bottom: 6px; font-size: 11px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 1px 8px; color: var(--ink); text-decoration: none; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.kv div { background: var(--sky); border: 2px solid var(--ink); border-radius: 18px; padding: 8px 10px; text-align: center; }
.kv b { display: block; font-size: 24px; } .kv span { font-size: 12px; color: var(--muted); }
.reasons { padding-left: 20px; margin: 8px 0; } .reasons li { margin: 4px 0; }
.chart { width: 100%; height: 190px; } .chart text { fill: var(--muted); font-size: 10px; font-family: Nunito, sans-serif; }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.form { display: grid; gap: 12px; margin-top: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; }
.form input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--red); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); z-index: 3000;
  background: var(--gold); color: var(--ink); border: var(--bd); box-shadow: var(--pop-sm); padding: 10px 16px; border-radius: 999px;
  max-width: 92vw; font-weight: 600; text-align: center; }
.itin .thumb { width: 46px; height: 46px; border-radius: 14px; font-size: 22px; }
.itin .wait { width: 44px; height: 44px; font-size: 16px; }
.itin li { gap: 8px; padding: 6px 8px; }
.itin .name { font-size: 15px; }

.howto { text-align: left; max-width: 340px; margin: 0 auto 18px; padding-left: 22px; } .howto li { margin: 8px 0; }
.order-card h3 { font-size: 21px; } .plain { margin: 4px 0 10px; }
.sumline { display: flex; flex-wrap: wrap; gap: 6px 14px; background: var(--sky); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 12px; }
.sumline .warn { color: var(--red); font-weight: 700; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
#smartBtn { margin: 6px 0 4px; }
.itin .num { width: 30px; height: 30px; font-size: 16px; background: var(--red); }
.itin li.first .num { background: var(--gold); color: var(--ink); }
.itin .handle { font-size: 18px; padding: 4px 0; }
@media (max-width: 460px) {
  .itin .thumb { display: none; }
  .itin .arrows button { width: 28px; height: 22px; }
  .order-card { padding: 14px 10px; }
}
.itin .name { -webkit-line-clamp: 2; }

.times { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.times button { width: 34px; height: 34px; border-radius: 50%; border: var(--bd); background: var(--gold); font: 700 20px Nunito, sans-serif;
  box-shadow: var(--pop-sm); cursor: pointer; color: var(--ink); line-height: 1; padding: 0; }
.times button:disabled { opacity: .35; box-shadow: none; }
.times b { min-width: 30px; text-align: center; font-size: 18px; }
.again { display: inline-block; font-size: 12px; font-weight: 700; background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; margin-top: 2px; }
.pills.waits button.on { background: var(--g); }

/* icons */
.ic { width: 1.05em; height: 1.05em; vertical-align: -0.17em; flex: 0 0 auto; }
.logo .ic { width: 34px; height: 34px; color: var(--gold); filter: drop-shadow(0 2px 0 var(--ink)); }
.round-btn .ic { width: 22px; height: 22px; }
.tabs button span { display: grid; place-items: center; filter: none; }
.tabs button span .ic { width: 26px; height: 26px; }
.big-icon { color: var(--royal); } .big-icon .ic { width: 72px; height: 72px; }
.pic > .ic { width: 52%; height: 52%; color: var(--ink); opacity: .8; }
.thumb > .ic { width: 60%; height: 60%; }
.handle .ic { width: 20px; height: 20px; }
.arrows button { display: grid; place-items: center; } .arrows .ic { width: 16px; height: 16px; }
.must-ic { color: var(--red); margin-right: 3px; }
.seg .ic { width: 15px; height: 15px; }
.hero .headline .ic { color: var(--red); }
.trend .ic { width: 15px; height: 15px; margin-right: 2px; }
/* header status only when something is wrong */
.top .warn-sub { color: #fff; background: rgba(228,0,43,.85); border-radius: 999px; padding: 0 8px; display: inline-block; margin-top: 2px; }
/* park-map look */
.park-tiles { filter: saturate(1.35) contrast(1.05) brightness(1.04); }
.land-label { display: inline-block; white-space: nowrap; transform: translate(-50%, 20px); background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-bottom-width: 4px; border-radius: 999px; padding: 1px 10px; font: 700 12px Nunito, sans-serif;
  box-shadow: inset 0 -6px 0 var(--land); opacity: .95; }

.pills.picks button.on.p-must { background: var(--red); } .pills.picks button.on.p-would { background: var(--royal); }
.pills.picks button.on.p-skip { background: var(--gray); }

#map.far .land-label { display: none; }
.land-icon { pointer-events: none; }
.reset-opt { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 8px; } .reset-opt input { width: 22px; height: 22px; accent-color: var(--red); }

/* ---------- vibrant pass ---------- */
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 8%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 60%, rgba(255,255,255,.8) 0 1.5px, transparent 2.5px),
    linear-gradient(165deg, #6fd0ff 0%, #a78bfa 45%, #ff9ccf 80%, #ffc58a 100%);
  background-size: 180px 180px, 220px 220px, 140px 140px, 100% 100%; background-attachment: fixed;
}
.top { background: linear-gradient(100deg, var(--royal), var(--purple) 70%, var(--pink)); }
.hero { background: linear-gradient(140deg, var(--royal) 0%, var(--purple) 60%, var(--pink) 100%); }
.hero .fact { background: rgba(20,18,61,.35); }
.hero .headline { background: var(--gold); }
.btn.gold { background: var(--gold); } .btn.red { background: var(--red); }
.tabs button.active { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.pills button.on { background: linear-gradient(135deg, var(--royal), var(--purple)); }
.pills.waits button.on { background: linear-gradient(135deg, var(--lime), var(--teal)); }
.pills.picks button.on.p-must { background: var(--red); } .pills.picks button.on.p-would { background: var(--royal); }
.sumline { background: linear-gradient(90deg, #fff4c2, #ffe0f0 50%, #e3dcff); }
.itin li:nth-child(5n+1) { background: #dff4ff; } .itin li:nth-child(5n+2) { background: #ffe3f1; }
.itin li:nth-child(5n+3) { background: #ece5ff; } .itin li:nth-child(5n+4) { background: #dcfce7; }
.itin li:nth-child(5n+5) { background: #fff1d6; }
.itin li.first { background: linear-gradient(90deg, #ffe680, #ffd0e6); }
.itin li:nth-child(5n+1) .num { background: var(--royal); } .itin li:nth-child(5n+2) .num { background: var(--pink); }
.itin li:nth-child(5n+3) .num { background: var(--purple); } .itin li:nth-child(5n+4) .num { background: var(--lime); }
.itin li:nth-child(5n+5) .num { background: var(--orange); }
.itin li.first .num { background: var(--gold); color: var(--ink); }
.ride-grid li.picked-must { background: #ffe1ea; } .ride-grid li.picked-would { background: #e1e9ff; }
.lowstrip button { background: linear-gradient(135deg, #c6ffd9, #b8f3ff); }
.note { background: #ffe9f4; border-color: var(--pink); }
.kv div { background: linear-gradient(160deg, #e6f3ff, #f1e9ff); }
.daybars i { background: linear-gradient(180deg, var(--pink), var(--purple)); }
.toast { background: linear-gradient(135deg, var(--gold), #ffb36b); }

.delta { font-size: 14px; background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; vertical-align: 3px; }
.order-card h3 { margin-bottom: 10px; }
.sumline { gap: 6px 18px; font-size: 17px; }
/* drag handle is the only way to reorder now: make it easy to grab */
.itin .handle { padding: 10px 4px; margin: -6px 0 -6px -4px; } .itin .handle .ic { width: 24px; height: 24px; }

/* ---------- bold primaries (no pinks/purples) ---------- */
:root { --pink: #ff2d55; --purple: #2b5cff; }
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 8%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 60%, rgba(255,255,255,.8) 0 1.5px, transparent 2.5px),
    linear-gradient(170deg, #3fb6ff 0%, #7fd3ff 45%, #b8ecff 75%, #fff1b8 100%);
  background-size: 180px 180px, 220px 220px, 140px 140px, 100% 100%; background-attachment: fixed;
}
.top { background: linear-gradient(100deg, #1d4ed8, #2b5cff 60%, #00a3e0); }
.hero { background: linear-gradient(140deg, #1d4ed8 0%, #2b5cff 55%, #00a3e0 100%); }
.tabs button.active { background: linear-gradient(135deg, var(--red), var(--orange)); }
.pills button.on { background: var(--royal); }
.sumline { background: linear-gradient(90deg, #fff2b3, #d9f2ff); }
.itin li:nth-child(5n+1) { background: #dbeeff; } .itin li:nth-child(5n+2) { background: #ffe0dc; }
.itin li:nth-child(5n+3) { background: #d9f7e6; } .itin li:nth-child(5n+4) { background: #fff0c2; }
.itin li:nth-child(5n+5) { background: #d6f5fa; }
.itin li.first { background: linear-gradient(90deg, #ffe066, #ffc94d); }
.itin li:nth-child(5n+1) .num { background: var(--royal); } .itin li:nth-child(5n+2) .num { background: var(--red); }
.itin li:nth-child(5n+3) .num { background: var(--g); } .itin li:nth-child(5n+4) .num { background: var(--orange); }
.itin li:nth-child(5n+5) .num { background: var(--teal); }
.itin li.first .num { background: var(--ink); color: var(--gold); }
.ride-grid li.picked-must { background: #ffe0dc; } .ride-grid li.picked-would { background: #dbeeff; }
.note { background: #fff4d6; border-color: var(--orange); }
.kv div { background: #e6f3ff; }
.daybars i { background: linear-gradient(180deg, var(--teal), var(--royal)); }
.delta { background: var(--orange); }
.toast { background: var(--gold); }

.drag-hint { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 14px; font-weight: 600; color: var(--royal); }
.drag-hint > .ic { display: none; }
.drag-hint b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--gold);
  border: 2px solid var(--ink); }
.drag-hint b .ic { width: 16px; height: 16px; }
.itin .handle { color: var(--royal); }
.itin.nudge .handle { animation: nudge 1.6s ease-in-out 3; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-4px); } 80% { transform: translateY(4px); } 90% { transform: translateY(-2px); } }

/* park picker */
.park-pick { padding: 12px 14px; } .park-pick h3 { font-size: 16px; margin-bottom: 8px; }
.park-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.park-btns button { border: var(--bd); background: #fff; border-radius: 18px; padding: 8px 4px; font: 600 14px Nunito, sans-serif; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; line-height: 1.1; }
.park-btns button .ic { width: 24px; height: 24px; }
.park-btns button.on { background: var(--royal); color: #fff; box-shadow: var(--pop-sm); }
.park-btns button[data-park=DCA].on { background: var(--red); }
.park-btns button[data-park=both].on { background: var(--g); }
/* saved orders */
.save-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .save-row:empty { display: none; }
.saved-item { display: flex; align-items: center; gap: 8px; padding: 10px; margin: 10px 0; border: var(--bd); border-radius: 18px; background: #e6f3ff; }
.saved-info { flex: 1; min-width: 0; }
.saved-item .btn .ic { width: 14px; height: 14px; }
.form input[type=text] { font: inherit; color: var(--ink); background: #fff; border: var(--bd); border-radius: 999px; padding: 10px 16px; width: 100%; }
#emptySaved { margin-left: 6px; }

/* make "next ride" unmistakable */
.hero .badge-next { font-size: 17px; padding: 6px 16px; background: var(--gold); text-transform: uppercase; letter-spacing: .03em; }
.hero .badge-next .ic { width: 18px; height: 18px; }
.next-label { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); background: #fff; border-radius: 999px; padding: 1px 10px; margin-bottom: 6px; }
.next-chip { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--ink); color: var(--gold); border-radius: 999px; padding: 0 8px; margin-bottom: 2px; }

/* ---------- fonts: Lilita One for display, Nunito for text ---------- */
html, body { font-weight: 600; }
h1, h2, h3, .top h1, .hero h2, .badge-next, .next-label, .wait, .num, .tabs button,
.kv b, .sumline b, .park-btns button, .btn.red, .btn.gold, .delta, .next-chip, .pin, .leg-label, .land-label {
  font-family: "Lilita One", "Nunito", system-ui, sans-serif; font-weight: 400; letter-spacing: .01em;
}
.hero h2 { font-size: 30px; }
.top h1 { font-size: 23px; }
.wait { font-size: 20px; } .wait small { font-family: "Nunito", sans-serif; font-weight: 800; }
.tabs button { font-size: 13px; letter-spacing: .03em; }
.btn, .pills button, .seg button { font-weight: 800; }

/* ---------- font: Baloo 2 everywhere (bubbly + readable) ---------- */
html, body { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 600; }
h1, h2, h3, .top h1, .hero h2, .badge-next, .next-label, .wait, .num, .tabs button,
.kv b, .sumline b, .park-btns button, .btn.red, .btn.gold, .delta, .next-chip, .pin, .leg-label, .land-label,
.btn, .pills button, .seg button, .chip, .times b, .wait small, select, input {
  font-family: "Baloo 2", system-ui, sans-serif;
}
h1, h2, h3, .top h1, .hero h2, .wait, .num, .kv b, .badge-next { font-weight: 800; letter-spacing: -.005em; }
.btn, .pills button, .seg button, .tabs button, .park-btns button, .next-label, .next-chip, .delta { font-weight: 700; }
.hero h2 { line-height: 1.05; }

/* "Give me my ideal order" call to action */
.ideal-btn { width: 100%; margin-top: 12px; font-size: 19px; padding: 13px 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: var(--pop); }
.ideal-btn .ic { width: 22px; height: 22px; }
.ideal-btn:disabled { background: #d8dcea; color: var(--muted); box-shadow: none; cursor: not-allowed; }
.ideal-btn:not(:disabled) { animation: ctaPulse 2.2s ease-in-out infinite; }
@keyframes ctaPulse { 50% { transform: scale(1.025); } }

/* ---------- swipe flow ---------- */
body.ob-open { overflow: hidden; }
.onboard { position: fixed; inset: 0; z-index: 2600; display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(170deg, #1d4ed8 0%, #2b5cff 45%, #00a3e0 100%); color: #fff; }
.ob-step { flex: 1; display: flex; flex-direction: column; min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; }
.ob-title { font: 800 32px/1.05 "Baloo 2", sans-serif; text-align: center; margin: 8vh 0 24px; text-shadow: 0 3px 0 var(--ink); }
.ob-sub { text-align: center; font-size: 17px; margin: 0 0 24px; opacity: .9; }
.ob-parks { display: grid; gap: 14px; }
.ob-parks button { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: var(--bd); border-radius: 24px; background: #fff;
  color: var(--ink); font: 800 21px "Baloo 2", sans-serif; box-shadow: var(--pop); cursor: pointer; }
.ob-parks button .ic { width: 34px; height: 34px; color: var(--royal); }
.ob-parks button:active { transform: translateY(4px); box-shadow: none; }
.ob-top { display: flex; align-items: center; gap: 10px; }
.ob-top .round-btn:disabled { opacity: .4; }
.ob-progress { flex: 1; text-align: center; font-weight: 800; }
.ob-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.3); border: 2px solid var(--ink); overflow: hidden; margin-bottom: 2px; }
.ob-bar i { display: block; height: 100%; background: var(--gold); transition: width .2s; }
.ob-hint { display: flex; justify-content: space-between; align-items: center; margin: 12px 4px 8px; font-weight: 800; font-size: 15px; }
.ob-hint .no { color: #ffd0d0; } .ob-hint .yes { color: #c9ffd9; } .ob-hint .swipe-word { opacity: .7; font-size: 13px; }
.ob-hint .no::before { content: "\2190  "; } .ob-hint .yes::after { content: "  \2192"; }
.deck { position: relative; flex: 1; min-height: 300px; margin: 4px 0 14px; }
.swipe-card { position: absolute; inset: 0; background: #fff; color: var(--ink); border: var(--bd); border-radius: 30px; box-shadow: 0 8px 0 var(--ink);
  overflow: hidden; display: flex; flex-direction: column; touch-action: none; user-select: none; cursor: grab;
  transition: transform .22s ease, opacity .22s ease; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.gone { opacity: 0; }
.sc-pic { flex: 1; min-height: 0; border-bottom: var(--bd); font-size: 90px; pointer-events: none; }
.sc-pic > .ic { width: 40%; height: 40%; }
.sc-body { padding: 14px 18px 18px; padding-right: 86px; }
.sc-name { font: 800 26px/1.05 "Baloo 2", sans-serif; }
.sc-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.sc-wait { position: absolute; right: 16px; bottom: 22px; }
.sc-wait .wait { width: 62px; height: 62px; font-size: 24px; }
.stamp { position: absolute; top: 22px; padding: 4px 14px; border: 4px solid; border-radius: 14px; font: 800 28px "Baloo 2", sans-serif;
  text-transform: uppercase; opacity: 0; transition: opacity .1s; background: rgba(255,255,255,.92); pointer-events: none; }
.stamp.yes { left: 18px; color: var(--g); border-color: var(--g); transform: rotate(-12deg); }
.stamp.no { right: 18px; color: var(--red); border-color: var(--red); transform: rotate(12deg); }
.stamp.must { left: 50%; top: 40%; color: var(--red); border-color: var(--red); transform: translateX(-50%) rotate(-6deg); }
.swipe-card.show-yes .stamp.yes, .swipe-card.show-no .stamp.no, .swipe-card.show-must .stamp.must { opacity: 1; }
.ob-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.ob-btn { border: var(--bd); border-radius: 22px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 800 17px "Baloo 2", sans-serif; box-shadow: var(--pop); cursor: pointer; color: #fff; }
.ob-btn .ic { width: 30px; height: 30px; }
.ob-btn:active { transform: translateY(4px); box-shadow: none; }
.ob-btn.no { background: var(--red); } .ob-btn.yes { background: var(--g); }
.ob-btn.must { background: var(--gold); color: var(--ink); border-radius: 50%; width: 82px; height: 82px; padding: 0; justify-content: center; font-size: 14px; }
.ob-btn.must .ic { color: var(--red); }
#obDone .ideal-btn { margin-top: 0; }
.swipe-again { margin-top: 10px; }
.swipe-again .ic { width: 18px; height: 18px; }
@media (max-height: 700px) { .ob-title { margin-top: 3vh; } .ob-btn { padding: 8px; } .ob-btn.must { width: 70px; height: 70px; } }

.ob-actions { grid-template-columns: 1fr 1fr; }

#obIntro .ob-title { margin-top: 10vh; }
.ob-how { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 26px; }
.how { border: var(--bd); border-radius: 24px; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: var(--pop); font-size: 18px; }
.how .ic { width: 40px; height: 40px; margin-bottom: 4px; }
.how small { font-size: 15px; opacity: .9; }
.how.no { background: var(--red); } .how.yes { background: var(--g); }
.how.no .ic { animation: nudgeL 1.6s ease-in-out infinite; } .how.yes .ic { animation: nudgeR 1.6s ease-in-out infinite; }
@keyframes nudgeL { 50% { transform: translateX(-8px); } } @keyframes nudgeR { 50% { transform: translateX(8px); } }

#obPark { justify-content: flex-start; }
.ob-skip { margin: auto auto 6px; background: none; border: 0; color: #fff; opacity: .8; font: 600 14px "Baloo 2", sans-serif;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px; }
.ob-skip:hover { opacity: 1; }

/* not enough time: tip + "won't fit" section you can drag from */
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 16px;
  background: #fff4d6; border: 2px solid var(--orange); font-size: 15px; line-height: 1.25; }
.tip .ic { width: 22px; height: 22px; color: var(--orange); flex: 0 0 auto; margin-top: 1px; }
.itin li.cutoff { background: none !important; border: 0; padding: 6px 0 0; margin: 14px 0 2px; justify-content: center; }
.itin li.cutoff span { display: flex; align-items: center; gap: 8px; width: 100%; font-weight: 800; font-size: 14px; color: var(--red);
  text-transform: uppercase; letter-spacing: .05em; }
.itin li.cutoff span::before, .itin li.cutoff span::after { content: ""; flex: 1; border-top: 3px dashed var(--red); }
.itin li.over { background: #eef0f6 !important; opacity: .85; }
.itin li.over .num { background: var(--gray) !important; }
.itin li.over .num .ic { width: 16px; height: 16px; }
.itin li.over .when { color: var(--red); font-weight: 700; }

/* leave time on intro */
.ob-leave { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 17px; margin: 0 0 16px; color: #fff; flex-direction: row; }
.ob-leave select { width: auto; font: 700 16px "Baloo 2", sans-serif; padding: 6px 12px; }
/* "Your day" meter */
.ob-meter { margin-top: 10px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); border-radius: 16px; padding: 6px 10px 8px; }
.ob-meter-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; }
.ob-meter-bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.3); border: 2px solid var(--ink); overflow: hidden; margin-top: 3px; }
.ob-meter-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--gold)); transition: width .35s; }
.ob-meter.full .ob-meter-bar i { background: linear-gradient(90deg, var(--gold), var(--orange)); }
.ob-meter.full .ob-meter-top span { color: var(--gold); }
/* day-full panel */
.ob-full { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(13,27,76,.55); padding: 20px; }
.ob-full-card { background: #fff; color: var(--ink); border: var(--bd); border-radius: 28px; box-shadow: var(--pop); padding: 22px 18px; text-align: center; width: 100%; max-width: 380px;
  animation: up .25s ease; }
.ob-full-card .big-icon { color: var(--gold); } .ob-full-card .big-icon .ic { width: 60px; height: 60px; }
.ob-full-title { font: 800 28px "Baloo 2", sans-serif; }
.ob-full-card p { color: var(--muted); margin: 4px 0 16px; }

/* in/out of today toggle */
.pick-toggle { width: 30px; height: 30px; border-radius: 10px; border: 2.5px solid var(--ink); background: #fff; display: grid; place-items: center;
  flex: 0 0 auto; cursor: pointer; padding: 0; color: var(--muted); }
.pick-toggle .ic { width: 18px; height: 18px; }
.pick-toggle.on { background: var(--g); color: #fff; box-shadow: 0 2px 0 var(--ink); }
.itin li.off { background: #f1f2f7 !important; opacity: .75; }
.itin li.off .name { text-decoration: line-through; text-decoration-thickness: 2px; }
.itin li.off .when { color: var(--muted); }
.itin li.off-line span { color: var(--muted) !important; } .itin li.off-line span::before, .itin li.off-line span::after { border-color: var(--gray) !important; }
.itin li .num { flex: 0 0 auto; }
/* time gauge */
.gauge { margin-top: 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--ink); }
.gauge.ok { background: #dcfce7; } .gauge.over { background: #ffe4dc; }
.gauge-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; }
.gauge-top b { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.gauge.ok .gauge-top b { color: #13803f; } .gauge.over .gauge-top b { color: var(--red); }
.gauge-bar { height: 12px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); overflow: hidden; margin-top: 6px; }
.gauge-bar i { display: block; height: 100%; transition: width .35s; }
.gauge.ok .gauge-bar i { background: linear-gradient(90deg, var(--lime), var(--g)); }
.gauge.over .gauge-bar i { background: repeating-linear-gradient(45deg, var(--red) 0 10px, var(--orange) 10px 20px); }
.gauge p { margin: 6px 0 0; font-size: 14px; color: var(--ink); }

.gauge-bar.split { display: flex; }
.gauge-bar.split i.ok { background: linear-gradient(90deg, var(--lime), var(--g)); }
.gauge-bar.split i.bad { background: repeating-linear-gradient(45deg, var(--red) 0 8px, var(--orange) 8px 16px); border-left: 2px solid var(--ink); }

/* ---------- ride picker grid ---------- */
#obPick { gap: 0; }
.ob-pick-head { display: flex; align-items: center; gap: 10px; }
.ob-pick-title { flex: 1; text-align: center; font: 800 22px/1.1 "Baloo 2", sans-serif; text-shadow: 0 2px 0 var(--ink); }
.ride-picker { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start;
  margin: 10px -4px 0; padding: 4px 4px 12px; -webkit-overflow-scrolling: touch; }
.rp-group { grid-column: 1 / -1; font: 800 15px "Baloo 2", sans-serif; text-transform: uppercase; letter-spacing: .06em; margin: 6px 2px -2px; opacity: .9; }
.rp-tile { position: relative; display: flex; flex-direction: column; padding: 0; border: var(--bd); border-radius: 20px; overflow: hidden;
  background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .1s; }
.rp-tile:active { transform: scale(.97); }
.rp-pic { height: 92px; border-bottom: var(--bd); font-size: 40px; }
.rp-pic > .ic { width: 42%; height: 42%; }
.rp-name { padding: 7px 9px 9px; font: 800 14px/1.15 "Baloo 2", sans-serif; min-height: 44px; }
.rp-wait { position: absolute; right: 6px; top: 58px; } .rp-wait .wait { width: 40px; height: 40px; font-size: 15px; border-width: 2.5px; }
.rp-wait .wait small { font-size: 8px; }
.rp-check { position: absolute; left: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255,255,255,.9);
  display: grid; place-items: center; font: 800 17px "Baloo 2", sans-serif; color: var(--gray); }
.rp-check .ic { width: 18px; height: 18px; }
.rp-tile.on { background: #fff6cc; box-shadow: 0 4px 0 var(--ink), 0 0 0 4px var(--gold); }
.rp-tile.on .rp-check { background: var(--g); color: #fff; }
.ob-pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; font-weight: 800; font-size: 17px; }
.ob-pick-bar .btn { font-size: 20px; padding: 10px 26px; display: flex; align-items: center; gap: 8px; }
.ob-pick-bar .btn .ic { width: 20px; height: 20px; }
.ob-pick-bar .btn:disabled { background: #d8dcea; color: var(--muted); box-shadow: none; }
#obChoose .ob-full-card .ideal-btn { margin-top: 12px; }
#obChoose .ob-full-card p { margin: 6px 0 14px; }
.ob-skip.dark { color: var(--muted); margin: 8px auto 0; display: block; }
.ride-picker { grid-auto-rows: max-content; }
.rp-pic, .rp-name { flex-shrink: 0; }
.rp-tile { min-height: 148px; }

/* untick suggestion */
.suggest-box { margin-top: 8px; padding: 8px 10px; background: #fff; border: 2px dashed var(--red); border-radius: 14px; font-size: 14px; }
.suggest-box .btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.suggest-box .btn .ic { width: 15px; height: 15px; }
.itin li.suggest { outline: 3px dashed var(--red); outline-offset: -1px; }
.itin li.suggest .pick-toggle.on { background: #fff; color: var(--red); border-color: var(--red); animation: nudge 1.4s ease-in-out infinite; }
.skip-tag { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; vertical-align: 1px; }

/* live auto-shuffle */
.live-pill { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 8px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 700; background: #e3f6ea; color: #13803f; border: 2px solid #13803f; }
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--g); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(30,203,107,.7); } 70% { box-shadow: 0 0 0 7px rgba(30,203,107,0); } 100% { box-shadow: 0 0 0 0 rgba(30,203,107,0); } }
.live-pill.locked { background: #fff4d6; color: #8a5a00; border-color: var(--orange); }
.live-pill .ic { width: 14px; height: 14px; }
.itin li.moved-up { box-shadow: 0 0 0 3px var(--g), 0 4px 0 var(--ink); }
.itin li.moved-down { box-shadow: 0 0 0 3px var(--orange), 0 4px 0 var(--ink); }
.itin li.fresh { animation: freshIn .6s ease; }
@keyframes freshIn { from { opacity: 0; transform: scale(.95); } }

/* unticked rides stay in place */
.itin li.off .num { background: var(--gray) !important; }
.itin li.off .num .ic { width: 14px; height: 14px; }
.itin li.off .thumb { filter: grayscale(1); opacity: .6; }
.itin li.off .wait { filter: grayscale(1); opacity: .6; }
.pick-toggle:not(.on) { background: #fff; border-style: dashed; }

/* iPhone "Add to Home Screen" helper */
.ios-install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); z-index: 2400;
  display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border: var(--bd); border-radius: 22px; box-shadow: var(--pop);
  padding: 12px 40px 12px 12px; animation: up .3s ease; max-width: 520px; margin: 0 auto; }
.ios-install::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; background: #fff;
  border-right: var(--bd); border-bottom: var(--bd); transform: translateX(-50%) rotate(45deg); }
.ios-icon { width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--ink); flex: 0 0 auto; }
.ios-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.ios-text > b { font-size: 16px; }
.share-ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--royal); }
.ios-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.ios-x .ic { width: 18px; height: 18px; }
/* when launched from the Home Screen there is no browser chrome: give the header a little more room */
.standalone .top { padding-top: calc(14px + env(safe-area-inset-top)); }

/* line timer */
.inline-btn { width: 100%; margin: 2px 0 10px; font-size: 19px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.inline-btn .ic { width: 20px; height: 20px; }
.line-timer { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 6px; }
.line-timer b { font: 800 46px/1 "Baloo 2", sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 var(--ink); }
.line-timer span { font-size: 15px; opacity: .9; }
.line-bar { position: relative; height: 14px; border-radius: 99px; background: rgba(255,255,255,.3); border: 2px solid var(--ink); overflow: visible; }
.line-bar i { display: block; height: 100%; border-radius: 99px; width: 0; background: linear-gradient(90deg, var(--lime), var(--gold)); transition: width .9s linear; }
.line-bar i.late { background: linear-gradient(90deg, var(--gold), var(--red)); }
.line-bar em { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; }
.line-note { font-size: 14px; margin: 6px 0 12px; opacity: .95; min-height: 18px; }
/* your line times */
.mywait-sum { border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.mywait-sum.good { background: #dcfce7; } .mywait-sum.bad { background: #ffe4dc; }
.mywait-sum b { font-size: 20px; } .mywait-sum span { display: block; font-size: 13px; color: var(--muted); }
.mywait { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 2px dashed var(--sky-2); }
.mywait > div:first-child { flex: 1; min-width: 0; }
.mw-nums { text-align: right; } .mw-nums span { display: block; font-weight: 800; } .mw-nums small { color: var(--muted); }
.mw-diff { font-weight: 800; border-radius: 999px; padding: 2px 9px; border: 2px solid var(--ink); font-size: 14px; }
.mw-diff.good { background: var(--g); color: #fff; } .mw-diff.bad { background: var(--orange); color: #fff; }

/* ---------- brand: white header with the Line Leaper logo ---------- */
.top { background: #fff !important; color: var(--ink); border-bottom: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(13,27,76,.08); }
.brand-h1 { margin: 0; line-height: 0; }
.brand-logo { display: block; height: 30px; width: auto; }
.top .sub { color: var(--royal); font-weight: 700; margin-top: 3px; }
.top .round-btn { background: #f2f5ff; }
.standalone .top { padding-top: calc(10px + env(safe-area-inset-top)); }
.ob-logo { margin: 4vh auto 0; background: #fff; border: var(--bd); border-radius: 22px; box-shadow: var(--pop); padding: 12px 18px; }
.ob-logo img { display: block; height: 34px; width: auto; }
#obPark .ob-title { margin-top: 4vh; }
@media (max-width: 360px) { .brand-logo { height: 24px; } }

/* summary stats with small labels */
.sumline { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 14px; align-items: start; }
.sumline .stat { display: grid; grid-template-columns: auto 1fr; column-gap: 5px; align-items: center; }
.sumline .stat .ic { grid-row: 1; width: 18px; height: 18px; }
.sumline .stat b { grid-row: 1; font-size: 18px; line-height: 1.1; white-space: nowrap; }
.sumline .stat small { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.15; }
.sumline .warn { grid-column: 1 / -1; }

/* park switch inside the ride picker */
.pick-parks { display: flex; gap: 6px; margin-top: 10px; }
.pick-parks button { flex: 1; border: 2.5px solid var(--ink); background: rgba(255,255,255,.9); color: var(--ink); border-radius: 999px;
  padding: 6px 4px; font: 700 13.5px "Baloo 2", sans-serif; cursor: pointer; }
.pick-parks button.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); }

/* closed / down bubbles: icon + tiny label, always fits */
.wait.status { flex-direction: column; display: flex; align-items: center; justify-content: center; gap: 0; padding: 0; text-shadow: none; }
.wait.status .ic { width: 42%; height: 42%; stroke-width: 3; }
.wait.status small { font-size: 9px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; font-weight: 800; margin-top: 1px; }
.wait.status.is-down { background: var(--orange); color: #fff; }
.wait.status.is-closed { background: var(--gray); color: #fff; }
.wait.status.big small { font-size: 11px; }

#alertsBtn.on { background: var(--gold); }
#alertsBtn .ic { width: 22px; height: 22px; }
.top-btns { gap: 6px; }
.inline-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.inline-txt small { font-size: 12.5px; font-weight: 700; opacity: .92; margin-top: 2px; letter-spacing: .01em; }
.inline-btn .ic { width: 26px; height: 26px; }

/* accounts */
.ob-signin { margin: 18px auto 0; background: rgba(255,255,255,.95); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 8px 18px; font: 600 15px "Baloo 2", sans-serif; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
#obPark .ob-skip { margin-top: auto; }
.acct-row { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 4px; padding: 10px 14px; border: var(--bd); border-radius: 16px;
  background: #fff6cc; font: 600 15px "Baloo 2", sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
.acct-row .ic { width: 18px; height: 18px; color: var(--royal); }
.auth-form input[type=email], .auth-form input[type=password] { font: inherit; color: var(--ink); background: #fff; border: var(--bd);
  border-radius: 999px; padding: 10px 16px; width: 100%; }
.auth-err { color: var(--red); font-weight: 700; margin: 0; }

/* ride something more than once */
.again-link { border: 0; background: none; color: var(--royal); font: 700 12.5px "Baloo 2", sans-serif; padding: 2px 0 0 6px; cursor: pointer; }
.again-link:hover { text-decoration: underline; }
.itin li.off .again-link { display: none; }
.rp-times { display: none; }
.rp-times.on { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: -4px 9px 8px; padding: 2px;
  background: var(--sky); border: 2px solid var(--ink); border-radius: 999px; font: 800 14px "Baloo 2", sans-serif; }
.rp-step { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); display: grid; place-items: center;
  font-size: 18px; line-height: 1; cursor: pointer; user-select: none; }
.rp-step[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* skipped today (compact, below your order) */
.itin li.off { padding: 4px 8px; min-height: 0; }
.itin li.off .info { opacity: .85; }
.itin li.off .wait { width: 36px; height: 36px; font-size: 13px; }
.toast { display: flex; align-items: center; gap: 12px; justify-content: center; }
.toast-act { border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 2px 12px;
  font: 800 14px "Baloo 2", sans-serif; cursor: pointer; flex: 0 0 auto; }
.toast { width: min(92vw, 440px); border-radius: 18px; text-align: left; justify-content: space-between; padding: 10px 12px 10px 16px; line-height: 1.25; }

/* ---------- Your day, wrapped ---------- */
.wrapped { position: fixed; inset: 0; z-index: 3500; background: #0d1b4c; color: #fff; display: flex; flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); }
.w-bars { display: flex; gap: 4px; }
.w-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.w-bars b { display: block; height: 100%; width: 0; background: #fff; }
.w-x { position: absolute; right: 14px; top: calc(22px + env(safe-area-inset-top)); z-index: 3; border: 0; background: rgba(255,255,255,.2);
  color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.w-stage { position: relative; flex: 1; margin-top: 10px; border-radius: 26px; overflow: hidden; display: flex; align-items: center;
  justify-content: center; background-size: cover; background-position: center; }
.w-stage.g1 { background-color: #1546c0; background-image: radial-gradient(circle at 20% 15%, #00c2d1 0, transparent 45%), radial-gradient(circle at 85% 85%, #ffd23f 0, transparent 40%); }
.w-stage.g2 { background-color: #ff2d55; background-image: radial-gradient(circle at 80% 10%, #ffd23f 0, transparent 45%), radial-gradient(circle at 10% 90%, #2b5cff 0, transparent 45%); }
.w-stage.g3 { background-color: #14123d; }
.w-stage.g4 { background-color: #1ecb6b; background-image: radial-gradient(circle at 15% 20%, #00c2d1 0, transparent 50%), radial-gradient(circle at 90% 90%, #1546c0 0, transparent 45%); }
.w-stage.g5 { background-color: #ff7a1a; background-image: radial-gradient(circle at 80% 15%, #ff2d55 0, transparent 50%); }
.w-stage.g6 { background-color: #00a3e0; background-image: radial-gradient(circle at 20% 85%, #1ecb6b 0, transparent 45%), radial-gradient(circle at 85% 15%, #ffd23f 0, transparent 35%); }
.w-slide { padding: 28px 22px; text-align: center; animation: wIn .45s cubic-bezier(.2,.9,.3,1.2); width: 100%; }
@keyframes wIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.w-kicker { font: 800 16px "Baloo 2", sans-serif; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.w-huge { font: 800 54px/1 "Baloo 2", sans-serif; margin: 14px 0; text-shadow: 0 4px 0 rgba(13,27,76,.5); }
.w-num { font: 800 96px/1 "Baloo 2", sans-serif; margin: 6px 0; text-shadow: 0 5px 0 rgba(13,27,76,.45); }
.w-big { font: 800 36px/1.05 "Baloo 2", sans-serif; margin: 8px 0; text-shadow: 0 3px 0 rgba(13,27,76,.5); }
.w-label { font: 800 24px "Baloo 2", sans-serif; }
.w-sub { font-size: 17px; margin-top: 12px; opacity: .95; }
.w-tap { margin-top: 40px; font-weight: 700; opacity: .8; animation: wPulse 1.6s infinite; }
@keyframes wPulse { 50% { opacity: .35; } }
.w-chip { display: inline-block; margin-top: 16px; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 800; }
.w-divider { height: 2px; background: rgba(255,255,255,.4); margin: 22px auto; width: 60%; }
.w-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.w-list span { background: rgba(255,255,255,.2); border: 2px solid #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.w-nav { position: absolute; inset: 70px 0 0 0; display: flex; }
.w-nav span { flex: 1; } .w-nav span[data-w=prev] { flex: 0 0 30%; }
.w-slide.is-summary { padding: 16px; }
.w-card { background: #fff; color: var(--ink); border: var(--bd); border-radius: 26px; box-shadow: 0 6px 0 rgba(0,0,0,.35); padding: 16px; text-align: left; max-width: 380px; margin: 0 auto; }
.w-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.w-card-top img { height: 24px; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.w-grid div { background: var(--sky); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 10px; }
.w-grid b { display: block; font: 800 24px "Baloo 2", sans-serif; } .w-grid span { font-size: 12px; font-weight: 700; color: var(--muted); }
.w-top { font-size: 15px; margin-bottom: 4px; }
.w-rank { margin: 4px 0 8px; padding-left: 20px; font-weight: 700; } .w-rank em { color: var(--red); font-style: normal; }
.w-first { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.w-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.wrapped-cta { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 16px; padding: 16px; border: var(--bd);
  border-radius: 24px; box-shadow: var(--pop); color: #fff; cursor: pointer; font-family: "Baloo 2", sans-serif;
  background: linear-gradient(135deg, var(--royal), var(--pink) 60%, var(--gold)); }
.wrapped-cta span .ic { width: 30px; height: 30px; } .wrapped-cta b { font-size: 22px; } .wrapped-cta small { font-size: 14px; opacity: .95; }

/* ---------- sign-in gate ---------- */
.gate { position: fixed; inset: 0; z-index: 3200; overflow-y: auto; color: #fff;
  background: linear-gradient(170deg, #1d4ed8 0%, #2b5cff 45%, #00a3e0 100%);
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); }
.gate-inner { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; min-height: 100%; }
.gate .ob-logo { align-self: center; margin-top: 6vh; }
.gate-title { font: 800 34px/1.1 "Baloo 2", sans-serif; text-align: center; margin-top: 26px; text-shadow: 0 3px 0 var(--ink); }
.gate-sub { text-align: center; font-size: 16px; opacity: .95; margin: 8px 0 22px; }
.bio-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; font-size: 19px;
  background: #fff; color: var(--ink); box-shadow: var(--pop); }
.bio-btn .ic { width: 26px; height: 26px; color: var(--royal); }
.gate-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-weight: 700; opacity: .9; font-size: 14px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; border-top: 2px solid rgba(255,255,255,.5); }
.gate-form { display: grid; gap: 10px; }
.gate-form input { font: 600 17px "Baloo 2", sans-serif; color: var(--ink); background: #fff; border: var(--bd); border-radius: 999px;
  padding: 12px 18px; width: 100%; box-shadow: 0 3px 0 var(--ink); }
.gate-form .btn.red { font-size: 19px; padding: 12px; margin-top: 4px; box-shadow: var(--pop); }
.gate .auth-err { background: #fff; color: var(--red); border-radius: 12px; padding: 6px 12px; font-weight: 700; }
.gate-switch { margin: 18px auto 0; background: none; border: 0; color: #fff; font: 600 16px "Baloo 2", sans-serif; cursor: pointer; }
.gate-switch b { text-decoration: underline; text-underline-offset: 3px; }
.btn [data-ic] .ic, .btn .ic { vertical-align: -3px; }

/* ---------- Add to Home Screen guide ---------- */
#installGate { z-index: 3300; }
.ig-icon { width: 96px; height: 96px; border-radius: 22px; align-self: center; margin-top: 4vh; border: 3px solid var(--ink); box-shadow: var(--pop); }
.ig-steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ig-steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; color: var(--ink); border: var(--bd); border-radius: 20px;
  padding: 12px 14px; box-shadow: 0 3px 0 var(--ink); font-size: 16px; line-height: 1.3; }
.ig-steps small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.ig-n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.ig-ic { width: 22px; height: 22px; vertical-align: -5px; color: var(--royal); }
.ig-mini { width: 26px; height: 26px; border-radius: 7px; vertical-align: -8px; border: 1.5px solid var(--ink); margin-left: 2px; }
.ig-arrow { text-align: center; font-size: 40px; margin-top: auto; padding-top: 18px; animation: igBounce 1.2s ease-in-out infinite; }
@keyframes igBounce { 50% { transform: translateY(10px); } }
.ig-android { margin-top: 8px; }
.ios-install { display: none !important; }   /* replaced by the full guide */

/* "Update my order" (the ideal-order button once a plan is showing) */
.ideal-btn.update { background: var(--royal); }
.ideal-btn.busy svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Face ID / Touch ID button: long labels wrap instead of running off the button */
.bio-btn { white-space: normal; line-height: 1.15; text-align: center; padding-left: 18px; padding-right: 18px; }
.bio-btn .ic { flex: 0 0 auto; }
