* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  color: #3a2a2a;
  margin: 0;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem;
  overflow: hidden;
}

.scenery {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.scenery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.walker {
  position: absolute;
  bottom: 6px;
  width: 170px;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: left 1s linear, right 1s linear;
}

.walker-together {
  left: 50%;
  transform: translateX(-50%);
  width: 232px;
  display: none;
}

.content-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.heart {
  color: #e0556f;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
}

.countdown-unit .value {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.countdown-unit .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.subtitle {
  margin: 1.5rem 0 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.85;
}

.debug-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(90vw, 20rem);
}

.debug-btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #3a2a2a;
  cursor: pointer;
}

.debug-readout {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .hero {
    justify-content: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .scenery {
    position: relative;
    inset: auto;
    width: 100%;
    order: 2;
  }

  .scenery-img {
    height: auto;
  }

  .walker {
    width: 47px;
    bottom: 11%;
  }

  .walker-together {
    width: 64px;
  }

  .content-wrap {
    display: contents;
  }

  .countdown-card {
    order: 1;
    width: 100%;
    max-width: 32rem;
    background: #fdfaf7;
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 5vw, 2rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
  }

  .subtitle {
    order: 3;
    margin: 0;
    max-width: 32rem;
  }
}
