:root {
  --bg: #0b0b0b;
  --panel: #161512;
  --panel-2: #201e18;
  --line: #2e2b22;
  --text: #f4efe2;
  --muted: #a39d8c;
  --banana: #ffd93b;
  --banana-deep: #f2b705;
  --peel: #6b8e23;
  --live: #ff4d4d;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--banana); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 520px; padding-top: 48px; }
.muted { color: var(--muted); }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,11,11,.92); backdrop-filter: blur(8px); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.logo { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; color: var(--banana); font-size: 1.1rem; white-space: nowrap; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.nav a[aria-current="page"], .nav a:hover { background: var(--panel-2); color: var(--banana); }
@media (max-width: 480px) { .logo { font-size: 1.5rem; } .logo-text { display: none; } .nav a { padding: 8px 9px; font-size: .9rem; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--banana); color: #111; font-weight: 800; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; border: 0; font-size: 1rem; cursor: pointer;
  min-height: 46px;
}
.btn:hover { background: #fff; color: #111; }
.btn.ghost { background: transparent; color: var(--banana); box-shadow: inset 0 0 0 2px var(--banana); }
.btn.ghost:hover { background: var(--banana); color: #111; }
.btn.danger { background: transparent; color: var(--live); box-shadow: inset 0 0 0 2px var(--live); }
.btn.small { padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* hero / tracker */
.hero {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,217,59,.22), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255,217,59,.035) 0 22px, transparent 22px 44px);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 44px;
}
.tracker { text-align: center; max-width: 640px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--banana); margin: 0 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.headline { font-family: var(--display); font-size: clamp(2rem, 7vw, 3.4rem); text-transform: uppercase; color: var(--text); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 8px; }
.desc { color: var(--text); max-width: 60ch; margin: 14px auto 0; }
.tracker .desc { text-align: center; }
.banner { background: var(--banana); color: #111; font-weight: 700; padding: 10px 14px; border-radius: var(--radius); margin: 8px 0 16px; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 18px; }

.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,77,77,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.mode-live .eyebrow { color: var(--live); }

.stop { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin: 12px 0; }
.stop.now { border-color: var(--banana); background: linear-gradient(180deg, rgba(255,217,59,.10), var(--panel)); }
.stop .label { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); margin: 0 0 4px; }
.stop .bar { font-family: var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.stop.now .bar { font-size: clamp(1.9rem, 8vw, 3rem); color: var(--banana); }
.stop.next .bar { font-size: clamp(1.3rem, 5vw, 1.8rem); }
.stop .addr { color: var(--muted); margin: 0 0 6px; }
.stop .since { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 22px auto 0; }
.countdown div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 4px; }
.countdown b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 6vw, 2.2rem); color: var(--banana); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.route { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 14px; }
.route summary { cursor: pointer; font-weight: 700; }
.route ol { margin: 10px 0 2px; padding-left: 1.4em; }
.route li { padding: 4px 0; }
.route li.is-done a { color: var(--muted); }
.route li.is-now a { font-weight: 800; }
.route li.is-now::marker { color: var(--banana); }
.route .when { color: var(--muted); font-size: .85rem; margin-left: 4px; }

/* sections */
.about { padding-top: 36px; padding-bottom: 8px; max-width: 720px; }
.about p { color: var(--muted); font-size: 1.05rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 14px; }
.page-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 6vw, 2.6rem); margin-top: 28px; }
.crumbs { margin: 20px 0 0; }

/* photo grids */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid li { margin: 0; }
.grid a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--panel); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid a:hover img { transform: scale(1.04); }
.random-photos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.random-photos .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 6px; font-size: .78rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); text-align: left; line-height: 1.3;
}
.gallery { margin-top: 22px; }

.cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 36px auto 48px; }
.card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); }
.card:hover { border-color: var(--banana); color: var(--text); }
.card b { display: block; font-size: 1.1rem; margin-bottom: 4px; color: var(--banana); }
.card span { color: var(--muted); }

