:root {
  --app-height: 100dvh;
  --app-bleed-height: 100lvh;
  --app-max-width: 480px;
  --browser-bleed-bottom: 0px;
  --system-bg: #2178de;
  --event-system-bg: #2b437f;
  --sky: #2178de;
  --sky-deep: #20a8f3;
  --sun: #ffe179;
  --navy: #1d4f8f;
  --ink: #12345d;
  --white: #fff;
  --cream: #fff6d9;
  --orange: #ff9e2d;
  --orange-dark: #f07818;
  --green: #44cf83;
  --red: #ff5d62;
  --blue: #3b8dff;
  --shadow: 0 20px 50px rgba(24, 86, 140, 0.22);
  --downtown-art-url: url("assets/optimized-mobile-v1/downtown-city-test.webp?v=4781be80b9c2f332");
  /* Sampled from the visible sky and the last 20 rows of the city artwork. */
  --downtown-sky-bg: #1582f2;
  --downtown-ground-bg: #324e47;
  --downtown-map-y: center;
  --downtown-map-shift-y: 0px;
  --downtown-top-crop: clamp(56px, 8vh, 92px);
  --downtown-art-ratio: calc(1945 / 809);
  --downtown-art-height: calc(min(100vw, var(--app-max-width)) * var(--downtown-art-ratio));
  --downtown-page-height: max(calc(var(--app-bleed-height) + 2px), calc(var(--downtown-art-height) - var(--downtown-top-crop)));
  --downtown-bg-height: calc(var(--downtown-page-height) + max(30vh, 260px));
}


* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: var(--app-height);
  margin: 0;
  scroll-behavior: smooth;
  background: var(--system-bg);
}

body {
  min-height: var(--app-height);
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  background: var(--system-bg);
}

body:not(.is-welcome) {
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
}

button,
input,
textarea,
select {
  font-family: "Plus Jakarta Sans", sans-serif;
}

button {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Shared accessibility utility, required even without the Pawssport bundle. */
.pawssport-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.is-welcome {
  height: var(--app-height);
  min-height: var(--app-height);
  overflow: hidden;
  overscroll-behavior: none;
  background: #7ac1fa;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  min-height: var(--app-height);
  content: "";
  background: #7ac1fa;
  pointer-events: none;
}

body.is-welcome::before {
  background: #7ac1fa url("assets/optimized-mobile-v1/welcome-landing-bg.webp?v=350974150333a726") center center / 100% 100% no-repeat;
}

body.is-downtown {
  min-height: var(--downtown-page-height);
  overflow-y: visible;
  overflow-x: clip;
  overscroll-behavior: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  background: var(--downtown-art-url) center calc(-1 * var(--downtown-top-crop)) / 100% var(--downtown-bg-height) no-repeat !important;
  background-color: var(--downtown-ground-bg) !important;
}

body.is-downtown:not(.is-location) {
  min-height: max(var(--downtown-page-height), calc(var(--app-bleed-height) + 96px));
}

/* Keep the edge colors in the page background, not in fixed overlays. */
html.is-downtown {
  scroll-behavior: auto;
  background: linear-gradient(
    180deg,
    var(--downtown-sky-bg) 0%,
    var(--downtown-sky-bg) 35%,
    var(--downtown-ground-bg) 85%,
    var(--downtown-ground-bg) 100%
  ) center / 100% 100% no-repeat var(--downtown-sky-bg) !important;
}

@media (max-width: 480px) {
  body.is-downtown {
    background-size: 100% calc(var(--downtown-art-height) + 2px) !important;
  }

  /* Soft edge bleed fills the scroll reserve without rescaling the city map. */
  body.is-downtown:not(.is-location)::after {
    position: absolute;
    z-index: 0;
    top: calc(var(--downtown-art-height) + 2px - var(--downtown-top-crop));
    left: 0;
    width: 100%;
    height: max(0px, calc(max(var(--downtown-page-height), calc(var(--app-bleed-height) + 96px)) - var(--downtown-art-height) - 2px + var(--downtown-top-crop)));
    content: "";
    pointer-events: none;
    background: var(--downtown-art-url) center bottom / 100% calc(var(--downtown-art-height) + 2px) no-repeat;
    transform: scaleY(-1);
    filter: blur(10px);
    clip-path: inset(0);
  }
}

html.is-downtown body::before {
  display: none;
}

body.is-location {
  height: var(--app-height);
  min-height: var(--app-height);
  overflow-y: hidden;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scroll-behavior: auto;
  scrollbar-width: none;
}

body.is-downtown::-webkit-scrollbar,
body.is-location::-webkit-scrollbar {
  display: none;
}

body.is-location::before {
  display: none;
}

body.is-route::before {
  display: none;
}

body.is-events-route::before {
  display: block;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 145, 232, 0.54), transparent 36%),
    linear-gradient(180deg, #2b437f 0%, #4b3975 42%, #673a62 100%);
}

body.is-events-route {
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: #2b437f;
}

html.is-events-route,
html.is-events-route body {
  background: #2b437f !important;
}

body.is-future-districts-route {
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  background: #dff5ff;
}

body.is-future-districts-route::before {
  display: none;
}

body.is-event-detail[data-event-detail-theme="fashion-week"] {
  --event-system-bg: #5b2d73;
  background: #5b2d73;
}

body.is-event-detail[data-event-detail-theme="pawland-games"] {
  --event-system-bg: #173c72;
  background: #173c72;
}

body.is-event-detail[data-event-detail-theme="pawvision"] {
  --event-system-bg: #2f377b;
  background: #2f377b;
}

body.is-event-detail[data-event-detail-theme="grand-prix"] {
  --event-system-bg: #253f70;
  background: #253f70;
}

body.is-events-route::-webkit-scrollbar {
  display: none;
}

html.is-initial-events-route body::before {
  display: block;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 145, 232, 0.54), transparent 36%),
    linear-gradient(180deg, #2b437f 0%, #4b3975 42%, #673a62 100%);
}

