/* site.css — the car meet pages. One look, committed: night. Cover art more than web page.
   The host's own footage runs behind the whole page (darkened, with grain), the date sits inside a glowing halo,
   set in blackletter with a chrome finish, and everything else is quiet glass over the dark.
   The host's color (--accent) replaces the lilac halo when they pick one. */
:root {
  --void: #07060b;           /* the night itself */
  --lot: rgba(18, 14, 28, .62);   /* glass panels over the footage */
  --lot-2: rgba(30, 24, 46, .55);
  --line: rgba(214, 198, 255, .16);
  --ink: #f4effc;            /* text: moonlight, faintly violet */
  --dim: #b9b0cc;
  --faint: #8c84a0;
  --accent: #c9adff;         /* the halo: underglow lilac */
  --on-accent: #120a20;
  --ok: #9fe3b0; --warn: #ffd28a; --bad: #ff9a9a;
  --paint: #f4effc;
  --radius: 14px; --gutter: 16px;
  /* The flyer's type: wide, squared, sci-fi. "Good Times" when its file is on the server (public/fonts), else Michroma. */
  --display: "Good Times", "Ethnocentric", "Michroma", "Eurostile", system-ui, sans-serif;
  --ether: var(--display);
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* no background here: the body's paints the canvas, so the footage (z-index -1) shows above it */
body {
  margin: 0; min-height: 100vh; overflow-x: clip; color: var(--ink); font: 400 16px/1.6 var(--body);
  /* No footage: a night sky of soft blooms. */
  background:
    radial-gradient(60vmax 40vmax at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50vmax 50vmax at 110% 60%, rgba(84, 46, 160, .22), transparent 70%),
    radial-gradient(40vmax 40vmax at -10% 90%, rgba(40, 70, 150, .18), transparent 70%),
    var(--void);
  background-attachment: fixed;
}
/* Film grain over everything: the cover-art finish. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- the footage behind the page ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; background: var(--void) center / cover no-repeat; overflow: hidden; }
.page-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80vmax 60vmax at 50% 30%, transparent 0%, rgba(7, 6, 11, .35) 55%, rgba(7, 6, 11, .85) 100%),
    linear-gradient(180deg, rgba(7, 6, 11, .45) 0%, rgba(7, 6, 11, .55) 40%, rgba(7, 6, 11, .9) 100%); }
@media (prefers-reduced-motion: reduce) { .page-bg video { display: none; } }

/* ---------- layout ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.top { display: flex; justify-content: center; padding-top: 22px; padding-bottom: 4px; text-align: center; }
.top .who { font: 600 13px/1.2 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.top .city { font: 400 13px/1.3 var(--body); color: var(--faint); letter-spacing: .1em; }

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font: 400 clamp(28px, 8vw, 44px)/1.1 var(--display); text-transform: uppercase; }
h2 { font: 400 20px/1.2 var(--display); margin: 0 0 14px; letter-spacing: .06em; text-transform: uppercase; }
h3 { font: 600 17px/1.3 var(--body); }
p { margin: 0 0 12px; }
.dim { color: var(--dim); }
.small { font-size: 14px; }

/* ---------- the hero: the date inside a halo ---------- */
.hero { position: relative; }
.stall { position: relative; isolation: isolate; text-align: center; padding: 48px 8px 30px; margin: 4px 0 6px; }
.stall .halo { position: absolute; left: 50%; top: 50%; width: min(100%, 560px); height: 100%; 
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: -1;
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, white 10%);
  box-shadow: 0 0 22px 2px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 0 30px 4px color-mix(in srgb, var(--accent) 30%, transparent),
    0 0 120px 40px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stall .halo { animation: none; } }
