:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --paper: rgba(255, 255, 255, 0.06);
  --gold: #ff9500; /* Use orange/gold as the primary accent */
  --accent: #ff6b00;
  --green: #4ade80;
  --rose: #f87171;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000000;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
textarea {
  font: inherit;
}

input {
  font: inherit;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  z-index: 1000;
  max-width: min(86vw, 360px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(40, 40, 40, 0.95);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-shell {
  --pull-distance: 0px;
  position: relative;
  width: min(100vw, 430px);
  height: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: var(--bg);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 149, 0, 0.05), transparent 40%);
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  z-index: 1201;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-56px + min(var(--pull-distance), 52px)));
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.pull-refresh-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: #ffffff;
  border-radius: 50%;
}

.app-shell.is-pulling .pull-refresh-indicator,
.app-shell.is-refreshing .pull-refresh-indicator {
  opacity: 1;
}

.app-shell.is-refreshing .pull-refresh-indicator {
  transform: translate(-50%, 0);
}

.app-shell.is-pulling .screen.active {
  transform: translateY(var(--pull-distance));
}

.app-shell.is-refreshing {
  --pull-distance: 52px;
}

.app-shell.is-refreshing .screen.active {
  transform: translateY(52px);
  transition: transform 0.2s ease;
}

.app-shell.is-refreshing .pull-refresh-spinner {
  animation: pull-refresh-spin 0.72s linear infinite;
}

.app-shell.is-settling .screen.active {
  transition: transform 0.2s ease;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 0 24px calc(100px + env(safe-area-inset-bottom));
  transform: translateY(0);
}

.screen.active {
  display: block;
}

.section {
  margin-top: 32px;
}

.tour-map-section {
  position: relative;
  width: calc(100% + 48px);
  margin: 28px -24px 0;
  padding: clamp(300px, 48vh, 430px) 24px 24px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: transparent;
}

.tour-map-section + .section {
  position: relative;
  margin-top: 12px;
}

.tour-map-section + .section::before {
  content: "";
  position: absolute;
  top: -52px;
  left: -24px;
  right: -24px;
  bottom: 0;
  z-index: 0;
  background: #000000;
  pointer-events: none;
}

.tour-map-section + .section .schedule-list {
  position: relative;
  z-index: 1;
}

.section-title,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title + .schedule-list {
  margin-top: 24px;
}

.custom-submit-panel + .schedule-list {
  margin-top: 24px;
}

.schedule-filter-row {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 8;
  justify-content: space-between;
  background: transparent;
  margin-bottom: 2px;
}

.schedule-filter-row::before {
  content: "";
  position: absolute;
  top: calc(-1 * env(safe-area-inset-top));
  left: -24px;
  right: -24px;
  height: calc(60px + env(safe-area-inset-top));
  z-index: -1;
  background: rgba(18, 16, 14, 0.82);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.schedule-filter-row.is-stuck::before {
  opacity: 1;
}

.section-title h2,
.topbar h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.section-title span,
.eyebrow {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.topbar {
  padding-top: calc(32px + env(safe-area-inset-top));
}

.topbar h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.tabbar button,
.filter-tabs button,
.checkin {
  border: 0;
  cursor: pointer;
}

.feature-card,
.concert-card,
.wish-card {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 16px;
}

.feature-card h3 {
  margin: 5px 0 10px;
  font-size: 19px;
  line-height: 1.45;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tour-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  border: 0;
  background: #000000;
  touch-action: pan-x pan-y pinch-zoom;
}

.tour-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 450;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.76) 68%, #000000 86%, #000000 100%);
  pointer-events: none;
}

.tour-map .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #1a1a1f;
  font: inherit;
  touch-action: pan-x pan-y pinch-zoom;
}

.tour-map .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  touch-action: pan-x pan-y pinch-zoom;
}

/* City markers rendered via divIcon: a breathing pulse dot with a label. */
.map-pulse {
  position: relative;
  display: block;
  width: 0;
  height: 0;
  --pulse-color: var(--accent);
  --pulse-label-color: #ffffff;
  --pulse-label-bg: rgba(20, 20, 20, 0.8);
}

.map-pulse.is-next {
  --pulse-color: #ffffff;
  --pulse-label-color: #ffffff;
  --pulse-label-bg: rgba(255, 107, 0, 0.8);
}

.map-pulse.is-selected {
  --pulse-color: var(--accent);
  --pulse-label-color: #ffffff;
  --pulse-label-bg: rgba(0, 0, 0, 0.9);
}

.map-pulse.is-checked {
  --pulse-color: #8fd3ff;
  --pulse-label-color: #ffffff;
  --pulse-label-bg: rgba(9, 25, 35, 0.92);
}

.map-pulse.is-selected.is-checked {
  --pulse-color: #8fd3ff;
  --pulse-label-color: #ffffff;
  --pulse-label-bg: rgba(9, 25, 35, 0.92);
}

.map-pulse.is-ended,
.map-pulse.is-tbd {
  --pulse-color: #a7a09a;
  --pulse-label-color: rgba(255, 255, 255, 0.72);
  --pulse-label-bg: rgba(28, 28, 30, 0.76);
}

.map-pulse-dot,
.map-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-pulse-dot {
  width: 11px;
  height: 11px;
  background: var(--pulse-color);
  box-shadow: 0 0 8px var(--pulse-color);
  animation: pulse-breathe 2.4s ease-in-out infinite;
}

.map-pulse-ring {
  width: 11px;
  height: 11px;
  border: 1px solid var(--pulse-color);
  background: var(--pulse-color);
  opacity: 0.6;
  animation: pulse-ring 2.4s ease-out infinite;
}

.map-pulse.is-next .map-pulse-dot {
  width: 13px;
  height: 13px;
}

.map-pulse.is-next .map-pulse-ring {
  width: 13px;
  height: 13px;
  animation-duration: 1.8s;
}

.map-pulse.is-selected .map-pulse-dot {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 12px var(--pulse-color), 0 0 28px rgba(143, 211, 255, 0.65);
}

.map-pulse.is-selected .map-pulse-ring {
  width: 16px;
  height: 16px;
  animation-duration: 1.25s;
}