html.is-initial-events-route body.is-events-route::before {
  display: block;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: var(--app-height);
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

body.is-downtown .app-shell {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: var(--downtown-page-height);
  min-height: var(--downtown-page-height);
  margin: 0;
  overflow: hidden;
  background: transparent;
  transform: translateX(-50%);
}

body.is-downtown.is-location .app-shell {
  height: var(--app-height);
  min-height: var(--app-height);
}

body.is-downtown:not(.is-location) .app-shell {
  overflow: clip;
  overscroll-behavior: auto;
}

body.is-welcome .app-shell {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  margin: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

body.is-events-route .app-shell {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  margin: 0 auto;
  overflow: visible;
  transform: none;
}

body.is-events-route.is-event-detail .app-shell {
  position: fixed;
  inset: 0;
  height: var(--app-bleed-height);
  min-height: var(--app-bleed-height);
  overflow: hidden;
}

body.is-future-districts-route .app-shell {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  margin: 0 auto;
  overflow: visible;
  transform: none;
}

body.is-future-districts-route .app-shell::after {
  display: none;
}

body.is-welcome .screen:not(.welcome-screen),
body.is-welcome .bottom-navigation {
  display: none;
}

html.is-initial-route .screen {
  transition: none;
}

html.is-initial-route .welcome-screen {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

html.is-initial-route .welcome-content {
  display: none;
}

.app-shell::after {
  display: block;
  height: 72px;
  content: "";
  pointer-events: none;
}

body.is-welcome .app-shell::after {
  display: none;
}

body.is-downtown .app-shell::after {
  display: none;
}

body.is-location .app-shell::after {
  display: none;
}

body.is-events-route .app-shell::after {
  display: none;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.screen.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.welcome-screen {
  place-items: stretch;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.sky-layer,
.location-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 190px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 18px 22px rgba(37, 141, 200, 0.18));
}

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

.cloud::before {
  width: 86px;
  height: 86px;
  left: 28px;
  bottom: 18px;
}

.cloud::after {
  width: 108px;
  height: 108px;
  right: 20px;
  bottom: 10px;
}

.cloud-one {
  top: 11%;
  left: -76px;
  transform: scale(1.05);
}

.cloud-two {
  top: 23%;
  right: -100px;
  transform: scale(1.25);
}

.cloud-three {
  left: 8%;
  bottom: 13%;
  transform: scale(0.78);
  opacity: 0.76;
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--cream);
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.sparkle-one {
  top: 18%;
  left: 72%;
}

.sparkle-two {
  bottom: 29%;
  left: 15%;
  transform: rotate(45deg) scale(0.7);
}

.welcome-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  pointer-events: none;
}

.welcome-title-image {
  position: absolute;
  top: 23.5%;
  left: 50%;
  display: block;
  width: min(82%, 395px);
  max-width: none;
  max-height: 21%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: saturate(1.18) contrast(1.08) drop-shadow(0 18px 28px rgba(9, 48, 95, 0.24));
  transform: translateX(-50%);
}

.welcome-skyline {
  display: none;
}

.puzzle-menu-button {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.12;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(0) scale(1);
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.25, 1.28);
  -webkit-tap-highlight-color: transparent;
}

.puzzle-menu-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.puzzle-menu-button:hover {
  transform: translateY(-2px) scale(1.015);
}

.puzzle-menu-button:active {
  transform: translateY(3px) scale(0.96);
  transition-duration: 80ms;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  color: var(--white);
  font-size: clamp(2.15rem, 11vw, 4.1rem);
  line-height: 0.94;
  text-shadow: 0 6px 0 rgba(18, 77, 135, 0.18);
}

.hero-message p {
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  font-weight: 700;
}

.primary-button,
.secondary-button,
.amazon-button,
.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 0 rgba(142, 78, 10, 0.18), 0 22px 40px rgba(19, 83, 143, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-button {
  width: min(100%, clamp(250px, 78vw, 340px));
  min-height: clamp(52px, 7svh, 66px);
  padding: clamp(13px, 2svh, 18px) clamp(22px, 7vw, 30px);
  color: #bfe8ff;
  background: linear-gradient(180deg, #ffba36, var(--orange-dark));
  font-size: clamp(1.05rem, 4.3vw, 1.25rem);
  font-weight: 700;
}

.welcome-screen .primary-button {
  position: absolute;
  top: 59.5%;
  left: 50%;
  width: min(70.2%, 310px);
  height: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  pointer-events: auto;
  translate: -50% 0;
  transform: translateY(0) scale(1);
  transition: transform 120ms cubic-bezier(0.2, 0.9, 0.25, 1.35);
}

.welcome-image-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 999px;
  filter: drop-shadow(0 13px 18px rgba(132, 72, 5, 0.22)) drop-shadow(0 22px 34px rgba(20, 91, 153, 0.12));
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.25, 1.2), filter 180ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.welcome-image-button:hover img {
  transform: translateY(-1px) scale(1.006);
  filter: drop-shadow(0 15px 20px rgba(132, 72, 5, 0.23)) drop-shadow(0 24px 36px rgba(20, 91, 153, 0.13));
}

.welcome-image-button:active {
  transform: translateY(5px) scale(0.965);
  box-shadow: none !important;
  transition-duration: 80ms;
}

.welcome-image-button:active img {
  transform: scale(0.992);
  filter: drop-shadow(0 5px 9px rgba(132, 72, 5, 0.16)) drop-shadow(0 10px 18px rgba(20, 91, 153, 0.08));
  transition-duration: 80ms;
}

.primary-button:not(.welcome-image-button):active,
.secondary-button:active,
.amazon-button:active,
.bubble:active,
.icon-button:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 6px 0 rgba(142, 78, 10, 0.16), 0 12px 26px rgba(19, 83, 143, 0.17);
}

.downtown-screen {
  place-items: center;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: none;
  background: transparent;
}

body.is-downtown .downtown-screen {
  display: grid;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.downtown-page-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: calc(var(--downtown-art-height) + 2px);
  object-fit: fill;
  object-position: center top;
  transform: translateY(calc(-1 * var(--downtown-top-crop)));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.downtown-map {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: none;
}

body.is-downtown:not(.is-location) .downtown-screen,
body.is-downtown:not(.is-location) .downtown-map {
  overflow: clip;
  overscroll-behavior: auto;
}

.downtown-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.downtown-art::before {
  display: none;
}

.downtown-art::after {
  display: none;
}

.downtown-art picture,
.downtown-art img {
  display: none;
}

.downtown-art picture {
  transform: translateY(var(--downtown-map-shift-y)) scale(1);
  transform-origin: center center;
}

.downtown-art img {
  object-fit: fill;
  object-position: center top;
}

.downtown-art img.is-missing {
  display: none;
}

.downtown-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(100, 213, 255, 0.6), rgba(255, 255, 255, 0.1) 42%),
    linear-gradient(135deg, #72d279 0 18%, #ffd15c 18% 35%, #fb705f 35% 51%, #65a8ff 51% 68%, #b687ff 68% 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(4rem, 18vw, 10rem);
  font-weight: 700;
  text-shadow: 0 8px 0 rgba(20, 64, 112, 0.16);
}

.downtown-art picture + .downtown-fallback,
.downtown-art img:not(.is-missing) + .downtown-fallback {
  display: none;
}

.downtown-intro-title {
  position: absolute;
  z-index: 28;
  top: max(24px, calc(env(safe-area-inset-top) + 18px + 8vh));
  left: 50%;
  width: min(72vw, 344px);
  pointer-events: none;
  transform: translateX(-50%);
  user-select: none;
}

.downtown-intro-float {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(2px, 0.6vh, 6px);
  transform-origin: center;
}

.downtown-intro-welcome {
  display: block;
  width: min(59vw, 272px);
  height: auto;
  opacity: 0;
  transform: translateY(-60px);
  filter:
    drop-shadow(0 8px 0 rgba(3, 47, 132, 0.14))
    drop-shadow(0 15px 22px rgba(5, 51, 120, 0.16));
  -webkit-user-drag: none;
}

.downtown-intro-place {
  display: block;
  width: min(72vw, 344px);
  height: auto;
  margin-top: clamp(-12px, -1.6vh, -6px);
  opacity: 0;
  transform: scale(0.92);
  transform-origin: center;
  filter:
    drop-shadow(0 8px 0 rgba(3, 47, 132, 0.12))
    drop-shadow(0 16px 24px rgba(5, 43, 111, 0.2));
  -webkit-user-drag: none;
}

.downtown-title-sparkle {
  position: absolute;
  width: clamp(7px, 2vw, 11px);
  height: clamp(7px, 2vw, 11px);
  border-radius: 2px;
  background: #fff8c8;
  box-shadow:
    0 0 9px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(255, 220, 95, 0.38);
  opacity: 0;
  transform: rotate(45deg) scale(0.45);
}

body.is-downtown-intro-ready .downtown-intro-float {
  animation: downtownIntroIdle 7.8s ease-in-out 2.2s infinite both;
}

body.is-downtown-intro-ready .downtown-intro-welcome {
  animation: downtownWelcomeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 300ms forwards;
}

body.is-downtown-intro-ready .downtown-intro-place {
  animation: downtownPlaceIn 1.25s cubic-bezier(0.2, 0.9, 0.2, 1) 900ms forwards;
}

body.is-downtown-intro-ready .downtown-title-sparkle {
  animation: downtownTitleSparkle 5.8s ease-in-out infinite;
}

.sparkle-a {
  top: 17%;
  left: 10%;
  animation-delay: 2.4s;
}

.sparkle-b {
  top: 42%;
  right: 8%;
  width: clamp(5px, 1.5vw, 8px);
  height: clamp(5px, 1.5vw, 8px);
  animation-delay: 4.2s;
}

.sparkle-c {
  right: 23%;
  bottom: 2%;
  width: clamp(6px, 1.8vw, 9px);
  height: clamp(6px, 1.8vw, 9px);
  animation-delay: 6s;
}

@keyframes downtownWelcomeIn {
  0% {
    opacity: 0;
    transform: translateY(-60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes downtownPlaceIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }

  72% {
    opacity: 1;
    transform: scale(1.018) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes downtownIntroIdle {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(255, 246, 180, 0));
  }

  50% {
    transform: translateY(-7px);
    filter: drop-shadow(0 0 12px rgba(255, 246, 180, 0.28));
  }
}

@keyframes downtownTitleSparkle {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: rotate(45deg) scale(0.45);
  }

  78% {
    opacity: 0.88;
    transform: rotate(45deg) scale(1);
  }

  86% {
    opacity: 0;
    transform: rotate(45deg) scale(0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .downtown-intro-float,
  .downtown-intro-welcome,
  .downtown-intro-place,
  .downtown-title-sparkle {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.downtown-title-fixed {
  position: fixed;
  z-index: 2;
  top: max(18px, calc(env(safe-area-inset-top) + 10px));
  left: 50%;
  width: min(82vw, 390px);
  height: auto;
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 15px rgba(18, 72, 126, 0.18));
}

.downtown-header {
  position: absolute;
  z-index: 2;
  top: max(4px, env(safe-area-inset-top));
  left: 50%;
  width: min(89%, 417px);
  aspect-ratio: 1536 / 590;
  overflow: hidden;
  padding: 0;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.downtown-header img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  transform: translateY(-3%);
  filter: saturate(1.12) contrast(1.04) drop-shadow(0 10px 18px rgba(7, 49, 104, 0.2));
}

.hero-message h2 {
  color: #fff;
  font-size: clamp(1.55rem, 7vw, 2.5rem);
  line-height: 1;
  -webkit-text-stroke: 0;
  text-shadow: 0 4px 18px rgba(4, 19, 43, 0.34);
}

.location-bubbles {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(var(--downtown-map-shift-y));
  pointer-events: none;
}

.bubble {
  position: absolute;
  display: grid;
  grid-template-columns: clamp(22px, 7vw, 30px) 1fr;
  gap: clamp(5px, 1.7vw, 8px);
  align-items: center;
  width: clamp(108px, 32%, 156px);
  min-height: clamp(48px, 7.4svh, 60px);
  padding: clamp(6px, 1.5svh, 8px) clamp(8px, 2.4vw, 12px);
  border: clamp(3px, 0.9vw, 4px) solid rgba(255, 255, 255, 0.96);
  border-radius: clamp(16px, 4.8vw, 20px);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(0.72rem, 3.2vw, 0.96rem);
  font-weight: 600;
  line-height: 1;
  text-align: left;
  pointer-events: auto;
  box-shadow: 0 8px 0 rgba(26, 60, 103, 0.16), 0 15px 28px rgba(19, 83, 143, 0.18);
}

.bubble-icon {
  display: grid;
  place-items: center;
  width: clamp(22px, 7vw, 30px);
  height: clamp(22px, 7vw, 30px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  font-size: clamp(0.78rem, 3.2vw, 1rem);
  line-height: 1;
  text-shadow: none;
}

.bubble-copy {
  display: grid;
  gap: 3px;
}

.bubble-copy strong {
  font-weight: 600;
}

.bubble-copy strong,
.bubble-copy span {
  display: block;
}

.bubble-copy span {
  font-size: 0.86em;
  font-weight: 500;
  opacity: 0.96;
}

.bubble::after {
  position: absolute;
  width: clamp(14px, 4vw, 18px);
  height: clamp(14px, 4vw, 18px);
  border-right: clamp(3px, 0.9vw, 4px) solid rgba(255, 255, 255, 0.96);
  border-bottom: clamp(3px, 0.9vw, 4px) solid rgba(255, 255, 255, 0.96);
  content: "";
  background: inherit;
  transform: rotate(45deg);
}

.police-bubble {
  right: max(2%, env(safe-area-inset-right));
  top: 36.5%;
  background: linear-gradient(180deg, #64a8ff, #246eff);
}

.police-bubble::after {
  display: none;
}

.fire-bubble {
  left: max(2%, env(safe-area-inset-left));
  top: 53%;
  background: linear-gradient(180deg, #ff8080, #ed343b);
}

.location-marker-button {
  display: block;
  width: clamp(70px, 18vw, 94px);
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  animation: none;
  transform-origin: center bottom;
  transition: transform 160ms ease, filter 160ms ease;
}

.location-marker-button img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.48))
    drop-shadow(0 10px 14px rgba(93, 27, 9, 0.24))
    drop-shadow(0 20px 30px rgba(19, 83, 143, 0.16));
  pointer-events: none;
}

.location-marker-button::before {
  position: absolute;
  inset: 3%;
  z-index: 0;
  border-radius: 999px;
  content: "";
  background:
    radial-gradient(circle, rgba(255, 252, 211, 0.52), rgba(255, 224, 98, 0.24) 38%, rgba(255, 174, 44, 0.08) 58%, transparent 74%);
  filter: blur(10px);
  opacity: 0.76;
  transform: scale(0.96);
  animation: markerGlow 4.4s ease-in-out infinite;
  pointer-events: none;
}

.marker-sparkles {
  position: absolute;
  inset: -8%;
  z-index: 2;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  animation: markerSparkles 5.6s ease-in-out infinite;
}

.marker-sparkles::before,
.marker-sparkles::after {
  position: absolute;
  width: clamp(4px, 1.2vw, 6px);
  height: clamp(4px, 1.2vw, 6px);
  border-radius: 2px;
  content: "";
  background: rgba(255, 255, 236, 0.92);
  box-shadow:
    0 0 8px rgba(255, 238, 137, 0.8),
    28px 12px 0 -1px rgba(255, 255, 236, 0.76),
    8px 58px 0 -1px rgba(255, 246, 180, 0.72);
  transform: rotate(45deg) scale(0.8);
}

.marker-sparkles::before {
  top: 9%;
  left: 7%;
}

.marker-sparkles::after {
  right: 6%;
  bottom: 15%;
  animation-delay: 1.2s;
}

.location-marker-button:active {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.08);
  filter: saturate(1.08);
}

.location-marker-button:active::before {
  opacity: 1;
  transform: scale(1.24);
  filter: blur(12px);
}

.location-marker-button:active .marker-sparkles {
  opacity: 0.95;
  animation-play-state: paused;
}

.location-marker-button:active img {
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.58))
    drop-shadow(0 8px 10px rgba(93, 27, 9, 0.2))
    drop-shadow(0 16px 24px rgba(19, 83, 143, 0.12));
}

@keyframes markerFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.014) rotate(-1deg);
  }
}

@keyframes markerGlow {
  0%,
  100% {
    opacity: 0.46;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.16);
  }
}

@keyframes markerSparkles {
  0%,
  46%,
  100% {
    opacity: 0;
    transform: scale(0.88) rotate(0deg);
  }

  56% {
    opacity: 0.72;
    transform: scale(1) rotate(6deg);
  }

  66% {
    opacity: 0;
    transform: scale(1.08) rotate(12deg);
  }
}

.fire-bubble::after {
  display: none;
}

