/* ── DINGO Festival Official Web App Styles ── */
@font-face { font-family: 'Pitch Sans'; src: url('../fonts/pitch-sans-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Pitch Sans'; src: url('../fonts/pitch-sans-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/SpaceMono-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/SpaceMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/SpaceGrotesk-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/SpaceGrotesk-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/SpaceGrotesk-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue: #1728FF;
  --yellow: #FFB320;
  --cream: #FBFBD9;
  --gray: #7B7C7E;
  --bg-gradient: linear-gradient(to bottom, #1728FF 0%, #1728FF 300px, #7B7C7E 1300px, #7B7C7E 100%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; border-radius: 0 !important; }

body {
  font-family: 'Pitch Sans', -apple-system, sans-serif;
  color: var(--cream);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(76px + var(--safe-bottom));
}

/* Official DINGO Poster Grain Texture Overlay (Authentic Animated Cinema Noise) */
.noise-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.82;
  animation: dingoNoiseShift 0.22s steps(2) infinite;
}

@keyframes dingoNoiseShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* Venue Number Circle Badge (Official DINGO Blue Circle) */
.venue-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50% !important;
  background: var(--blue);
  color: var(--cream);
  border: 1px solid rgba(251, 251, 217, 0.4);
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* Genre tags row under artist */








/* Official Header */
header {
  background: var(--blue);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--safe-top) 20px 14px;
  min-height: calc(88px + var(--safe-top));
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(251, 251, 217, 0.25);
}

.header-logo-wrap {
  display: flex;
  align-items: flex-end;
}

.header-meta {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.25;
  margin-bottom: 2px;
}

/* Official Countdown */
.countdown-section {
  padding: 24px 20px 16px;
  text-align: center;
}

.countdown {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 10px 6px 8px;
  border: 2px solid var(--yellow);
  background: transparent;
}

.cd-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.cd-caption {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

/* Controls & Filters (Sticky beneath header) */
.controls-container {
  position: sticky;
  top: calc(88px + var(--safe-top));
  z-index: 90;
  background: #1728FF;
  padding: 12px 20px 12px;
  border-bottom: 1px solid rgba(251, 251, 217, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* Day switch bar */
.days-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.day-btn {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding: 6px 4px 5px;
  cursor: pointer;
  text-align: center;
  line-height: 1.05;
}

.day-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue);
}

.day-btn b {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  margin-top: 1px;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Sub-nav view switcher */
.subnav-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.subnav-btn {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(251, 251, 217, 0.4);
  color: var(--cream);
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 6px;
  cursor: pointer;
}

.subnav-btn.active {
  background: var(--cream);
  color: var(--blue);
  border-color: var(--cream);
}

/* Search bar */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.search-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 14px;
  height: 14px;
  z-index: 1;
  pointer-events: none;
  color: rgba(251, 251, 217, 0.6);
}

.search-input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  margin: 0;
  border-radius: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(251, 251, 217, 0.3);
  color: var(--cream);
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 600;
  font-size: 16px; /* 16px minimum stops iPhones zooming the page when you tap into search */
  padding: 8px 34px 8px 34px;
  outline: none;
}

.search-clear-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--cream);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
}

.search-clear-btn:hover {
  opacity: 1;
}

/* Hide the browser's own clear/decoration so only our X shows */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-clear-btn svg {
  display: block;
  width: 14px;
  height: 14px;
}

.search-input::placeholder {
  color: rgba(251, 251, 217, 0.5);
  font-weight: 400;
}

/* Category filter tags */
.category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-chips::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(251, 251, 217, 0.3);
  color: var(--cream);
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  padding: 5px 10px;
  cursor: pointer;
}

.cat-chip.active {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--yellow);
}

/* Program Content */
.program-wrap {
  padding: 0 20px 24px;
}