.map-pulse-label {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--pulse-label-bg);
  color: var(--pulse-label-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.85;
  }
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  70%,
  100% {
    transform: translate(-50%, -50%) scale(3.4);
    opacity: 0;
  }
}

/* 最近一场 overlay pinned to the map's top-left corner. */
.map-next {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 500;
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.map-next .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.map-next-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.map-next strong {
  font-size: 19px;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.map-next-mascot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2147483000;
  width: 75px;
  height: 75px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.map-next-mascot[hidden] {
  display: none;
}

.map-next-mascot.is-floating {
  position: fixed;
}

.map-next-mascot.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-next-mascot.is-dragging {
  cursor: grabbing;
  transition: none;
}

.map-next-mascot img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
  transform: rotate(4deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: map-next-mascot-peek 3.2s ease-in-out infinite;
}

@keyframes map-next-mascot-peek {
  0%, 100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-2.5px);
  }
}

.map-next span.map-next-meta,
.map-next #map-next-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.map-next-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.25);
  color: #ffffff;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.map-next-icon {
  flex: 0 0 auto;
}

.map-city-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: 160px;
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 0, 0.15), transparent 40%),
    linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.8));
  color: #ffffff;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 25px rgba(255, 107, 0, 0.1); /* Glassy orange glow */
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: map-card-rise 0.28s ease-out;
}

.map-city-card[hidden] {
  display: none;
}

.map-city-card-head,
.map-city-card-foot,
.map-city-card-actions {
  min-width: 0;
}

.map-city-card-head,
.map-city-card-foot,
.map-city-card-actions {
  display: flex;
  align-items: center;
}

.map-city-card-head {
  justify-content: space-between;
  gap: 12px;
}

.map-city-card-foot {
  justify-content: space-between;
  gap: 12px;
  align-self: end;
}

.map-city-card-actions {
  justify-content: flex-end;
  gap: 12px;
}

.map-city-card-head > span,
.map-city-countdown {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-city-card-head > span:first-child {
  padding: 6px 9px;
  background: rgba(255, 229, 138, 0.18);
  color: #ffe58a;
}

.map-city-title {
  align-self: center;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-city-card-foot > p {
  margin: 0;
  color: rgba(255, 248, 236, 0.68);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.map-city-countdown {
  padding: 6px 9px;
  background: rgba(143, 211, 255, 0.16);
  color: #bfe9ff;
}

.map-city-stats-link,
.map-city-checkin-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 126px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 236, 0.68);
  font-size: 16px;
  line-height: 1.45;
  white-space: nowrap;
  cursor: pointer;
}

.map-city-checkin-count {
  cursor: default;
}

.map-city-stats-link strong,
.map-city-checkin-count strong {
  color: #fff8ec;
  font-size: 16px;
  line-height: 1;
}

.map-city-stats-link span {
  color: #fff8ec;
  font-size: 18px;
  line-height: 1;
}

.map-city-stats-link:hover {
  color: #fff8ec;
}

.map-city-card .checkin {
  min-width: 96px;
  height: 45px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.map-city-card .checkin {
  background: #fff8ec;
  color: #171210;
  box-shadow: 0 10px 20px rgba(255, 248, 236, 0.16);
}

.map-city-card .checkin.done {
  background: #8fd3ff;
  color: #0c1820;
}

@keyframes map-card-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tour-timeline {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 0;
  padding: 12px 12px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tour-timeline::-webkit-scrollbar {
  display: none;
}

.tour-timeline-track {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: max-content;
  padding: 0 0 2px;
}

.tour-timeline-track::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 31.5px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0), rgba(255, 107, 0, 0.6), rgba(255, 149, 0, 0.5), rgba(255, 107, 0, 0));
}

.tour-timeline-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 82px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.tour-timeline-date,
.tour-timeline-city {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-timeline-date {
  min-height: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
}

.tour-timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

.tour-timeline-city {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
}

.tour-timeline-item.is-next .tour-timeline-date {
  color: var(--accent);
}

.tour-timeline-item.is-next .tour-timeline-dot {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.25), 0 0 14px rgba(255, 107, 0, 0.5);
  animation: timeline-next-pulse 1.6s ease-in-out infinite;
}

.tour-timeline-item.is-ended .tour-timeline-date,
.tour-timeline-item.is-ended .tour-timeline-city,
.tour-timeline-item.is-tbd .tour-timeline-date,
.tour-timeline-item.is-tbd .tour-timeline-city {
  color: rgba(255, 255, 255, 0.3);
}

.tour-timeline-item.is-ended .tour-timeline-dot {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.tour-timeline-item.is-tbd .tour-timeline-dot {
  background: #444;
  border-color: #666;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.tour-timeline-item.is-selected .tour-timeline-date,
.tour-timeline-item.is-selected .tour-timeline-city {
  color: #ffffff;
}

.tour-timeline-item.is-selected .tour-timeline-dot {
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-color: #ffffff;
  box-shadow: 0 0 0 5px rgba(255, 107, 0, 0.2), 0 0 20px rgba(255, 107, 0, 0.6);
}

@keyframes timeline-next-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(159, 124, 44, 0.18), 0 0 12px rgba(255, 229, 138, 0.38);
  }

  50% {
    transform: scale(1.22);
    box-shadow: 0 0 0 6px rgba(159, 124, 44, 0.24), 0 0 20px rgba(255, 229, 138, 0.72);
  }
}

.schedule-list,
.wish-list,
.guide-list,
.timeline {
  display: grid;
  gap: 12px;
}

.schedule-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  font-weight: 300;
  text-align: center;
}

.schedule-skeleton {
  display: grid;
  gap: 12px;
}

.schedule-skeleton-card {
  display: grid;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.schedule-skeleton-line {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
}

.schedule-skeleton-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.09),
    transparent
  );
  content: "";
  transform: translateX(-100%);
  animation: schedule-skeleton-shimmer 1.5s ease-in-out infinite;
}

.schedule-skeleton-line.is-title {
  width: min(72%, 240px);
  height: 20px;
}

.schedule-skeleton-line.is-meta {
  width: min(48%, 160px);
  height: 13px;
}