.school-bubble {
  left: max(2%, env(safe-area-inset-left));
  top: 27%;
  background: linear-gradient(180deg, #2ab5ff, #087ddb);
}

.school-bubble::after {
  display: none;
}

.pizza-bubble {
  right: max(2%, env(safe-area-inset-right));
  top: 55.5%;
  background: linear-gradient(180deg, #ffc457, #ff842e);
}

.pizza-bubble::after {
  display: none;
}

.bubble.location-marker-button {
  background: transparent;
  box-shadow: none;
}

.pizza-bubble.location-marker-button img {
  transform: scale(1.18);
  transform-origin: center center;
}

.school-bubble.location-marker-button img {
  transform: scale(1.18);
  transform-origin: center center;
}

@media (max-aspect-ratio: 3 / 5) {
  .downtown-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center var(--downtown-map-y);
  }

  .downtown-header {
    top: max(clamp(4px, 0.8svh, 9px), env(safe-area-inset-top));
    width: min(84%, 390px);
  }

  .location-marker-button {
    width: clamp(68px, 17vw, 86px);
  }

  .school-bubble {
    left: max(1.5%, env(safe-area-inset-left));
    top: 36%;
  }

  .police-bubble {
    right: max(1.5%, env(safe-area-inset-right));
    top: 43.5%;
  }

  .fire-bubble {
    left: max(1.5%, env(safe-area-inset-left));
    top: 56.5%;
  }

  .pizza-bubble {
    right: max(1.5%, env(safe-area-inset-right));
    top: 58%;
  }
}

@keyframes hintSparkle {
  0%,
  52%,
  100% {
    opacity: 0;
    transform: rotate(45deg) scale(0.72);
  }

  62% {
    opacity: 0.9;
    transform: rotate(45deg) scale(1);
  }

  72% {
    opacity: 0;
    transform: rotate(45deg) scale(1.18);
  }
}

.location-screen {
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: #11345e;
  touch-action: manipulation;
}

body.is-location .location-screen {
  inset: 0 auto auto 0;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
}

.location-backdrop {
  position: absolute;
  inset: -18px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13, 39, 73, 0.16), rgba(8, 24, 47, 0.34)),
    var(--location-bg, none) center / cover no-repeat;
  filter: blur(7px) saturate(1.04);
  transform: scale(1.045);
  pointer-events: none;
  transition: opacity 320ms ease;
}

.location-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 242, 190, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(5, 18, 40, 0.34));
}

.location-video-backdrop {
  position: absolute;
  inset: -32px;
  z-index: 0;
  display: block;
  width: calc(100% + 64px);
  height: calc(100% + 64px);
  object-fit: cover;
  opacity: 0;
  filter: blur(26px) brightness(0.62) saturate(1.18);
  transform: scale(1.08);
  transition: opacity 320ms ease;
  pointer-events: none;
}

.location-screen.has-action-video .location-backdrop {
  opacity: 0;
}

.location-screen.has-action-video .location-video-backdrop {
  opacity: 1;
}

.location-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(14, 34, 53, 0.6), transparent 25%, transparent 51%, rgba(14, 34, 53, 0.68) 73%, #132e47 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.location-screen.is-cta-ready .location-card::after,
.location-screen.is-action-complete .location-card::after {
  opacity: 1;
}

.icon-button {
  position: absolute;
  z-index: 6;
  top: -20px;
  left: -18px;
  display: grid;
  place-items: center;
  width: clamp(42px, 11vw, 52px);
  height: clamp(42px, 11vw, 52px);
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #5ba6ff, #2275f5);
  box-shadow: 0 12px 28px rgba(27, 88, 145, 0.2);
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--location-bg, none) center / cover no-repeat;
  box-shadow: none;
}

.video-frame.is-action {
  top: 50%;
  bottom: auto;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  background: #020617;
}

.video-frame:not(.is-action) .story-video {
  object-fit: contain;
  background: transparent;
}

.video-frame::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 246, 204, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(5, 20, 45, 0.1));
  pointer-events: none;
}

.story-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 360ms ease;
}

.story-video[poster] {
  opacity: 1;
}

.story-poster-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
  pointer-events: none;
}

.video-frame.is-native-portrait:not(.is-action) .story-poster-image {
  object-fit: cover;
}

.story-poster-image[hidden] {
  display: none;
}

.story-scene-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.story-scene-image[hidden] {
  display: none;
}

.video-frame.is-image-scene .story-video {
  display: none;
}

.video-frame.is-action .story-video {
  object-fit: contain;
  background: transparent;
}

.video-frame.is-action.is-rotated-scene .story-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56.25%;
  height: 177.78%;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.video-frame.is-playing .story-video,
.video-frame.is-intro-ended .story-video,
.video-frame.is-action .story-video {
  opacity: 1;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: transparent;
  font-size: 0;
  font-weight: 700;
  line-height: 1.04;
  text-align: center;
  text-shadow: 0 5px 0 rgba(11, 80, 143, 0.15);
  background: linear-gradient(180deg, rgba(5, 21, 48, 0.02), rgba(5, 21, 48, 0.16));
}

.story-video.has-video + .video-placeholder {
  opacity: 0;
  pointer-events: none;
}

.video-play-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(52px, 14vw, 68px);
  height: clamp(52px, 14vw, 68px);
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 24, 45, 0.56);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.18), 0 14px 34px rgba(11, 48, 96, 0.28);
  font-size: clamp(1.25rem, 5.4vw, 1.75rem);
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.video-play-button[hidden] {
  display: none;
}

.video-play-button span {
  transform: translateX(4%);
}

.video-play-button:active {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.14), 0 9px 24px rgba(11, 48, 96, 0.22);
  transform: translate(-50%, calc(-50% + 5px)) scale(0.96);
}

.video-frame.is-playing .video-play-button,
.video-frame.is-intro-ended .video-play-button,
.video-frame.is-action .video-play-button {
  opacity: 0;
  pointer-events: none;
}

.video-finish-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(3, 12, 28, 0.04), rgba(3, 12, 28, 0.38));
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.video-frame.is-intro-ended .video-finish-overlay {
  opacity: 1;
}

.hero-message {
  display: none;
  gap: 6px;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 14px rgba(4, 19, 43, 0.34);
}

.location-actions {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 10px;
  pointer-events: auto;
}

.help-button {
  position: relative;
  z-index: 6;
  width: 100%;
  min-height: clamp(46px, 6.2svh, 58px);
  padding: clamp(10px, 1.5svh, 14px) clamp(14px, 4vw, 20px);
  font-size: clamp(0.82rem, 3.4vw, 1rem);
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  filter: drop-shadow(0 0 0 rgba(255, 216, 74, 0));
  transition: opacity 420ms ease, transform 480ms cubic-bezier(0.2, 0.9, 0.25, 1.22), filter 420ms ease;
  touch-action: manipulation;
}

.location-screen.is-cta-ready .help-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 0 18px rgba(255, 216, 74, 0.28));
}

.final-actions {
  display: grid;
  width: 100%;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 420ms ease, transform 480ms cubic-bezier(0.2, 0.9, 0.25, 1.22);
}

.location-screen.is-action-complete .final-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shared sunny controls for all Downtown location stories. */
.location-screen .help-button,
.location-screen .secondary-button,
.location-screen .icon-button,
.location-screen .video-play-button {
  border: 0;
  color: #243d58;
  background: #ffd35b;
  box-shadow: 0 4px 0 #d9a536;
  filter: none;
  text-shadow: none;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  letter-spacing: normal;
  -webkit-tap-highlight-color: transparent;
}

.location-screen .help-button,
.location-screen .secondary-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1.3;
  white-space: normal;
  gap: 12px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.location-screen .location-actions {
  gap: 18px;
  padding: 0;
  background: transparent;
  color: #243d58;
}

.location-screen .secondary-button,
.location-screen .secondary-button:active {
  min-height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #183d60;
  box-shadow: none;
  font: 800 15px/1.4 "Nunito", sans-serif;
  gap: 8px;
  transform: none;
}

.location-screen .help-button::after,
.location-screen .secondary-button::before {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.location-screen .secondary-button::before {
  rotate: 180deg;
}

.location-screen.is-cta-ready .help-button {
  filter: none;
}

.location-screen.is-cta-ready .help-button:active,
.location-screen .icon-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #d9a536;
}

.location-screen .video-play-button:active {
  transform: translate(-50%, calc(-50% + 3px));
  box-shadow: 0 1px 0 #d9a536;
}

.location-screen button:focus-visible {
  outline: 3px solid #243d58;
  outline-offset: 5px;
}

/* Borderless location: navigation above the scene, CTA over its bottom gradient. */
.location-screen .icon-button,
.location-screen .icon-button:active {
  top: 18px;
  left: 18px;
  display: inline-flex;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #e8f2ff;
  background: #19354f;
  box-shadow: none;
  font: 800 14px/1.4 "Nunito", sans-serif;
}

.location-bottom-controls {
  position: absolute;
  z-index: 5;
  left: 22px;
  right: 22px;
  bottom: 26px;
  display: grid;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.location-screen.is-cta-ready .location-bottom-controls,
.location-screen.is-action-complete .location-bottom-controls {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.location-screen .hero-message {
  display: grid;
  gap: 12px;
  text-align: left;
  text-shadow: none;
}

.location-screen .hero-message h2 {
  margin: 0;
  color: #f0f6ff;
  font: 900 31px/1.15 "Nunito", sans-serif;
  letter-spacing: -0.5px;
  text-shadow: none;
}

.location-screen .hero-message p {
  display: none;
}

.location-eyebrow {
  color: #c0d5e9;
  font: 800 11px/1.4 "Nunito", sans-serif;
  letter-spacing: 2px;
}

.location-screen .secondary-button,
.location-screen .secondary-button:active {
  color: #e8f2ff;
}

.location-screen .final-actions {
  grid-template-columns: 1fr;
}

/* Full-screen entry; the original media footprint enlarged by 5% during stories. */
.location-screen.is-story-playback .location-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.location-screen.is-story-playback .video-frame {
  --story-ratio: 0.6741573034;
  --original-video-width: calc(min(74vw, 282px) - 2 * clamp(4px, 1.3vw, 6px) - 2 * clamp(8px, 1.6svh, 12px));
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: min(calc(var(--original-video-width) * 1.05), calc(100% - 36px), calc((var(--app-height) - 220px) * var(--story-ratio)));
  height: auto;
  aspect-ratio: 9 / 13.35;
  border-radius: 18px;
  background: #132e47;
  transform: none;
}

.location-screen.is-story-playback .video-frame.is-native-portrait:not(.is-action) {
  --story-ratio: 0.5625;
  aspect-ratio: 9 / 16;
}

.location-screen.is-story-playback .video-frame.is-action {
  width: min(calc((100% - 16px) * 1.05), 100%, calc((var(--app-height) - 180px) * 16 / 9));
  aspect-ratio: 16 / 9;
}

.location-screen.is-story-playback .story-poster-image {
  object-fit: contain;
}

.location-screen.is-story-playback .location-bottom-controls {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  display: none;
  width: min(calc(100% - 44px), 336px);
}

.location-screen.is-story-playback.is-cta-ready .location-bottom-controls,
.location-screen.is-story-playback.is-action-complete .location-bottom-controls {
  display: grid;
}

.location-screen.is-story-playback .hero-message {
  display: none;
}

.location-screen.is-story-playback .location-card::after {
  opacity: 0;
}

@media (max-height: 500px) {
  .location-bottom-controls { bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .location-screen .hero-message h2 { font-size: 25px; }
  .location-eyebrow { display: none; }
}

.route-screen {
  place-items: center;
  overflow: hidden;
  height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 22px calc(160px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(33, 120, 222, 0.08), rgba(33, 120, 222, 0.22)),
    var(--sky);
}

.route-screen[data-route-theme="future-districts"] {
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  padding: 0;
  overflow: visible;
  background: transparent;
}

.route-screen[data-route-theme="future-districts"] .route-page {
  display: none;
}

.route-screen.is-active[data-route-theme="future-districts"] {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
}

.future-districts-page {
  position: relative;
  display: none;
  width: 100%;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow: clip;
  color: #12345d;
  background-color: #d8f4ff;
  background-image: url("assets/future-districts-route-background.webp?v=20260729");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  isolation: isolate;
}

/* The district hub has five bands; individual district pages keep their own backgrounds. */
.future-districts-page:not([data-active-district]) {
  container-type: inline-size;
  background-image: url("assets/future-districts-v1/pawland-districts-background-5-zones-v1.webp");
  /* Scale both axes equally; the decorative sides can bleed outside the page. */
  background-size: auto 100%;
}

.route-screen[data-route-theme="future-districts"] .future-districts-page {
  display: block;
}

.future-districts-clouds {
  display: none;
}

.future-cloud {
  position: absolute;
  display: block;
  width: 72px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 12px rgba(62, 144, 192, 0.08);
}

.future-cloud::before,
.future-cloud::after {
  position: absolute;
  bottom: 4px;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.future-cloud::before {
  left: 14px;
  width: 34px;
  height: 34px;
}

.future-cloud::after {
  right: 9px;
  width: 25px;
  height: 25px;
}

.future-cloud-one {
  top: 104px;
  left: -20px;
  transform: scale(0.78);
}

.future-cloud-two {
  top: 138px;
  right: -17px;
  transform: scale(0.62);
}

.future-cloud-three {
  top: 226px;
  left: 68%;
  transform: scale(0.45);
}

.future-districts-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(62px + env(safe-area-inset-top));
  padding: max(8px, env(safe-area-inset-top)) 18px 8px;
  border-bottom: 1px solid rgba(59, 139, 187, 0.12);
  background: rgba(232, 248, 255, 0.9);
  box-shadow: 0 5px 16px rgba(36, 111, 157, 0.06);
  backdrop-filter: blur(12px) saturate(1.08);
}

.future-districts-logo {
  display: block;
  width: 128px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.future-districts-back-button {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid rgba(61, 145, 203, 0.24);
  border-radius: 50%;
  color: #1767a8;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 5px 12px rgba(35, 103, 150, 0.13);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.future-districts-back-button:active {
  background: rgba(232, 247, 255, 0.96);
  box-shadow: 0 2px 6px rgba(35, 103, 150, 0.12);
  transform: translateY(2px) scale(0.96);
}

.future-districts-back-button:focus-visible {
  outline: 3px solid #ffbd28;
  outline-offset: 2px;
}

.future-districts-menu-button {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #5ba8ff, #2376e9);
  box-shadow: 0 7px 0 rgba(22, 83, 158, 0.15), 0 12px 24px rgba(26, 89, 157, 0.16);
  letter-spacing: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.future-districts-menu-button span {
  display: block;
  width: 19px;
  height: 3px;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 1px 1px rgba(9, 62, 131, 0.16);
}

.future-districts-menu-button:active {
  transform: translateY(3px) scale(0.96);
  box-shadow: 0 4px 0 rgba(22, 83, 158, 0.13), 0 7px 15px rgba(26, 89, 157, 0.14);
}

.future-districts-menu-button:focus-visible {
  outline: 3px solid #ffbd28;
  outline-offset: 3px;
}

.future-districts-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 31px 18px calc(112px + env(safe-area-inset-bottom));
}

.future-districts-intro {
  width: 100%;
  margin: 0 0 24px;
  text-align: center;
}

.future-districts-intro h1 {
  max-width: none;
  margin: 0;
  color: #103f72;
  font-family: "Poppins", "Plus Jakarta Sans", sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.86), 0 7px 18px rgba(45, 126, 176, 0.12);
}

.future-districts-title-image {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto;
}

.future-districts-intro p {
  max-width: 30ch;
  margin: 9px auto 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-shadow: 0 2px 5px rgba(13, 72, 128, 0.42);
}

.future-districts-list {
  display: grid;
  width: 100%;
  gap: 16px;
}

.district-card-item {
  width: 100%;
  margin: 0;
}

.district-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 322px;
  flex-direction: column;
  align-items: center;
  padding: 23px 20px 18px;
  overflow: hidden;
  border: 3px solid var(--district-card-accent);
  border-bottom-width: 6px;
  border-radius: 27px;
  color: #12345d;
  background:
    radial-gradient(circle at 13% 22%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 42%, color-mix(in srgb, var(--district-card-accent) 24%, transparent) 0 4px, transparent 5px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), transparent 48%),
    var(--district-card-bg);
  box-shadow: 0 13px 25px color-mix(in srgb, var(--district-card-accent) 18%, transparent), 0 4px 8px rgba(31, 86, 121, 0.1);
  isolation: isolate;
  letter-spacing: 0;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.district-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  z-index: 0;
  height: 42%;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent);
  content: "";
  pointer-events: none;
}