/* Set Item Card */
/* Set Item Card (Tighter Left Shift & Clean Layout) */
.set-card {
  display: flex;
  align-items: center;
  gap: 8px; /* Shifted left */
  padding: 10px 0;
  border-bottom: 1px solid rgba(251, 251, 217, 0.2);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

/* Smart, non-destructive clash card indicator */
.set-card.set-card-clash {
  border-left: 3px solid #FF4B4B;
  padding-left: 6px;
  background: rgba(255, 75, 75, 0.06);
}

.set-time-col {
  flex: 0 0 58px; /* Tighter column */
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.set-time-col b {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--yellow);
  line-height: 1.15;
}

.clash-pill {
  display: inline-block;
  background: #FF4B4B;
  color: #FFFFFF;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 3px;
  margin-top: 3px;
  line-height: 1;
}

.set-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: cover;
  background: #0d1796;
  border: 1px solid rgba(251, 251, 217, 0.35);
  display: block;
}

.set-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 54px; /* Flush top and bottom */
  padding: 0;
}

/* LINE 1: ARTIST (Auto Marquee Reveal on Long Names) */
.set-act-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.15;
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.set-act-title .act-inner {
  display: inline-block;
  white-space: nowrap;
}

.set-act-title.is-overflow .act-inner {
  display: inline-block;
  animation: dingoMarquee 3.6s ease-in-out infinite alternate;
}

@keyframes dingoMarquee {
  0%, 12% {
    transform: translateX(0%);
  }
  88%, 100% {
    transform: translateX(calc(-100% + 180px));
  }
}

/* LINE 2: VENUE (Lower case, clean & tight) */
.set-venue-row {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.set-venue-name {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: rgba(251, 251, 217, 0.82);
  text-transform: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LINE 3: GENRE TAGS (Scaled down slightly so all fit seamlessly) */
.set-genre-row {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}

.genre-tag-pill {
  display: inline-block;
  font-family: 'Pitch Sans', sans-serif;
  font-size: 8.5px; /* Decreased a touch to fit without truncation */
  font-weight: 700;
  color: var(--blue);
  background: var(--yellow);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 1.5px 4.5px;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.set-category-badge {
  display: inline-block;
  font-family: 'Pitch Sans', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 1.5px 4.5px;
  background: var(--yellow);
  color: var(--blue);
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Star button on listings */
.set-star-btn {
  flex: 0 0 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(251, 251, 217, 0.3);
  color: var(--cream);
  cursor: pointer;
  font-size: 17px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.set-star-btn.saved {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue);
}

/* Venue Section View */
.venue-group {
  margin-bottom: 24px;
}

.venue-group-header {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  padding: 10px 0 6px;
  border-bottom: 2px solid var(--yellow);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* My Fest Tools Bar */
.myfest-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid rgba(251, 251, 217, 0.2);
  margin-bottom: 12px;
}

.myfest-count {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--cream);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.myfest-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--blue);
  border: 0;
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.tool-btn svg {
  display: block;
  width: 13px;
  height: 13px;
}

.tool-btn.alt {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(251, 251, 217, 0.4);
}

/* Artist Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 13, 36, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  padding: 24px 20px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: block;
}

.modal-card {
  background: #1728FF;
  border: 2px solid var(--yellow);
  max-width: 600px;
  margin: 20px auto calc(40px + var(--safe-bottom));
  padding: 24px 20px;
  color: var(--cream);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #FFFFFF;
  color: var(--blue);
  border: 0;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid rgba(251, 251, 217, 0.3);
  background: #000;
  display: block;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-act {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--yellow);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.03em;
  white-space: nowrap; /* JS shrinks the font until the full name fits (fitModalAct) */
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.modal-save-icon-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.modal-save-icon-btn.saved {
  background: var(--yellow);
  color: var(--blue);
}

.modal-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(251, 251, 217, 0.2);
}

.modal-time {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--yellow);
  letter-spacing: -0.02em;
}

.modal-venue-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-venue-name {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-venue-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: 'Pitch Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--blue);
  background: var(--yellow);
  text-decoration: none;
  line-height: 1;
}

.modal-venue-link svg {
  display: block;
}

.modal-venue-link:hover,
.modal-venue-link:active {
  background: var(--cream);
}

.modal-bio {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream);
  margin-bottom: 8px;
}