.stall .mark { width: min(300px, 74%); max-height: 170px; object-fit: contain; margin: 0 auto 6px; mix-blend-mode: screen; /* a logo on a black square: the black drops out */ filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 45%, transparent)); }
.stall .dow { font: 400 14px/1.3 var(--display); color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.stall .date { font: 400 clamp(46px, 15vw, 84px)/1.05 var(--display); margin: 8px 0 10px; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e9e2f7 38%, #9d95b0 52%, #f7f2ff 64%, #c7bedb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 40%, transparent)); }
.stall .time { font: 600 15px/1.3 var(--body); letter-spacing: .26em; text-transform: uppercase; }
.stall .where { margin-top: 10px; font: 500 17px/1.4 var(--body); color: var(--ink); }
.stall .soon { margin-top: 12px; font: 500 13px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.stall.off .date { text-decoration: line-through; text-decoration-thickness: 3px; opacity: .55; }
.stall.off .halo { opacity: .25; animation: none; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 18px 0 8px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.link { background: none; border: 0; padding: 0; color: var(--dim); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- sections: glass over the night ---------- */
main > section { padding: 24px 0; }
main > section + section { border-top: 1px solid var(--line); }
main > section.hero + section { border-top: 0; }
#food, #alerts, .spot-panel { }
.turnout { font: 400 14px/1.5 var(--display); letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.turnout + .small { text-align: center; }
main > section > .small.dim:only-of-type { text-align: center; }

.truck { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin-bottom: 10px;
  background: var(--lot); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.truck .name { font: 600 18px/1.3 var(--body); }
.truck .note { color: var(--dim); font-size: 14px; }

.rules { margin: 0; padding-left: 20px; color: var(--dim); }
.rules li { margin: 4px 0; }

.video { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; margin-bottom: 12px;
  background: var(--lot); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.video b { display: block; font: 400 15px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }

form.row { display: flex; gap: 8px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(10, 8, 16, .6); color: var(--ink); font: 400 16px/1.3 var(--body); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 14px; color: var(--dim); margin: 12px 0 6px; }
.msg { min-height: 1.4em; font-size: 14px; margin-top: 8px; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

details.ask { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; background: var(--lot); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
details.ask summary { cursor: pointer; padding: 15px 0; font-weight: 600; }

footer { padding: 28px 0 44px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
footer .social { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
footer .social a { color: var(--dim); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
footer p { text-align: center; }

/* ---------- food: a truck's menu and the order ---------- */
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-item.has-photo { grid-template-columns: 72px 1fr auto; }
.menu-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.menu-item .n { font-weight: 600; }
.menu-item .d { color: var(--dim); font-size: 14px; }
.menu-item .p { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-item.out { opacity: .5; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--lot); color: var(--ink); font-size: 20px; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.choices { margin-top: 8px; display: grid; gap: 6px; }
.choices fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 8px; margin: 0; background: var(--lot); }
.choices legend { font-size: 13px; color: var(--dim); padding: 0 4px; }
.choices label { display: flex; gap: 8px; align-items: center; margin: 4px 0; color: var(--ink); font-size: 15px; }
.choices input { width: auto; min-height: 0; }
.cartbar { padding: 16px 0 8px; margin-top: 16px; border-top: 1px solid var(--line); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slots button, .tips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--lot); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.slots button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.slots button[disabled] { opacity: .35; text-decoration: line-through; cursor: default; }
.tips { display: flex; gap: 8px; flex-wrap: wrap; }
.tips button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent); }
.lines { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.lines td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; }
.ticket { font: 400 64px/1 var(--display); margin: 8px 0;
  background: linear-gradient(180deg, #fff, #cfc6e2 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status-ready { color: var(--ok); }

.list-meets a { display: block; padding: 16px; margin-bottom: 10px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--lot); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.list-meets b { display: block; font: 400 15px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- the flyer: the host's own art, front and center, over the live background ---------- */
.flyer { margin: 18px auto 4px; max-width: 460px; }
.flyer img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 24px 60px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }
/* With a flyer, the date line underneath is a quiet caption (the flyer already shouts). */
.with-flyer .stall { padding: 14px 8px 4px; }
.with-flyer .stall .halo { display: none; }
.with-flyer .stall .date { font-size: clamp(26px, 8vw, 38px); margin: 4px 0 6px; filter: none; }