.district-card::after {
  position: absolute;
  top: 84px;
  left: -24px;
  z-index: 0;
  width: 116px;
  border-top: 2px dashed color-mix(in srgb, var(--district-card-accent) 34%, transparent);
  border-radius: 50%;
  content: "";
  transform: rotate(-13deg);
  pointer-events: none;
}

.district-card-decoration {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/district-card-decorations.webp?v=20260725");
  background-repeat: no-repeat;
  background-position: var(--district-decoration-x) var(--district-decoration-y);
  background-size: 200% 200%;
  opacity: 0.09;
  pointer-events: none;
}

.district-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid #e5a611;
  border-radius: 999px;
  color: #684100;
  background: linear-gradient(180deg, #ffe88b, #ffc62f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 7px rgba(179, 113, 0, 0.14);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.district-card-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(90%, 270px);
  height: 132px;
  margin: 20px auto 8px;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.district-card-locations {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
  margin: 2px 0 16px;
}

.district-card-location {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  height: 76px;
  flex-direction: column;
}

.district-card-location::before {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background-image: url("assets/district-location-icons-v2.webp?v=20260725");
  background-repeat: no-repeat;
  background-position: var(--location-icon-x) var(--location-icon-y);
  background-size: 400% 400%;
  content: "";
  filter: drop-shadow(0 3px 2px rgba(24, 75, 111, 0.13));
}

.district-card-location-label {
  display: -webkit-box;
  width: 100%;
  height: 23px;
  margin-top: 3px;
  overflow: hidden;
  color: #174b72;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.district-card-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin: auto 0 0;
  padding: 0 18px 0 22px;
  border: 2px solid color-mix(in srgb, var(--district-card-accent) 38%, #fff);
  border-radius: 999px;
  color: #174b72;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), color-mix(in srgb, var(--district-card-accent) 14%, rgba(255, 255, 255, 0.76)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 5px 12px color-mix(in srgb, var(--district-card-accent) 13%, transparent);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.district-card-cta-arrow {
  color: #2c7fb9;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.district-card:active {
  filter: saturate(1.04);
  transform: translateY(3px) scale(0.99);
  box-shadow: 0 6px 13px rgba(27, 95, 139, 0.12), 0 2px 5px rgba(27, 95, 139, 0.08);
}

.district-card:active .district-card-cta {
  background: color-mix(in srgb, var(--district-card-accent) 20%, #fff);
  filter: brightness(0.99);
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px color-mix(in srgb, var(--district-card-accent) 12%, transparent);
}

.district-card:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--district-accent) 70%, #fff);
  outline-offset: 3px;
}

.future-districts-more {
  position: relative;
  z-index: 2;
  margin: 24px auto 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 5px rgba(13, 72, 128, 0.42);
}

.future-districts-hills {
  display: none;
}

.future-districts-hills::before,
.future-districts-hills::after {
  position: absolute;
  bottom: 5px;
  content: "";
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.future-districts-hills::before {
  left: -7%;
  width: 58%;
  height: 110px;
  background: #77c867;
  transform: rotate(4deg);
}

.future-districts-hills::after {
  right: -8%;
  width: 63%;
  height: 124px;
  background: #65bb61;
  transform: rotate(-3deg);
}

body.is-future-districts-route .global-route-back-button {
  display: none;
}

body.is-district-modal-open {
  position: fixed;
  top: var(--district-modal-scroll-offset, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.district-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  align-items: end;
  justify-items: center;
  width: 100%;
  height: 100%;
}

.district-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(6, 29, 56, 0.56);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(2px);
  transition: opacity 240ms ease;
}

.district-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  height: min(86dvh, 760px);
  max-height: 90dvh;
  overflow: hidden;
  border-top: 4px solid var(--district-accent);
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -20px 55px rgba(3, 28, 56, 0.3);
  transform: translateY(102%);
  transition: transform 260ms cubic-bezier(0.22, 0.82, 0.25, 1);
}

.district-modal.is-open .district-modal-backdrop {
  opacity: 1;
}

.district-modal.is-open .district-modal-sheet {
  transform: translateY(0);
}

.district-modal-handle {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #bdd0dd;
  transform: translateX(-50%);
}

.district-modal-close {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: #fff;
  background: #2376e9;
  box-shadow: 0 7px 16px rgba(20, 76, 144, 0.22);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  touch-action: manipulation;
}

.district-modal-close:active {
  transform: translateY(2px) scale(0.96);
}

.district-modal-close:focus-visible,
.district-modal-done:focus-visible {
  outline: 3px solid #ffbd28;
  outline-offset: 3px;
}

.district-modal-scroll {
  height: 100%;
  padding: 34px 18px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.district-modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--district-accent) 58%, #fff);
  border-radius: 20px;
  background: #dff4ff;
  box-shadow: 0 10px 22px rgba(25, 88, 129, 0.14);
}

.district-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--district-image-position);
  transform: scale(var(--district-image-scale));
  transform-origin: var(--district-image-position);
  user-select: none;
  -webkit-user-drag: none;
}

.district-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.district-modal-heading h2 {
  margin: 10px 0 0;
  color: #123f70;
  font-family: "Poppins", "Plus Jakarta Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.district-modal-description {
  margin: 13px 0 0;
  color: #456b86;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.district-modal-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.district-modal-locations li {
  position: relative;
  min-height: 48px;
  padding: 13px 4px 11px 20px;
  border-bottom: 1px solid #d9e8f1;
  color: #244e6d;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.district-modal-locations li::before {
  position: absolute;
  top: 17px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--district-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--district-accent) 18%, transparent);
}

.district-modal-done {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 13px 18px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  color: #fff;
  background: var(--district-accent);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--district-accent) 70%, #1a4565), 0 13px 22px color-mix(in srgb, var(--district-accent) 22%, transparent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  touch-action: manipulation;
}

.district-modal-done:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--district-accent) 70%, #1a4565), 0 7px 14px color-mix(in srgb, var(--district-accent) 18%, transparent);
}

@media (min-width: 481px) {
  body.is-future-districts-route {
    background: #b8e3f5;
  }

  body.is-future-districts-route .app-shell {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.74), 0 24px 64px rgba(28, 98, 140, 0.2);
  }
}

@media (max-width: 389px) {
  .future-districts-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .future-districts-intro h1 {
    font-size: 2.15rem;
  }

  .district-card-logo {
    height: 126px;
  }
}

