/* ---------- Hero ---------- */
.hero-painting {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background-image:
    linear-gradient(180deg, rgba(10, 17, 40, 0.2) 0%, rgba(10, 17, 40, 0.35) 70%, var(--night-deep) 100%),
    url("../assets/starry-night.jpg");
  background-size: cover;
  background-position: center 35%;
}

@media (min-width: 1024px) {
  .hero-painting { background-attachment: fixed; }
}

.hero-painting .hero-kicker {
  color: var(--accent-soft);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-painting h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0 0 18px;
  color: var(--star);
  text-shadow: 0 4px 30px rgba(0,0,0,0.7), 0 1px 0 rgba(0,0,0,0.4);
  line-height: 1.08;
}

.hero-painting p.tagline {
  max-width: 560px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto 36px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue span {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Section shell ---------- */
.section {
  padding: 110px 0 40px;
  scroll-margin-top: 70px;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .kicker {
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  color: var(--accent-soft);
  margin: 0;
}

/* ---------- About: chat bubbles ---------- */
.chat-card {
  max-width: 560px;
  margin: 0 auto;
}
.chat-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}
.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.chat-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(240,201,58,0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.chat-name-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-stamp {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  margin: 22px 0 6px;
  opacity: 0.7;
}
.chat-stamp:first-child { margin-top: 0; }

.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: relative;
}
.bubble {
  background: #ececed;
  color: #17181c;
  padding: 11px 16px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  font-size: 0.97rem;
  line-height: 1.5;
  max-width: 82%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.bubble.tinted {
  background: linear-gradient(155deg, #2f6fb0, #1c4a8f);
  color: #f4f7ff;
}
.bubble-reaction {
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3f7fd6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 2px solid var(--night-deep);
}

.chat-closer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 40px;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

/* ---------- Journey (constellation) ---------- */
.journey-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  height: 700px;
}
.journey-svg { width: 100%; height: 100%; overflow: visible; }
.journey-path {
  fill: none;
  stroke: rgba(246, 240, 200, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}
.journey-path-glow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(240,201,58,0.8));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.journey-comet {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.9)) drop-shadow(0 0 18px rgba(240,201,58,0.7));
}

.journey-stop {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 200px;
}
.journey-stop .stop-photo {
  width: 128px;
  height: 128px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(240,201,58,0.15), 0 0 32px rgba(240,201,58,0.8), 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  z-index: 2;
}
.journey-stop .stop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.journey-stop .stop-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: rgba(8, 12, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(240,201,58,0.15);
}
.journey-stop .city-name {
  font-family: Georgia, serif;
  color: var(--star);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.journey-stop .city-desc {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .journey-wrap { height: 860px; }
  .journey-stop { width: 180px; }
}

/* ---------- Coffee section ---------- */
.coffee-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 10px;
}
.coffee-frame {
  width: min(520px, 88vw);
  aspect-ratio: 4/3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #0b0d1e;
  box-shadow: 0 25px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(240,201,58,0.08);
  position: relative;
}
.coffee-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coffee-caption { margin-top: 24px; text-align: center; }
.coffee-caption .level-num {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  color: var(--accent-soft);
  line-height: 1;
}
.coffee-caption .level-label {
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 6px;
}
.slider-dock { max-width: 640px; margin: 30px auto 0; padding: 0 24px 60px; }
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 6px rgba(240,201,58,0.18), 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: none;
  box-shadow: 0 0 0 6px rgba(240,201,58,0.18);
  cursor: pointer;
}

/* ---------- Floating media player ---------- */
#media-player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 16, 36, 0.68);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  max-width: calc(100vw - 24px);
}
#media-player .mp-art {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}
#media-player .mp-art img {
  width: 100%; height: 100%; object-fit: cover;
  animation: spin 8s linear infinite;
  animation-play-state: paused;
}
#media-player.playing .mp-art img { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

#media-player .mp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#media-player .mp-title {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
#media-player .mp-artist {
  font-size: 0.72rem;
  color: var(--text-dim);
}
#media-player .mp-progress {
  width: 90px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
  display: none;
}
#media-player .mp-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
}
#media-player .mp-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
#media-player button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  opacity: 0.85;
}
#media-player button:hover { opacity: 1; }
#media-player .mp-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1200;
}
#media-player .mp-play:hover { background: var(--accent-soft); }

@media (max-width: 480px) {
  #media-player { left: 12px; right: 12px; transform: none; padding: 7px 14px 7px 7px; }
  #media-player .mp-title { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Hidden clues (scavenger hunt) ---------- */
.clue-spark {
  position: absolute;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(246, 240, 200, 0.28);
  animation: clue-twinkle 3.2s ease-in-out infinite;
  z-index: 5;
  padding: 0;
}
.clue-spark:hover,
.clue-spark:focus-visible {
  color: rgba(246, 240, 200, 0.75);
}
.clue-spark.found {
  color: var(--accent);
  animation: none;
  text-shadow: 0 0 10px rgba(240,201,58,0.9);
}
@keyframes clue-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* Clue 1 — the brightest star, floating near her profile */
.clue-star-bright {
  position: absolute;
  width: 9px;
  height: 9px;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf2 0%, #fef4a4 40%, rgba(254,244,164,0.3) 68%, transparent 76%);
  box-shadow: 0 0 9px 3px rgba(254,244,164,0.85), 0 0 18px 6px rgba(254,244,164,0.35);
  animation: bright-pulse 2.6s ease-in-out infinite;
  z-index: 5;
}
.clue-star-bright::before {
  /* invisible larger hit area so it stays easy to tap */
  content: "";
  position: absolute;
  inset: -9px;
}
.clue-star-bright.found {
  animation: none;
  box-shadow: 0 0 12px 4px rgba(240,201,58,1), 0 0 24px 9px rgba(240,201,58,0.55);
}
@keyframes bright-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
#clue-about { top: -34px; right: -20px; }

/* Clue 2 — a paw print, tucked on the Bangalore photo */
#clue-journey { top: 6px; right: 6px; font-size: 0.9rem; }

#clue-coffee { top: 10px; right: 10px; }

.clue-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 7, 20, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.clue-popup-backdrop.show { display: flex; }
.clue-popup {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 34px 30px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}
.clue-popup .clue-emoji { font-size: 2rem; margin-bottom: 10px; }
.clue-popup .clue-riddle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
}
.clue-popup .clue-fragment {
  font-family: Georgia, serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--accent-soft);
  margin: 10px 0 14px;
}
.clue-popup .clue-note {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}
.clue-popup button {
  margin-top: 20px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-soft);
  padding: 9px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}
.clue-popup button:hover { background: var(--accent); color: #1a1200; }
