/* Slappy's online ordering. One look on purpose: the printed menu, on a phone.
   Layout: a single phone-width column, black ground, white torn-paper panels. */
:root {
  color-scheme: dark;
  --ink: #000;
  --paper: #fff;
  --pink: #ff3f68;
  --red: #d11a45;
  --heat: #ffa53b;
  --sweet: #ff8fe0;
  --mute: #5a5a5a;
  --mute-bg: #e4e4e4;
  --scrim: rgba(0, 0, 0, 0.72);
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
  --col: 480px;
}

html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
.sl * { box-sizing: border-box; }
.sl { max-width: var(--col); margin: 0 auto; min-height: 100%; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.sl button { font-family: inherit; cursor: pointer; }
.sl button:disabled { cursor: not-allowed; }
.sl :focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.sl .on-paper :focus-visible, .sl .sheet :focus-visible { outline-color: var(--red); }
.sl img { max-width: 100%; }
.sl h1, .sl h2 { margin: 0; text-wrap: balance; }
.mono { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }

/* Header */
.top { background: var(--paper); color: var(--ink); padding: 20px 16px 18px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.top .logo { width: min(232px, calc(100% - 112px)); height: auto; display: block; }
.top .hours { border: 2px dotted var(--red); color: var(--red); padding: 8px 10px; font-size: 12px; line-height: 1.5; width: 190px; }
.top .head { width: 150px; height: auto; position: absolute; right: clamp(4px, calc(100% - 346px), 44px); bottom: -34px; pointer-events: none; }
.tagline { padding: 46px 16px 6px; font-size: 13px; line-height: 1.5; }
.tagline .heat { color: var(--heat); }
.tagline .sweet { color: var(--sweet); }
.bar { background: var(--paper); color: var(--ink); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar.center { justify-content: center; padding: 14px 16px; }
.bar .logo { width: 132px; height: auto; display: block; }
.bar.center .logo { width: 170px; }
.back { color: var(--ink); display: flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; padding: 0; font-weight: 800; font-size: 15px; }

/* Notices */
.notice { border: 2px solid var(--pink); padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.notice strong { font-weight: 800; }
.notice .fine { color: var(--pink); display: block; }
.notice.loud { background: var(--pink); color: var(--ink); font-weight: 800; font-size: 16px; }

/* Menu */
.stack { padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 24px; }
.section { display: flex; flex-direction: column; gap: 8px; }
.section > h2 { text-align: center; line-height: 1; }
.section > h2 img { height: 44px; width: auto; display: block; margin: 0 auto; }
.plain-head { font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--pink); text-transform: uppercase; letter-spacing: 0.03em; }
.blurb { font-style: italic; font-size: 14px; text-align: center; }
.panel { background: var(--paper); color: var(--ink); padding: 18px 14px; display: flex; flex-direction: column; gap: 16px; clip-path: polygon(0 5px, 100% 0, calc(100% - 3px) 100%, 4px calc(100% - 4px)); }
.panel.special { background: var(--pink); }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item .what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .name { font-weight: 800; font-size: 17px; line-height: 1.25; }
.item .desc { font-size: 14px; line-height: 1.35; }
.item .price { font-weight: 800; font-size: 16px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.star { color: var(--red); font-weight: 800; }
.panel.special .star { color: var(--ink); }
.ctl { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.round { width: 44px; height: 44px; border-radius: 22px; border: 3px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.round.plus { background: var(--ink); color: var(--paper); }
.round.minus { background: var(--paper); color: var(--ink); }
.round:disabled { border-color: var(--mute); background: var(--mute-bg); color: var(--mute); }
.qty { display: inline-block; min-width: 24px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.unavail { font-size: 12px; text-align: right; max-width: 110px; }
.bacon-note { font-style: italic; font-size: 14px; }
.foot { font-size: 12px; line-height: 1.6; text-align: center; }
.top .round-logo { width: 92px; height: auto; position: absolute; right: 10px; top: 6px; }

/* Sticky bottom bar */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; }
.dock .in { max-width: var(--col); margin: 0 auto; background: var(--ink); border-top: 2px solid var(--pink); padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.cta { width: 100%; min-height: 54px; border: 0; background: var(--pink); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cta.one { justify-content: center; }
.cta:disabled { background: var(--mute-bg); color: var(--mute); }
.hint { min-height: 54px; display: flex; align-items: center; justify-content: center; font-size: 13px; text-align: center; }

/* Order screen */
.page { padding: 22px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.page > h1 { text-align: center; font-size: 34px; }
.group { display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; flex-direction: column; gap: 2px; }
.line .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 16px; }
.line .row .n { font-weight: 600; }
.line .row .n b { color: var(--red); font-weight: 800; }
.line .amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.line .detail { font-size: 14px; line-height: 1.35; padding-left: 26px; }
.x { width: 32px; height: 32px; border: 2px solid var(--ink); background: var(--paper); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.rule { height: 2px; background: var(--ink); }
.sum { display: flex; justify-content: space-between; font-size: 16px; font-variant-numeric: tabular-nums; }
.sum.total { font-weight: 800; font-size: 20px; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tip { width: 100%; min-height: 48px; border: 3px solid var(--paper); background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 800; padding: 0; }
.tip[aria-pressed='true'] { border-color: var(--pink); background: var(--pink); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 800; }
.field input { height: 48px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); padding: 0 12px; font-family: inherit; font-size: 16px; width: 100%; }
.small { font-size: 12px; line-height: 1.6; }
.cardbox { background: var(--paper); color: var(--ink); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf.wide { grid-column: 1 / -1; }
.cf label { font-size: 13px; font-weight: 800; }
.cf-frame { height: 48px; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; }
.cf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cf-err { font-size: 12px; color: var(--red); min-height: 0; }
.cf-note { font-size: 13px; line-height: 1.4; }
.cardbox .tag { align-self: flex-start; background: var(--ink); color: var(--paper); padding: 2px 8px; font-size: 12px; }

/* Placed */
.placed .panel { align-items: center; gap: 12px; padding-bottom: 20px; }
.placed .skater { width: 240px; height: auto; display: block; }
.placed .big { font-weight: 800; font-size: 20px; text-align: center; line-height: 1.25; }
.placed .facts { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.placed .facts div { display: flex; justify-content: space-between; gap: 12px; }
.placed .facts b { font-weight: 800; text-align: right; }
.placed .receipt { align-items: stretch; }
.rc-head { font-weight: 800; font-size: 18px; }
.rc-note { font-size: 13px; line-height: 1.4; }

/* Side picker */
.scrim { position: fixed; inset: 0; z-index: 10; background: var(--scrim); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { width: 100%; max-width: var(--col); margin: 0 auto; max-height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink); border-top: 4px solid var(--pink); padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.sheet h2 { font-weight: 800; font-size: 19px; line-height: 1.25; }
.sheet .count { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.sheet .count span:last-child { color: var(--red); }
.sheet .side { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.sheet .side .name { font-weight: 800; font-size: 16px; }
.sheet .side.gone .name { color: var(--mute); text-decoration: line-through; }
.sos-wrap { border-top: 2px solid var(--ink); padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.sos { width: 100%; min-height: 48px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 16px; font-weight: 800; text-align: left; }
.sos[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.sos .mono { font-size: 13px; }
.sheet .notes { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sheet .notes b { font-weight: 800; }
.sheet .acts { display: flex; gap: 10px; padding-top: 4px; }
.sheet .cancel { flex: 0 0 auto; height: 54px; padding: 0 18px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 800; }
.sheet .cta { flex: 1 1 auto; justify-content: center; }
.loading { padding: 60px 16px; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .round, .tip, .cta, .sos { transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
}
.sheet .side.later .name { color: var(--mute); }
.edit { height: 32px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 16px; padding: 0 12px; font-size: 14px; font-weight: 800; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