.modal-bio a {
  color: var(--yellow);
  text-decoration: underline;
}

/* Map Screen */
.map-view-wrap {
  padding: 16px 20px 24px;
}

.map-img-box {
  border: 2px solid var(--cream);
  background: #fff;
  margin-bottom: 20px;
}

.map-img-box img {
  width: 100%;
  display: block;
}

/* Map Screen Venue Cards */
.venue-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(251, 251, 217, 0.22);
  margin-bottom: 0;
  text-decoration: none;
  color: var(--cream);
}

.venue-card-link:first-of-type {
  border-top: 1px solid rgba(251, 251, 217, 0.22);
}

.venue-card-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(251, 251, 217, 0.3);
  background: var(--blue);
}

.venue-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.venue-card-title {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--cream);
  text-transform: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-card-sub {
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  color: rgba(251, 251, 217, 0.7);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: 'Pitch Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--blue);
  background: var(--yellow);
  line-height: 1;
}

.venue-card-cta svg {
  display: block;
}

.venue-card-cta:hover {
  background: var(--cream);
}

/* Bottom App Navigation */
nav.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--blue);
  border-top: 2px solid rgba(251, 251, 217, 0.25);
  display: flex;
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  z-index: 150;
}

.nav-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-family: 'Pitch Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.nav-tab-btn.active {
  background: var(--yellow);
  color: var(--blue);
}

.nav-icon {
  font-size: 17px;
  line-height: 1;
}

.hide { display: none !important; }

/* ===== Welcome / install splash ===== */
/* Type matches the app: dates = .modal-act, place = .header-meta, sub = .cd-caption,
   buttons = .tool-btn, popup = .modal-overlay/.modal-card, steps = .modal-bio */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 300; /* under the grain overlay (9999) so the texture still sits on top */
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.welcome[hidden] { display: none; }
.welcome.is-leaving { opacity: 0; transform: translateY(-12px); pointer-events: none; }
body.welcome-open { overflow: hidden; }

.welcome-scroll {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 28px) 24px calc(var(--safe-bottom) + 28px);
}
.welcome-halftone {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges;
  opacity: 0; animation: halftoneIn 2.6s 0.5s ease forwards;
}
@keyframes halftoneIn { to { opacity: 0.8; } }

