/* Scooter's Pizza app. Colours are the website theme's own (sampled from the real logo). No external fonts: the app must work offline. */
:root {
  --red: #e83a3e; --red-dark: #b52d30; --yellow: #fcec08; --green: #008450; --green-dark: #00603a; --green-deep: #00321e;
  --ink: #1a1208; --cream: #fff8e7; --white: #fff; --muted: #5d564b;
  --display: Anton, Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --body: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabs: 62px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--body); color: var(--ink); background: var(--cream); padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; margin: 0 0 .4em; }
a { color: inherit; }
img { max-width: 100%; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--green-deep); padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; }
.brand img { display: block; height: 41px; width: auto; }
main { padding: 16px; max-width: 760px; margin: 0 auto; outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font: 700 15px var(--body); background: var(--red-dark); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: #8f2124; }
.btn.green { background: var(--green); } .btn.green:hover { background: var(--green-dark); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.offline { background: var(--yellow); color: var(--ink); padding: 8px 16px; font-weight: 600; text-align: center; font-size: 13px; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--green-deep); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabs); color: #cfe9dc; text-decoration: none; font-size: 12px; font-weight: 600; }
.tabs svg { width: 22px; height: 22px; fill: currentColor; }
.tabs a[aria-current="page"] { color: var(--yellow); }

/* hero */
.hero { background: var(--red-dark); color: #fff; border-radius: 20px; padding: 26px 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero h1 { font-size: 52px; margin-bottom: 8px; color: var(--yellow); }
.hero p { margin: 0 0 16px; font-size: 16px; }
.hero .row { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { font-size: 12px; color: var(--muted); }
.hero .fine { color: #ffe3e3; margin-top: 12px; }
.card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 18px rgba(26,18,8,.06); }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card.green { background: var(--green); color: #fff; }
.card.yellow { background: var(--yellow); }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e8e1cf; }
.pill.open { background: #d7f2e3; color: #00603a; } .pill.soon { background: #fff2b3; } .pill.closed { background: #f6d2d3; color: #7a1a1d; }

/* stores */
.search { width: 100%; min-height: 48px; border: 2px solid var(--ink); border-radius: 12px; padding: 0 14px; font: 16px var(--body); background: #fff; margin: 4px 0 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font: 700 14px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.store h3 { font-size: 24px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.store .addr { margin: 0 0 4px; }
.store .hrs { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.store .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.store .actions .btn { flex: 1 1 140px; }
.soonnote { margin: 0; font-weight: 600; }

/* menu */
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); background: var(--cream); z-index: 10; padding-top: 6px; }
.item { padding: 10px 0; border-top: 1px solid #ece4cf; display: flex; justify-content: space-between; gap: 12px; }
.item:first-of-type { border-top: 0; }
.item b { display: block; }
.item small { color: var(--muted); display: block; }
.prices { text-align: right; white-space: nowrap; font-weight: 700; font-size: 14px; }
.prices span { display: block; }
.note { background: var(--yellow); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font-size: 13px; font-weight: 600; }

/* install banner + sheet */
.install-banner { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabs) + 8px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; background: var(--green-deep); color: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 744px; margin: 0 auto; }
.install-banner img { border-radius: 10px; flex: none; }
.install-banner div { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.install-banner b { display: block; font-size: 14px; }
.install-banner span { color: #cfe9dc; }
.install-banner .x { flex: none; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden], [hidden] { display: none !important; }
.sheet-card { background: #fff; border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 520px; }
.sheet-card h2 { font-size: 26px; }
.sheet-card ol { padding-left: 20px; margin: 0 0 16px; } .sheet-card li { margin-bottom: 8px; }
@media (min-width: 700px) { .install-banner { display: none !important; } }
@media (max-width: 380px) { .hero h1 { font-size: 42px; } .grid2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
