/* css/timemachine.css — drifting, bouncing bubbles of the week's people */
.timemachine {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.tm-header {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px var(--rose-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  align-self: center;
  margin-bottom: auto;
}

.tm-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.tm-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  opacity: 0.75;
  margin: 0.3rem 0 0;
}

/* The stage is the whole viewport; bubbles are positioned within it by JS. */
.tm-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.tm-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tm-bubble img {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px var(--rose-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.tm-bubble:hover img,
.tm-bubble:focus-visible img {
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(139, 47, 74, 0.25);
}

.tm-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.timemachine .btn.js-back {
  position: relative;
  z-index: 2;
}
