:root {
  --pink: #ff2d8a;
  --cyan: #00e5ff;
  --lime: #b8ff3c;
  --ink: #0a0a0b;
  --cream: #fff7fb;
  --gold: #f0c14b;
  --muted: rgba(255, 255, 255, 0.58);
  --surface: #161018;
  --surface-2: #1e171d;
  --device-w: 390px;
  --device-h: 844px;
  --radius: 20px;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(255, 45, 138, 0.32), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(0, 229, 255, 0.16), transparent 50%),
    #08060a;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.stage {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
@media (min-width: 960px) {
  .stage {
    grid-template-columns: 1fr var(--device-w) 1fr;
    align-items: start;
    justify-items: stretch;
  }
  .device { grid-column: 2; }
  .stage-brand {
    grid-column: 1;
    text-align: left;
    padding-top: 1.5rem;
    max-height: 90vh;
    overflow: auto;
    padding-right: 0.5rem;
  }
  .stage-notes {
    grid-column: 3;
    padding-top: 1.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    max-height: 90vh;
    overflow: auto;
    padding-left: 0.35rem;
  }
}

.stage-brand h1, .stage-notes h2 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 400;
}
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: var(--cyan); }
.lede { color: var(--muted); line-height: 1.5; font-size: 0.9rem; }
.lede.subtle { font-size: 0.78rem; margin: 0 0 0.85rem; opacity: 0.85; }

.brief-block {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  text-align: left;
}
.brief-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 700;
}
.brief-block p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.screen-brief {
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color 0.25s, background 0.25s;
}
.screen-brief.is-active {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.06);
}
.screen-brief h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  font-weight: 400;
}
.screen-brief p {
  margin: 0.28rem 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}
.screen-brief p span {
  display: inline-block;
  min-width: 4.2rem;
  color: var(--lime);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
}

/* Device — chrome réaliste */
.device {
  width: min(var(--device-w), 100%);
  height: var(--device-h);
  max-height: 90vh;
  background: linear-gradient(160deg, #3a3a3e 0%, #1a1a1c 18%, #0c0c0e 100%);
  border: 0;
  border-radius: 48px;
  position: relative;
  overflow: visible;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 0 1.5px #2a2a2e,
    0 22px 60px rgba(0,0,0,.55),
    0 40px 100px rgba(255, 45, 138, 0.18);
}
.device-glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(255,45,138,.14), transparent 35%, rgba(0,229,255,.1), transparent);
  animation: spin 18s linear infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(1turn); } }

.device-btn {
  position: absolute;
  background: linear-gradient(90deg, #2a2a2e, #444);
  border-radius: 2px;
  z-index: 2;
}
.device-btn-silent { left: -3px; top: 120px; width: 3px; height: 28px; }
.device-btn-vol-up { left: -3px; top: 168px; width: 3px; height: 52px; }
.device-btn-vol-down { left: -3px; top: 230px; width: 3px; height: 52px; }
.device-btn-power { right: -3px; top: 190px; width: 3px; height: 72px; }

.device-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 11px;
  pointer-events: none;
}
.island-cam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a5a8a, #0a1525 60%, #000);
  box-shadow: 0 0 0 2px #111;
}

.device-screen {
  height: 100%; display: flex; flex-direction: column;
  background: var(--ink); position: relative; overflow: hidden;
  border-radius: 38px; z-index: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
}

.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  z-index: 28;
  pointer-events: none;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
}
.ico.sm { width: 1em; height: 1em; margin-right: 0.35rem; }
.tab-svg { width: 1.15rem; height: 1.15rem; margin-bottom: 0.1rem; }
.list-left { display: inline-flex; align-items: center; }

.status-left {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 3.2rem;
}
.status-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  height: 14px;
}
.sb-ico {
  display: block;
  flex-shrink: 0;
  color: #fff;
}
.sb-batt {
  width: 22px;
  height: 10px;
  border: 1.4px solid rgba(255,255,255,.95);
  border-radius: 2.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.sb-batt::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 4px;
  background: rgba(255,255,255,.95);
  border-radius: 0 1px 1px 0;
}
.sb-batt i {
  display: block;
  width: 78%;
  height: 100%;
  background: #fff;
  border-radius: 1px;
}

