:root {
  --bg: #0f141a;
  --panel: #171e27;
  --panel-border: #2a3441;
  --text: #e6edf3;
  --text-dim: #9aa7b4;
  --accent: #ff9900;
  --accent-dim: #7a5a1e;
  --chip-bg: #1f2833;
  --chip-active: #ff9900;
  --chip-active-text: #14181c;
  --bar-bg: #232d3a;
  --bar-bg-light: #2c3847;
  --underline-idle: #5b6b7f;
  --share-color: #3aa0ff;
  --share-color-dark: #2380df;
  --day-pill-active: var(--accent);
  --day-pill-active-text: #14181c;
}

* { box-sizing: border-box; }

/* Shared retro-Vegas gradient recipe: a warm sun glow plus tiled "cloud
   puff" blobs, all pure CSS (no image assets). Used on body AND the topbar
   — cards are opaque and cover most of the page, so the header (never
   covered by a card) is where this is actually guaranteed visible. */
:root {
  --retro-bg-image:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(255, 107, 53, 0.22), transparent 70%),
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 16%),
    radial-gradient(circle at 65% 15%, rgba(255, 255, 255, 0.07) 0%, transparent 14%),
    radial-gradient(circle at 85% 55%, rgba(255, 153, 0, 0.08) 0%, transparent 18%),
    radial-gradient(circle at 35% 75%, rgba(58, 160, 255, 0.07) 0%, transparent 16%),
    radial-gradient(circle at 5% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 14%);
  --retro-bg-size: 100% 100%, 500px 500px, 500px 500px, 500px 500px, 500px 500px, 500px 500px;
  --retro-bg-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat;
}

body {
  margin: 0;
  padding-bottom: 76px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: var(--retro-bg-image);
  background-repeat: var(--retro-bg-repeat);
  background-size: var(--retro-bg-size);
  background-attachment: fixed;
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--panel);
  background-image: var(--retro-bg-image);
  background-repeat: var(--retro-bg-repeat);
  background-size: var(--retro-bg-size);
  background-position: center -60px;
  border-bottom: 1px solid var(--panel-border);
  padding: 16px 24px;
}

.topbar-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

@media (min-width: 700px) {
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

.brand-logo {
  height: 76px;
  width: auto;
  display: block;
}

@media (min-width: 700px) {
  .brand-logo {
    height: 140px;
  }
}

.unofficial {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
}

.stats {
  font-size: 13px;
  color: var(--text-dim);
}

.stats.hidden {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.topbar-row-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.swag-quest-btn {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.swag-quest-btn img {
  height: 34px;
  width: auto;
  display: block;
}

.swag-quest-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.share-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--share-color), var(--share-color-dark));
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(58, 160, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.share-app-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.stream-countdown {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff9900, #d9273a);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(217, 39, 58, 0.4);
  animation: stream-countdown-pulse 2s infinite;
}

@keyframes stream-countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.stream-countdown.hidden {
  display: none;
}

.header-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip-bg);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--panel-border);
  opacity: 0.55;
  pointer-events: none;
}

.header-live-btn.has-countdown {
  opacity: 0.9;
}

.header-live-btn.is-live {
  background: #d9273a;
  color: #ffffff;
  border-color: transparent;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(217, 39, 58, 0.4);
  animation: header-live-pulse 2s infinite;
}

.header-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.header-live-btn.is-live .header-live-dot {
  background: #ffffff;
}

@keyframes header-live-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(217, 39, 58, 0.4); }
  50% { box-shadow: 0 4px 22px rgba(217, 39, 58, 0.75); }
}

.timeline-day-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.timeline-day-heading.hidden {
  display: none;
}

.schedule-share-row {
  margin-bottom: 16px;
}

.schedule-share-row.hidden {
  display: none;
}

.step-section {
  background: var(--bar-bg);
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0 16px;
  box-shadow: 0 0 16px rgba(255, 153, 0, 0.15);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #14181c;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.view-tabs {
  display: flex;
  gap: 4px;
}

.view-tab {
  background: transparent;
  border: 1px solid var(--underline-idle);
  border-radius: 999px;
  color: var(--text-dim);
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.view-tab.active {
  color: var(--text);
}

.view-tab[data-view="day"] {
  color: var(--accent);
  border-color: #a86200;
}

.view-tab[data-view="day"].active {
  color: #ffc266;
  background: rgba(255, 153, 0, 0.15);
  border-color: var(--accent);
}

.view-tab[data-view="parties"],
.view-tab[data-view="map"] {
  margin-left: 2px;
}

.view-tab[data-view="parties"] {
  color: #c9a3ff;
  border-color: #6b4a9e;
}

.view-tab[data-view="parties"].active {
  color: #dcc2ff;
  background: rgba(163, 91, 255, 0.15);
  border-color: #a35bff;
}

.view-tab[data-view="map"] {
  color: #2dd4bf;
  border-color: #1a7f73;
}

.view-tab[data-view="map"].active {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.15);
  border-color: #2dd4bf;
}

