/* Retro supper-club look: oxblood ground, cream cards, gold script mark, royal blue actions.
   Single deliberate theme, so every color is set explicitly. */
:root {
  --oxblood: #2B0303;
  --cream: #FBF3E2;
  --paper: #F5E8D3;
  --sand: #EFE2C8;
  --gold: #E7C77E;
  --blue: #2C46B8;
  --blue-ink: #1B2C78;
  --rule: #D9C6A8;
  --muted: #5A2A22;
  --warn: #B4232A;
  --display: 'Archivo', 'Arial Black', Impact, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --body: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--oxblood); }
body {
  margin: 0;
  color: var(--oxblood);
  font: 16px/1.5 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.cap { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { font-size: 11px; }
.accent { color: var(--blue); }
.h { font-size: 22px; letter-spacing: .02em; line-height: 1.15; margin: 0; text-wrap: balance; }
.lbl { font-size: 14px; }
.note { font-size: 13px; font-style: italic; color: var(--muted); margin: 0; }
.err { font-size: 13px; color: var(--warn); margin: 0; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; background: var(--oxblood); max-width: 1100px; margin: 0 auto;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--oxblood); }
.mark { font-family: var(--script); color: var(--gold); font-size: clamp(26px, 8vw, 36px); line-height: 1; text-decoration: none; white-space: nowrap; }
.mark.big { font-size: 46px; color: var(--blue); }
.navbtn { background: none; border: 0; color: var(--cream); font-size: 11px; cursor: pointer; padding: 8px 0; width: 64px; text-align: left; }
.navspacer { width: 64px; }
.top .navbtn[hidden] + .mark { margin-left: 64px; }
.strip { background: var(--blue); color: var(--cream); text-align: center; font-size: 13px; padding: 8px 12px; border-radius: 10px; max-width: 1100px; margin: 0 auto 12px; }

/* Layout */
.layout { max-width: 1100px; margin: 0 auto; display: grid; gap: 16px; }
.narrow { max-width: 460px; margin: 0 auto; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--cream); border-radius: 22px; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; }
  .sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); }
}

/* Inputs */
input[type=text], input[type=date], input[type=number] {
  font: 16px var(--body); color: var(--oxblood); background: var(--paper);
  border: 1.5px solid var(--oxblood); border-radius: 8px; padding: 10px 12px; min-width: 0; width: 100%;
}
.where-row { display: flex; gap: 8px; }
.small-btn { background: var(--blue); color: var(--cream); border: 0; border-radius: 8px; padding: 0 16px; font-size: 12px; cursor: pointer; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prefix { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--oxblood); border-radius: 8px; background: var(--paper); padding: 0 12px; }
.prefix input { border: 0; padding: 10px 0; background: transparent; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
input[type=range] { width: 100%; accent-color: var(--blue); }

/* Stop toggles */
.acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.act, .chip, .tip {
  border: 1.5px solid var(--oxblood); background: var(--cream); color: var(--oxblood);
  border-radius: 8px; cursor: pointer; font-family: var(--body);
}
.act { padding: 12px; font-size: 15px; text-align: left; }
.act[aria-pressed=true], .chip[aria-pressed=true], .tip[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: var(--cream); }
.vibes { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; font-size: 14px; border-radius: 999px; }

/* Option pickers */
.kind-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.kind-head .note { text-align: right; }
.opts { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -4px; padding-inline: 4px; }
.opt {
  flex: 0 0 min(78%, 240px); scroll-snap-align: start; border: 1.5px solid var(--oxblood); border-radius: 10px;
  background: var(--paper); display: flex; flex-direction: column; overflow: hidden;
}
.opt[data-on=true] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.opt-pick { all: unset; cursor: pointer; padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.opt-pick:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.opt-flap { background: var(--oxblood); color: var(--gold); font-size: 10px; padding: 6px 12px; display: flex; justify-content: space-between; }
.opt[data-on=true] .opt-flap { background: var(--blue); color: var(--cream); }
.opt-name { font-size: 16px; line-height: 1.25; }
.opt-meta { font-size: 13px; color: var(--muted); }
.opt-cost { font-size: 14px; font-variant-numeric: tabular-nums; }
.opt-link { font-size: 12px; padding: 0 12px 10px; }
.empty { font-size: 14px; font-style: italic; padding: 10px 0; }
.skeleton { flex: 0 0 min(78%, 240px); height: 138px; border-radius: 10px; background: var(--sand); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .55 } to { opacity: 1 } }

/* Map and plan */
.map { height: 280px; border: 1.5px solid var(--oxblood); border-radius: 10px; overflow: hidden; background: var(--sand); }
.map svg { display: block; width: 100%; height: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li, .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1.5px dashed var(--rule); font-size: 14.5px; font-variant-numeric: tabular-nums;
}
.timeline li:last-child, .receipt .row:last-child { border-bottom: 0; }
.timeline .t { font-variant-numeric: tabular-nums; min-width: 64px; display: inline-block; }
.timeline .sub { display: block; font-size: 12px; color: var(--muted); font-style: italic; }
.timeline .amt { white-space: nowrap; }
.budget-bar { height: 12px; border-radius: 999px; background: #E8D9BF; overflow: hidden; border: 1.5px solid var(--oxblood); }
.budget-bar div { height: 100%; width: 0; background: var(--blue); transition: width .25s; }
.blabel { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.blabel span:last-child { font-style: italic; }

/* Brush-stroke button */
.brush { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; border: 0; width: 100%; padding: 0; }
.brush svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue); }
.brush span { position: relative; color: var(--cream); font-size: 14px; }
.brush[aria-busy=true] { opacity: .7; cursor: progress; }

/* Checkout */
.receipt { border: 1.5px solid var(--oxblood); border-radius: 8px; padding: 12px 14px; background: var(--paper); }
.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tip { height: 42px; font-size: 14px; }
.row.total { font-size: 17px; border-bottom: 0; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.method { height: 46px; border: 1.5px solid var(--oxblood); background: var(--cream); color: var(--oxblood); border-radius: 8px; cursor: pointer; font-family: var(--body); font-size: 15px; }
.method[aria-checked=true] { background: var(--blue); border-color: var(--blue); color: var(--cream); }
venmo-button { display: block; width: 100%; min-height: 48px; }
.venmo-sample { height: 52px; width: 100%; border: 0; border-radius: 999px; background: #008CFF; color: #FFFFFF; cursor: pointer; font-size: 14px; }
.venmo-sample[aria-busy=true] { opacity: .7; cursor: progress; }
.card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--oxblood); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.done { text-align: center; align-items: center; padding-block: 36px; }
.done p { margin: 0; }

.foot { color: var(--gold); opacity: .85; font-size: 12px; text-align: center; padding-block: 24px 32px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .budget-bar div { transition: none; }
  .skeleton { animation: none; }
}
