/* ==========================================================================
   Color Pour Quest — Light carnival quest-trail layout
   Unique: right dock nav, orbital hero, zigzag features, fan screenshots
   ========================================================================== */

:root {
  --bg-sky: #e8f4fc;
  --bg-warm: #fff8ee;
  --bg-card: rgba(255, 255, 255, 0.82);
  --text: #1a2b4a;
  --text-muted: #4a5f7a;
  --gold: #ffb800;
  --gold-dark: #e89f00;
  --blue: #2d9cdb;
  --blue-bright: #5bc0eb;
  --pink: #ff6b9d;
  --green: #6bcb77;
  --red: #ff5a5a;
  --purple: #9b59f5;
  --navy: #1e3a5f;
  --white: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow-soft: 0 8px 32px rgba(30, 58, 95, 0.1);
  --shadow-lift: 0 16px 48px rgba(30, 58, 95, 0.14);
  --radius-lg: 24px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --dock-width: 72px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-sky) 0%, #f5fbff 35%, var(--bg-warm) 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Sky backdrop ---- */
.sky-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.sky-layer__sun {
  position: absolute;
  top: 4%;
  right: 12%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9c4, var(--gold) 55%, #ff9f1c);
  box-shadow: 0 0 60px rgba(255, 184, 0, 0.45);
}

.sky-layer__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  filter: blur(1px);
}

.sky-layer__cloud::before,
.sky-layer__cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.sky-layer__cloud--1 {
  width: 120px;
  height: 40px;
  top: 8%;
  left: 8%;
}

.sky-layer__cloud--1::before {
  width: 50px;
  height: 50px;
  top: -24px;
  left: 16px;
}

.sky-layer__cloud--1::after {
  width: 64px;
  height: 64px;
  top: -32px;
  right: 12px;
}

.sky-layer__cloud--2 {
  width: 96px;
  height: 32px;
  top: 14%;
  left: 42%;
  opacity: 0.7;
}

.sky-layer__cloud--3 {
  width: 140px;
  height: 44px;
  top: 6%;
  right: 32%;
  opacity: 0.55;
}

.bunting {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.bunting li {
  flex: 1;
  max-width: 48px;
  height: 28px;
  margin-top: 6px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.85;
}

.bunting li:nth-child(5n + 1) { background: var(--red); }
.bunting li:nth-child(5n + 2) { background: var(--gold); }
.bunting li:nth-child(5n + 3) { background: var(--blue); }
.bunting li:nth-child(5n + 4) { background: var(--green); }
.bunting li:nth-child(5n + 5) { background: var(--pink); }

.balloon-field {
  position: absolute;
  inset: 0;
}

.balloon {
  position: absolute;
  width: 36px;
  height: 46px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.55;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(30, 58, 95, 0.25);
  transform: translateX(-50%);
}

.balloon--red { background: var(--red); top: 18%; left: 6%; }
.balloon--gold { background: var(--gold); top: 24%; right: 8%; }
.balloon--blue { background: var(--blue-bright); top: 32%; left: 14%; }
.balloon--green { background: var(--green); top: 12%; right: 22%; }
.balloon--pink { background: var(--pink); top: 28%; right: 16%; }

/* ---- Quest pour path ---- */
.quest-path {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 18vw);
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.quest-path__line {
  fill: none;
  stroke: url(#pathGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
}

/* ---- Dock navigation ---- */
.dock-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  transition: transform var(--transition);
}

.dock-nav.is-scrolled .dock-nav__brand {
  box-shadow: var(--shadow-lift);
}

.dock-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.dock-nav__brand:hover {
  transform: translateY(-1px);
}

.dock-nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.12);
}

.dock-nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-nav__rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-soft);
}

.dock-nav__bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(45, 156, 219, 0.2);
  color: var(--blue);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.dock-nav__bubble span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.dock-nav__bubble svg {
  width: 22px;
  height: 22px;
}