/* Splash */
.splash {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-content: center; text-align: center; gap: 0.75rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,45,138,.45), transparent 50%),
    repeating-radial-gradient(circle at 50% 45%, #ff2d8a 0 8px, #0a0609 8px 18px);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo {
  font-family: var(--font-display); font-size: 3.2rem; line-height: 0.9;
  background: #fff; color: var(--pink); display: inline-block; margin: 0 auto;
  padding: 0.55rem 0.7rem; border-radius: 12px; transform: rotate(-3deg);
  animation: pop 0.7s var(--spring);
}
.splash-sub { margin: 0; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; color: #fff; }
.splash-loader {
  width: 120px; height: 3px; margin: 1rem auto 0; border-radius: 999px;
  background: rgba(255,255,255,.2); overflow: hidden;
}
.splash-loader span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  animation: load 1.1s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}
.splash-skip {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  border: 0; background: transparent; color: rgba(255,255,255,.75);
  text-decoration: underline; cursor: pointer; font-size: 0.85rem;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 0;
  margin-top: 34px;
  height: 20px;
  font-size: 0.75rem;
  color: #fff;
  z-index: 20;
  flex-shrink: 0;
  position: relative;
}
.toast {
  position: absolute;
  top: 62px;
  left: 50%;
  z-index: 35;
  transform: translateX(-50%) translateY(-140%);
  background: rgba(18,14,20,.96);
  border: 1px solid rgba(0,229,255,.4);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transition: 0.4s var(--ease);
  pointer-events: none;
  max-width: 88%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.screen {
  display: none; flex: 1; flex-direction: column; overflow: auto;
  padding: 0.75rem 0 calc(78px + var(--safe-b));
  -webkit-overflow-scrolling: touch;
}
.screen.is-active { display: flex; animation: in 0.4s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.screen-top {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.65rem 1.1rem 0.4rem;
}
.screen-top h2 {
  margin: 0; font-family: var(--font-display); font-size: 1.85rem;
  letter-spacing: 0.03em; font-weight: 400;
}
.screen-top p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.82rem; }
.map-top { justify-content: space-between; }
.map-top-actions { display: flex; gap: 0.35rem; }

.back-btn, .icon-btn, .avatar-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: var(--surface-2); cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.avatar-btn {
  border-radius: 50%; background: var(--pink); border: 0; font-weight: 700; font-size: 0.75rem;
  position: relative;
}
.home-actions { display: flex; gap: 0.45rem; align-items: center; }
.icon-btn { position: relative; }
.badge-dot {
  position: absolute; top: 6px; right: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink);
}
.badge-dot.is-off { display: none; }

/* Home */
.home-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 1.1rem 0.75rem;
}
.hello { margin: 0; font-size: 0.8rem; color: var(--muted); }
.home-title {
  margin: 0.1rem 0 0; font-family: var(--font-display);
  font-size: 2.1rem; letter-spacing: 0.03em; font-weight: 400;
}

.next-card {
  margin: 0 1.1rem 0.75rem; padding: 1rem 1.05rem;
  border-radius: 18px; cursor: pointer; text-align: left; border: 0; width: auto;
  display: block; color: inherit;
  background:
    linear-gradient(135deg, rgba(255,45,138,.25), transparent 55%),
    var(--surface-2);
  border: 1px solid rgba(255,45,138,.35);
  transition: transform 0.2s var(--spring);
}
.next-card:active { transform: scale(0.98); }
.next-label {
  display: block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--pink); margin-bottom: 0.35rem;
}
.next-card strong {
  display: block; font-family: var(--font-display);
  font-size: 1.8rem; letter-spacing: 0.03em; font-weight: 400; line-height: 1;
}
#next-meta { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.82rem; }
.next-cta { display: inline-block; margin-top: 0.7rem; font-size: 0.8rem; color: var(--cyan); font-weight: 600; }