.view-tab:disabled {
  color: #4a5563;
  cursor: default;
}

.placeholder-notice {
  background: #3a2c10;
  border-bottom: 1px solid var(--accent-dim);
  color: #f0c878;
  font-size: 13px;
  padding: 10px 24px;
  text-align: center;
}

.day-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.day-layout.hidden {
  display: none;
}

.type-filters {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.type-filters.hidden {
  display: none;
}

.mobile-filter-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: var(--chip-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #14181c;
  font-size: 11px;
  font-weight: 700;
}

.filter-count-badge.hidden {
  display: none;
}

.mobile-filter-chevron {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.15s ease;
}

.mobile-filter-toggle[aria-expanded="true"] .mobile-filter-chevron {
  transform: rotate(90deg);
}

.filter-body {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.filter-body.open {
  display: flex;
  background: var(--bar-bg-light);
  border-radius: 10px;
  padding: 12px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 8px 4px;
  margin-right: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-panel.hidden {
  display: none;
}

.type-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.secondary-btn {
  background: var(--chip-bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

.secondary-btn:hover {
  border-color: var(--underline-idle);
}

.filter-clear-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.secondary-btn-strong {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.secondary-btn-strong:hover {
  background: var(--accent);
  color: #14181c;
}

.type-filter-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.type-filter-item:hover {
  background: var(--chip-bg);
}

.type-filter-item.active {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.type-filter-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.type-filter-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.type-filter-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.type-filter-def {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.day-content {
  min-width: 0;
}

.map-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.map-day-list {
  margin-top: 20px;
}

.map-view.hidden {
  display: none;
}

.venue-map-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 20px;
}

.venue-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.venue-map-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

.venue-map-panel #venueMap {
  max-width: min(90vw, 420px);
  margin: 0 auto;
}

.venue-map-legend {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--chip-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-item svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.legend-item span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.3;
  max-width: 170px;
}

.venue-pin-label {
  font-size: 9px;
  fill: var(--text-dim);
}

.venue-pin-label.scheduled {
  fill: var(--text);
  font-weight: 700;
}

.venue-pin-count {
  font-size: 9px;
  font-weight: 700;
  fill: #14181c;
}

.venue-pin {
  cursor: pointer;
}

.venue-pin:hover .iso-building {
  filter: brightness(1.15);
}

.venue-pin.selected .iso-building {
  filter: drop-shadow(0 0 3px #ff6b35) drop-shadow(0 0 3px #ff6b35);
}

.venue-info-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
  min-height: 24px;
}

.venue-info-hint {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}

.venue-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
}

.venue-info-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.venue-directions-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #14181c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.venue-directions-btn:hover {
  filter: brightness(1.08);
}

.venue-info-count {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.venue-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venue-info-list li {
  font-size: 13px;
  background: var(--chip-bg);
  border-radius: 8px;
  padding: 8px 10px;
}

.venue-info-time {
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
}

.session-search {
  width: 100%;
  background: var(--bar-bg-light);
  border: 1px solid var(--underline-idle);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 12px 14px;
  min-height: 44px;
  margin-bottom: 16px;
}

.session-search::placeholder {
  color: var(--text-dim);
}

.session-search.hidden {
  display: none;
}

.session-search:focus {
  outline: none;
  border-color: var(--accent);
}

.day-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--bar-bg-light);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.day-pill.active {
  background: var(--day-pill-active);
  border-color: var(--day-pill-active);
  color: var(--day-pill-active-text);
}

.day-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #14181c;
  font-size: 11px;
  font-weight: 700;
}

.day-pill.active .day-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--day-pill-active-text);
}

.schedule-tabs {
  display: flex;
  gap: 4px;
  background: var(--bar-bg-light);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.schedule-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-dim);
  padding: 12px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.schedule-tab.active {
  background: var(--accent);
  color: var(--chip-active-text);
}

.schedule-tab-count {
  font-weight: 700;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .schedule-tab {
    padding: 14px 12px;
    min-height: 48px;
    font-size: 16px;
  }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline.hidden {
  display: none;
}

.timeline-item {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-item.is-past {
  opacity: 0.4;
}

.timeline-item.is-live {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-item.is-soon {
  border-color: #f5a623;
  box-shadow: 0 0 0 1px #f5a623;
  animation: soon-pulse 1.8s ease-in-out infinite;
}

@keyframes soon-pulse {
  0%, 100% { box-shadow: 0 0 0 1px #f5a623; }
  50% { box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35); }
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  background: #f5a623;
  color: #14181c;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 2px 2px 6px;
  border-radius: 4px;
  gap: 4px;
}

.badge-countdown {
  text-transform: none;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.live-badge .badge-countdown {
  background: #14181c;
  color: var(--accent);
}

.soon-badge .badge-countdown {
  background: #14181c;
  color: #f5a623;
}

.venue-directions-btn.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.timeline-time {
  flex-shrink: 0;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.timeline-time .clock {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #14181c;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 2px 2px 6px;
  border-radius: 4px;
  gap: 4px;
}

.timeline-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.session-type {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
}

.party-type-tag {
  background: #4a2a6b;
  color: #c9a3ff;
}

.session-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.session-location {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.session-abstract {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.session-meta span {
  background: var(--chip-bg);
  padding: 2px 7px;
  border-radius: 4px;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.add-btn:hover {
  border-color: var(--accent);
}

.add-btn .add-icon {
  font-size: 14px;
  line-height: 1;
}

.add-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--chip-active-text);
}

.empty-state {
  color: var(--text-dim);
  padding: 40px;
  text-align: center;
}

.twitch-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6441a5;
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 320px;
  z-index: 100;
}

.twitch-bubble.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.twitch-bubble-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4747;
  flex-shrink: 0;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 71, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 71, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 71, 0); }
}

.twitch-bubble-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  min-width: 0;
}

.twitch-bubble-text strong {
  font-size: 13px;
}

.twitch-bubble-text span {
  color: #d9d2ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twitch-bubble a {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .view-tabs {
    justify-content: center;
  }
  .day-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .day-pill {
    justify-content: center;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 56px;
  }
  .unofficial {
    font-size: 10px;
    margin-top: 4px;
  }
  .header-actions {
    gap: 6px;
    flex-wrap: wrap;
  }
  .share-app-btn,
  .header-live-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 34px;
    gap: 4px;
  }
  .topbar-row-top-right {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }
  .swag-quest-btn img {
    height: 28px;
  }
}

