html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.af {
  position: relative;
  width: 100%;
  height: 100%;
}

.af__viewport {
  position: absolute;
  inset: 0;
}

.af__trigger {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.95);
  color: #17141a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.af__trigger--low {
  bottom: 14px;
}

.af__trigger--high {
  top: 14px;
}

.af__panel {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.97);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: translate(-50%, var(--ty, 0)) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease-out;
}

.af__panel--below {
  --ty: -8px;
}

.af__panel--above {
  --ty: 8px;
}

.af__panel--open {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.af__pick {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 340px) {
  .af__panel {
    gap: 4px;
    padding: 4px;
  }
  .af__pick {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .af__panel {
    transition: none;
  }
}
