:root {
  color-scheme: light;
  --navy: #062d69;
  --blue: #0a58a8;
  --gold: #f5bd25;
  --red: #c91829;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(53, 142, 230, .45), transparent 46%),
    linear-gradient(145deg, #031a42, var(--navy) 52%, #020d22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
}

.carousel {
  position: relative;
  width: min(92vw, 760px);
  padding-bottom: 52px;
}

.viewport {
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 30px);
  background: white;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .4);
  touch-action: pan-y pinch-zoom;
}

.track {
  display: flex;
  transition: transform 480ms cubic-bezier(.22,.8,.3,1);
}

.slide {
  min-width: 100%;
  margin: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.arrow {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: white;
  background: rgba(3, 31, 72, .82);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  font-size: 42px;
  line-height: 42px;
  cursor: pointer;
}

.arrow:hover, .arrow:focus-visible { background: var(--red); outline: 3px solid var(--gold); }
.previous { left: -72px; }
.next { right: -72px; }

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid white;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.dot.active { width: 34px; background: var(--gold); border-color: var(--gold); }

.hint {
  position: absolute;
  right: 0;
  bottom: 11px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

@media (max-width: 920px) {
  .carousel { width: min(94vw, 720px); }
  .arrow { width: 46px; height: 46px; font-size: 36px; background: rgba(3,31,72,.72); }
  .previous { left: 10px; }
  .next { right: 10px; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
}