@keyframes schedule-skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-skeleton-line::after {
    animation: none;
  }
}

.guide-empty {
  min-height: calc(100vh - 240px);
}

.schedule-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 107, 0, 0.03); /* Subtle orange glow instead of dark shadow */
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-card:active {
  transform: scale(0.98);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.schedule-card.is-map-highlighted {
  animation: schedule-card-highlight 1.25s ease-out;
}

@keyframes schedule-card-highlight {
  0% {
    transform: scale(0.98);
    border-color: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
  }

  35% {
    transform: scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.15);
  }

  100% {
    transform: scale(1);
    border-color: var(--glass-border);
    box-shadow: var(--shadow);
  }
}

.playable-card {
  cursor: pointer;
}

.playable-card:focus-visible {
  outline: 3px solid rgba(36, 115, 90, 0.35);
  outline-offset: 3px;
}

.playable-card header > div {
  width: 100%;
}

.schedule-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.schedule-meta-row p {
  min-width: 0;
}

.music-record-indicator {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.music-record-indicator::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(183, 92, 102, 0);
  border-radius: 50%;
}

.record-player-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.playable-card.is-playing .music-record-indicator::before {
  animation: recordPulse 1.2s ease-out infinite;
}

.playable-card.is-playing .record-player-icon {
  animation: recordSpin 1.2s linear infinite;
  filter: drop-shadow(0 3px 8px rgba(183, 92, 102, 0.28));
}

@keyframes recordSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes recordPulse {
  0% {
    opacity: 0.85;
    transform: scale(0.88);
    border-color: rgba(183, 92, 102, 0.45);
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
    border-color: rgba(183, 92, 102, 0);
  }
}

.schedule-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.schedule-card header > div {
  min-width: 0;
}

.schedule-card h3 {
  min-width: 0;
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.schedule-badge {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(143, 211, 255, 0.16);
  color: #bfe9ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-first {
  background: #fff4f0 !important;
  color: #c2603a !important;
}

.schedule-card p,
.wish-card p,
.guide-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.venue-photo {
  margin: 16px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f4efeb;
}

.venue-photo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.filter-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
}

.filter-tabs button {
  position: relative;
  padding: 0 0 8px;
  background: transparent;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  transition: color 0.2s ease;
}

.filter-tabs button.active {
  color: var(--accent);
  font-weight: 600;
}

.filter-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.custom-submit-add {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  padding: 0;
  transition: color 0.18s ease;
}

.custom-submit-add[hidden] {
  display: none;
}

.custom-submit-add:hover,
.custom-submit-add:focus-visible {
  background: transparent;
  color: var(--accent);
  outline: none;
}

.custom-submit-panel {
  display: none;
}

.custom-submit-panel input {
  min-width: 0;
  flex: 1 1 auto;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 12px;
  font: inherit;
}

.custom-submit-panel input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.custom-submit-panel button {
  flex: 0 0 auto;
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #1b1713;
  font-weight: 700;
  cursor: pointer;
}

.custom-submit-panel button:disabled {
  cursor: default;
  opacity: 0.58;
}

.guide-submit-panel {
  display: none;
}

.custom-submit-modal[hidden] {
  display: none;
}

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

.checkin {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.checkin.done {
  background: var(--green);
}

.timeline article {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

/* Icon-only launch button sitting in the center of the bottom projection. */
.wish-launch {
  position: absolute;
  left: 50%;
  bottom: calc(118px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #15120f;
  color: #fff8ec;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55), 0 10px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  animation: launch-glow 3s ease-in-out infinite;
}

.wish-launch:hover,
.wish-launch:focus-visible {
  outline: none;
  transform: translateX(-50%) scale(1.06);
}

@keyframes launch-glow {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(255, 244, 214, 0.4), 0 10px 24px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 38px rgba(255, 244, 214, 0.75), 0 10px 24px rgba(0, 0, 0, 0.45);
  }
}

/* Bottom-sheet modal for composing a wish or submitting new content. */
.wish-modal,
.custom-submit-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wish-modal[hidden],
.custom-submit-modal[hidden] {
  display: none;
}

.wish-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.wish-modal-card {
  position: relative;
  z-index: 1;
  width: min(100vw, 430px);
  display: grid;
  gap: 12px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #16171c;
  color: #fff8ec;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.5);
  animation: sheet-up 0.28s ease;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.wish-modal-card h2 {
  margin: 0;
  font-size: 17px;
}

.wish-modal-card textarea,
.custom-submit-modal textarea {
  width: 100%;
  min-height: 96px;
  max-height: 160px;
  padding: 12px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ec;
}

.wish-modal-card textarea::placeholder,
.custom-submit-modal textarea::placeholder {
  color: rgba(255, 248, 236, 0.54);
}

.wish-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.wish-modal-actions button {
  height: 46px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.wish-modal-actions button:disabled {
  cursor: default;
  opacity: 0.48;
}

.wish-modal-cancel {
  background: rgba(255, 248, 236, 0.12);
  color: #fff8ec;
}

#post-wish {
  background: #fff8ec;
  color: #15120f;
}

#custom-submit-send {
  background: #fff8ec;
  color: #15120f;
}

#custom-submit-send:disabled {
  background: rgba(255, 248, 236, 0.26);
  color: rgba(255, 248, 236, 0.58);
}

.city-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.city-stats-modal[hidden] {
  display: none;
}

.city-stats-card {
  gap: 14px;
}

.city-stats-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
}

.city-stats-title-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.city-stats-title-line h2 {
  margin: 0;
  font-size: 22px;
}

.city-stats-separator,
.city-stats-count {
  min-width: 0;
  color: rgba(255, 248, 236, 0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
}

.city-stats-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.1);
  color: #fff8ec;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.city-stats-body {
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 10px;
}

.city-stats-loading,
.city-stats-empty {
  display: grid;
  gap: 5px;
  min-height: 96px;
  place-content: center;
  text-align: center;
  color: rgba(255, 248, 236, 0.62);
  font-size: 13px;
}

.city-stats-loading {
  width: min(220px, 100%);
  justify-self: center;
}

