*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #111112;
  color: #f2f2f2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Full-screen stage; reserves 100svh before anything loads. */
.can-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #3a3a3c 0%, #232325 45%, #121213 100%);
  outline: none;
}
.can-carousel:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

.can-carousel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y pinch-zoom; /* keep native vertical scroll + pinch zoom */
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.can-carousel.is-dragging canvas { cursor: grabbing; }

.controls {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px;
  border-radius: 28px;
  background: rgba(18, 18, 20, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dots { display: flex; align-items: center; }

.ctl, .dot {
  appearance: none;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ctl { width: 44px; height: 44px; }
.dot { width: 30px; height: 44px; border-radius: 12px; }

.ctl:hover:not(:disabled), .dot:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.ctl:focus-visible, .dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ctl:disabled, .dot:disabled { opacity: 0.4; cursor: default; }

.dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}
.dot[aria-pressed="true"]::before { background: #fff; border-color: #fff; }

.ctl[data-pause] .i-play { display: none; }
.ctl[data-pause][aria-pressed="true"] .i-play { display: block; }
.ctl[data-pause][aria-pressed="true"] .i-pause { display: none; }

.status {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  transform: translateY(-50%);
  margin: 0 auto;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.5;
  color: #e6e6e6;
  text-align: center;
  overflow-wrap: anywhere;
}
.status ul { margin: 8px 0 0; padding: 0; list-style: none; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .controls { gap: 2px; padding: 4px; }
  .ctl { width: 40px; height: 44px; }
  .dot { width: 26px; }
}

/* ------------------------------------------------ promo code (checkout) */
.promo-row { display: flex; gap: 8px; align-items: center; margin: 14px 0 4px; flex-wrap: wrap; }
.promo-row input { flex: 1 1 140px; min-width: 0; }
.promo-row.is-on { justify-content: space-between; }
.promo-code { font-weight: 700; letter-spacing: .04em; }
.promo-save { color: var(--ok, #3ddc97); }