@media (max-width: 349px) {
  .future-districts-intro h1 {
    font-size: 1.95rem;
  }

  .district-card {
    min-height: 306px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .district-card-logo {
    height: 116px;
  }

  .district-card-locations {
    gap: 6px;
  }

  .district-card-location {
    height: 68px;
  }

  .district-card-location::before {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .district-card-location-label {
    height: 22px;
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .district-card,
  .district-modal-backdrop,
  .district-modal-sheet,
  .future-districts-menu-button {
    transition: none;
  }
}

.global-route-back-button {
  display: none;
}

.is-route .global-route-back-button {
  position: fixed;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
  left: max(12px, env(safe-area-inset-left));
  z-index: 100;
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(58, 145, 232, 0.72);
  box-shadow: 0 9px 18px rgba(16, 63, 126, 0.2);
  backdrop-filter: blur(8px);
}

.event-detail-screen {
  place-items: stretch;
  overflow: hidden;
  height: 100%;
  padding: 0;
  background: var(--event-system-bg);
}

.event-detail-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: var(--app-bleed-height);
  padding: 0;
  overflow: hidden;
  background: var(--event-system-bg);
}

.event-detail-page[data-event-detail-theme="sports"] {
  background: #021136;
}

.event-detail-page[data-event-detail-theme="fashion"] {
  background: #10022f;
}

.event-detail-page[data-event-detail-theme="pawvision"] {
  background: #130531;
}

.event-detail-back {
  position: absolute;
  z-index: 6;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
  left: max(12px, env(safe-area-inset-left));
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(58, 145, 232, 0.72);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.event-detail-header {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}


.route-page {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 360px);
  padding: 24px 18px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  color: #fff;
  background: rgba(32, 135, 224, 0.38);
  box-shadow: 0 20px 44px rgba(7, 51, 109, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-align: center;
  backdrop-filter: blur(10px);
}

.route-screen.is-events-route .route-page {
  position: absolute;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
  left: max(12px, env(safe-area-inset-left));
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.route-screen.is-events-route .route-page h2,
.route-screen.is-events-route .route-page p {
  display: none;
}

.route-page h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.7rem);
  line-height: 1;
  text-shadow: 0 5px 0 rgba(14, 66, 130, 0.18);
}

.route-page p {
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 700;
}

.route-back-button {
  display: none;
  position: absolute;
  top: -18px;
  left: -12px;
}

.route-screen.is-events-route .route-back-button {
  position: static;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(58, 145, 232, 0.72);
  box-shadow: 0 9px 18px rgba(16, 63, 126, 0.2);
  backdrop-filter: blur(8px);
}

body.is-events-route .global-route-back-button,
.route-screen.is-events-route .route-page {
  display: none;
}

.route-screen.is-events-route {
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  padding: 0;
  overflow: visible;
  background: transparent;
}

.route-screen.is-active.is-events-route {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
}

.events-hub {
  position: relative;
  display: none;
  width: 100%;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 145, 232, 0.54), transparent 36%),
    linear-gradient(180deg, #2b437f 0%, #4b3975 42%, #673a62 100%);
  isolation: isolate;
}

.route-screen.is-active.is-events-route .events-hub {
  display: block;
}

.events-hub-header {
  min-height: calc(58px + env(safe-area-inset-top));
  padding: max(7px, env(safe-area-inset-top)) 18px 7px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(35, 45, 101, 0.76);
  box-shadow: 0 6px 18px rgba(16, 12, 53, 0.14);
  backdrop-filter: blur(12px) saturate(1.08);
}

.events-hub-logo {
  width: 132px;
  height: 36px;
  object-fit: contain;
  object-position: center;
}

/* Match the illustrated back control used throughout PawLand. */
.events-hub-back {
  position: absolute;
  top: max(7px, env(safe-area-inset-top));
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  touch-action: manipulation;
  transition: transform 150ms ease;
}

.events-hub-back img { display: block; width: 44px; height: 44px; }
.events-hub-back:active { background: transparent; box-shadow: none; transform: scale(.94); }
.events-hub-back:focus-visible { outline: 3px solid #fcca26; outline-offset: 2px; }

.events-hub-motifs {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.events-hub-motifs::before,
.events-hub-motifs::after {
  position: absolute;
  top: 118px;
  bottom: 0;
  width: 76px;
  content: "";
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='76'%20height='390'%20viewBox='0%200%2076%20390'%20fill='none'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M34%2014l4%209%209%204-9%204-4%209-4-9-9-4%209-4%204-9Z'/%3E%3Ccircle%20cx='20'%20cy='94'%20r='4'/%3E%3Ccircle%20cx='31'%20cy='88'%20r='4'/%3E%3Ccircle%20cx='42'%20cy='94'%20r='4'/%3E%3Cpath%20d='M20%20108c2-8%207-12%2011-12s9%204%2011%2012c1%205-4%208-11%208s-12-3-11-8Z'/%3E%3Cpath%20d='M49%20166v25c0%206-4%2010-10%2010-5%200-8-3-8-7%200-5%204-8%209-8%203%200%206%201%209%203v-26l16-5Z'/%3E%3Ccircle%20cx='27'%20cy='270'%20r='17'/%3E%3Cpath%20d='M10%20270h34M27%20253c-6%205-8%2011-8%2017s2%2012%208%2017M27%20253c6%205%208%2011%208%2017s-2%2012-8%2017'/%3E%3Cpath%20d='M47%20320v36M47%20321c8-5%2015%205%2023%200v19c-8%205-15-5-23%200'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 76px 390px;
}

.events-hub-motifs::before {
  left: -10px;
}

.events-hub-motifs::after {
  right: -10px;
  opacity: 0.08;
  transform: scaleX(-1);
}

.events-hub-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  padding: clamp(26px, 7vw, 34px) clamp(16px, 5vw, 22px) calc(58px + env(safe-area-inset-bottom));
  text-align: center;
}

.events-hub-title {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: min(100%, 400px);
  margin: 0 auto;
}

.events-hub-title img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 98px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.events-hub-title img:first-child {
  width: 78%;
}

.events-hub-title img:last-child {
  width: 88%;
}

.events-hub-intro {
  display: grid;
  gap: 3px;
  max-width: 31ch;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(16, 10, 50, 0.34);
}

.events-hub-intro p,
.events-hub-kicker,
.events-hub-teaser {
  margin: 0;
}

.events-hub-list {
  display: grid;
  gap: 0;
  margin-top: 42px;
}

.events-hub-item {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 0 0 52px;
}

.events-hub-item + .events-hub-item {
  padding-top: 44px;
}

.events-hub-item + .events-hub-item::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(64%, 230px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 230, 139, 0.42), transparent);
  transform: translateX(-50%);
}

.events-hub-kicker {
  color: #ffe594;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: 0 2px 7px rgba(20, 11, 60, 0.4);
}

.events-hub-artwork {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(196px, 60vw, 270px);
  margin-top: 5px;
  pointer-events: none;
}

.events-hub-artwork img {
  display: block;
  width: min(85vw, 400px);
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(12, 7, 43, 0.24));
}

.events-hub-teaser {
  max-width: 32ch;
  min-height: 2.7em;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 2px 7px rgba(20, 11, 60, 0.36);
}

.events-hub-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(68%, 228px);
  min-height: 48px;
  margin-top: 15px;
  padding: 10px 18px;
  border: 2px solid #ffe38a;
  border-radius: 999px;
  color: #fff7d6;
  background: rgba(38, 31, 94, 0.34);
  box-shadow: 0 8px 20px rgba(17, 9, 52, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transform: translateY(0) scale(1);
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.events-hub-enter:hover,
.events-hub-enter:focus-visible {
  color: #fff;
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  background: rgba(72, 62, 145, 0.72);
}

.events-hub-enter:active {
  background: rgba(30, 24, 79, 0.68);
  box-shadow: 0 4px 10px rgba(17, 9, 52, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(2px) scale(0.98);
}

.events-hub-footer {
  max-width: 28ch;
  margin: 2px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 232, 150, 0.28);
  color: #fff3bd;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 3px 9px rgba(18, 8, 49, 0.42);
}

.event-detail-screen {
  height: 100%;
  min-height: var(--app-bleed-height);
  overflow: hidden;
}

.event-detail-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4svh, 30px);
  height: 100%;
  min-height: var(--app-bleed-height);
  padding: max(72px, calc(env(safe-area-inset-top) + 62px)) 18px max(32px, calc(env(safe-area-inset-bottom) + 22px));
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(154, 176, 255, 0.42), transparent 38%),
    linear-gradient(180deg, var(--event-system-bg), #3e306b 64%, #54304e);
}

.event-detail-page[data-event-detail-theme="pawvision"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(184, 127, 255, 0.42), transparent 38%),
    linear-gradient(180deg, #2f377b, #493778 62%, #593054);
}

.event-detail-page[data-event-detail-theme="pawland-games"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(109, 190, 255, 0.38), transparent 38%),
    linear-gradient(180deg, #173c72, #273b70 62%, #43365f);
}

.event-detail-page[data-event-detail-theme="fashion-week"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(232, 139, 255, 0.38), transparent 38%),
    linear-gradient(180deg, #5b2d73, #5e376f 62%, #55304f);
}

.event-detail-page[data-event-detail-theme="grand-prix"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(114, 183, 255, 0.36), transparent 38%),
    linear-gradient(180deg, #253f70, #303d6a 62%, #4c3458);
}

.event-detail-header {
  position: relative;
  inset: auto;
  flex: 0 1 auto;
  width: min(90vw, 420px);
  height: auto;
  max-height: min(54svh, 470px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 26px rgba(9, 5, 35, 0.3));
}

.event-detail-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 34ch;
  text-align: center;
}

.event-detail-copy h1,
.event-detail-copy p {
  margin: 0;
}

.event-detail-copy h1 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.event-detail-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.event-detail-copy > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 2px;
  padding: 7px 16px;
  border: 2px solid #ffe38a;
  border-radius: 999px;
  color: #fff3b3;
  background: rgba(24, 19, 68, 0.34);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.event-detail-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4svh, 30px);
  width: 100%;
  min-height: 100%;
}

.event-detail-placeholder[hidden],
.pawland-games-page[hidden],
.pawland-games-panel[hidden] {
  display: none;
}

body.is-pawland-games-detail,
html.is-pawland-games-detail {
  background: #315b95;
  scrollbar-width: none;
}

body.is-pawland-games-detail::-webkit-scrollbar,
html.is-pawland-games-detail::-webkit-scrollbar {
  display: none;
}

body.is-pawland-games-detail .event-detail-page {
  display: block;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(187, 199, 255, 0.36), transparent 24%),
    linear-gradient(180deg, #315b95 0%, #51497f 48%, #684362 100%);
}

body.is-pawland-games-detail .event-detail-page::-webkit-scrollbar {
  display: none;
}

.pawland-games-page {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: linear-gradient(180deg, #273b70 720px, transparent 1320px);
}

.pawland-games-motifs {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 223, 128, 0.11) 0 2px, transparent 2.5px);
  background-position: 10px 14px, 42px 66px;
  background-size: 42px 42px, 96px 96px;
  opacity: 0.5;
}

.pawland-games-motifs::before,
.pawland-games-motifs::after {
  position: absolute;
  width: 108px;
  height: 108px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.pawland-games-motifs::before {
  top: 620px;
  left: -58px;
  box-shadow: 0 720px 0 rgba(255, 255, 255, 0.025), 390px 1420px 0 rgba(255, 255, 255, 0.025);
}

.pawland-games-motifs::after {
  top: 980px;
  right: -68px;
  border-radius: 14px;
  transform: rotate(16deg);
  box-shadow: 0 780px 0 rgba(255, 255, 255, 0.025);
}

.pawland-games-nav {
  min-height: calc(56px + env(safe-area-inset-top));
  padding: max(6px, env(safe-area-inset-top)) 16px 6px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(28, 48, 103, 0.72);
  box-shadow: 0 6px 18px rgba(15, 16, 61, 0.14);
  backdrop-filter: blur(12px) saturate(1.08);
}

.pawland-games-page > .pawland-games-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  background: linear-gradient(180deg, rgba(16, 8, 55, 0.65), transparent);
}

.pawland-games-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #211267;
}

.pawland-games-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 10%;
  background: linear-gradient(180deg, transparent, #273b70);
  pointer-events: none;
  content: "";
}

.pawland-games-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  user-select: none;
  -webkit-user-drag: none;
}

.pawland-games-nav-logo {
  width: 126px;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.pawland-games-back {
  top: max(6px, env(safe-area-inset-top));
  left: 8px;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  box-shadow: none;
  font-size: 0;
}

.pawland-games-back::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 3px 10px rgba(9, 13, 55, 0.14);
  backdrop-filter: blur(6px);
}

.pawland-games-back span {
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

.pawland-games-back:active {
  background: transparent;
  box-shadow: none;
}

.pawland-games-back:active::before {
  background: rgba(255, 255, 255, 0.17);
}

.pawland-games-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px clamp(14px, 4.2vw, 20px) calc(46px + env(safe-area-inset-bottom));
}

.pawland-games-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  container-type: inline-size;
  white-space: nowrap;
  text-align: center;
}

.pawland-games-intro .pawland-games-event-label,
.pawland-games-intro .pawland-games-event-intro {
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  line-height: 1.3;
}

.pawland-games-intro .pawland-games-event-label {
  font-size: clamp(16px, 4.8cqw, 21px);
  line-height: 1.15;
}

.pawland-games-intro .pawland-games-event-intro {
  font-size: clamp(10px, 3.4cqw, 14px);
  white-space: nowrap;
}