/* event list */
.event-list { list-style: none; padding: 0; margin: 20px 0 48px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.event-card { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-decoration: none; color: var(--text); }
.event-card:hover { border-color: var(--banana); color: var(--text); }
.event-card .thumb { width: 76px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .noimg { font-size: 1.8rem; opacity: .5; }
.event-card .meta { display: flex; flex-direction: column; min-width: 0; }
.event-card .num { font-family: var(--display); color: var(--banana); font-size: .9rem; }
.event-card b { overflow-wrap: anywhere; }
.event-card .muted { font-size: .88rem; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; margin-top: 22px; }
.prevnext { display: flex; justify-content: space-between; margin: 28px 0 48px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 100; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: var(--banana); color: #111; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; text-align: center; font-size: .9rem; }
.socials { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.socials a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.socials a:hover { border-color: var(--banana); }
.tracker .socials { margin-top: 18px; }

/* ---------- admin ---------- */
.admin main { padding-bottom: 60px; }
.admin h1 { margin-top: 24px; }
.flash { background: var(--peel); color: #fff; padding: 10px 14px; border-radius: 10px; margin: 16px 0; }
.error { background: #5a1a1a; color: #fff; padding: 10px 14px; border-radius: 10px; margin: 16px 0; }
form.stack { display: grid; gap: 14px; max-width: 640px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--banana); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stops-editor { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stops-editor li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; grid-template-columns: 56px 1fr 1fr 110px; align-items: end; }
.stops-editor li label { font-size: .78rem; }
.stops-editor .del { grid-column: 1 / -1; justify-self: start; font-weight: 400; display: flex; gap: 6px; align-items: center; }
.stops-editor .del input { width: auto; min-height: 0; }
@media (max-width: 640px) { .stops-editor li { grid-template-columns: 56px 1fr; } }

.live-panel { max-width: 520px; margin: 0 auto; text-align: center; }
.live-panel .bigbtn { display: block; width: 100%; font-size: 1.25rem; padding: 22px; min-height: 72px; border-radius: 18px; margin: 10px 0; }
.live-panel .jump { display: grid; gap: 8px; margin-top: 10px; }
.live-panel .jump button { width: 100%; text-align: left; justify-content: space-between; }
.live-panel .tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); font-size: .82rem; font-weight: 700; }
.status-pill.live { background: var(--live); color: #fff; }

/* ---------- Phase 2: uploads, signup, moderation ---------- */
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--banana); }
ul.error { padding-left: 2em; }
.random-photos .cap b { display: block; font-size: .8rem; }

.dropzone {
  display: grid; place-items: center; gap: 2px; text-align: center; padding: 28px 16px; cursor: pointer;
  border: 2px dashed var(--banana); border-radius: var(--radius); background: rgba(255,217,59,.05);
}
.dropzone.over { background: rgba(255,217,59,.15); }
.dropzone .dz-title { font-size: 1.2rem; font-weight: 800; color: var(--banana); }
.dropzone .dz-sub { color: var(--muted); font-weight: 400; font-size: .9rem; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2px solid var(--banana); outline-offset: 2px; }

.upload-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.upload-list li { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.upload-list img, .upload-list .up-noprev { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--panel-2); }
.upload-list .up-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.upload-list .up-meta b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-list .up-meta small { color: var(--muted); }
.upload-list .bar { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.upload-list .bar i { display: block; height: 100%; background: var(--banana); transition: width .2s; }
.upload-list .up-done small, .upload-list .up-dupe small { color: #9fd36a; }
.upload-list .up-error small { color: var(--live); }
.upload-list .up-rm { background: none; border: 0; color: var(--muted); font-size: 1.1rem; width: 40px; height: 40px; cursor: pointer; }

.signup-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin-top: 36px; text-align: center; }
.wrap.signup-box { max-width: 1008px; }
.signup { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 480px; margin: 12px auto 0; }
.signup input[type=email] { flex: 1 1 220px; }
.signup .form-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; color: var(--banana); font-weight: 600; }
.signup.is-done .form-msg { color: #9fd36a; }

.lightbox .lb-foot { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px 16px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.lightbox .lb-credit { color: var(--text); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 16px; }
.tabs > a { padding: 8px 14px; border-radius: 999px; background: var(--panel); text-decoration: none; color: var(--text); border: 1px solid var(--line); }
.tabs > a[aria-current="page"] { border-color: var(--banana); color: var(--banana); }
.tabs .count { color: var(--muted); font-size: .85rem; margin-left: 2px; }
.tab-filter { margin-left: auto; }
.tab-filter select { min-height: 40px; padding: 6px 10px; }
.mod-bar { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mod-bar .move { display: inline-flex; gap: 6px; }
.mod-bar .move select { min-height: 36px; padding: 4px 8px; width: auto; }
.mod-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mod-grid li { position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.mod-grid li:has(input[type=checkbox]:checked) { border-color: var(--banana); }
.mod-grid li.is-featured { box-shadow: inset 0 0 0 2px var(--peel); }
.mod-grid .pick { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0,0,0,.6); border-radius: 6px; padding: 4px; }
.mod-grid .pick input { width: 22px; height: 22px; min-height: 0; accent-color: var(--banana); }
.mod-grid .mod-img { display: block; aspect-ratio: 1; background: var(--panel-2); }
.mod-grid .mod-img img { width: 100%; height: 100%; object-fit: cover; }
.mod-grid .noimg { display: grid; place-items: center; color: var(--muted); }
.mod-grid .mod-meta { padding: 8px 10px 10px; display: grid; gap: 2px; font-size: .85rem; }
.mod-grid .mod-meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-grid .mod-meta input { margin-top: 6px; min-height: 36px; padding: 6px 8px; font-size: .85rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.stat-row a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--text); }
.stat-row a:hover { border-color: var(--banana); }
.stat-row b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--banana); }
.stat-row .hot b { color: var(--live); }
