.home-page .pickup {
  margin-top: 23px;
  width: 100%;
  border: 1px solid #f9aedb9c;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(130deg, #502f6199, #0b223ad9);
  box-shadow:
    0 0 0 3px #ec69ba20,
    0 8px 25px #08182b26;
  backdrop-filter: blur(12px);
  color: white;
}
.pickup h2 {
  display: inline-block;
  margin: 0 0 11px;
  font-size: 13px;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border-radius: 20px;
  background: linear-gradient(110deg, #127bdf, #6944e7);
}
.pickup-stage {
  display: grid;
}
.pickup-slide {
  grid-area: 1 / 1;
}
.pickup-slide[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}
.pickup-slide:not([hidden]) {
  animation: pickup-in 0.4s ease-out;
}
.pickup-slide a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  min-height: 118px;
}
.pickup-slide img {
  width: 36%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #07182b;
  flex-shrink: 0;
}
.pickup-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.pickup-copy small {
  color: #e5ccfc;
  font-size: 10px;
}
.pickup-copy strong {
  font-size: clamp(13px, 3.6vw, 17px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pickup-copy > span {
  font-size: 11px;
  line-height: 1.6;
  color: #e1e8f3;
}
.pickup-arrow {
  font-size: 26px;
}
.pickup-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}
.pickup-controls[hidden] {
  display: none;
}
.pickup-controls button {
  border: 0;
  min-width: 32px;
  min-height: 36px;
  background: transparent;
  color: white;
  cursor: pointer;
  border-radius: 9px;
  font: inherit;
  font-size: 22px;
}
.pickup-controls [data-pickup="pause"] {
  font-size: 11px;
  padding: 0 8px;
}
.pickup-dots {
  display: flex;
}
.pickup-dots button {
  position: relative;
}
.pickup-dots button:after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 50%;
  background: #ffffff60;
}
.pickup-dots button[aria-current="true"]:after {
  width: 18px;
  border-radius: 6px;
  background: #fff;
}
.pickup-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.home-page .pickup + .activities {
  margin-top: 16px;
}
@keyframes pickup-in {
  from {
    opacity: 0.3;
    transform: translateX(9px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pickup-slide:not([hidden]) {
    animation: none;
  }
}
@media (max-width: 359px) {
  .home-page .pickup {
    padding: 11px;
  }
  .pickup-slide a {
    gap: 9px;
  }
  .pickup-copy > span {
    font-size: 10px;
  }
}
/* Compact pickup: keep its full width and put controls beside the label. */
.home-page .pickup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 16px;
}
.pickup h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.pickup-controls {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
}
.pickup-controls button {
  min-width: 26px;
  min-height: 32px;
  font-size: 19px;
}
.pickup-controls [data-pickup="pause"] {
  padding: 0 4px;
  font-size: 10px;
}
.pickup-stage {
  grid-column: 1 / -1;
}
.pickup-slide a {
  min-height: 72px;
  gap: 10px;
}
.pickup-slide img {
  width: 29%;
  max-height: 76px;
  aspect-ratio: 4 / 3;
}
.pickup-copy {
  gap: 3px;
}
.pickup-copy strong {
  font-size: 13px;
  line-height: 1.4;
}
.pickup-copy small {
  font-size: 9px;
}
.pickup-copy > span {
  font-size: 10px;
  line-height: 1.4;
}
.pickup-arrow {
  font-size: 22px;
}
.home-page .pickup + .activities {
  margin-top: 12px;
}

/* Fit the complete Home composition to the available portrait viewport.
   Use min-height instead of clipping so small screens and large text can scroll. */
@media (orientation: portrait), (min-width: 540px) {
  .home-page .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(12px, 3svh, 30px));
  }
  .home-page .hero-message {
    font-size: clamp(21px, 3.3svh, 29px);
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .home-page .avatar {
    width: clamp(50px, 7.5svh, 68px);
    height: clamp(50px, 7.5svh, 68px);
  }
  .home-page .profile h1 {
    font-size: clamp(28px, 4.3svh, 36px);
    margin: 5px 0;
  }
  .home-page .introduction {
    font-size: 11px;
    line-height: 1.55;
  }
  .home-page .good-life {
    top: 12px;
    font-size: 17px;
  }
  .home-page .activity {
    min-height: 72px;
    height: clamp(72px, 10svh, 92px);
    aspect-ratio: auto;
    gap: 6px;
  }
  .home-page .activity svg {
    width: 30px;
    height: 30px;
  }
  .home-page .activity-label {
    font-size: 11px;
  }
  .home-page .footer {
    padding-top: clamp(16px, 3svh, 28px);
    padding-bottom: 10px;
  }
  .home-page .social {
    gap: 4px;
  }
  .home-page .social svg {
    width: 44px;
    height: 44px;
    padding: 9px;
  }
  .home-page .status-button {
    min-height: 36px;
    margin-top: 10px;
  }
  .home-page .copyright {
    margin-top: 9px;
  }
}
@media (max-height: 680px) and (orientation: portrait) {
  .home-page .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  }
  .home-page .hero-message {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .home-page .avatar {
    width: 46px;
    height: 46px;
  }
  .home-page .pickup {
    margin-top: 9px;
  }
  .home-page .footer {
    padding-top: 12px;
  }
  .home-page .social svg {
    width: 38px;
    height: 38px;
    padding: 7px;
  }
}