.city-stats-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.12);
}

.city-stats-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 229, 138, 0), #ffe58a, #8fd3ff);
  animation: city-stats-progress 1.05s ease-in-out infinite;
}

.city-stats-empty strong {
  color: #fff8ec;
  font-size: 15px;
}

.city-stats-list {
  display: grid;
  gap: 12px;
}

.city-stats-row {
  --city-stats-column-gap: 8px;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(120px, 1.4fr) 28px;
  align-items: center;
  column-gap: var(--city-stats-column-gap);
  will-change: transform, opacity;
}

.city-stats-place,
.city-stats-number {
  color: #fff8ec;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

.city-stats-country {
  color: rgba(255, 248, 236, 0.48);
}

.city-stats-bar {
  position: relative;
  width: 100%;
  height: 7px;
  justify-self: center;
  transform: translateX(-8px);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.1);
}

.city-stats-bar-fill {
  position: relative;
  display: block;
  width: var(--target-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe58a, #8fd3ff);
  animation: city-stats-bar-fill 0.68s ease-out both;
}

.city-stats-number {
  text-align: right;
}

.city-stats-actions {
  grid-template-columns: 1fr;
}

.city-stats-actions #city-stats-participate {
  background: #fff8ec;
  color: #15120f;
}

.city-stats-actions #city-stats-participate:disabled {
  cursor: default;
  opacity: 0.62;
  color: rgba(21, 18, 15, 0.48);
}

@keyframes city-stats-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(250%);
  }
}

@keyframes city-stats-bar-fill {
  from {
    width: 0;
  }
  to {
    width: var(--target-width, 0%);
  }
}

.wish-card {
  padding: 14px;
}

.wish-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.like-button {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 10px;
  background: #fff;
  color: var(--rose);
}

#wish-screen {
  padding: 0;
  background: #0a0a0c;
  color: #ffffff;
}

#wish-screen .topbar {
  position: relative;
  z-index: 10;
  padding: calc(32px + env(safe-area-inset-top)) 24px 8px;
}

#wish-screen .topbar h1 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#wish-screen .eyebrow {
  color: rgba(255, 255, 255, 0.45) !important;
}

.wish-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: 
    radial-gradient(circle at 50% 100%, rgba(30, 35, 50, 1) 0%, #0a0a0c 70%);
}

.stage-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 400px;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, black 54%, transparent);
  mask-image: linear-gradient(to bottom, black 50%, transparent);
}

.stage-light {
  position: absolute;
  top: -28px;
  left: var(--light-left, 50%);
  --beam-from: -5deg;
  --beam-to: 5deg;
  width: 128px;
  height: 360px;
  padding: 0;
  border: 0;
  transform: translateX(-50%) rotate(var(--light-angle, 0deg));
  transform-origin: 50% 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.34) 36%,
    rgba(255, 255, 255, 0.1) 62%,
    transparent 86%
  );
  -webkit-clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(4px);
  opacity: 0.54;
  mix-blend-mode: screen;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.35s ease, opacity 0.35s ease;
  animation:
    beam-sway 7.5s ease-in-out infinite,
    beam-breathe 4.2s ease-in-out infinite;
}

/* 中央热芯：更亮更窄，制造真实舞台灯的体积层次 */
.stage-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.22) 38%,
    transparent 74%
  );
  -webkit-clip-path: polygon(47% 0, 53% 0, 63% 100%, 37% 100%);
  clip-path: polygon(47% 0, 53% 0, 63% 100%, 37% 100%);
  mix-blend-mode: screen;
  filter: blur(2px);
}

/* 各束错开相位与节奏，避免整齐划一 */
.light-1 {
  --light-left: 22%;
  --beam-from: -7deg;
  --beam-to: 4deg;
  background: linear-gradient(
    180deg,
    rgba(205, 237, 255, 0.9) 0%,
    rgba(143, 211, 255, 0.42) 34%,
    rgba(143, 211, 255, 0.12) 64%,
    transparent 86%
  );
  animation-delay: 0s, -1.2s;
}

.light-2 {
  --light-left: 50%;
  --beam-from: -4deg;
  --beam-to: 4deg;
  animation-duration: 9s, 5s;
  animation-delay: -3s, -2.4s;
}

.light-3 {
  --light-left: 78%;
  --beam-from: -4deg;
  --beam-to: 7deg;
  background: linear-gradient(
    180deg,
    rgba(255, 241, 197, 0.9) 0%,
    rgba(244, 201, 93, 0.42) 34%,
    rgba(244, 201, 93, 0.12) 64%,
    transparent 86%
  );
  animation-delay: -4.8s, -3.1s;
}

@keyframes beam-sway {
  0%,
  100% {
    transform: translateX(-50%) rotate(calc(var(--light-angle, 0deg) + var(--beam-from, -5deg)));
  }
  50% {
    transform: translateX(-50%) rotate(calc(var(--light-angle, 0deg) + var(--beam-to, 5deg)));
  }
}

@keyframes beam-breathe {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

.stage-light:hover,
.stage-light:focus-visible {
  opacity: 0.72;
  outline: none;
}

/* Side beams are softer, supporting fills. */
.light-aux {
  width: 116px;
}

/* Center beam is the white follow-spot: larger, brighter, with a hot core. */
.light-spot {
  width: 190px;
  height: 430px;
  filter: blur(3px) drop-shadow(0 0 26px rgba(255, 255, 255, 0.6));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.4) 44%, transparent 86%);
  -webkit-clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