.pawland-games-event-label,
.basketball-heading p,
.basketball-profile-eyebrow,
.basketball-puzzle-copy > p {
  margin: 0;
  color: #ffe075;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: 0 2px 7px rgba(19, 13, 57, 0.38);
}

.pawland-games-event-intro {
  max-width: 32ch;
  margin: 4px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
  text-shadow: 0 2px 7px rgba(18, 10, 51, 0.34);
}

.pawland-games-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.pawland-games-tab {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 7px 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  font-size: clamp(0.49rem, 2vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.pawland-games-tab.is-active {
  border-color: rgba(255, 231, 150, 0.72);
  color: #3e2500;
  background: linear-gradient(180deg, #ffc55a, #ff9f2f);
  box-shadow: 0 5px 12px rgba(64, 25, 8, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.pawland-games-tab:active {
  transform: translateY(1px) scale(0.98);
}

.pawland-games-tab:focus-visible,
.basketball-character-card:focus-visible,
.pawland-games-back:focus-visible {
  outline: 3px solid #ffe57f;
  outline-offset: 3px;
}

.pawland-games-panels {
  margin-top: 40px;
}

.pawland-games-panel {
  outline: none;
}

.basketball-panel {
  display: grid;
  gap: 22px;
}

.basketball-heading {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.basketball-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 7.4vw, 2.2rem);
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 3px 9px rgba(20, 9, 55, 0.36);
}

.basketball-main-scene {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 207, 92, 0.72);
  border-radius: 8px;
  background: #271657;
  box-shadow: 0 15px 28px rgba(19, 9, 53, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.basketball-main-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.basketball-about {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.basketball-about h2 {
  margin: 0;
  color: #ffe075;
  font-size: 0.7rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.basketball-about p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

.basketball-team-section,
.basketball-gallery-section,
.basketball-facts-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.basketball-team-section {
  margin-top: 16px;
}

.basketball-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.basketball-section-heading h2,
.basketball-gallery-section > h2,
.basketball-facts-section > h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 5.3vw, 1.5rem);
  letter-spacing: 0;
  line-height: 1.15;
}

.basketball-section-heading p {
  flex: 0 0 auto;
  margin: 0 0 1px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.66rem;
  line-height: 1.2;
}

.basketball-character-carousel {
  display: flex;
  gap: 10px;
  width: calc(100% + clamp(14px, 4.2vw, 20px));
  margin-right: calc(clamp(14px, 4.2vw, 20px) * -1);
  padding: 3px clamp(14px, 4.2vw, 20px) 12px 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.basketball-character-carousel::-webkit-scrollbar {
  display: none;
}

.basketball-character-card {
  position: relative;
  flex: 0 0 clamp(122px, 35vw, 150px);
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  min-width: 122px;
  height: 238px;
  padding: 20px 9px 11px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  scroll-snap-align: start;
  transform: translateY(0);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.basketball-character-card.is-selected {
  border-color: #ffc650;
  background: linear-gradient(180deg, rgba(255, 179, 53, 0.22), rgba(255, 255, 255, 0.1));
  box-shadow: 0 9px 18px rgba(26, 11, 62, 0.2), inset 0 1px 0 rgba(255, 235, 181, 0.32);
}

.basketball-character-card:active {
  transform: translateY(2px) scale(0.98);
}

.basketball-character-selected {
  position: absolute;
  top: 7px;
  left: 50%;
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #3b2400;
  background: #ffc650;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  transform: translateX(-50%);
}

.basketball-character-card.is-selected .basketball-character-selected {
  opacity: 1;
}

.basketball-character-card img {
  display: block;
  align-self: end;
  width: 100%;
  height: 166px;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 7px 8px rgba(20, 8, 49, 0.18));
}

.basketball-character-name {
  margin-top: 4px;
  font-size: 0.82rem;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.basketball-character-role {
  min-height: 2.3em;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.basketball-profile {
  display: grid;
  grid-template-columns: minmax(112px, 39%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 104, 0.28);
  border-radius: 8px;
  background: rgba(39, 26, 78, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.basketball-profile-artwork {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 0 12px 8px;
  overflow: hidden;
  background: radial-gradient(circle at 48% 52%, rgba(255, 199, 83, 0.17), transparent 54%);
}

.basketball-profile-artwork::after {
  position: absolute;
  right: 4%;
  bottom: 8%;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 211, 110, 0.52), transparent);
}

.basketball-profile-artwork img {
  display: block;
  width: 100%;
  height: 410px;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 12px 12px rgba(23, 9, 55, 0.24));
}

.basketball-profile-copy {
  min-width: 0;
  padding: 22px 15px 20px 12px;
}

.basketball-profile-name {
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 6vw, 1.8rem);
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.basketball-profile-role {
  margin: 6px 0 0;
  color: #ffd463;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.basketball-profile-description {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.48;
}

.basketball-profile-list-title {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.basketball-profile-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.basketball-profile-list li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
}

.basketball-profile-list li > span {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #3f2500;
  background: #ffb53b;
  font-size: 0.65rem;
  line-height: 1;
}

.basketball-profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.basketball-skill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.basketball-gallery-section {
  margin-top: 22px;
  gap: 0;
}

.basketball-gallery-section > h2 {
  text-align: center;
  font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(25px, 6.1vw, 29px);
  font-weight: 400;
  line-height: 1;
}

.basketball-gallery {
  display: block;
  width: 100%;
  min-width: 0;
  touch-action: pan-y;
}

.basketball-gallery-hint {
  margin: 4px 0 14px;
  color: rgba(255, 255, 255, 0.78);
}

.basketball-gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 219, 121, 0.34);
  border-radius: 8px;
  background: #2b1758;
  box-shadow: 0 9px 18px rgba(19, 9, 47, 0.18);
}

.basketball-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.basketball-gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 5px 8px;
  color: #fff;
  background: linear-gradient(transparent, rgba(16, 8, 43, 0.88));
  font-size: clamp(0.51rem, 2vw, 0.64rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
}

.basketball-facts-section {
  margin-top: 22px;
}

.basketball-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.basketball-fact {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 14px 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.basketball-fact-value {
  max-width: 100%;
  color: #ffe172;
  font-size: clamp(1rem, 6vw, 1.7rem);
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
}

.basketball-fact:nth-child(2) .basketball-fact-value {
  color: #72e2ef;
}

.basketball-fact:nth-child(3) .basketball-fact-value {
  font-size: clamp(0.7rem, 3vw, 0.9rem);
  line-height: 1.1;
}

.basketball-fact-label {
  margin-top: 9px;
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.1;
}

.basketball-fact-detail {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  line-height: 1.2;
}

.basketball-puzzle {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(92px, 0.65fr);
  gap: 14px;
  align-items: center;
  min-height: 178px;
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(255, 207, 92, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.basketball-puzzle-copy h2 {
  margin: 11px 0 0;
  color: #fff;
  font-size: clamp(0.94rem, 4.2vw, 1.2rem);
  letter-spacing: 0;
  line-height: 1.18;
}

.basketball-puzzle-copy > span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.4;
}

.basketball-puzzle > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 227, 151, 0.36);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(22, 9, 50, 0.22);
}

/* Approved artwork replaces the entire basketball teaser; keep its outer gap. */
.pawland-sports-teaser {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  /* Match the artwork's rounded outline without retaining its dark corners. */
  border-radius: 3.3% / 8.15%;
  overflow: hidden;
}

.pawland-sports-teaser__picture,
.pawland-sports-teaser .pawland-sports-teaser__image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.pawland-sports-teaser .pawland-sports-teaser__image {
  aspect-ratio: 1971 / 798;
  object-fit: contain;
}

.pawland-games-tab[data-games-sport="football"].is-active {
  border-color: rgba(255, 226, 150, 0.86);
  color: #fff;
  background: linear-gradient(135deg, #ff6658, #f3a328);
  box-shadow: 0 5px 12px rgba(57, 19, 35, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.football-panel .basketball-heading > p,
.football-panel .basketball-profile-eyebrow,
.football-panel .basketball-puzzle-copy > p,
.football-panel .basketball-about h2 {
  color: #ffd66e;
}

.football-panel .basketball-main-scene {
  border-color: rgba(255, 127, 80, 0.8);
  box-shadow: 0 15px 28px rgba(19, 9, 53, 0.28), 0 0 18px rgba(255, 165, 61, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.football-panel .basketball-about {
  border-color: rgba(255, 187, 91, 0.24);
}

.football-panel .basketball-character-card.is-selected {
  border-color: #ff765b;
  background: linear-gradient(180deg, rgba(255, 98, 82, 0.22), rgba(255, 180, 61, 0.09));
  box-shadow: 0 9px 18px rgba(26, 11, 62, 0.2), inset 0 1px 0 rgba(255, 225, 167, 0.28);
}

.football-panel .basketball-character-selected,
.football-panel .basketball-profile-list li > span {
  color: #fff;
  background: #ff6657;
}

.football-panel .basketball-profile {
  border-color: rgba(255, 179, 74, 0.34);
  background: rgba(48, 28, 73, 0.28);
}

.football-panel .basketball-profile-artwork {
  background:
    radial-gradient(circle at 45% 46%, rgba(255, 100, 80, 0.17), transparent 48%),
    radial-gradient(circle at 50% 64%, rgba(255, 191, 73, 0.12), transparent 58%);
}

.football-panel .basketball-profile-artwork::after {
  background: linear-gradient(90deg, transparent, rgba(255, 178, 65, 0.56), transparent);
}

.football-panel .basketball-profile-role {
  color: #ffbd68;
}

.football-panel .basketball-skill {
  border-color: rgba(255, 184, 75, 0.2);
  background: rgba(255, 159, 62, 0.1);
}

.football-panel .basketball-gallery-item {
  border-color: rgba(255, 172, 76, 0.4);
}

.football-panel .basketball-fact-value {
  color: #ff9c75;
}

.football-panel .basketball-fact:nth-child(2) .basketball-fact-value {
  color: #ffd66e;
}

.football-panel .basketball-fact:nth-child(3) .basketball-fact-value {
  color: #ffb56a;
}

.football-panel .basketball-puzzle {
  border-color: rgba(255, 177, 68, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 111, 77, 0.08);
}

.pawland-games-tab[data-games-sport="tennis"].is-active {
  border-color: rgba(211, 255, 250, 0.76);
  color: #223251;
  background: linear-gradient(135deg, #ff7daf, #65ddd7);
  box-shadow: 0 5px 12px rgba(39, 18, 62, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.tennis-panel .basketball-heading > p,
.tennis-panel .basketball-profile-eyebrow,
.tennis-panel .basketball-puzzle-copy > p,
.tennis-panel .basketball-about h2 {
  color: #7aeee5;
}

.tennis-panel .basketball-main-scene {
  border-color: rgba(99, 226, 219, 0.76);
  box-shadow: 0 15px 28px rgba(19, 9, 53, 0.28), 0 0 18px rgba(255, 111, 169, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tennis-panel .basketball-about {
  border-color: rgba(103, 229, 221, 0.22);
}

.tennis-panel .basketball-character-card.is-selected {
  border-color: #ff7daf;
  background: linear-gradient(180deg, rgba(255, 108, 168, 0.22), rgba(83, 220, 211, 0.1));
  box-shadow: 0 9px 18px rgba(26, 11, 62, 0.2), inset 0 1px 0 rgba(218, 255, 251, 0.3);
}

.tennis-panel .basketball-character-selected {
  color: #fff;
  background: #f75f9d;
}

.tennis-panel .basketball-profile {
  border-color: rgba(103, 229, 221, 0.34);
  background: rgba(43, 30, 80, 0.27);
}

.tennis-panel .basketball-profile-artwork {
  background:
    radial-gradient(circle at 45% 46%, rgba(255, 105, 170, 0.17), transparent 48%),
    radial-gradient(circle at 50% 64%, rgba(93, 226, 217, 0.12), transparent 58%);
}

.tennis-panel .basketball-profile-artwork::after {
  background: linear-gradient(90deg, transparent, rgba(103, 235, 225, 0.56), transparent);
}

.tennis-panel .basketball-profile-role {
  color: #ff91bc;
}

.tennis-panel .basketball-profile-list li > span {
  color: #fff;
  background: #f75f9d;
}

.tennis-panel .basketball-skill {
  border-color: rgba(103, 229, 221, 0.2);
  background: rgba(83, 213, 207, 0.1);
}

.tennis-panel .basketball-gallery-item {
  border-color: rgba(103, 229, 221, 0.38);
}

.tennis-panel .basketball-fact-value {
  color: #ff91bc;
}

.tennis-panel .basketball-fact:nth-child(2) .basketball-fact-value {
  color: #72e2ef;
}

.tennis-panel .basketball-fact:nth-child(3) .basketball-fact-value {
  color: #ffb2cf;
}

.tennis-panel .basketball-puzzle {
  border-color: rgba(103, 229, 221, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 106, 166, 0.08);
}

.pawland-games-tab[data-games-sport="swimming"].is-active {
  border-color: rgba(184, 249, 255, 0.86);
  color: #173252;
  background: linear-gradient(135deg, #48d7df, #4ba9ee);
  box-shadow: 0 5px 12px rgba(16, 35, 77, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.swimming-panel .basketball-heading > p,
.swimming-panel .basketball-profile-eyebrow,
.swimming-panel .basketball-puzzle-copy > p,
.swimming-panel .basketball-about h2 {
  color: #69e4e5;
}

.swimming-panel .basketball-main-scene {
  border-color: rgba(73, 214, 224, 0.82);
  box-shadow: 0 15px 28px rgba(19, 9, 53, 0.28), 0 0 18px rgba(91, 216, 230, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.swimming-panel .basketball-about {
  border-color: rgba(91, 220, 231, 0.25);
}

.swimming-panel .basketball-character-card.is-selected {
  border-color: #5adce4;
  background: linear-gradient(180deg, rgba(72, 213, 223, 0.21), rgba(255, 113, 128, 0.09));
  box-shadow: 0 9px 18px rgba(26, 11, 62, 0.2), inset 0 1px 0 rgba(205, 253, 255, 0.3);
}

.swimming-panel .basketball-character-selected,
.swimming-panel .basketball-profile-list li > span {
  color: #fff;
  background: #ff6f7d;
}

.swimming-panel .basketball-profile {
  border-color: rgba(85, 217, 229, 0.36);
  background: rgba(35, 37, 81, 0.29);
}

.swimming-panel .basketball-profile-artwork {
  background:
    radial-gradient(circle at 45% 46%, rgba(69, 214, 224, 0.18), transparent 48%),
    radial-gradient(circle at 50% 64%, rgba(255, 111, 128, 0.1), transparent 58%);
}

.swimming-panel .basketball-profile-artwork::after {
  background: linear-gradient(90deg, transparent, rgba(90, 226, 230, 0.58), transparent);
}

.swimming-panel .basketball-profile-role {
  color: #ff9aa5;
}

.swimming-panel .basketball-skill {
  border-color: rgba(92, 220, 229, 0.22);
  background: rgba(64, 196, 214, 0.11);
}

.swimming-panel .basketball-gallery-item {
  border-color: rgba(86, 218, 229, 0.42);
}

.swimming-panel .basketball-fact-value {
  color: #ff9aa5;
}

.swimming-panel .basketball-fact:nth-child(2) .basketball-fact-value {
  color: #62e3df;
}

.swimming-panel .basketball-fact:nth-child(3) .basketball-fact-value {
  color: #7fdcf6;
}

.swimming-panel .basketball-puzzle {
  border-color: rgba(83, 217, 228, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 109, 126, 0.07);
}

.pawland-games-empty-panel {
  min-height: clamp(340px, 58svh, 500px);
}

.pawland-games-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 230, 151, 0.24);
  color: rgba(255, 245, 213, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 350px) {
  .pawland-games-content {
    padding-inline: 13px;
  }

  .pawland-games-tabs {
    gap: 4px;
  }

  .pawland-games-tab {
    min-height: 44px;
    padding-inline: 1px;
    font-size: 0.47rem;
  }

  .basketball-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .basketball-profile {
    grid-template-columns: minmax(102px, 37%) minmax(0, 1fr);
  }

  .basketball-profile-copy {
    padding-inline: 8px 10px;
  }

  .basketball-profile-description,
  .basketball-profile-list li {
    font-size: 0.66rem;
  }

  .basketball-puzzle {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-pawland-games-detail .event-detail-page {
    scroll-behavior: auto;
  }

  .pawland-games-tab,
  .basketball-character-card {
    transition: none;
  }
}

@media (max-width: 340px) {
  .events-hub-content {
    padding-inline: 15px;
  }

  .events-hub-artwork {
    height: 190px;
  }

  .events-hub-enter {
    width: min(74%, 220px);
  }
}

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

/* A wide fixed box is treated as a toolbar by Safari's background sampler.
   Anchor the panel at a point so its artwork can keep the approved dimensions. */
.bottom-navigation-anchor {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) - clamp(58px, 15vw, 74px));
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.bottom-navigation {
  --bottom-nav-art: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(92vw, 520px);
  aspect-ratio: 1536 / 1024;
  container-type: inline-size;
  color-scheme: light;
  font-family: "Nunito", sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

body.is-downtown .bottom-navigation {
  --bottom-nav-art: url("assets/navigation/bottom-navigation-art-v1.webp");
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.is-downtown.is-location .bottom-navigation {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Coordinates match the approved 1536 × 1024 panel; only the labels are text. */
.bottom-nav-plate {
  position: absolute;
  left: 6.706%;
  top: 33.105%;
  width: 86.654%;
  height: 38.672%;
  border-radius: 10cqw;
  border: .6cqw solid #fffdf8;
  background:
    radial-gradient(ellipse at 10% 50%, #e1d5f0, transparent 58%),
    radial-gradient(ellipse at 90% 70%, #f1e5cb, transparent 58%),
    linear-gradient(180deg, #f8fbfd, #e6e5ed);
  box-shadow: inset 0 0 0 .16cqw #c2c5d5, inset 0 -.35cqw .8cqw #adb3c94a,
    0 .45cqw .45cqw #6c84a144, 0 1cqw 3.3cqw #fff8e15c;
}

.bottom-nav-crest {
  position: absolute;
  top: 29.785%;
  left: 44.6%;
  width: 10.8%;
  height: 9.5%;
  background: #f7f2e5;
  border: .5cqw solid #fffdf8;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.bottom-nav-crest::after {
  content: "";
  position: absolute;
  inset: 65% -14% -20%;
  border-radius: 50%;
  background: #f3f2ee;
}

.bottom-nav-medal {
  position: absolute;
  left: 46.875%;
  top: 30.078%;
  width: 6.25%;
  height: 9.375%;
  border-radius: 50%;
  background: var(--bottom-nav-art) 50% 33.189% / 1600% 1066.667%;
  box-shadow: 0 0 1.4cqw #ffe8a9a6;
}

.bottom-nav-star {
  position: absolute;
  width: 1.8%;
  height: 4%;
  background: #fff7cb;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  filter: drop-shadow(0 0 4px #fff3af);
}

.bottom-nav-star-1 { left: 12%; top: 37%; }
.bottom-nav-star-2 { left: 9.5%; top: 59%; }
.bottom-nav-star-3 { left: 88%; top: 58%; }
.bottom-nav-star-4 { left: 87%; top: 37.5%; width: 1.2%; height: 2.7%; }

.bottom-nav-hit {
  position: absolute;
  top: 36.816%;
  width: 18.1%;
  height: 31.64%;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: #244469;
  font-family: inherit;
  font-size: 2.2786cqw;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 81.17%;
  border-radius: 50%;
  background-image: var(--bottom-nav-art);
  background-size: 552.518% 389.354%;
  background-position: var(--bottom-nav-crop-x) 49.54%;
  box-shadow: 0 .35cqw .6cqw #36526932;
}

.bottom-nav-label {
  display: block;
  position: absolute;
  top: 85.8%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 .1cqw #fff8ed;
}

.bottom-nav-hit:hover {
  transform: translateY(-.4cqw);
}

.bottom-nav-hit:focus-visible {
  outline: 2px solid #164774;
  outline-offset: 3px;
}

.bottom-nav-hit:focus-visible .bottom-nav-icon {
  box-shadow: 0 0 0 .45cqw #ffe29b, 0 .35cqw 1.4cqw #fcd55e88;
}

.bottom-nav-hit:active {
  transform: translateY(.2cqw) scale(.97);
}

.bottom-nav-events {
  left: 11.393%;
  color: #583573;
  --bottom-nav-crop-x: 13.911%;
}

.bottom-nav-districts {
  left: 30.664%;
  color: #164774;
  --bottom-nav-crop-x: 37.44%;
}

.bottom-nav-pawssport {
  left: 51.237%;
  color: #23625d;
  --bottom-nav-crop-x: 62.56%;
}

.bottom-nav-pawnews {
  left: 70.768%;
  color: #704726;
  --bottom-nav-crop-x: 86.407%;
}

@media (prefers-reduced-motion: reduce) {
  .bottom-navigation,
  .bottom-nav-hit {
    transition: none;
  }
}

.secondary-button,
.amazon-button {
  width: 100%;
  min-height: clamp(46px, 6.2svh, 58px);
  padding: clamp(10px, 1.5svh, 14px) clamp(14px, 4vw, 20px);
  border: 3px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: linear-gradient(180deg, #ffba36, var(--orange-dark));
  box-shadow: 0 10px 0 rgba(142, 78, 10, 0.16), 0 18px 34px rgba(19, 83, 143, 0.19), 0 0 18px rgba(255, 216, 74, 0.24);
  font-size: clamp(0.86rem, 3.6vw, 1.05rem);
  font-weight: 700;
}

.amazon-button {
  color: #fff;
  background: linear-gradient(180deg, #35ca7b, #139959);
}

[hidden] {
  display: none !important;
}

@media (min-width: 760px) {
  .app-shell {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 26px 80px rgba(8, 68, 130, 0.22);
  }

  .final-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-height: 700px) {
  .welcome-screen {
    padding-top: max(clamp(24px, 5svh, 42px), env(safe-area-inset-top));
    padding-bottom: max(clamp(34px, 6svh, 52px), env(safe-area-inset-bottom));
  }

  .welcome-content {
    gap: clamp(16px, 3svh, 24px);
    min-height: calc(var(--app-height) - max(clamp(24px, 5svh, 42px), env(safe-area-inset-top)) - max(clamp(34px, 6svh, 52px), env(safe-area-inset-bottom)));
    padding-bottom: clamp(8px, 1.8svh, 14px);
  }

  .welcome-title-image {
    width: min(88%, 380px);
    max-height: clamp(170px, 31svh, 255px);
  }

  .welcome-screen .primary-button {
    width: min(70.2%, 310px);
  }

  body.is-welcome .welcome-screen {
    padding: 0;
  }

  body.is-welcome .welcome-content {
    min-height: 100%;
    padding-bottom: 0;
  }

  .primary-button {
    min-height: clamp(48px, 7svh, 54px);
    padding-block: clamp(11px, 1.8svh, 14px);
  }

  .location-card {
    gap: 10px;
  }
}

/* Future Districts mobile handoff v1 */
body.is-future-districts-route {
  background: #fce8ba;
}

body.is-future-districts-route .app-shell {
  background: #fce8ba;
}

.route-screen[data-route-theme="future-districts"] {
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  background: #fce8ba;
}

.future-districts-page {
  position: relative;
  display: none;
  width: 100%;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow: clip;
  color: #03143d;
  background-color: #fce8ba;
  background-image: url("assets/future-districts-v1/background.webp");
  background-image: image-set(
    url("assets/future-districts-v1/background.webp") 1x,
    url("assets/future-districts-v1/background@2x.webp") 2x
  );
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  isolation: isolate;
}

.future-districts-header {
  position: relative;
  top: auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  width: 100%;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: max(8px, env(safe-area-inset-top)) 14px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.future-districts-logo {
  grid-column: 2;
  display: block;
  width: 126px;
  height: 40px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.future-districts-nav-button {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #03143d;
  background: transparent;
  box-shadow: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease, filter 150ms ease;
}

.future-districts-back-button {
  grid-column: 1;
}

.future-districts-menu-button {
  grid-column: 3;
}

.future-districts-nav-button img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

.future-districts-nav-button:active {
  background: transparent;
  box-shadow: none;
  filter: brightness(.93);
  transform: scale(.94);
}

.future-districts-nav-button:focus-visible {
  outline: 3px solid #fcca26;
  outline-offset: 1px;
}

.future-districts-menu {
  position: absolute;
  z-index: 40;
  top: calc(54px + env(safe-area-inset-top));
  right: 14px;
  display: grid;
  width: 156px;
  overflow: hidden;
  border: 2px solid #03143d;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 28px rgb(3 20 61 / 22%);
}

.future-districts-menu a {
  min-height: 44px;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(3 20 61 / 12%);
  color: #03143d;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.future-districts-menu a:last-child {
  border-bottom: 0;
}

.future-districts-menu a:focus-visible {
  outline: 3px solid #fcca26;
  outline-offset: -3px;
}

.future-districts-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2px 14px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
}

.future-districts-title-image {
  display: block;
  width: min(76%, 326px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.future-districts-intro {
  max-width: 35ch;
  margin: -5px auto 0;
  color: #03143d;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.28;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgb(255 252 244 / 88%);
}

.future-districts-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(82%, 352px);
  min-height: 34px;
  margin: 10px auto 0;
  padding: 5px 10px;
  border: 3px solid #fffaf0;
  border-radius: 999px;
  color: #fcca26;
  background: #03143d;
  box-shadow: 0 0 0 2px #fcca26, 0 5px 12px rgb(3 20 61 / 15%);
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.future-districts-stats img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.future-districts-list {
  display: grid;
  width: 100%;
  gap: 0;
  margin-top: 14px;
}

.future-district-showcase {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  padding-inline: 4px;
  text-align: center;
}

.future-district-showcase-logo {
  display: block;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 9px rgb(3 20 61 / 13%));
}

.future-district-showcase[data-district-theme="sunny"] {
  padding-top: 3px;
}

.future-district-showcase[data-district-theme="sunny"] .future-district-showcase-logo {
  width: min(81%, 336px);
  /* Center the nameplate; the numbered badge extends farther to the left. */
  transform: translateX(-3.5833%);
}

.future-district-showcase[data-district-theme="transport"] {
  padding-top: 8px;
}

.future-district-showcase[data-district-theme="transport"] .future-district-showcase-logo {
  width: min(69%, 286px);
}

.future-district-showcase[data-district-theme="valley"] {
  padding-top: 8px;
}

.future-district-showcase[data-district-theme="valley"] .future-district-showcase-logo {
  width: min(84%, 350px);
  transform: translateX(-1.5833%);
}

.future-district-showcase[data-district-theme="maple"] {
  padding-top: 7px;
}

.future-district-showcase[data-district-theme="maple"] .future-district-showcase-logo {
  width: min(73%, 304px);
}

.future-district-showcase[data-district-theme="downtown"] {
  padding-top: 8px;
}

.future-district-showcase[data-district-theme="downtown"] .future-district-showcase-logo {
  width: min(84%, 350px);
}

.future-district-showcase-description {
  max-width: 39ch;
  margin: -2px auto 7px;
  color: #03143d;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
  text-shadow:
    -1px -1px 0 #fffaf0,
    1px -1px 0 #fffaf0,
    -1px 1px 0 #fffaf0,
    1px 1px 0 #fffaf0,
    0 2px 3px rgb(3 20 61 / 16%);
}

.future-district-explore {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(82%, 342px);
  min-height: 48px;
  padding: 8px 12px;
  border: 4px solid #03143d;
  border-radius: 999px;
  color: #03143d;
  background: linear-gradient(180deg, #ffd84b 0%, #ffb70a 100%);
  box-shadow:
    inset 0 0 0 2px #fffaf0,
    inset 0 4px 3px rgb(255 255 255 / 35%),
    0 4px 0 rgb(3 20 61 / 18%),
    0 8px 16px rgb(3 20 61 / 13%);
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.future-district-explore:active {
  filter: brightness(.97);
  transform: translateY(2px) scale(.98);
  box-shadow:
    inset 0 0 0 2px #fffaf0,
    inset 0 3px 3px rgb(255 255 255 / 28%),
    0 2px 0 rgb(3 20 61 / 18%),
    0 5px 10px rgb(3 20 61 / 12%);
}

.future-district-explore:focus-visible {
  outline: 3px solid #fffaf0;
  outline-offset: 2px;
}

.future-districts-footer {
  width: 100%;
  margin-top: 15px;
}

.future-districts-footer img {
  display: block;
  width: min(72%, 302px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Keep the cards compact and in flow, with modest space between the themed bands. */
.future-districts-page:not([data-active-district]) [data-districts-hub] {
  --districts-art-height: calc(400px + 350cqw);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(max-content, 1fr) auto;
}

.future-districts-page:not([data-active-district]) .future-districts-list {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows:
    minmax(max-content, 1fr)
    minmax(max-content, calc(var(--districts-art-height) * 0.177))
    minmax(max-content, calc(var(--districts-art-height) * 0.134))
    minmax(max-content, calc(var(--districts-art-height) * 0.126))
    minmax(max-content, calc(var(--districts-art-height) * 0.182));
}

.future-districts-page:not([data-active-district]) .future-district-showcase {
  align-content: center;
}

.future-districts-page:not([data-active-district]) .future-district-showcase[data-district-theme="valley"] {
  padding-bottom: 16px;
}

/* Fit the two narrow landscape bands to their cards without stretching the page or art. */
.future-districts-page:not([data-active-district]) .future-district-showcase:is([data-district-theme="valley"], [data-district-theme="maple"])::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100cqw;
  transform: translateX(-50%);
  background-image: url("assets/future-districts-v1/pawland-districts-background-5-zones-v1.webp");
  background-repeat: no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  pointer-events: none;
}

.future-districts-page:not([data-active-district]) .future-district-showcase[data-district-theme="valley"]::before {
  top: -48px;
  bottom: -32px;
  /* A closer view of the original blue-to-green wave, y=1060..1326. */
  background-size: auto 866.16541%;
  background-position: 50% 52.011776%;
}

.future-districts-page:not([data-active-district]) .future-district-showcase[data-district-theme="maple"]::before {
  top: -64px;
  bottom: -48px;
  /* Include the original waves around the orange band, y=1360..1740. */
  background-size: auto 606.31579%;
  background-position: 50% 70.686071%;
}

.future-districts-page:not([data-active-district]) .future-districts-footer {
  display: grid;
  align-content: center;
  min-height: calc(var(--districts-art-height) * 0.081 - 22px - env(safe-area-inset-bottom));
  margin-top: 0;
}

.future-district-detail {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: calc(var(--app-height) - 58px);
  padding: 24px 18px calc(36px + env(safe-area-inset-bottom));
  text-align: center;
}

.future-district-detail-logo {
  display: block;
  width: min(88%, 360px);
  height: auto;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgb(3 20 61 / 15%));
}

.future-district-detail-description {
  max-width: 36ch;
  margin: 12px auto 0;
  color: #03143d;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 0 rgb(255 252 244 / 80%);
}

.future-district-location-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
  margin-top: 24px;
}

.future-district-location-tab {
  min-width: 0;
  min-height: 48px;
  padding: 9px 8px;
  border: 2px solid #03143d;
  border-radius: 8px;
  color: #03143d;
  background: rgb(255 250 240 / 86%);
  box-shadow: 0 4px 9px rgb(3 20 61 / 10%);
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.15;
}

.future-district-location-tab[aria-selected="true"] {
  background: #fcca26;
  box-shadow: inset 0 0 0 2px #fffaf0, 0 4px 9px rgb(3 20 61 / 13%);
}

.future-district-location-tab:focus-visible {
  outline: 3px solid #fffaf0;
  outline-offset: 2px;
}

.future-district-location-panel {
  width: 100%;
  min-height: 150px;
  margin-top: 14px;
  padding: 20px 16px;
  border: 2px solid rgb(3 20 61 / 22%);
  border-radius: 8px;
  background: rgb(255 250 240 / 80%);
  box-shadow: 0 10px 24px rgb(3 20 61 / 11%);
}

.future-district-location-panel h2 {
  color: #03143d;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.future-district-location-panel p {
  margin-top: 10px;
  color: #053158;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 340px) {
  .future-districts-content {
    padding-inline: 12px;
  }

  .future-districts-stats {
    width: 88%;
    gap: 5px;
    padding-inline: 7px;
    font-size: .67rem;
  }

  .future-districts-stats img {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .future-district-showcase-description {
    font-size: .8rem;
  }

  .future-district-explore {
    width: 88%;
    padding-inline: 9px;
    font-size: .76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .future-districts-nav-button,
  .future-district-explore {
    transition: none;
  }
}

/* Let mobile Safari scroll event pages at the document level, like Districts. */
html.is-events-route.is-event-detail,
body.is-events-route.is-event-detail {
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  scroll-behavior: auto;
}

html.is-events-route.is-event-detail {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* The body must not trap wheel/touch gestures in a second, non-scrolling container. */
body.is-events-route.is-event-detail {
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior-y: auto;
}

html.is-initial-events-route body.is-events-route::before,
body.is-events-route::before {
  display: none;
}

body.is-events-route.is-event-detail .app-shell {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow: visible;
}

body.is-events-route.is-event-detail .event-detail-screen.is-active {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: max(var(--app-height), calc(var(--app-bleed-height) + 2px));
  overflow: visible;
}

body.is-events-route.is-event-detail .event-detail-page {
  height: auto;
  min-height: calc(var(--app-bleed-height) + 96px);
  overflow: visible;
  overscroll-behavior-y: contain;
}

html.is-events-route::-webkit-scrollbar {
  display: none;
}

/* User-selected entrance artwork: soften color and contrast without changing the scene. */
.location-screen:not(.is-story-playback) .story-poster-image {
  object-fit: cover;
  object-position: center;
  filter: none;
}

/* Preserve the entrance artwork's own light and color. */
.location-screen:not(.is-story-playback) .location-card::after {
  background: linear-gradient(to top, #132e47 0%, rgba(19, 46, 71, 0.96) 12%, rgba(19, 46, 71, 0.78) 23%, rgba(19, 46, 71, 0.32) 36%, transparent 50%);
  opacity: 1;
}

/* Extend the entrance's blue lower edge into Safari's page background. */
html.is-downtown:has(> body.is-location .location-screen.is-active:not(.is-story-playback)),
body.is-downtown.is-location:has(.location-screen.is-active:not(.is-story-playback)) {
  background: #132e47 !important;
}

.location-screen:not(.is-story-playback) .location-bottom-controls {
  text-shadow: 0 2px 5px rgba(24, 37, 41, 0.65);
}

/* Transport District is a standalone reference layout inside the shared districts route. */
body.is-transport-district-route,
body.is-transport-district-route .app-shell,
body.is-transport-district-route .route-screen[data-route-theme="future-districts"] {
  background: #c8f0fb;
}
body.is-transport-district-route .app-shell {
  max-width: none;
  box-shadow: none;
}
.future-districts-page[data-active-district="transport-district"] {
  overflow: visible;
  background: transparent;
}
.future-districts-page[data-active-district="transport-district"] > .future-districts-header {
  display: none;
}
.future-district-detail.is-transport-district {
  display: block;
  padding: 0;
  min-height: 100vh;
  text-align: initial;
}
.future-district-detail.is-transport-district > :not(.transport-page) {
  display: none;
}