.welcome-inner {
  margin: auto; width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.welcome-logo { display: flex; justify-content: center; align-items: flex-end; min-height: 160px; margin-bottom: 18px; }
.welcome-logo .l-note { animation: dingo-note 9.5s 1.4s infinite ease-in-out; }
.welcome-logo .l-i    { animation: dingo-i    9.5s 1.48s infinite ease-in-out; }
.welcome-logo .l-n    { animation: dingo-n    9.5s 1.56s infinite ease-in-out; }
.welcome-logo .l-g    { animation: dingo-g    9.5s 1.64s infinite ease-in-out; }
.welcome-logo .l-o    { animation: dingo-o    9.5s 1.72s infinite ease-in-out; }
.welcome-logo .w-drop { opacity: 0; animation: welcomeDrop 0.7s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes welcomeDrop {
  0%   { opacity: 0; transform: translateY(-38px) rotate(-8deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
.welcome-fade { opacity: 0; animation: welcomeFade 0.6s ease forwards; }
@keyframes welcomeFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.welcome-dates {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 22px; line-height: 1.15;
  color: var(--yellow); text-transform: uppercase; letter-spacing: -0.03em;
}
.welcome-place {
  font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 13px; line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px;
}
.welcome-sub {
  font-family: 'Pitch Sans', sans-serif; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; margin-top: 6px;
}

.welcome-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.welcome-btn {
  display: block; width: 100%; border: 0; cursor: pointer; color: var(--blue);
  font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 14px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 16px 12px 15px;
}
.welcome-btn-primary { background: var(--yellow); }
.welcome-btn-secondary { background: #FFFFFF; }
.welcome-btn:active { transform: translateY(1px); }

/* How to add to home screen popup */
.a2hs {
  position: absolute; inset: 0; z-index: 5;
  display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: rgba(10, 13, 36, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 24px);
  animation: a2hsFade 0.2s ease;
}
.a2hs[hidden] { display: none; }
.a2hs-card {
  position: relative; margin: auto; width: 100%; max-width: 440px;
  background: #1728FF; border: 2px solid var(--yellow); color: var(--cream);
  padding: 24px 20px 8px; text-align: left;
  animation: a2hsUp 0.25s ease;
}
@keyframes a2hsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes a2hsUp { from { transform: translateY(14px); } to { transform: none; } }
.a2hs-title {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 22px; line-height: 1.15;
  color: var(--yellow); text-transform: uppercase; letter-spacing: -0.03em;
  padding-right: 44px; margin-bottom: 18px;
}
.a2hs-inapp {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.4;
  background: var(--yellow); color: var(--blue); padding: 10px 12px; margin-bottom: 16px;
}
.a2hs-inapp b { font-weight: 700; }
.a2hs-os { border-top: 1px solid rgba(251, 251, 217, 0.2); padding: 16px 0 18px; }
.a2hs-os-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a2hs-os h3 {
  font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: -0.03em; color: var(--cream);
}
.a2hs-badge {
  display: none; font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 10.5px; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.02em; background: var(--yellow); color: var(--blue); padding: 4px 8px;
}
.a2hs-os.is-yours .a2hs-badge { display: inline-block; }
.a2hs-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.a2hs-steps li {
  counter-increment: step; position: relative; padding-left: 34px; min-height: 22px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 15px; line-height: 1.45;
}
.a2hs-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  border: 1.5px solid var(--cream); font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.a2hs-steps b { font-weight: 700; color: var(--yellow); }
.a2hs-steps .ico { display: inline-block; vertical-align: -3px; margin-left: 2px; color: var(--yellow); }
.a2hs-hint { display: block; font-size: 13px; line-height: 1.35; opacity: 0.7; margin-top: 1px; }
.a2hs-hint b { color: var(--cream); }
.a2hs-install { margin-bottom: 14px; }
.a2hs-os.has-install .a2hs-steps { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .welcome-logo .w-drop, .welcome-fade { animation: none; opacity: 1; }
  .welcome-logo [class*="l-"] { animation: none; }
  .welcome-halftone { animation: none; opacity: 0.6; }
  .a2hs, .a2hs-card { animation: none; }
}

/* ===== Interactive map (Map tab) ===== */
.dmap-hero {
  position: relative; margin: -16px -20px 0; overflow: hidden; background: var(--blue);
  height: 62vh;
  height: calc(100svh - 88px - var(--safe-top) - 60px - var(--safe-bottom) - 92px);
  min-height: 360px; max-height: 760px;
  border-bottom: 2px solid rgba(251, 251, 217, 0.25);
}
.dmap-canvas { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; }
.dmap-hero.is-loading::after {
  content: 'Loading map\2026'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; color: var(--cream);
  text-transform: uppercase; letter-spacing: -0.02em; pointer-events: none;
}
.dmap-fallback { position: absolute; inset: 0; overflow: auto; background: #F3EFD9; }
.dmap-fallback img { width: 100%; display: block; }
.dmap-hero.is-fallback .dmap-towns, .dmap-hero.is-fallback .dmap-ctrls { display: none; }
#screen-map.is-fallback .dmap-attrib, #screen-map.is-fallback .dmap-official { display: none; }

.dmap-towns { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; }
.dmap-town {
  background: var(--blue); color: var(--cream); border: 1px solid rgba(251, 251, 217, 0.55); cursor: pointer;
  font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 10px 7px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.dmap-town.active { background: var(--cream); color: var(--blue); border-color: var(--cream); }

.dmap-ctrls { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.dmap-ctrl {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: #FFFFFF; color: var(--blue); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.dmap-ctrl:active { transform: translateY(1px); }
.dmap-locate { margin-top: 6px; }
.dmap-locate.is-on { background: var(--yellow); }
.dmap-locate.is-busy svg { animation: dmapSpin 1s linear infinite; }
@keyframes dmapSpin { to { transform: rotate(360deg); } }

.dmap-toast {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%); z-index: 4; white-space: nowrap;
  background: var(--yellow); color: var(--blue); padding: 8px 12px 7px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.dmap-toast[hidden], .dmap-card[hidden], .dmap-fallback[hidden] { display: none; }

/* pins: same circled numbers as the official venue map */
.dmap-pin {
  width: 26px; height: 26px; padding: 0; border-radius: 50% !important; cursor: pointer;
  background: var(--yellow); color: var(--blue); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: -0.04em; line-height: 1;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease, background-color 0.15s ease;
}
.dmap-pin.is-letters { font-size: 9.5px; letter-spacing: -0.06em; }
.dmap-pin.is-small { width: 16px; height: 16px; background: var(--cream); }
.dmap-pin.is-small span { width: 6px; height: 6px; background: var(--blue); border-radius: 50% !important; }
.dmap-pin.is-selected { transform: scale(1.3); background: var(--cream); z-index: 5; }
.dmap-pin.is-small.is-selected { background: var(--yellow); transform: scale(1.5); }

.dmap-me { width: 18px; height: 18px; border-radius: 50% !important; background: var(--cream); border: 3px solid var(--blue); box-shadow: 0 0 0 2px var(--cream); position: relative; }
.dmap-me span { position: absolute; inset: -12px; border-radius: 50% !important; background: rgba(251, 251, 217, 0.35); animation: dmapPulse 2s ease-out infinite; }
@keyframes dmapPulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* venue card that pops up over the map */
.dmap-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4;
  display: flex; gap: 12px; align-items: stretch; padding: 10px 44px 10px 10px;
  background: var(--blue); border: 2px solid var(--yellow); color: var(--cream);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); animation: dmapCardIn 0.22s ease;
}
@keyframes dmapCardIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.dmap-card-img { width: 76px; height: 76px; flex-shrink: 0; object-fit: cover; border: 1px solid rgba(251, 251, 217, 0.3); background: var(--blue); }
.dmap-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.dmap-card-title { display: flex; align-items: center; gap: 6px; font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: -0.03em; line-height: 1.15; }
.dmap-card-title .venue-num-badge { width: 18px; height: 18px; font-size: 9px; }
.dmap-card-sub { font-family: 'Pitch Sans', sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: -0.02em; color: rgba(251, 251, 217, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmap-card-go { align-self: flex-start; text-decoration: none; margin-top: 2px; }
.dmap-card-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; cursor: pointer;
  background: #FFFFFF; color: var(--blue); font-family: 'Space Mono', monospace; font-weight: 700; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* map data credit (OpenStreetMap licence), under the map */
.dmap-attrib { display: block; text-align: right; margin: 6px 0 0; font-family: 'Space Grotesk', sans-serif; font-size: 10px; color: rgba(251, 251, 217, 0.55); }
.dmap-attrib a { color: inherit; text-decoration: none; }

.dmap-list-h {
  font-family: 'Pitch Sans', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--yellow); margin: 20px 0 6px;
}
.venue-card-link { cursor: pointer; }
.venue-card-link.is-active .venue-card-title { color: var(--yellow); }