.light-console {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.light-hint {
  margin: 0;
  color: rgba(255, 248, 236, 0.6);
  font-size: 12px;
  text-align: center;
}

/* Floating musical notes rising from the lower part of the back wall. */
.stage-art {
  position: absolute;
  left: 50%;
  bottom: 150px;
  z-index: 1;
  width: 88%;
  max-width: 360px;
  height: 230px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Notes drifting up from near the floor. */
.note {
  position: absolute;
  bottom: 24px;
  color: rgba(255, 244, 214, 0.9);
  font-size: 20px;
  text-shadow: 0 0 12px rgba(255, 226, 178, 0.7);
  opacity: 0;
  animation: note-rise 5s ease-in infinite;
}

.note-1 {
  left: 8%;
  font-size: 18px;
  animation-delay: 0s;
}

.note-2 {
  left: 30%;
  font-size: 24px;
  animation-delay: 1.1s;
}

.note-3 {
  left: 64%;
  font-size: 16px;
  animation-delay: 2.2s;
}

.note-4 {
  left: 84%;
  font-size: 22px;
  animation-delay: 3.1s;
}

.note-5 {
  left: 48%;
  font-size: 19px;
  animation-delay: 4s;
}

@keyframes note-rise {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(-8deg);
  }
  15% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-150px) rotate(10deg);
  }
}

/* ── 地面扫光池：光束落在舞台地面的椭圆光斑，随光束轻轻扫动 ── */
.stage-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.floor-pool {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 260px;
  height: 95px;
  border-radius: 50%;
  filter: blur(24px);
  transform: translateX(-50%);
  opacity: 0.55;
  animation: floor-sweep 7.5s ease-in-out infinite;
}

.floor-pool-1 {
  background: radial-gradient(ellipse at center, rgba(143, 211, 255, 0.85) 0%, rgba(143, 211, 255, 0.45) 40%, transparent 70%);
  --sweep-from: -120px;
  --sweep-to: -40px;
}

.floor-pool-2 {
  width: 310px;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.55) 35%, transparent 68%);
  animation-duration: 9s;
  animation-delay: -3s;
  --sweep-from: -40px;
  --sweep-to: 40px;
}

.floor-pool-3 {
  background: radial-gradient(ellipse at center, rgba(244, 201, 93, 0.85) 0%, rgba(244, 201, 93, 0.45) 40%, transparent 70%);
  animation-delay: -4.8s;
  --sweep-from: 40px;
  --sweep-to: 120px;
}

@keyframes floor-sweep {
  0%,
  100% {
    transform: translateX(calc(-50% + var(--sweep-from, -40px))) scaleX(0.88);
    opacity: 0.38;
  }
  50% {
    transform: translateX(calc(-50% + var(--sweep-to, 40px))) scaleX(1.18);
    opacity: 0.68;
  }
}

/* ── 空气光粒：光柱里漂浮的尘埃微光，营造演唱会现场氛围 ── */
.stage-haze {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.mote {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mote-color, rgba(255, 248, 236, 0.95));
  box-shadow: 0 0 6px 1px var(--mote-glow, rgba(255, 244, 214, 0.6));
  opacity: 0;
  animation: mote-float 11s linear infinite;
}

/* 三簇光粒分别贴着左/中/右三条光束的中轴漂浮，并按光束颜色着色 */
/* 左辅光（蓝）·中轴 22% */
.mote-1 { left: 19%; --drift: 12px; --mote-color: rgba(208, 238, 255, 0.95); --mote-glow: rgba(143, 211, 255, 0.7); animation-duration: 12s; animation-delay: 0s; }
.mote-2 { left: 25%; --drift: -10px; --mote-color: rgba(208, 238, 255, 0.95); --mote-glow: rgba(143, 211, 255, 0.7); animation-duration: 15s; animation-delay: -6s; width: 3px; height: 3px; }
.mote-3 { left: 22%; --drift: 8px; --mote-color: rgba(208, 238, 255, 0.95); --mote-glow: rgba(143, 211, 255, 0.7); animation-duration: 13s; animation-delay: -3s; }

/* 中央追光（白）·中轴 50% */
.mote-4 { left: 47%; --drift: -9px; animation-duration: 14s; animation-delay: -2s; width: 5px; height: 5px; }
.mote-5 { left: 53%; --drift: 11px; animation-duration: 11s; animation-delay: -8s; }
.mote-6 { left: 50%; --drift: -6px; animation-duration: 16s; animation-delay: -5s; width: 5px; height: 5px; }

/* 右辅光（香槟金）·中轴 78% */
.mote-7 { left: 75%; --drift: 10px; --mote-color: rgba(255, 240, 205, 0.95); --mote-glow: rgba(244, 201, 93, 0.7); animation-duration: 12s; animation-delay: -4s; }
.mote-8 { left: 81%; --drift: -12px; --mote-color: rgba(255, 240, 205, 0.95); --mote-glow: rgba(244, 201, 93, 0.7); animation-duration: 15s; animation-delay: -10s; width: 3px; height: 3px; }

@keyframes mote-float {
  0% {
    transform: translateY(110%) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  88% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-10%) translateX(var(--drift, 16px));
    opacity: 0;
  }
}

.random-lights {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.12);
  color: #fff8ec;
  font-weight: 800;
  cursor: pointer;
}

.wish-marquee {
  position: relative;
  flex: 1;
  min-height: 260px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wish-marquee::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(255, 248, 236, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px);
  pointer-events: none;
}

.wish-empty {
  position: absolute;
  inset: 0;
  min-height: auto;
}

/* 每条轨道：绝对定位的 flex 行，整体向左平移实现滚动，弹幕本身不动画 */
.wish-lane {
  position: absolute;
  top: 50%;
  left: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  /* 5 条轨道以容器垂直中心为基准上下对称分布，整体略微上移 */
  transform: translateY(calc((var(--lane) - 2) * var(--wish-lane-gap, 64px) + var(--wish-lane-offset, -90px)));
  animation: wish-drift var(--speed) linear infinite;
  will-change: transform;
}

/* 按下时暂停整条轨道飘动，让点赞、删除按钮能稳稳点中；延迟后恢复。 */
.wish-lane.is-touched {
  animation-play-state: paused;
}

.wish-bullet {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 44px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 18px rgba(0, 0, 0, 0.18);
}

.wish-bullet p {
  margin: 0;
  color: #fff8ec;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
}

.wish-bullet .like-button {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  border-color: rgba(244, 201, 93, 0.45);
  background: rgba(244, 201, 93, 0.16);
  color: #f4c95d;
  font-size: 12px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
}

/* 自己发布的心愿：暖金描边加以区分 */
.wish-mine {
  border-color: rgba(255, 229, 138, 0.55);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 244, 214, 0.5),
    0 0 14px rgba(255, 229, 138, 0.28);
}