.dock-nav__bubble:hover,
.dock-nav__bubble:focus-visible {
  background: var(--blue-bright);
  border-color: var(--blue);
  color: var(--white);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(45, 156, 219, 0.35);
}

.dock-nav__bubble--cta {
  background: linear-gradient(135deg, var(--gold), #ff9f1c);
  border-color: var(--gold-dark);
  color: var(--white);
}

.dock-nav__bubble--cta:hover,
.dock-nav__bubble--cta:focus-visible {
  background: linear-gradient(135deg, #ffc933, var(--gold));
  border-color: var(--gold-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.dock-nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  color: var(--navy);
  place-items: center;
}

.dock-nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.btn--store {
  background: var(--white);
  color: var(--navy);
  border: 2px solid rgba(30, 58, 95, 0.12);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn--store small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
}

.btn--store:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--blue-bright);
}

.btn--store-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--store-dark:hover {
  background: #2a4d7a;
}

.btn--stall {
  background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
  color: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 4px 0 var(--blue), var(--shadow-soft);
  min-width: 160px;
}

.btn--stall:hover {
  box-shadow: 0 6px 0 var(--blue), var(--shadow-lift);
}

.btn--stall-alt {
  background: linear-gradient(180deg, var(--gold) 0%, #ff9f1c 100%);
  color: var(--white);
  border-color: #ffe08a;
  box-shadow: 0 4px 0 #c97d00, var(--shadow-soft);
}

.btn--stall-alt:hover {
  box-shadow: 0 6px 0 #c97d00, var(--shadow-lift);
}

/* ---- Hero orbital section ---- */
.hero-orbit {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  padding-right: calc(1.5rem + var(--dock-width));
  text-align: center;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit__ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.orbit-bottle {
  position: absolute;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 16px rgba(30, 58, 95, 0.15));
  opacity: 0.7;
}

.orbit-bottle::before {
  content: "";
  width: 14px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(45, 156, 219, 0.3);
  border-radius: 4px 4px 0 0;
}

.orbit-bottle span {
  display: block;
  width: 100%;
  height: 10px;
  border-left: 2px solid rgba(45, 156, 219, 0.25);
  border-right: 2px solid rgba(45, 156, 219, 0.25);
}

.orbit-bottle span:first-of-type {
  border-radius: 0 0 4px 4px;
}

.orbit-bottle span:last-of-type {
  border-radius: 0 0 8px 8px;
  border-bottom: 2px solid rgba(45, 156, 219, 0.25);
}

.orbit-bottle--1 { top: 18%; left: 10%; transform: rotate(-12deg); }
.orbit-bottle--1 span:nth-child(2) { background: var(--green); }
.orbit-bottle--1 span:nth-child(3) { background: var(--blue-bright); }
.orbit-bottle--1 span:nth-child(4) { background: var(--gold); }

.orbit-bottle--2 { top: 28%; right: 14%; transform: rotate(8deg); }
.orbit-bottle--2 span:nth-child(2) { background: var(--pink); }
.orbit-bottle--2 span:nth-child(3) { background: var(--red); }

.orbit-bottle--3 { bottom: 28%; left: 8%; transform: rotate(6deg); }
.orbit-bottle--3 span:nth-child(2) { background: var(--blue); }
.orbit-bottle--3 span:nth-child(3) { background: var(--gold); }
.orbit-bottle--3 span:nth-child(4) { background: var(--green); }
.orbit-bottle--3 span:nth-child(5) { background: var(--pink); }

.orbit-bottle--4 { bottom: 22%; right: 10%; transform: rotate(-6deg); }
.orbit-bottle--4 span:nth-child(2) { background: var(--purple); }
.orbit-bottle--4 span:nth-child(3) { background: var(--blue-bright); }

.orbit-bottle--5 { top: 42%; left: 4%; transform: rotate(-4deg); opacity: 0.45; }
.orbit-bottle--5 span:nth-child(2) { background: var(--red); }
.orbit-bottle--5 span:nth-child(3) { background: var(--gold); }
.orbit-bottle--5 span:nth-child(4) { background: var(--green); }

.hero-orbit__core {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-orbit__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.hero-orbit__eyebrow svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.hero-orbit__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 0.35em;
}

.title-chunk {
  display: inline-block;
  padding: 0.05em 0.2em;
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
  text-shadow:
    0 3px 0 rgba(30, 58, 95, 0.15),
    0 0 24px rgba(255, 255, 255, 0.6);
}

.title-chunk--gold {
  background: linear-gradient(180deg, #ffe566 0%, var(--gold) 50%, #e89f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #c97d00);
}

.title-chunk--blue {
  background: linear-gradient(180deg, #8ee4ff 0%, var(--blue-bright) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #1a7ab0);
}

.title-chunk--pink {
  background: linear-gradient(180deg, #ffb3cc 0%, var(--pink) 50%, #e84d82 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #c43d6a);
}

.hero-orbit__lead {
  margin: 0 auto 1.75rem;
  max-width: 540px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-orbit__visual {
  margin-bottom: 1.75rem;
}

.hero-orbit__banner {
  margin-inline: auto;
  max-width: min(560px, 92vw);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 3px solid var(--white);
}

.hero-orbit__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-orbit__drip {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg-warm);
  clip-path: ellipse(55% 100% at 50% 100%);
  opacity: 0.6;
}

/* ---- Section headers ---- */
.section-head {
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
}

.section-head__tag {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.9rem;
  background: rgba(255, 184, 0, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #b87a00;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-head__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--navy);
}

.section-head__desc {
  margin: 0;
  max-width: 560px;
  color: var(--text-muted);
}

.section-head--center .section-head__desc {
  margin-inline: auto;
}

/* ---- Zigzag feature trail ---- */
.quest-stops {
  padding: 5rem 0;
  padding-right: calc(1rem + var(--dock-width));
}

.zigzag-trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.zigzag-card {
  position: relative;
  display: flex;
  width: min(520px, 100%);
}

.zigzag-card--left {
  align-self: flex-start;
  margin-left: 0;
}

.zigzag-card--right {
  align-self: flex-end;
  margin-right: 0;
}

.zigzag-card__pin {
  position: absolute;
  top: -12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #ff9f1c);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.zigzag-card--left .zigzag-card__pin { right: -8px; }
.zigzag-card--right .zigzag-card__pin { left: -8px; }

.zigzag-card__glass {
  flex: 1;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.zigzag-card__glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.zigzag-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.zigzag-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.zigzag-card__icon--blue { background: linear-gradient(135deg, var(--blue-bright), var(--blue)); }
.zigzag-card__icon--gold { background: linear-gradient(135deg, #ffd54f, var(--gold)); }
.zigzag-card__icon--pink { background: linear-gradient(135deg, #ff9ec0, var(--pink)); }
.zigzag-card__icon--green { background: linear-gradient(135deg, #8ee4a0, var(--green)); }

.zigzag-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.zigzag-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Screenshot showcase (spotlight + thumbnail rail) ---- */
.gallery-stage {
  padding: 4rem 1rem 5rem;
  padding-right: calc(1rem + var(--dock-width));
}

.gallery-stage__layout {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  --gallery-frame-half: min(160px, 39vw);
  --gallery-dock-offset-factor: -0.1;
}

.gallery-stage__spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
  transform: translateX(calc(var(--dock-width) * var(--gallery-dock-offset-factor)));
}

.gallery-stage__frame {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0f1a2e;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-lift);
}

.gallery-stage__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(45, 156, 219, 0.15);
  pointer-events: none;
  z-index: 2;
}

.gallery-stage__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.gallery-stage__shot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-stage__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(320px, 78vw);
  margin-top: 1rem;
}

.gallery-stage__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(45, 156, 219, 0.2);
  color: var(--blue);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}

.gallery-stage__arrow svg {
  width: 22px;
  height: 22px;
}

.gallery-stage__arrow:hover,
.gallery-stage__arrow:focus-visible {
  background: var(--blue-bright);
  border-color: var(--blue);
  color: var(--white);
}

.gallery-stage__counter {
  margin: 0;
  min-width: 3.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.gallery-stage__rail {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--dock-width) * var(--gallery-dock-offset-factor) + var(--gallery-frame-half, 160px) + 1.25rem + 50px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 132px;
}

.gallery-stage__thumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.gallery-stage__thumb img {
  width: 42px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid var(--white);
}

.gallery-stage__thumb-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
  transition: color var(--transition);
}

.gallery-stage__thumb:hover,
.gallery-stage__thumb:focus-visible {
  border-color: rgba(45, 156, 219, 0.35);
  background: var(--white);
}

.gallery-stage__thumb.is-active {
  border-color: var(--blue-bright);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(91, 192, 235, 0.25), var(--shadow-soft);
}

.gallery-stage__thumb.is-active .gallery-stage__thumb-label {
  color: var(--navy);
}

/* ---- Carnival stall download ---- */
.stall-cta {
  position: relative;
  padding: 0 1rem 5rem;
  padding-right: calc(1rem + var(--dock-width));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stall-cta__awning {
  display: flex;
  width: min(480px, 92vw);
  height: 32px;
  margin-bottom: -4px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.stall-cta__awning span {
  flex: 1;
}

.stall-cta__awning span:nth-child(odd) { background: var(--red); }
.stall-cta__awning span:nth-child(even) { background: var(--white); }

.stall-cta__counter {
  width: min(520px, 92vw);
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
  border: 3px solid var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.stall-cta__sign {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 1.25rem;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  border-radius: 6px;
  transform: rotate(-2deg);
}

.stall-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
}

.stall-cta__desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.stall-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---- Footer ---- */
.site-footer {
  padding: 2rem 1rem;
  background: rgba(30, 58, 95, 0.06);
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: color var(--transition);
  cursor: pointer;
}

.site-footer__links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ---- Modal ---- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 74, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 2rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #ff9f1c);
  border-radius: 50%;
  color: var(--white);
}

.modal__icon svg {
  width: 32px;
  height: 32px;
}

.modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.modal__text {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal__btn {
  width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .gallery-stage__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .gallery-stage__spotlight {
    transform: none;
  }

  .gallery-stage__rail {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    gap: 0.5rem;
  }

  .gallery-stage__thumb {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    width: auto;
    min-width: 72px;
    padding: 0.5rem;
    text-align: center;
    scroll-snap-align: center;
  }

  .gallery-stage__thumb-label {
    font-size: 0.7rem;
  }

  .orbit-bottle {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --dock-width: 0px;
  }

  .dock-nav {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .dock-nav__name {
    display: none;
  }

  .dock-nav__rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    padding: 4.5rem 1.25rem 1.5rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 110;
  }

  .dock-nav__rail.is-open {
    transform: translateX(0);
  }

  .dock-nav__bubble {
    width: 100%;
    height: auto;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .dock-nav__bubble span {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    font-weight: 600;
    font-size: 1rem;
  }

  .dock-nav__toggle {
    display: grid;
  }

  .hero-orbit,
  .quest-stops,
  .gallery-stage,
  .stall-cta {
    padding-right: 1.5rem;
  }

  .zigzag-card {
    width: 100%;
    align-self: stretch !important;
  }

  .zigzag-card--left .zigzag-card__pin,
  .zigzag-card--right .zigzag-card__pin {
    left: 1rem;
    right: auto;
    top: -14px;
  }
}

@media (max-width: 480px) {
  .hero-orbit__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--store {
    justify-content: center;
    text-align: center;
  }

  .btn--store span {
    align-items: center;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .quest-path__line {
    stroke-dasharray: none;
  }

  .gallery-stage__shot {
    transition: none;
  }
}
