/* ============================================================
   WHAT SHOULD WE DO TONIGHT? — style.css
   Dark, cinematic, playful. Mobile-first (app max-width 480px).
   Spotify-meets-game, not corporate, not wedding-y.
   ============================================================ */
:root {
  --bg0: #0d0a1f;
  --bg1: #171233;
  --card: rgba(255, 255, 255, 0.07);
  --card2: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.62);
  --faint: rgba(246, 241, 232, 0.38);
  --acc: #ff7a59;
  --acc2: #ffb35c;
  --vio: #a78bfa;
  --pink: #f472b6;
  --gold: #ffd166;
  --green: #6ee7a0;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI",
          system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg0);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
/* ambient background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
      background: radial-gradient(120% 90% at 50% 0%, #241b4d 0%, var(--bg0) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
       animation: drift 14s ease-in-out infinite alternate; }
.o1 { width: 340px; height: 340px; background: #5b2a86; top: -90px; left: -90px; }
.o2 { width: 300px; height: 300px; background: #173a6b; bottom: -80px; right: -80px; animation-delay: -5s; }
.o3 { width: 200px; height: 200px; background: #7a2f4f; top: 45%; left: 60%; animation-delay: -9s; opacity: .35; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.12); } }

.app { max-width: 480px; margin: 0 auto; padding: 0 18px calc(28px + env(safe-area-inset-bottom)); min-height: 100dvh; }
.screen { display: none; animation: rise .35s ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- home ---------- */
.hero { text-align: center; padding: 56px 6px 10px; }
.hero-eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-size: 44px; line-height: 1.05; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, var(--acc2), var(--pink), var(--vio));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.btn-big {
  width: 100%; padding: 20px; font-size: 20px; font-weight: 800; letter-spacing: .02em;
  color: #221031; border: none; border-radius: 22px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--acc) 55%, var(--pink));
  box-shadow: 0 12px 40px rgba(255, 122, 89, .35);
  transition: transform .12s ease;
}
.btn-big:active { transform: scale(.97); }
.btn-big2 {
  width: 100%; padding: 16px; margin-top: 14px; font-size: 17px; font-weight: 800; letter-spacing: .02em;
  border-radius: 20px; cursor: pointer;
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
  transition: transform .12s ease, background .2s;
}
.btn-big2:active { transform: scale(.97); background: rgba(255, 193, 7, .08); }
.day-title { font-size: 19px; font-weight: 800; margin: 24px 0 10px; color: var(--gold); }
.trip-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; justify-content: center; }
.trip-badges span { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.alt-box { background: var(--card2); border: 1px dashed var(--gold); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.alt-box .lbl { font-size: 11px; letter-spacing: .12em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.stay-box { background: var(--card2); border-radius: 16px; padding: 16px 18px; margin: 20px 0 6px; border: 1px solid var(--line); }
.stay-box .lbl { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.stay-box p { margin: 0; line-height: 1.55; }
.quick-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn-chip {
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  border-radius: 16px; padding: 14px 6px; font-size: 22px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: transform .12s ease, background .2s;
}
.btn-chip span { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.btn-chip:active { transform: scale(.95); background: var(--card2); }

.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 34px; padding-bottom: 10px; }
.tabbar button {
  background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
}
.tabbar button span { font-size: 11px; font-weight: 600; }
.tabbar button:active { color: var(--ink); }

/* ---------- quiz ---------- */
.quiz-top { display: flex; align-items: center; gap: 12px; padding: 18px 0 6px; }
.icon-btn { background: var(--card); border: 1px solid var(--line); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%; font-size: 17px; cursor: pointer; flex: none; }
.progress { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
#progress-fill { height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--acc2), var(--pink)); transition: width .3s ease; }
.q-title { font-size: 30px; font-weight: 800; margin: 18px 0 6px; letter-spacing: -0.01em; }
.q-sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.opt-grid { display: grid; gap: 12px; padding-bottom: 20px; }
.opt {
  display: flex; gap: 14px; align-items: center; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px; color: var(--ink); cursor: pointer; font-family: var(--font);
  transition: transform .1s ease, border-color .15s, background .15s;
  animation: rise .3s ease both;
}
.opt:active { transform: scale(.98); }
.opt .e { font-size: 30px; flex: none; }
.opt .tt { font-weight: 700; font-size: 16px; }
.opt .ss { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt.sel { border-color: var(--gold); background: rgba(255, 209, 102, .1);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(255, 209, 102, .12); }
.opt.excl { border-color: var(--pink); background: rgba(244, 114, 182, .1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 20px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 99px; padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: transform .1s;
}
.chip:active { transform: scale(.95); }
.chip.sel { border-color: var(--green); background: rgba(110, 231, 160, .12); }
.chip.excl { border-color: var(--pink); background: rgba(244, 114, 182, .12);
  text-decoration: line-through; }
.sect-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 10px; }
.quiz-cta { width: 100%; padding: 16px; margin: 6px 0 24px; border: none; border-radius: 18px;
  font-size: 17px; font-weight: 800; cursor: pointer; color: #221031;
  background: linear-gradient(135deg, var(--gold), var(--acc)); font-family: var(--font); }
.quiz-cta:disabled { opacity: .35; }

/* ---------- loading ---------- */
.loader-wrap { text-align: center; padding: 120px 20px; }
.loader-ring { font-size: 64px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.loading-line { font-size: 18px; color: var(--muted); min-height: 60px; font-style: italic; }

/* ---------- result ---------- */
.res-kicker { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; margin: 22px 0 6px; text-align: center; }
.res-title { font-size: 34px; font-weight: 800; text-align: center; margin: 0 0 4px; letter-spacing: -0.01em; }
.res-date { text-align: center; color: var(--faint); font-size: 13px; margin-bottom: 14px; }
.now-banner { background: linear-gradient(135deg, rgba(255,122,89,.22), rgba(244,114,182,.18));
  border: 1px solid rgba(255,122,89,.4); border-radius: 14px; padding: 12px 14px;
  font-weight: 700; text-align: center; margin-bottom: 14px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.stat-chips span { background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 13px; font-size: 13px; font-weight: 600; }
.why-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 18px; }
.why-box .lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vio); margin-bottom: 8px; }
.why-box p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.energy-match { text-align: center; color: var(--green); font-weight: 700; margin-bottom: 18px; font-size: 15px; }

.timeline { position: relative; margin: 0 0 18px 8px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--acc2), var(--pink), var(--vio)); border-radius: 2px; opacity: .6; }
.stop { position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 15px 13px; margin-bottom: 14px; }
.stop::before { content: ""; position: absolute; left: -24px; top: 20px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.stop-time { color: var(--acc2); font-weight: 800; font-size: 14px; }
.stop-name { font-size: 19px; font-weight: 800; margin: 3px 0; }
.stop-area { color: var(--faint); font-size: 13px; margin-bottom: 6px; }
.stop-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.stop-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stop-meta .cost { font-size: 13px; font-weight: 700; color: var(--green); }
.maps-link { font-size: 13px; font-weight: 700; color: var(--vio); text-decoration: none;
  background: rgba(167,139,250,.12); padding: 6px 12px; border-radius: 99px; }
.fav-btn { margin-left: auto; background: none; border: none; font-size: 20px; cursor: pointer; opacity: .55; }
.fav-btn.on { opacity: 1; }
.bucket-tag { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: .06em; }

.fake-stats { background: rgba(167,139,250,.08); border: 1px dashed rgba(167,139,250,.4);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.fake-stats .lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--vio);
  margin-bottom: 8px; }
.fake-stats .row { display: flex; justify-content: space-between; font-size: 13.5px;
  color: var(--muted); padding: 3px 0; }
.fake-stats .row b { color: var(--ink); }
.fake-stats .fine { font-size: 11px; color: var(--faint); margin-top: 6px; font-style: italic; }

.extra-box { border-radius: var(--radius); padding: 15px 16px; margin-bottom: 14px; font-size: 14.5px; line-height: 1.5; }
.extra-box.challenge { background: rgba(255, 179, 92, .1); border: 1px solid rgba(255,179,92,.35); }
.extra-box.convo { background: rgba(110, 231, 160, .08); border: 1px solid rgba(110,231,160,.3); }
.extra-box .lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; margin-bottom: 6px; }
.challenge .lbl { color: var(--acc2); } .convo .lbl { color: var(--green); }
.extra-box p { margin: 0; }

.res-actions { display: grid; gap: 10px; margin: 18px 0 8px; }
.btn-love { width: 100%; padding: 17px; border: none; border-radius: 18px; font-size: 17px; font-weight: 800;
  cursor: pointer; color: #fff; background: linear-gradient(135deg, #f8577a, #c33764); font-family: var(--font); }
.btn-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-ghost { padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font); }
.btn-ghost:active { background: var(--card2); }
.reasons { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.reasons.open { display: grid; }
.reasons button { padding: 11px 8px; font-size: 13px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; font-family: var(--font); font-weight: 600; }
.home-link { display: block; text-align: center; margin: 18px 0 8px; color: var(--faint);
  background: none; border: none; font-size: 14px; cursor: pointer; font-family: var(--font); }

/* ---------- list pages ---------- */
.page-head { display: flex; align-items: center; gap: 12px; padding: 18px 0 4px; }
.page-head h2 { margin: 0; font-size: 24px; }
.page-sub { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.list { display: grid; gap: 12px; padding-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card .meta { color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.card p.desc { color: var(--muted); font-size: 14px; margin: 0 0 8px; line-height: 1.5; }
.empty { text-align: center; color: var(--faint); padding: 40px 10px; font-size: 15px; }
.add-row { display: flex; gap: 8px; margin-bottom: 14px; }
.add-row input, .settings-card input {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; color: var(--ink); font-size: 15px; font-family: var(--font); outline: none; }
.add-row input:focus { border-color: var(--vio); }
.btn-small { background: linear-gradient(135deg, var(--vio), #7c5cf0); color: #fff; border: none;
  border-radius: 14px; padding: 13px 18px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.btn-danger { background: linear-gradient(135deg, #f8577a, #a31f3f); }
.stars { display: flex; gap: 6px; margin: 8px 0; }
.stars button { background: none; border: none; font-size: 26px; cursor: pointer; opacity: .35; }
.stars button.lit { opacity: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tag-row .chip { padding: 8px 14px; font-size: 13px; }
.again-row { display: flex; gap: 8px; margin-top: 8px; }
.again-row button { flex: 1; padding: 10px; font-size: 13px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); font-family: var(--font); font-weight: 600; }
.again-row button.sel-yes { border-color: var(--green); color: var(--green); }
.again-row button.sel-no { border-color: var(--pink); color: var(--pink); }
.again-row button.sel-maybe { border-color: var(--gold); color: var(--gold); }
.del { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; margin-top: 8px; }
.bucket-item { display: flex; align-items: center; gap: 10px; }
.bucket-item span.txt { flex: 1; font-size: 15px; }
.pin-btn { background: none; border: none; font-size: 18px; cursor: pointer; opacity: .4; }
.pin-btn.on { opacity: 1; }
.settings-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; }
.settings-card label { font-weight: 800; font-size: 15px; display: block; margin-bottom: 10px; }
.settings-card .hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-card input { width: 100%; margin-bottom: 10px; }
.settings-card.danger { border-color: rgba(248, 87, 122, .4); }
.foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 26px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #221a3f; border: 1px solid var(--vio); color: var(--ink); padding: 13px 20px;
  border-radius: 99px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 520px) {
  .hero-title { font-size: 52px; }
}