/* 删除按钮，仅出现在自己发布的弹幕上 */
.wish-delete {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff8ec;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wish-delete:hover,
.wish-delete:focus-visible {
  background: rgba(183, 92, 102, 0.85);
  transform: scale(1.08);
  outline: none;
}

.wish-report-tip {
  position: fixed;
  z-index: 1200;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wish-report-tip[hidden] {
  display: none;
}

.wish-report-tip button {
  display: block;
  min-width: 58px;
  min-height: 30px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  font-size: 13px;
  line-height: 1;
}

@keyframes wish-drift {
  from { transform: translateY(calc((var(--lane) - 2) * var(--wish-lane-gap, 64px) + var(--wish-lane-offset, -90px))) translateX(0); }
  to   { transform: translateY(calc((var(--lane) - 2) * var(--wish-lane-gap, 64px) + var(--wish-lane-offset, -90px))) translateX(var(--scroll)); }
}

#guide-screen,
#guide-screen .guide-module > strong,
#guide-screen .bio-list,
#guide-screen .bio-list li,
#guide-screen .bio-list li b,
#guide-screen .fact-list,
#guide-screen .fact-list li,
#guide-screen .music-timeline,
#guide-screen .music-era time,
#guide-screen .era-card,
#guide-screen .era-card li,
#guide-screen .era-card li b {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
}

.guide-list article {
  padding: 0 0 32px;
}

.guide-list article:last-child {
  padding-bottom: 0;
}

.guide-module {
  display: grid;
  gap: 16px;
}

.guide-module > strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list b {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4efeb;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.bio-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  list-style: none;
}

.bio-list li {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bio-list li.bio-list-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

.bio-list li b {
  display: inline-block;
  min-width: 64px;
  margin-right: 10px;
  color: var(--gold);
  font-weight: 300;
}

.fact-list li b {
  color: var(--ink);
  font-weight: 300;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  list-style: none;
}

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.fact-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.fact-badge.hot {
  background: #fff0e0;
  color: #e06a00;
}

.fact-badge.cold {
  background: #e8f2ff;
  color: #2a6bcc;
}

.music-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.music-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 79px;
  width: 1px;
  background: var(--line);
}

.music-era {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 0;
}

.guide-list .music-era {
  padding: 0;
  border-bottom: 0;
}

.music-era time {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  place-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.era-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.era-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.era-card li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 28px;
}

.era-card li b {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: calc(100% - 48px);
  max-width: 380px;
  padding: 8px 10px;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 5px 0;
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 300;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabbar button span {
  max-width: 100%;
  line-height: 1.1;
  white-space: nowrap;
}

.tabbar .nav-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.25s ease;
}

.tabbar button.active {
  color: #ffffff;
  background: transparent;
}

.tabbar button.active .nav-icon {
  transform: translateY(-2px);
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.tabbar button.active span {
  font-weight: 600;
}

@media (max-width: 360px) {
  .tour-map {
    height: 480px;
  }

  .map-next {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
  }

  .map-next-mascot {
    width: 75px;
    height: 75px;
  }

  .map-city-card {
    gap: 10px;
    height: 160px;
    padding: 16px;
  }

  .map-city-title {
    font-size: 30px;
  }

  .map-city-card-foot > p {
    font-size: 12px;
  }

  .map-city-card-foot,
  .map-city-card-actions {
    gap: 8px;
  }

  .map-city-card-foot {
    align-items: flex-end;
  }

  .map-city-stats-link,
  .map-city-checkin-count {
    max-width: 112px;
    font-size: 16px;
  }

  .map-city-stats-link strong,
  .map-city-checkin-count strong {
    font-size: 16px;
  }

  .map-city-card .checkin {
    min-width: 82px;
    height: 45px;
    padding: 0 14px;
    font-size: 15px;
  }

  .tour-timeline {
    margin-top: 10px;
    padding: 10px 8px 9px;
  }

  .tour-timeline-item {
    width: 74px;
  }

}

/* ── 昵称按钮 ── */
.nickname-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nickname-button:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

/* ── 昵称弹窗 ── */
.nickname-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.nickname-modal[hidden] { display: none; }
.nickname-modal .wish-modal-card input,
.auth-modal .wish-modal-card input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ec;
  font-size: 16px;
  box-sizing: border-box;
}
.nickname-modal .wish-modal-card input::placeholder,
.auth-modal .wish-modal-card input::placeholder {
  color: rgba(255, 248, 236, 0.54);
}
#save-nickname,
#auth-submit {
  background: #fff8ec;
  color: #15120f;
}

.account-inline-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.nickname-logout {
  width: auto;
  min-width: 72px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 236, 0.82);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.account-support-entry {
  color: #5c8fd9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-support-entry:hover {
  color: #7aa6e8;
}

.nickname-logout[hidden],
.account-delete-entry[hidden] {
  display: none;
}

.account-delete-entry {
  width: auto;
  min-width: 72px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 248, 236, 0.62);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.account-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 44;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.account-delete-modal[hidden] {
  display: none;
}

