/* ===== Archfest app ===== */
:root {
  --night: #0b1a2e;
  --night-2: #12263f;
  --night-3: #1a3352;
  --sky: #2f7fd6;
  --sun: #ffd23f;
  --grass: #5fa83a;
  --text: #ffffff;
  --muted: #9fb0c8;
  --line: rgba(255,255,255,.12);
  --danger: #ff6b6b;
  --radius: 14px;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body); background: var(--night); color: var(--text);
  min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
a { color: var(--sun); }
[hidden] { display: none !important; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #0f3d7a 0%, var(--night) 100%);
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .04em; color: #fff; text-decoration: none; }
.logo span { color: var(--sun); }
.top-meta { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: .5rem 0 .6rem; letter-spacing: .02em; }
.day-tabs { display: flex; gap: .4rem; }
.day-tabs button {
  flex: 1; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .25rem; font-weight: 800; cursor: pointer; line-height: 1.1;
}
.day-tabs button small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.day-tabs button.active { background: var(--sun); color: var(--night); border-color: var(--sun); }
.day-tabs button.active small { color: var(--night); }

.sample-banner {
  margin: 12px 16px 0; padding: .6rem .8rem; border-radius: 10px; font-size: .85rem; font-weight: 600;
  background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.4); color: var(--sun);
}
.now-bar {
  margin: 12px 16px 0; padding: .75rem .9rem; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line);
  font-size: .9rem;
}
.now-bar strong { color: var(--sun); }

main { padding: 12px 16px 0; outline: none; }

/* Stage filter chips */
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: .75rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: .4rem .85rem; font-size: .85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: .4rem;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip.active { background: #fff; color: var(--night); border-color: #fff; }

/* Time blocks + set cards */
.hour { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin: 1rem 0 .4rem; }
.set {
  display: grid; grid-template-columns: 58px 1fr auto; gap: .75rem; align-items: center;
  background: var(--night-2); border: 1px solid var(--line); border-left: 4px solid var(--stage, var(--sky));
  border-radius: 12px; padding: .75rem .75rem .75rem .8rem; margin-bottom: .5rem;
}
.set.is-now { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun) inset; }
.set.is-past { opacity: .5; }
.set-time { font-weight: 800; font-size: .95rem; line-height: 1.15; }
.set-time small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }
.set-name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; line-height: 1.05; letter-spacing: .01em; }
.set-name.secret { filter: blur(7px); user-select: none; }
.set-sub { font-size: .8rem; color: var(--muted); margin-top: .2rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tag { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .45rem; border-radius: 5px; background: rgba(255,255,255,.1); }
.tag.now { background: var(--sun); color: var(--night); }
.tag.tba { background: var(--sky); }
.tag.workshop { background: var(--grass); }
.tag.clash { background: var(--danger); color: #fff; }
.star {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; line-height: 1;
}
.star.on { background: var(--sun); border-color: var(--sun); }
.star:disabled { opacity: .3; cursor: default; }

/* Line-up list */
.search {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--night-2); color: #fff; font: inherit; margin-bottom: .75rem;
}
.search::placeholder { color: var(--muted); }
.artist-row {
  width: 100%; text-align: left; display: flex; align-items: center; gap: .8rem; padding: .7rem .6rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.avatar {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem; background: linear-gradient(135deg, var(--sky), #0f3d7a);
}
.artist-row .name { font-weight: 800; }
.artist-row .when { font-size: .8rem; color: var(--muted); }
.letter { font-family: var(--font-display); color: var(--sun); font-size: 1.2rem; margin: 1rem 0 .2rem; }

/* Sheet (artist details) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; display: flex; align-items: flex-end; }
.sheet {
  width: 100%; background: var(--night-2); border-radius: 20px 20px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow: auto; border-top: 1px solid var(--line);
}
.sheet h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: 0 0 .75rem; }
.sheet .close { float: right; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.1rem; border-radius: 999px;
  border: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; cursor: pointer; text-decoration: none;
}
.btn-sun { background: var(--sun); color: var(--night); }
.btn-line { background: transparent; color: #fff; border: 1px solid var(--line); }
.btn-small { padding: .45rem .8rem; font-size: .7rem; }

/* Plan + info */
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .big { font-size: 2.5rem; }
.plan-day { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; margin: 1.25rem 0 .5rem; color: var(--sun); }
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.card p { margin: 0 0 .5rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card p:last-child { margin-bottom: 0; }
.card .row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }

/* Bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(7,17,31,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.bottom-nav button {
  background: none; border: 0; cursor: pointer; font-size: .7rem; font-weight: 700; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; position: relative;
}
.bottom-nav button span { font-size: 1.25rem; }
.bottom-nav button.active { color: var(--sun); }
.bottom-nav b {
  position: absolute; top: 8px; left: calc(50% + 8px); background: var(--sun); color: var(--night);
  font-size: .65rem; border-radius: 999px; padding: 0 .35rem; min-width: 18px; line-height: 18px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); transform: translate(-50%, 20px);
  background: #fff; color: var(--night); font-weight: 700; font-size: .9rem; padding: .6rem 1rem; border-radius: 999px;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 50; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Wider screens: keep it phone-shaped and centred */
@media (min-width: 700px) {
  .top, main, .sample-banner, .now-bar { max-width: 640px; margin-left: auto; margin-right: auto; }
  .top { border-radius: 0 0 16px 16px; }
  .bottom-nav { max-width: 640px; margin: 0 auto; border-radius: 16px 16px 0 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .sheet { max-width: 640px; margin: 0 auto; }
}
.tag.popup { background: #ff5fa2; color: #fff; }

/* ===== Site map ===== */
.map-filters { margin-bottom: .6rem; }
.map-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: #26351f; aspect-ratio: 1225 / 1284; max-height: calc(100vh - 290px); width: 100%; margin: 0 auto;
  touch-action: none; user-select: none;
  -webkit-user-select: none; cursor: grab;
}
.map-wrap.dragging { cursor: grabbing; }
.map-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-inner img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.pin {
  position: absolute; transform: translate(-50%, -50%) scale(var(--inv, 1)); transform-origin: center;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.pin-stage {
  display: flex; align-items: center; gap: .35rem; white-space: nowrap;
  background: var(--c); color: #0b1a2e; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .3rem .55rem .3rem .35rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.45); border: 2px solid #fff;
}
.pin-stage .live { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.pin-stage.is-live .live { background: #ff3b3b; animation: pulse 1.4s infinite; }
.pin-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--c);
  box-shadow: 0 0 0 0 rgba(255,210,63,.8); animation: pulse 1.6s infinite; display: grid; place-items: center; font-size: .85rem;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .pin-dot, .pin-stage.is-live .live { animation: none; } }
.map-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map-tools button {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(11,26,46,.9); color: #fff;
  font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.map-hint { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; text-align: center; }
.place-list { margin: .25rem 0 0; padding: 0; list-style: none; }
.place-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }

/* Zoomed out: small coloured dots (the map already shows stage names). Zoomed in: name tags. */
.map-wrap:not(.zoomed) .pin-stage { padding: 0; width: 20px; height: 20px; justify-content: center; }
.map-wrap:not(.zoomed) .pin-stage .label { display: none; }
.map-wrap:not(.zoomed) .pin-dot { width: 22px; height: 22px; font-size: .65rem; border-width: 2px; }
