:root {
  color-scheme: light;
  --bg:#f5f5f3; --card:#ffffff; --ink:#0b0b0b; --ink2:#52514e; --muted:#78766f;
  --line:#dedcd6; --brand:#2a78d6; --brandink:#ffffff; --accent:#1baf7a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#111110; --card:#1a1a19; --ink:#ffffff; --ink2:#c3c2b7; --muted:#8e8d84;
          --line:#33332f; --brand:#3987e5; --accent:#199e70; }
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { margin:0; background:var(--bg); color:var(--ink);
  font:17px/1.45 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased; }
.wrap { max-width:560px; margin:0 auto; padding:24px 18px calc(34px + env(safe-area-inset-bottom)); }
.hd { text-align:center; margin:8px 0 26px; }
.logo { font-size:26px; font-weight:750; letter-spacing:-.02em; }
.tag { color:var(--ink2); font-size:15px; margin-top:5px; }
.step { margin-bottom:26px; }
h1 { font-size:20px; font-weight:660; margin:0 0 14px; text-align:center; }
.hint { text-align:center; color:var(--ink2); font-size:14.5px; margin:-6px 0 14px; }
.counter { display:flex; align-items:center; justify-content:center; gap:22px; }
.counter button {
  width:78px; height:78px; border-radius:50%; font-size:38px; font-weight:700; line-height:1;
  background:var(--card); color:var(--ink); border:2px solid var(--line); cursor:pointer;
}
.counter button:active { transform:scale(.94); border-color:var(--brand); color:var(--brand); }
.num { min-width:92px; text-align:center; font-size:62px; font-weight:750;
       font-variant-numeric:tabular-nums; line-height:1; }
.opts { display:flex; flex-direction:column; gap:14px; }
.opt {
  display:block; width:100%; text-align:left; padding:20px; border-radius:18px;
  background:var(--card); border:2px solid var(--line); cursor:pointer; color:inherit;
  font:inherit;
}
.opt:active { transform:scale(.99); }
.opt.best { border-color:var(--accent); }
.opt .row { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.opt .name { font-size:19px; font-weight:660; }
.opt .price { font-size:30px; font-weight:750; font-variant-numeric:tabular-nums; white-space:nowrap; }
.opt .per { font-size:14px; font-weight:500; color:var(--ink2); }
.opt .sub { color:var(--ink2); font-size:14.5px; margin-top:7px; }
.opt .flag { display:inline-block; margin-bottom:9px; padding:3px 10px; border-radius:999px;
             font-size:12.5px; font-weight:650; background:var(--accent); color:#fff; }
.go { margin-top:14px; display:block; width:100%; padding:16px; border-radius:14px;
      background:var(--brand); color:var(--brandink); border:0; font:inherit;
      font-size:18px; font-weight:680; cursor:pointer; }
.loading { text-align:center; color:var(--muted); padding:24px; }
.fine { color:var(--muted); font-size:13.5px; text-align:center; margin-top:24px; line-height:1.5; }
/* [hidden] must beat display:flex or this overlay silently eats every tap */
.busy[hidden] { display:none !important; }
.busy { position:fixed; inset:0; background:rgba(0,0,0,.55); color:#fff; display:flex;
        flex-direction:column; align-items:center; justify-content:center; gap:14px;
        font-size:17px; z-index:20; }
.spin { width:42px; height:42px; border:4px solid rgba(255,255,255,.35); border-top-color:#fff;
        border-radius:50%; animation:sp .8s linear infinite; }
@keyframes sp { to { transform:rotate(360deg); } }
.err { background:var(--card); border:2px solid #c0392b; color:#c0392b; padding:16px;
       border-radius:14px; font-size:15px; }

.zip { display:block; width:100%; max-width:260px; margin:0 auto; text-align:center;
       font:inherit; font-size:34px; font-weight:700; letter-spacing:.12em;
       padding:14px; border-radius:16px; border:2px solid var(--line);
       background:var(--card); color:var(--ink); font-variant-numeric:tabular-nums; }
.zip:focus { outline:none; border-color:var(--brand); }
.zipnote { text-align:center; font-size:15px; margin-top:10px; min-height:22px; font-weight:600; }
.zipnote.local { color:var(--accent); }
.zipnote.std { color:var(--ink2); font-weight:500; }

.codecard { background:var(--card); border:2px solid var(--accent); border-radius:18px;
            padding:22px; text-align:center; }
.codelabel { font-size:15px; color:var(--ink2); font-weight:600; }
.codecard .code { font-size:56px; font-weight:800; letter-spacing:.18em; margin:10px 0 6px;
                  font-variant-numeric:tabular-nums; color:var(--ink); }
.codehint { font-size:14.5px; color:var(--ink2); line-height:1.45; }
.was { font-size:20px; font-weight:600; color:var(--muted); text-decoration:line-through;
       margin-right:10px; font-variant-numeric:tabular-nums; }
.price.save { color:var(--accent); }
.savings { margin-top:10px; display:inline-block; background:var(--accent); color:#fff;
           font-size:14.5px; font-weight:700; padding:6px 12px; border-radius:999px; }
.opt.localdeal { border-color:var(--accent); }

/* Spinner inside a light card needs a dark track, not the white overlay one. */
.spin.dark { border:4px solid rgba(0,0,0,.15); border-top-color:var(--brand);
             margin:0 auto; }


/* Unstaffed-hours acknowledgment. Deliberately not dismissible: acknowledging
   it is the only way to the options, because "nobody told me the building was
   empty" is the dispute most likely to arise and hardest to answer later. */
.ack {
  border: 2px solid #8a2f00;
  border-radius: 14px;
  background: #fff4ec;
  color: #8a2f00;
  padding: 18px 18px 16px;
}
.ack h1 { margin: 0 0 .4em; font-size: 1.15rem; color: #8a2f00; }
.ack p { margin: .5em 0; font-size: .97rem; line-height: 1.5; }
.ack button {
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #8a2f00;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-appearance: none;
}
.ack button:active { transform: translateY(1px); }
.ack.done { border-color: #3b7201; background: #f1f6e9; color: #2f5a01; }
.ack.done h1::after { content: " \2713"; }
.ack.done button { display: none; }

/* The options are inert until the acknowledgment is tapped. */
.opts.locked { opacity: .42; pointer-events: none; }

.assent {
  margin: 20px 2px 0;
  font-size: .9rem;
  line-height: 1.5;
  color: #4a4f42;
}
.assent a { color: #3b7201; font-weight: 600; }

/* Trading-hours banner. Sits above the options so the state of the building is
   read before the price is, not after. Amber for the last hour, plain for
   closed - a closed sign is information, not a warning. */
.notice { border-radius:14px; padding:13px 15px; margin-bottom:14px; font-size:15px;
          line-height:1.45; border:1px solid var(--line); background:var(--card);
          color:var(--ink2); }
.notice strong { color:var(--ink); }
.notice.twilight { border-color:#e0a93a; background:#fdf6e6; color:#6b5220; }
.notice.twilight strong { color:#5a4318; }
@media (prefers-color-scheme: dark) {
  .notice.twilight { border-color:#8a6a24; background:#2a2313; color:#e2cf9e; }
  .notice.twilight strong { color:#f5e6bd; }
}

/* Group rate. A quiet line at the bottom rather than a fourth option up top -
   almost nobody arriving with a class is discovering it on this page. */
.groupnote { text-align:center; margin-top:10px; font-size:14px; }
.groupnote a { color:var(--ink2); text-decoration:underline;
               text-underline-offset:3px; cursor:pointer; }
.groupnote a:hover { color:var(--ink); }
.opt.group { border-color:var(--accent); }
.groupwhen { margin:10px 2px 0; font-size:13.5px; color:var(--ink2); line-height:1.45; }