.account-delete-card p {
  margin: 0;
  color: rgba(255, 248, 236, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.account-delete-confirm {
  background: #b91c1c;
  color: #fff8ec;
}

.account-delete-confirm:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-card {
  gap: 10px;
}

.auth-modal-head {
  display: grid;
  gap: 4px;
}

.auth-modal-head p,
.auth-error {
  margin: 0;
  color: rgba(255, 248, 236, 0.68);
  font-size: 13px;
  line-height: 1.4;
}

.auth-error:not(:empty) {
  color: #f3a6a6;
}

.auth-feedback-row {
  display: flex;
  align-items: center;
}

.auth-feedback-row:has(.auth-error:not(:empty)) {
  min-height: 20px;
}

.auth-feedback-row .auth-error {
  min-width: 0;
  flex: 1;
}

.auth-privacy-notice {
  margin: 0;
  color: rgba(255, 248, 236, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-nickname-wrap[hidden] {
  display: none;
}

.auth-forgot[hidden] {
  display: none;
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 86px;
}

.auth-forgot {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7aa6e8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-forgot:hover {
  color: #9bbcf0;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-switch {
  border: 0;
  background: transparent;
  color: rgba(255, 248, 236, 0.78);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-footer-sep {
  color: rgba(255, 248, 236, 0.35);
  font-size: 13px;
}

.auth-privacy-link {
  color: #5c8fd9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-privacy-link:hover {
  color: #7aa6e8;
}

/* ── 涂鸦贴纸 ── */
#doodle-screen .topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  margin: 0 -24px;
  padding: calc(32px + env(safe-area-inset-top)) 24px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8) 72%, rgba(0, 0, 0, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.doodle-publish-entry,
.sticker-publish {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.doodle-back-wall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #ffffff;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 300;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.doodle-back-wall span {
  display: block;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.doodle-back-wall[hidden] {
  display: none;
}

.doodle-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 12px;
  padding: 8px 0 18px;
}

.doodle-wall-card {
  position: relative;
  width: calc((100% - 12px) / 2);
  margin: 0;
}

.doodle-wall-card.mine .doodle-wall-art {
  box-shadow:
    0 10px 24px rgba(64, 55, 45, 0.12),
    0 0 0 2px rgba(244, 201, 93, 0.56);
}

.doodle-wall-card:nth-child(4n + 2) {
  margin-top: 20px;
}

.doodle-wall-card:nth-child(5n + 3) {
  margin-top: -6px;
}

.doodle-wall-card:nth-child(7n + 5) {
  margin-top: 12px;
}

.doodle-wall-card:nth-child(9n + 6) {
  margin-top: 4px;
}

.doodle-wall-art {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform: rotate(var(--tilt));
  transform-origin: center;
  backdrop-filter: blur(4px);
}

.doodle-wall-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.doodle-wall-card footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 0 2px;
  transform: none;
}

.doodle-wall-card footer > span {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doodle-wall-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.doodle-wall-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

.doodle-wall-actions button.liked {
  background: rgba(248, 113, 113, 0.15);
  border-color: var(--rose);
}

.doodle-wall-actions .doodle-wall-delete {
  width: 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.doodle-wall-actions .doodle-wall-delete:hover,
.doodle-wall-actions .doodle-wall-delete:focus-visible {
  background: var(--rose);
  color: #fff8ec;
  outline: none;
}

.doodle-wall-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  /* 父级 .doodle-wall 是 flex 容器，空状态默认只占内容宽度并靠左，
     占满整行后 place-items:center 才能真正水平居中。 */
  flex: 1 0 100%;
  width: 100%;
  min-height: calc(100vh - 240px);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.doodle-wall-empty span {
  font-weight: 300;
  color: var(--muted);
}

.doodle-wall-loading {
  display: grid;
  place-items: center;
  height: 54px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doodle-wall-loading[hidden] {
  display: none;
}

.doodle-maker {
  display: grid;
  gap: 14px;
}

.doodle-pad {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: visible;
  border: 1px solid #e7ded4;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 111, 94, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 111, 94, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  touch-action: none;
}

#doodle-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.doodle-paper-tape {
  position: absolute;
  z-index: 3;
  width: 74px;
  height: 22px;
  border: 1px solid rgba(169, 129, 69, 0.16);
  border-radius: 3px;
  background: rgba(255, 246, 211, 0.78);
  box-shadow: 0 4px 12px rgba(79, 54, 24, 0.08);
  pointer-events: none;
}

.tape-1 {
  top: 12px;
  left: 16px;
  transform: rotate(-8deg);
}

.tape-2 {
  right: 14px;
  bottom: 16px;
  transform: rotate(7deg);
}

.doodle-tools,
.sticker-preview,
.sticker-library {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #ffffff;
  color: #1a1a1a;
}
.sticker-library.is-empty {
  border: none;
  background: none;
}

.doodle-tools {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.doodle-style-row {
  display: grid;
  grid-template-columns: 108px minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
}

.doodle-palette {
  position: relative;
  width: 108px;
  height: 76px;
  min-width: 108px;
  border: 2px solid rgba(64, 55, 45, 0.1);
  border-radius: 56% 48% 52% 44% / 48% 58% 42% 56%;
  background: #ff6f88;
  box-shadow: 0 8px 20px rgba(64, 55, 45, 0.1);
}

.doodle-palette::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: inset 0 0 0 2px rgba(64, 55, 45, 0.08);
  pointer-events: none;
}

.palette-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 3px 8px rgba(64, 55, 45, 0.16);
  cursor: pointer;
}

.palette-dot.active {
  box-shadow:
    0 0 0 3px rgba(26, 26, 26, 0.88),
    0 4px 10px rgba(64, 55, 45, 0.18);
}

.dot-black {
  left: 16px;
  top: 14px;
}

.dot-rose {
  left: 43px;
  top: 10px;
}

.dot-green {
  right: 18px;
  top: 16px;
}

.dot-gold {
  left: 20px;
  bottom: 16px;
}

.dot-blue {
  left: 50px;
  bottom: 18px;
}

.doodle-size {
  display: block;
  min-width: 0;
}

.doodle-size input {
  width: 100%;
  accent-color: var(--accent);
}

@media (max-width: 360px) {
  .doodle-style-row {
    grid-template-columns: 1fr;
  }
}

.doodle-elements-trigger {
  position: absolute;
  right: -24px;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 4px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.2);
}

.doodle-elements-trigger svg {
  display: block;
}

.doodle-media-trigger {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.doodle-media-trigger svg {
  display: block;
}

.doodle-media-modal {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.doodle-media-modal[hidden] {
  display: none;
}

.doodle-media-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.doodle-media-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(100%, 430px);
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.doodle-media-sheet button {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.doodle-media-sheet button:active {
  opacity: 0.8;
}

.doodle-media-sheet .doodle-media-cancel {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  margin-top: 4px;
}

.doodle-elements-panel {
  position: fixed;
  top: 0;
  left: calc(50% + min(50vw, 215px));
  z-index: 35;
  width: min(78vw, 310px);
  max-width: calc(430px - 34px);
  height: 100vh;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(94px + env(safe-area-inset-bottom));
  transform: translateX(0);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: -18px 0 36px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 0.28s ease;
}

.doodle-elements-panel.open {
  transform: translateX(-100%);
}

.doodle-elements-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 100;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.doodle-elements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.doodle-elements button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.doodle-elements img {
  display: block;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  pointer-events: none;
}

.doodle-actions {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  gap: 8px;
}

.doodle-actions button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f0f0f0;
  color: #1a1a1a;
  font-weight: 800;
  cursor: pointer;
}

#doodle-generate {
  background: var(--accent);
  color: #ffffff;
}

.sticker-modal {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sticker-modal[hidden] {
  display: none;
}

.sticker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sticker-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 372px);
  max-height: calc(100vh - 48px);
  padding: 42px 24px 24px;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 20px 54px rgba(64, 55, 45, 0.22);
}

.sticker-modal-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 320px);
  margin-top: 14px;
  margin-right: auto;
  margin-left: auto;
}

.sticker-modal-actions[data-actions="1"] {
  grid-template-columns: 1fr;
}

.sticker-modal-actions[data-actions="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sticker-modal-actions[hidden] {
  display: none;
}

.sticker-delete,
.sticker-save,
.sticker-publish {
  height: 42px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sticker-delete {
  background: #f0f0f0;
  color: #1a1a1a;
}

.sticker-save {
  background: #e0e0e0;
  color: #1a1a1a;
}

.sticker-publish {
  background: var(--accent);
  color: #ffffff;
}

.sticker-preview {
  margin-top: 14px;
}

.sticker-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f4efeb;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sticker-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fffdf8;
}

.sticker-preview img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  filter: drop-shadow(6px 10px 12px rgba(64, 55, 45, 0.16));
}

.sticker-empty {
  text-align: center;
}

.sticker-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.sticker-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sticker-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 120px;
  margin-top: 14px;
  padding: 12px;
}

.sticker-item {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.sticker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: none;
}

.sticker-library-empty {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
}

@media (min-width: 768px) and (min-height: 700px) {
  .app-shell {
    width: min(100vw, 1024px);
  }

  .screen {
    padding-right: 40px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
    padding-left: 40px;
  }

  .section {
    margin-top: 36px;
  }

  .tabbar {
    bottom: calc(34px + env(safe-area-inset-bottom));
    max-width: 700px;
    padding: 10px 18px;
    border-radius: 34px;
  }

  .tabbar button {
    min-height: 58px;
    gap: 5px;
    font-size: 14px;
  }

  .tabbar .nav-icon {
    width: 26px;
    height: 26px;
  }

  #wish-screen .topbar,
  #doodle-screen .topbar {
    padding-right: 40px;
    padding-left: 40px;
  }

  #doodle-screen .topbar {
    margin-right: -40px;
    margin-left: -40px;
  }

  .wish-stage {
    min-height: 100dvh;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .stage-lights {
    height: 520px;
  }

  .stage-light {
    width: 180px;
    height: 470px;
  }

  .light-spot {
    width: 260px;
    height: 560px;
  }

  .stage-art {
    bottom: 190px;
    max-width: 560px;
    height: 300px;
  }

  .stage-floor {
    bottom: 86px;
    height: 160px;
  }

  .floor-pool {
    width: 360px;
    height: 120px;
  }

  .floor-pool-2 {
    width: 440px;
    height: 145px;
  }

  .wish-marquee {
    --wish-lane-gap: 82px;
    --wish-lane-offset: -116px;
    min-height: 520px;
  }

  .wish-lane {
    gap: 44px;
  }

  .wish-bullet {
    min-height: 58px;
    padding: 12px 14px 12px 18px;
    border-radius: 18px;
  }

  .wish-bullet p {
    max-width: 460px;
    font-size: 17px;
  }

  .wish-bullet .like-button {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 15px;
  }

  .wish-delete {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .wish-launch {
    bottom: calc(154px + env(safe-area-inset-bottom));
    width: 90px;
    height: 90px;
    font-size: 54px;
  }

  .doodle-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
    padding-bottom: 34px;
  }

  .doodle-wall-card {
    width: auto;
  }

  .doodle-wall-card:nth-child(n) {
    margin-top: 0;
  }

  .doodle-wall-card:nth-child(6n + 2),
  .doodle-wall-card:nth-child(6n + 5) {
    margin-top: 22px;
  }

  .doodle-wall-card footer > span,
  .doodle-wall-actions button {
    font-size: 14px;
  }

  .doodle-wall-actions button {
    height: 34px;
    padding: 0 12px;
  }

  .doodle-wall-actions .doodle-wall-delete {
    width: 34px;
  }

  .doodle-maker {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
  }

  .doodle-pad {
    max-width: min(100%, calc(100dvh - 238px));
    margin-left: auto;
  }

  .doodle-tools {
    position: sticky;
    top: calc(92px + env(safe-area-inset-top));
    gap: 18px;
    padding: 18px;
  }

  .doodle-style-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .doodle-palette {
    justify-self: center;
    width: 148px;
    height: 104px;
  }

  .palette-dot {
    width: 24px;
    height: 24px;
  }

  .dot-black {
    left: 22px;
    top: 20px;
  }

  .dot-rose {
    left: 58px;
    top: 14px;
  }

  .dot-green {
    right: 26px;
    top: 22px;
  }

  .dot-gold {
    left: 28px;
    bottom: 22px;
  }

  .dot-blue {
    left: 68px;
    bottom: 24px;
  }

  .doodle-actions {
    grid-template-columns: 1fr;
  }

  .doodle-actions button {
    height: 50px;
    font-size: 16px;
  }

  .doodle-publish-entry,
  .sticker-publish,
  .doodle-back-wall {
    height: 46px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 16px;
  }

  .doodle-elements-trigger {
    right: -28px;
    width: 44px;
    height: 44px;
  }

  .doodle-media-trigger {
    width: 48px;
    height: 48px;
  }

  .doodle-elements-panel {
    left: calc(50% + min(50vw, 512px));
    width: min(38vw, 360px);
    max-width: 360px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .doodle-elements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .sticker-library {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
  }
}