.queue-strip {
  margin: 0 1.1rem 0.85rem; padding: 0.85rem 1rem;
  border-radius: 16px; background: var(--surface);
  border: 1px solid rgba(184,255,60,.25);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left; width: auto; color: inherit;
}
.muted-xs { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.queue-strip strong { font-size: 1.05rem; }
.queue-mini-ring { width: 36px; height: 36px; }
.queue-mini-ring svg { width: 100%; height: 100%; }

.grid-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem;
  padding: 0 1.1rem; margin-bottom: 0.75rem;
}
.action-tile {
  border: 1px solid rgba(255,255,255,.08); background: var(--surface-2);
  border-radius: 16px; padding: 0.9rem 0.8rem; text-align: left;
  cursor: pointer; color: inherit;
  transition: transform 0.2s var(--spring), border-color 0.2s;
}
.action-tile:hover { transform: translateY(-2px); border-color: rgba(0,229,255,.3); }
.action-tile.gold { border-color: rgba(240,193,75,.4); background: linear-gradient(160deg, #2a2110, var(--surface-2)); }
.tile-ico { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.action-tile strong { display: block; font-size: 0.92rem; }
.action-tile em { display: block; font-style: normal; font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

.home-list { padding: 0 1.1rem; }
.list-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0.2rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.06);
  background: transparent; cursor: pointer; text-align: left; font-size: 0.92rem;
}
.chev { opacity: 0.45; }
.pill-mini {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.45rem; border-radius: 999px; background: rgba(255,45,138,.25); color: #ff9ec8;
}

/* Alerts */
.alert-card {
  padding: 0.9rem; border-radius: 14px; background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.06); margin-bottom: 0.55rem;
}
.alert-card.unread { border-color: rgba(0,229,255,.35); }
.alert-time { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.alert-card strong { display: block; margin: 0.25rem 0; }
.alert-card p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* Shared panel / buttons */
.panel {
  margin-top: 0.35rem; padding: 1rem 1.1rem 1.35rem;
  background: linear-gradient(180deg, #171218, var(--ink));
  border-radius: var(--radius) var(--radius) 0 0; flex: 1;
}
.panel.tight { padding-top: 0.75rem; }
.btn {
  border: 0; border-radius: 999px; padding: 0.7rem 1.1rem; font-weight: 600;
  cursor: pointer; transition: transform 0.15s var(--spring), filter 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn-light { background: #fff; color: #111; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-cyan { background: var(--cyan); color: #041418; }
.btn-gold { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #2a1c00; font-weight: 700; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-sm { padding: 0.55rem 0.8rem; font-size: 0.8rem; flex: 1; }
.btn-block { width: 100%; margin-top: 0.55rem; }
.boost-actions { display: flex; gap: 0.5rem; }
.panel-title {
  margin: 0.25rem 0 0.65rem; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); font-weight: 600;
}
.fine-center { text-align: center; font-size: 0.72rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Programme */
.search-bar { padding: 0.35rem 1.1rem 0.5rem; }
.search-bar input {
  width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background: var(--surface-2); padding: 0.7rem 0.9rem; outline: none;
}
.search-bar input:focus { border-color: rgba(0,229,255,.45); }
.day-tabs {
  display: flex; gap: 0.4rem; padding: 0 1.1rem; overflow-x: auto; scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  border: 1px solid rgba(255,255,255,.14); background: var(--surface);
  border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.day-tab.is-on { background: var(--pink); border-color: var(--pink); }
.prog-note {
  margin: 0 0 0.85rem; font-size: 0.72rem; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.prog-extra { margin: 0 0 0.75rem; font-size: 0.82rem; color: var(--muted); }
.prog-extra .warn { color: #ff6b8a; font-weight: 600; }
.agenda { display: none; }
.agenda.is-on { display: block; }
.slot {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 0.55rem;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,.06); align-items: start;
}
.slot time {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--lime); line-height: 1.1;
}
.slot strong { display: block; font-size: 0.9rem; }
.slot em { display: block; font-style: normal; font-size: 0.7rem; color: var(--muted); margin-top: 0.12rem; }
.slot.heroes time { color: var(--cyan); }
.slot.headliner {
  background: linear-gradient(90deg, rgba(255,45,138,.12), transparent);
  margin: 0 -0.35rem; padding-left: 0.35rem; padding-right: 0.35rem; border-radius: 10px;
}
.slot.headliner time { color: var(--pink); }
.slot.cancelled { opacity: 0.5; }
.slot.cancelled strong { text-decoration: line-through; }
.fav-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.06); cursor: pointer; font-size: 0.95rem;
}
.fav-btn.is-on { color: var(--gold); background: rgba(240,193,75,.15); }
.empty-fav { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 1rem 0; }

/* Map */
.screen-map.is-active {
  overflow: hidden;
  min-height: 0;
}
.screen-map .map-viewport {
  flex: 0 0 auto;
  height: min(34vh, 260px);
  min-height: 180px;
}

.map-viewport {
  margin: 0 0.75rem;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(0,229,255,.35);
  background: #1a3d2e;
  touch-action: none;
  position: relative;
  cursor: grab;
}
.map-viewport.is-dragging { cursor: grabbing; }

.map-dock {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0.4rem 0.75rem 0;
  padding: 0.55rem 0.55rem 0.65rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.map-dock-label {
  margin: 0.5rem 0 0.45rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  flex: 0 0 auto;
}
.map-shortcuts {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.45rem;
  min-height: 0;
}
.map-sc {
  border: 1px solid rgba(255,255,255,.1);
  background: var(--surface-2);
  border-radius: 16px;
  padding: 0.45rem 0.2rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 64px;
  transition: transform 0.15s var(--spring), border-color 0.2s, background 0.2s;
}
.map-sc:active { transform: scale(0.96); }
.map-sc:hover { border-color: rgba(0,229,255,.4); background: rgba(255,255,255,.06); }
.map-sc > span:last-child {
  font-size: 0.68rem;
  font-weight: 600;
  color: #d7d7d7;
  text-align: center;
  line-height: 1.15;
}
.map-sc-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.map-sc-ico .ico { width: 1.1rem; height: 1.1rem; }
.sc-scene { background: #111; color: var(--cyan); border: 1px solid rgba(0,229,255,.4); }
.sc-heroes { background: rgba(184,255,60,.18); color: var(--lime); }
.sc-bar { background: #f1c40f; color: #111; }
.sc-food { background: #6c3483; }
.sc-wc { background: #9b59b6; font-size: 0.68rem; }
.sc-aid { background: #c0392b; font-size: 1.2rem; }
.sc-gate { background: var(--pink); }
.sc-vip { background: #1abc9c; }
.sc-cash { background: #2980b9; }
.sc-park { background: #1a5276; }
.sc-wallet { background: rgba(0,229,255,.18); color: var(--cyan); }
.sc-maps { background: rgba(255,45,138,.22); color: var(--pink); }
.sc-qr { background: #fff; color: #111; }
.map-sc-qr { border-color: rgba(255,45,138,.35); }

.screen-map.has-poi .map-shortcuts { opacity: 0.35; pointer-events: none; }
.screen-map.has-poi .poi-sheet { display: block; }
.map-canvas { position: relative; width: 140%; height: 140%; transform-origin: 0 0; will-change: transform; }
.map-img { width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; display: block; }
.pin {
  position: absolute; transform: translate(-50%, -100%); border: 0;
  padding: 0.28rem 0.45rem; border-radius: 999px; background: #111; color: #fff;
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.04em; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.45); z-index: 2;
  transition: transform 0.2s var(--spring), opacity 0.25s;
}
.pin::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #111;
}
.pin:hover { transform: translate(-50%, -112%) scale(1.06); z-index: 4; }
.pin-sm { font-size: 0.5rem; }
.pin-teal { background: #1abc9c; } .pin-teal::after { border-top-color: #1abc9c; }
.pin-yellow { background: #f1c40f; color: #111; } .pin-yellow::after { border-top-color: #f1c40f; }
.pin-purple { background: #6c3483; } .pin-purple::after { border-top-color: #6c3483; }
.pin-green { background: #7dce3f; color: #111; } .pin-green::after { border-top-color: #7dce3f; }
.pin-orange { background: #e67e22; } .pin-orange::after { border-top-color: #e67e22; }
.pin-violet { background: #8e44ad; } .pin-violet::after { border-top-color: #8e44ad; }
.pin-red { background: var(--pink); } .pin-red::after { border-top-color: var(--pink); }
.pin-cross { background: #c0392b; font-size: 0.8rem; } .pin-cross::after { border-top-color: #c0392b; }
.pin-info { background: #111; border: 2px solid #fff; }
.pin-wc { background: #9b59b6; } .pin-wc::after { border-top-color: #9b59b6; }
.pin-cash { background: #2980b9; } .pin-cash::after { border-top-color: #2980b9; }
.pin-park { background: #1a5276; } .pin-park::after { border-top-color: #1a5276; }
.map-viewport.is-filtered .pin { opacity: 0.18; pointer-events: none; }
.map-viewport.is-filtered .pin.is-shown { opacity: 1; pointer-events: auto; }
.you-are-here { position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.yah-pulse {
  position: absolute; width: 36px; height: 36px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,45,138,.35);
  animation: yah 1.8s ease-out infinite;
}
.yah-dot {
  position: absolute; width: 14px; height: 14px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--pink);
  border: 3px solid #fff;
}
.yah-label {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.08em;
  background: #111; padding: 0.12rem 0.3rem; border-radius: 4px;
}
@keyframes yah {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
.map-layers {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}
.map-layers::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid rgba(255,255,255,.16); background: var(--surface); color: #fff;
  border-radius: 999px; padding: 0.38rem 0.7rem; font-size: 0.72rem; white-space: nowrap; cursor: pointer;
}
.chip.is-on { background: var(--pink); border-color: var(--pink); }
.poi-sheet {
  flex: 0 0 auto;
  margin: 0.4rem 0.75rem 0;
  padding: 0.65rem 0.9rem 0.85rem;
  background: var(--surface);
  border: 1px solid rgba(0,229,255,.35);
  border-radius: 18px;
  animation: in 0.3s var(--ease);
  box-shadow: 0 -8px 28px rgba(0,0,0,.35);
}
.poi-sheet[hidden] { display: none !important; }
.poi-handle {
  width: 36px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); margin: 0 auto 0.5rem;
}
.poi-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.poi-sheet h3 { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.poi-desc { margin: 0.35rem 0 0.7rem; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.poi-actions { display: flex; gap: 0.5rem; }

/* Queue */
.queue-hero { text-align: center; padding: 0.35rem 1rem 0; }
.queue-ring { width: 150px; height: 150px; margin: 0 auto; position: relative; }
.queue-ring svg { width: 100%; height: 100%; }
.queue-rank { position: absolute; inset: 0; display: grid; place-content: center; }
.queue-rank span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.queue-rank strong { font-family: var(--font-display); font-size: 3rem; color: var(--lime); font-weight: 400; line-height: 1; }
.queue-meta { margin: 0.7rem auto 0.75rem; font-size: 0.82rem; color: var(--muted); }
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track {
  display: flex; gap: 2rem; width: max-content; animation: ticker 18s linear infinite;
  font-size: 0.7rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.06em;
}
.ticker-track span::before { content: "✦ "; color: var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }
.progress { height: 8px; background: #2a2228; border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.progress-bar {
  height: 100%; width: var(--p, 50%);
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 0.55s var(--ease); position: relative; overflow: hidden;
}
.progress-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: sheen 2s ease-in-out infinite;
}
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.queue-steps { list-style: none; margin: 0 0 1rem; padding: 0; }
.queue-steps li {
  padding: 0.55rem 0 0.55rem 1.45rem; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 0.9rem; color: var(--muted); position: relative;
}
.queue-steps li::before { content: "○"; position: absolute; left: 0; color: rgba(255,255,255,.3); }
.queue-steps li.done { color: #fff; }
.queue-steps li.done::before { content: "●"; color: var(--lime); }

/* Cash */
.cash-card {
  margin: 0.35rem 1.1rem 0; padding: 1.15rem; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,229,255,.2), transparent 50%), linear-gradient(160deg, #0d2a3a, #0a1218 60%);
  border: 1px solid rgba(0,229,255,.4);
}
.cash-nfc { position: absolute; right: 1rem; top: 1rem; width: 36px; height: 36px; }
.cash-nfc::before, .cash-nfc::after {
  content: ""; position: absolute; inset: 4px; border: 2px solid var(--cyan); border-radius: 50%;
  animation: nfc 1.6s ease-out infinite; opacity: 0.4;
}
.cash-nfc::after { inset: 10px; animation-delay: 0.25s; }
.cash-nfc span {
  position: absolute; inset: 14px; background: var(--cyan); border-radius: 50%;
}
@keyframes nfc { to { transform: scale(1.55); opacity: 0; } }
.cash-brand { margin: 0; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--cyan); }
.cash-bal-label { margin: 1.15rem 0 0.2rem; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cash-bal {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  transition: 0.3s var(--spring);
}
.cash-bal.flash { color: var(--lime); transform: scale(1.05); }
.cash-meta { display: flex; justify-content: space-between; margin-top: 0.85rem; font-size: 0.72rem; color: rgba(255,255,255,.5); }
.cash-recharge-btn { margin-top: 1rem; }
.cash-topup {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.cash-topup[hidden] { display: none !important; }
.topup-row { display: flex; gap: 0.45rem; margin-bottom: 0.5rem; }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-list li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 0.85rem;
}
.tx-list strong.plus { color: var(--lime); }

/* Maps */
.gmaps-wrap {
  margin: 0 0.9rem; height: 270px; border-radius: 18px; overflow: hidden;
  border: 2px solid rgba(0,229,255,.35); background: #1a1a1a;
}
.gmaps-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.maps-addr { margin: 0 0 0.7rem; font-size: 0.84rem; color: var(--muted); }

/* Pass */
.pass-stage { padding: 0.25rem 1.1rem 0; perspective: 900px; }
.pass-card {
  padding: 1.1rem; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 40%), linear-gradient(160deg, #3d2a08, #1a1206 50%, #0f0c08);
  border: 1px solid rgba(240,193,75,.55); transform: rotateX(3deg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateX(3deg) translateY(0); }
  50% { transform: rotateX(3deg) translateY(-4px); }
}
.pass-card.is-unlocked { animation: unlock 0.65s var(--spring); border-color: var(--lime); }
@keyframes unlock {
  0% { transform: scale(0.96); } 45% { transform: scale(1.05); } 100% { transform: scale(1); }
}
.pass-holo {
  position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 45%, rgba(0,229,255,.18) 52%, rgba(240,193,75,.2) 60%, transparent 72%);
  animation: holo 3.4s linear infinite; pointer-events: none;
}
@keyframes holo { to { transform: translateX(40%) rotate(8deg); } }
.pass-card-top {
  display: flex; justify-content: space-between; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); position: relative;
}
.pass-name {
  margin: 0.8rem 0 0.1rem; font-family: var(--font-display); font-size: 2.5rem;
  letter-spacing: 0.06em; color: var(--gold); font-weight: 400; line-height: 1; position: relative;
}
.pass-holder { margin: 0 0 0.9rem; position: relative; color: rgba(255,255,255,.85); }
.pass-row { display: flex; gap: 1.4rem; margin-bottom: 0.9rem; position: relative; }
.pass-row span { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.45); }
.gold-text { color: var(--gold); }
.pass-qr { width: 84px; height: 84px; background: #fff; border-radius: 10px; padding: 7px; margin-bottom: 0.65rem; position: relative; }
.qr-grid {
  width: 100%; height: 100%;
  background:
    linear-gradient(#111 0 0) 0 0 / 30% 30%,
    linear-gradient(#111 0 0) 100% 0 / 30% 30%,
    linear-gradient(#111 0 0) 0 100% / 30% 30%,
    repeating-linear-gradient(90deg, #111 0 4px, transparent 4px 8px),
    repeating-linear-gradient(0deg, #111 0 4px, transparent 4px 8px);
  background-repeat: no-repeat;
}
.pass-fine { margin: 0; font-size: 0.7rem; color: rgba(255,224,150,.75); position: relative; }
.perk-list { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.86rem; }
.perk-list li { margin: 0.3rem 0; }
.price-box {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem; border-radius: 16px; background: #221c12; border: 1px solid rgba(240,193,75,.3);
}
.price { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.price-note { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 0.15rem; }

/* Donate */
.donate-hero {
  padding: 1rem; border-radius: 16px; margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(255,45,138,.2), rgba(0,229,255,.08));
  border: 1px solid rgba(255,45,138,.3);
}
.donate-hero strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.03em; font-weight: 400; }
.donate-hero p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.donate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin-bottom: 0.65rem; }
.donate-amt {
  border: 1px solid rgba(255,255,255,.14); background: var(--surface-2); border-radius: 12px;
  padding: 0.75rem 0.3rem; cursor: pointer; font-weight: 700;
}
.donate-amt.is-on { background: var(--pink); border-color: var(--pink); }
.donate-hint { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--cyan); }

/* Account */
.avatar-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); font-weight: 700;
}
.avatar-row strong { display: block; }
.avatar-row span { color: var(--muted); font-size: 0.8rem; }
.pill-soft {
  margin-left: auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted);
}
.field { display: block; margin-bottom: 0.85rem; }
.field span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem; }
.field input {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: var(--surface); padding: 0.7rem 0.85rem; outline: none;
}
.toggle-list { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--surface); font-size: 0.86rem;
}
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--pink); }
.fav-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fav-chips .chip { cursor: default; }

/* Tabbar */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0.4rem 0.25rem calc(0.5rem + var(--safe-b));
  background: rgba(10, 8, 12, 0.94); border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.tab {
  border: 0; background: transparent; color: rgba(255,255,255,.42);
  display: flex; flex-direction: column; align-items: center; gap: 0.12rem;
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; padding: 0.3rem 0 0.55rem;
}
.tab.is-active { color: var(--cyan); }
.tab.tab-gold.is-active { color: var(--gold); }

/* FAQ */
.faq-panel { display: flex; flex-direction: column; gap: 0.45rem; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 0 0.85rem;
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(0,229,255,.28); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* QR */
.qr-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(0,229,255,.2);
}
.qr-block-lg {
  grid-template-columns: 120px 1fr;
}
.qr-frame {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(0,229,255,.25);
}
.qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  image-rendering: pixelated;
}
.qr-hint {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.qr-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.75rem calc(88px + var(--safe-b));
  animation: in 0.28s var(--ease);
}
.qr-overlay[hidden] { display: none !important; }
.qr-overlay-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid rgba(255,45,138,.35);
  border-radius: 22px 22px 18px 18px;
  padding: 0.7rem 1rem 1.1rem;
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
}
.qr-overlay-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.qr-overlay-kicker {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
}
.qr-overlay-top h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.qr-mode-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.qr-overlay-frame {
  position: relative;
  width: min(72vw, 240px);
  height: min(72vw, 240px);
  margin: 0 auto 0.75rem;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.35);
}
.qr-overlay-frame .qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.qr-overlay-id {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.qr-overlay .qr-hint { text-align: center; margin-bottom: 0; }
.pass-qr-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(240,193,75,.35);
}
.pass-qr-wrap .qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.qr-scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  animation: scan 2.2s ease-in-out infinite;
  pointer-events: none;
  top: 10%;
  box-shadow: 0 0 8px var(--pink);
}
@keyframes scan {
  0%, 100% { top: 12%; opacity: 0.4; }
  50% { top: 82%; opacity: 1; }
}

.tile-ico .ico { width: 1.35rem; height: 1.35rem; color: var(--cyan); }
.action-tile.gold .tile-ico .ico { color: var(--gold); }
.back-btn .ico { width: 1.1rem; height: 1.1rem; }

@keyframes pop {
  from { transform: rotate(-3deg) scale(0.55); opacity: 0; }
  to { transform: rotate(-3deg) scale(1); opacity: 1; }
}

@media (max-width: 520px) {
  .stage { width: 100%; padding: 0; }
  .stage-brand, .stage-notes { display: none; }
  .device {
    width: 100%; height: 100dvh; max-height: none;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .device-glow, .device-btn, .device-island { display: none; }
  .device { padding: 0; background: var(--ink); }
  .device-screen { border-radius: 0; }
  .screen-map .map-viewport { height: min(36vh, 280px); }
  .status-bar { margin-top: max(8px, env(safe-area-inset-top)); padding-top: 8px; }
  .toast { top: 48px; }
  .home-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