@media (max-width: 800px) {
  .day-layout {
    padding: 16px;
  }
  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }
  .timeline-time {
    flex-direction: row;
    width: auto;
    align-items: center;
  }
}

.share-schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--share-color), var(--share-color-dark));
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58, 160, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.share-schedule-btn::before {
  content: '⤴';
  font-size: 15px;
}

.share-schedule-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(58, 160, 255, 0.45);
}

.week-day-group {
  margin-bottom: 28px;
}

.week-day-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--panel-border);
  margin: 0 0 10px;
  padding: 4px 0 12px;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.week-day-chevron {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  width: 16px;
}

.week-day-heading .week-day-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Parties view */

.parties-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.parties-view.hidden {
  display: none;
}

.parties-header h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.parties-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0 0 20px;
  background: var(--chip-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
}

.parties-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.party-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.party-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.party-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.party-day-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.party-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.party-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.party-meta span {
  background: var(--chip-bg);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Share modal */

.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.share-modal.hidden {
  display: none;
}

.share-modal-inner {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.share-modal-inner h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.share-modal-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0 0 16px;
}

.share-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
}

.share-qr-code {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  display: inline-flex;
  margin-bottom: 14px;
}

.share-qr-code svg {
  display: block;
  width: 220px;
  height: 220px;
}

.share-url-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.share-url-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
}

.share-url-copy-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #14181c;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.share-url-copy-btn:hover {
  filter: brightness(1.08);
}

.share-url-copy-btn.copied {
  background: #2fbf71;
  color: #ffffff;
}

.import-modal-inner {
  max-width: 420px;
  text-align: left;
}

.import-modal-inner h3 {
  text-align: center;
  margin: 0 0 8px;
}

#importModalNote {
  text-align: center;
}

.import-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 18px;
}

.import-preview-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--chip-bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.import-preview-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.import-preview-text {
  flex: 1;
  min-width: 0;
}

.import-preview-item .import-preview-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.import-preview-item .import-preview-title {
  display: block;
}

.import-select-all-btn {
  display: block;
  margin: 0 0 10px auto;
  background: none;
  border: none;
  color: var(--share-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.import-select-all-btn:hover {
  text-decoration: underline;
}

.import-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-modal-actions .share-schedule-btn,
.import-modal-actions .secondary-btn {
  width: 100%;
  min-height: 44px;
}

.shared-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 4px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}

.back-to-top:hover {
  border-color: var(--accent);
}

.back-to-top.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.site-footer {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 16px 24px 96px;
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.shuttle-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 14px 8px 8px;
  background: var(--chip-bg);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.shuttle-toggle-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shuttle-toggle-box {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--underline-idle);
  transition: background 0.15s ease;
}

.shuttle-toggle-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.shuttle-toggle-row input:checked + .shuttle-toggle-box {
  background: var(--accent);
}

.shuttle-toggle-row input:checked + .shuttle-toggle-box::after {
  transform: translateX(16px);
}

.shuttle-toggle-row input:focus-visible + .shuttle-toggle-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shuttle-route-line {
  pointer-events: none;
}

.shuttle-route-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}

.shuttle-route-list.hidden {
  display: none;
}

.shuttle-route-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--route-color, var(--accent));
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shuttle-route-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shuttle-route-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.shuttle-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.shuttle-route-stops {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.shuttle-route-times {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.venue-info-shuttle-heading {
  font-size: 12px;
  color: var(--text-dim);
  margin: 12px 0 6px;
}

.venue-info-shuttle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-info-shuttle-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
