#hero { position: relative; }

/* One black shape, clipped to the 92×32 pill; opening unclips it around the time, like Monio. */
.island { position: absolute; z-index: 2; top: 12px; left: 50%; width: min(420px, 100vw - 32px); translate: -50% 0; animation: drop 620ms var(--ease-drawer) 250ms both; }
@keyframes drop { from { transform: translateY(-48px); } }
.island .shape { position: relative; padding: 44px 18px 18px; border-radius: 26px; background: var(--black); color: var(--on-night); overscroll-behavior: contain;
  clip-path: inset(0 calc(50% - 46px) calc(100% - 32px) calc(50% - 46px) round 16px); transition: clip-path 240ms var(--ease-out); }
.island.open .shape { clip-path: inset(0 round 26px); transition: clip-path 420ms var(--ease-drawer); }
.island .time { position: absolute; top: 0; left: 50%; width: 92px; height: 32px; translate: -50% 0; border: 0; border-radius: 16px; background: none; font-size: 15px; font-weight: 500; cursor: pointer; transition: scale 160ms var(--ease-out); }
.island .time:active { scale: 0.97; }
.island .time:focus-visible { outline-offset: -3px; } /* the closed clip-path would hide an outside ring */
.island .head { margin: 0 6px 6px; font-size: 13px; color: var(--on-night-muted); opacity: 0; transition: opacity 120ms var(--ease-out); }
/* rows radius 8 = panel radius 26 minus padding 18 */
.island .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: var(--night-raised); font-size: 14px; opacity: 0; transform: translateY(-6px); transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out); }
.island .row span:last-child { color: var(--on-night-muted); }
.island.open .head { opacity: 1; transition: opacity 200ms var(--ease-out) 120ms; }
.island.open .row { opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out); }
.island.open .row:nth-of-type(1) { transition-delay: 150ms; }
.island.open .row:nth-of-type(2) { transition-delay: 190ms; }
.island.open .row:nth-of-type(3) { transition-delay: 230ms; }
.island.instant .shape, .island.instant .head, .island.instant .row { transition-duration: 0s; transition-delay: 0s; }

#hero .hint { position: absolute; top: 56px; left: 50%; translate: -50% 0; font-size: 12px; color: var(--muted); white-space: nowrap; transition: opacity 150ms var(--ease-out); }
#hero.island-open .hint { opacity: 0; visibility: hidden; transition: opacity 150ms var(--ease-out), visibility 0s 150ms; }

/* Phones: the top bar fills the first row, so the island sits just under it. */
@media (max-width: 767px) {
  .island { top: 60px; }
  #hero .hint { top: 102px; }
  #hero h1 { margin-top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .island { animation: none; }
  .island .shape, .island.open .shape { transition-duration: 0s; }
  .island .row { transform: none; }
}
