:root {
  --bg: #161922;
  /* lighter background */
  --panel: rgba(28, 30, 39, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --muted: #9aa0ac;
  --accent: #ff7a1a;
  --accent-2: #ffb066;
  --radius: 18px;
  --loader-progress: 0%;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

#map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 122, 26, 0.12), rgba(22, 25, 34, 0.65)), var(--bg);
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1) .25s;
}

body.has-map-ready #map {
  opacity: 1;
}

#app-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 26% 18%, rgba(255, 122, 26, 0.18), rgba(16, 18, 25, 0.94));
  z-index: 80;
  transition: opacity .55s ease, visibility .55s ease;
  pointer-events: auto;
  backdrop-filter: blur(18px);
  --loader-progress: 0%;
  --wave-scale-min: 0.32;
  --wave-scale-max: 1.08;
  --wave-speed: 1.80s;
  --wave-color: rgba(255, 176, 120, 0.85);
  --wave-glow: rgba(255, 176, 120, 0.28);
}

#app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.is-android #app-loader {
  backdrop-filter: blur(12px);
  --wave-speed: 2.1s;
}

.ambient-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 28;
  mix-blend-mode: screen;
}

.ambient-particles span {
  position: absolute;
  top: 100vh;
  left: var(--x, 50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 220, 180, 0.35) 0%, rgba(255, 220, 180, 0) 70%);
  filter: blur(0.4px);
  opacity: 0;
  animation: particleFloat var(--duration, 8s) linear infinite;
  animation-delay: calc(-1 * var(--delay, 0s));
  transform-origin: center;
}

.is-android .ambient-particles span {
  width: 4px;
  height: 4px;
  opacity: 0.12;
}

.is-android #app-loader .loader-backdrop::after {
  filter: blur(2px);
  opacity: 0.65;
}

.is-android #app-loader .loader-veil {
  filter: blur(20px);
  opacity: 0.45;
}

.is-android #app-loader .loader-content {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  will-change: transform, opacity;
}

.is-android #app-loader.phase-grand-finale .loader-content {
  transform: scale(1.1) rotate(0.4deg);
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.38));
}

.is-android #app-loader.phase-grand-finale .loader-ring,
.is-android #app-loader.phase-grand-finale .loader-ring--delay {
  border-width: 4px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.is-android #app-loader.phase-grand-finale .loader-wave span {
  animation-duration: calc(var(--wave-speed, 1s) * 0.8);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
  will-change: transform, opacity;
}

.is-android #app-loader.phase-grand-finale .loader-glow {
  animation-duration: 1.1s;
}

.is-android #app-loader.phase-grand-finale .loader-progress__fill {
  animation-duration: 1s;
}

#app-loader .loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 18% 24%, rgba(255, 170, 102, 0.45), rgba(255, 170, 102, 0)),
    radial-gradient(36% 36% at 82% 70%, rgba(103, 140, 255, 0.4), rgba(103, 140, 255, 0)),
    radial-gradient(circle at 50% 50%, rgba(12, 14, 20, 0.92), rgba(12, 14, 20, 0.98));
  animation: loaderBackdropPulse 7s ease-in-out infinite;
  opacity: 0.96;
}

#app-loader .loader-backdrop::after {
  content: '';
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 35deg, rgba(255, 110, 0, 0.16), transparent 38%, rgba(88, 104, 255, 0.22), transparent 72%);
  animation: loaderBackdropSpin 14s linear infinite;
  opacity: 0.75;
  filter: blur(4px);
}

#app-loader .loader-veil {
  position: absolute;
  inset: -8%;
  background: conic-gradient(from 120deg, rgba(255, 122, 26, 0.22), rgba(53, 87, 255, 0.12), transparent 55%, rgba(255, 255, 255, 0.18));
  mix-blend-mode: screen;
  animation: loaderVeil 9s linear infinite;
  opacity: 0.55;
  filter: blur(26px);
  pointer-events: none;
}

#app-loader .loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1;
  padding: clamp(28px, 6vw, 48px);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(26, 30, 42, 0.85), rgba(18, 20, 28, 0.55));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease, filter 1s ease;
}

.loader-orb {
  position: relative;
  width: min(240px, 58vw);
  height: min(240px, 58vw);
  min-width: 170px;
  min-height: 170px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.loader-orb::after {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 196, 130, 0.55), rgba(255, 122, 26, 0));
  filter: blur(18px);
  opacity: 0.65;
  animation: loaderOrbPulse 3.2s ease-in-out infinite;
}

.loader-glow {
  position: absolute;
  inset: 22%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.65), rgba(255, 122, 26, 0));
  filter: blur(14px);
  animation: loaderGlow 2.6s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 28px rgba(255, 122, 26, 0.35);
  animation: loaderSpin 4s linear infinite;
}

.loader-ring--delay {
  animation-delay: -1.4s;
  border-color: rgba(255, 255, 255, 0.14);
}

.loader-note {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.96), rgba(255, 195, 106, 0.9));
  box-shadow: 0 20px 56px rgba(255, 122, 26, 0.4), 0 0 28px rgba(255, 255, 255, 0.2) inset;
  animation: loaderPop 2.4s ease-in-out infinite;
}

.loader-note::before {
  content: '♫';
  font-size: 36px;
  color: #090b12;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: loaderNote 1.6s ease-in-out infinite;
}

.loader-note::after {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
  filter: blur(16px);
  opacity: 0.6;
}

.loader-beams {
  position: absolute;
  inset: -16% -22%;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: blur(10px);
  z-index: 1;
}

.loader-beams span {
  position: absolute;
  width: 240px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 190, 120, 0.85), rgba(255, 255, 255, 0));
  opacity: 0.8;
  --beam-rot: 0deg;
  transform: rotate(var(--beam-rot));
  animation: loaderBeamSweep 7s linear infinite;
}

.loader-beams span:nth-child(1) {
  --beam-rot: 14deg;
  animation-delay: 0s;
}

.loader-beams span:nth-child(2) {
  --beam-rot: 52deg;
  animation-delay: -1.1s;
}

.loader-beams span:nth-child(3) {
  --beam-rot: 94deg;
  animation-delay: -2.4s;
}

.loader-beams span:nth-child(4) {
  --beam-rot: 136deg;
  animation-delay: -3.5s;
}

.loader-beams span:nth-child(5) {
  --beam-rot: 178deg;
  animation-delay: -4.8s;
}

.loader-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.loader-title {
  font-size: clamp(22px, 4.8vw, 32px);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.loader-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 2.6px;
}

.loader-wave {
  position: relative;
  width: min(320px, 76vw);
  height: clamp(48px, 16vw, 84px);
  display: grid;
  grid-auto-flow: column;
  gap: clamp(4px, 1.2vw, 10px);
  align-items: end;
  padding: 0 clamp(6px, 1.6vw, 12px);
  pointer-events: none;
  z-index: 2;
}

.loader-wave::before {
  content: '';
  position: absolute;
  inset: -12% -14% 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  opacity: 0.35;
  filter: blur(18px);
  animation: loaderWaveAura 4.2s ease-in-out infinite;
}

.loader-wave span {
  position: relative;
  height: 100%;
  width: clamp(4px, 1.5vw, 10px);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--wave-color));
  box-shadow: 0 0 16px var(--wave-glow);
  opacity: 0.85;
  transform-origin: bottom;
  animation: loaderWave var(--wave-speed) ease-in-out infinite;
}

.loader-wave span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 65%);
  opacity: 0.6;
  animation: loaderWaveSpark var(--wave-speed) ease-in-out infinite;
}

.loader-wave span:nth-child(2n) {
  animation-delay: -0.18s;
}

.loader-wave span:nth-child(3n) {
  animation-delay: -0.32s;
}

.loader-wave span:nth-child(4n) {
  animation-delay: -0.46s;
}

.loader-wave span:nth-child(5n) {
  animation-delay: -0.58s;
}

.loader-wave span:nth-child(2n)::after {
  animation-delay: -0.24s;
}

.loader-wave span:nth-child(3n)::after {
  animation-delay: -0.42s;
}

.loader-progress {
  position: relative;
  width: min(320px, 72vw);
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.25);
}

.loader-progress__fill {
  position: absolute;
  inset: 0;
  width: var(--loader-progress, 0%);
  max-width: 100%;
  background: linear-gradient(90deg, rgba(255, 135, 40, 0.2), rgba(255, 197, 117, 0.85), rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 24px rgba(255, 195, 106, 0.4);
  border-radius: 999px;
  transition: width .6s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-progress__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.6), transparent 55%);
  mix-blend-mode: screen;
  animation: loaderProgressPulse 2.4s ease-in-out infinite;
}

.loader-sparks {
  position: absolute;
  inset: -18% -16%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  pointer-events: none;
}

.loader-sparks span {
  position: relative;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  animation: loaderSpark 2.8s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.82);
  mix-blend-mode: screen;
}

.loader-sparks span:nth-child(1) {
  --sx: -50px;
  --sy: 30px;
  --mx: 70px;
  --my: -40px;
  animation-delay: 0s;
}

.loader-sparks span:nth-child(2) {
  --sx: 60px;
  --sy: -10px;
  --mx: -90px;
  --my: -60px;
  animation-delay: .5s;
}

.loader-sparks span:nth-child(3) {
  --sx: -20px;
  --sy: -40px;
  --mx: 110px;
  --my: 60px;
  animation-delay: 1s;
}

.loader-sparks span:nth-child(4) {
  --sx: 30px;
  --sy: 50px;
  --mx: -120px;
  --my: 10px;
  animation-delay: 1.5s;
}

.loader-sparks span:nth-child(5) {
  --sx: -70px;
  --sy: 10px;
  --mx: 90px;
  --my: -70px;
  animation-delay: .25s;
}

.loader-sparks span:nth-child(6) {
  --sx: 80px;
  --sy: 40px;
  --mx: -110px;
  --my: 70px;
  animation-delay: .9s;
}

.loader-sparks span:nth-child(7) {
  --sx: -40px;
  --sy: -55px;
  --mx: 120px;
  --my: 30px;
  animation-delay: 1.35s;
}

.loader-sparks span:nth-child(8) {
  --sx: 50px;
  --sy: -60px;
  --mx: -130px;
  --my: -20px;
  animation-delay: 1.8s;
}

#app-loader.is-permission .loader-content {
  background: linear-gradient(160deg, rgba(26, 30, 42, 0.78), rgba(18, 20, 28, 0.62));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

#app-loader.is-permission .loader-orb {
  transform: scale(0.9);
  opacity: 0.88;
}

#app-loader.is-permission .loader-beams span,
#app-loader.is-permission .loader-sparks span {
  opacity: 0.35;
  animation-duration: 4.2s;
}

#app-loader.is-permission .loader-progress {
  opacity: 0.55;
}

#app-loader.is-permission .loader-sub {
  letter-spacing: 2.2px;
}

#app-loader.is-timeline .loader-content {
  background: linear-gradient(160deg, rgba(32, 36, 50, 0.88), rgba(16, 18, 26, 0.58));
}

#app-loader.is-timeline .loader-progress {
  opacity: 1;
}

#app-loader.is-timeline.phase-1 .loader-content {
  transform: scale(1.03) rotate(-2deg);
  filter: drop-shadow(0 16px 36px rgba(255, 122, 26, 0.22));
}

#app-loader.is-timeline.phase-1 .loader-ring {
  animation-duration: 3s;
}

#app-loader.is-timeline.phase-1 .loader-beams span {
  animation-duration: 6.2s;
}

#app-loader.is-timeline.phase-2 .loader-content {
  transform: scale(1.08) rotate(1.4deg);
  filter: drop-shadow(0 16px 40px rgba(255, 255, 255, 0.18));
}

#app-loader.is-timeline.phase-2 .loader-ring {
  border-width: 3px;
  box-shadow: 0 0 38px rgba(255, 255, 255, 0.32);
}

#app-loader.is-timeline.phase-2 .loader-note {
  box-shadow: 0 36px 72px rgba(255, 122, 26, 0.5), 0 0 24px rgba(255, 255, 255, 0.3) inset;
}

#app-loader.is-timeline.phase-3 .loader-content {
  transform: scale(1.05) rotate(-1deg);
  opacity: 0.98;
}

#app-loader.is-timeline.phase-3 .loader-ring {
  animation-duration: 2.2s;
  border-color: rgba(255, 255, 255, 0.34);
}

#app-loader.is-timeline.phase-3 .loader-beams span {
  animation-duration: 5.4s;
}

#app-loader.is-timeline.phase-4 .loader-content {
  transform: scale(1.02) rotate(0.6deg);
  filter: drop-shadow(0 20px 40px rgba(255, 122, 26, 0.28));
}

#app-loader.is-timeline.phase-4 .loader-note,
#app-loader.is-timeline.phase-4 .loader-sparks span {
  animation-duration: 1.2s;
}

#app-loader.is-timeline.phase-4 .loader-backdrop,
#app-loader.is-timeline.phase-4 .loader-backdrop::after {
  animation-duration: 8s;
}

#app-loader.is-timeline.phase-5 .loader-content {
  transform: scale(1.08);
  opacity: 1;
}

#app-loader.is-timeline.phase-5 .loader-ring {
  border-width: 4px;
  border-color: rgba(255, 255, 255, 0.42);
  animation-duration: 1.3s;
}

#app-loader.is-timeline.phase-5 .loader-note {
  transform: scale(1.08);
  animation-duration: 1s;
}

#app-loader.is-timeline.phase-5 .loader-beams span {
  animation-duration: 4.8s;
}

#app-loader.is-timeline.phase-6 .loader-content {
  transform: scale(1.1) rotate(0deg);
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.35));
}

#app-loader.is-timeline.phase-6 .loader-ring {
  border-width: 5px;
  border-color: rgba(255, 255, 255, 0.5);
  animation-duration: 1s;
}

#app-loader.is-timeline.phase-6 .loader-sparks span {
  animation-duration: 1s;
}

#app-loader.is-timeline.phase-6 .loader-beams span {
  animation-duration: 4s;
}

#app-loader.phase-grand-finale .loader-content {
  transform: scale(1.22) rotate(1deg);
  filter: drop-shadow(0 0 48px rgba(255, 255, 255, 0.45));
}

#app-loader.phase-grand-finale .loader-glow {
  animation: loaderGlowFinale 0.8s ease-in-out infinite;
}

#app-loader.phase-grand-finale .loader-ring,
#app-loader.phase-grand-finale .loader-ring--delay {
  animation-duration: 0.9s;
  border-width: 5px;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.52);
}

#app-loader.phase-grand-finale .loader-note {
  transform: scale(1.12);
  animation-duration: 0.8s;
  box-shadow: 0 36px 90px rgba(255, 230, 160, 0.6), 0 0 32px rgba(255, 255, 255, 0.38) inset;
}

#app-loader.phase-grand-finale .loader-wave span {
  animation-duration: calc(var(--wave-speed, 1s) * 0.65);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.65);
}

#app-loader.phase-grand-finale .loader-wave::before {
  opacity: 0.6;
  animation-duration: 2s;
}

#app-loader.phase-grand-finale .loader-progress__fill {
  animation: loaderProgressFinale 0.8s ease-in-out infinite;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.6);
}

#app-loader.phase-grand-finale .loader-backdrop,
#app-loader.phase-grand-finale .loader-backdrop::after,
#app-loader.phase-grand-finale .loader-veil {
  animation-duration: 5s;
  filter: brightness(1.1);
}

#app-loader.phase-finale .loader-content {
  transform: scale(0.98);
  opacity: 0.4;
  transition: transform .6s ease, opacity .6s ease;
}

#app-loader.phase-finale .loader-backdrop,
#app-loader.phase-finale .loader-backdrop::after,
#app-loader.phase-finale .loader-veil {
  opacity: 0.35;
  transition: opacity .6s ease;
}

@keyframes loaderGlow {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }

  45% {
    opacity: 0.78;
    transform: scale(1.07);
  }
}

@keyframes loaderGlowFinale {

  0%,
  100% {
    opacity: 0.65;
    transform: scale(1.05);
  }

  45% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.4);
    opacity: 0;
  }

  12% {
    opacity: 0.32;
  }

  48% {
    opacity: 0.18;
  }

  100% {
    transform: translate3d(var(--drift, 12vw), -125vh, 0) scale(var(--scale, 1));
    opacity: 0;
  }
}

@keyframes loaderOrbPulse {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes loaderPop {

  0%,
  100% {
    transform: scale(0.94);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes loaderNote {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes loaderBeamSweep {
  0% {
    opacity: 0;
    transform: rotate(var(--beam-rot, 0deg)) scaleX(0.6);
  }

  20% {
    opacity: 0.9;
  }

  60% {
    opacity: 0.9;
    transform: rotate(var(--beam-rot, 0deg)) scaleX(1.1);
  }

  100% {
    opacity: 0;
    transform: rotate(var(--beam-rot, 0deg)) scaleX(0.7);
  }
}

@keyframes loaderSpark {
  0% {
    transform: translate(var(--sx, -40px), var(--sy, 20px)) scale(0.4);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  70% {
    transform: translate(var(--mx, 60px), var(--my, -30px)) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(calc(var(--mx, 60px) * 1.3), calc(var(--my, -30px) * 1.3)) scale(0.7);
    opacity: 0;
  }
}

@keyframes loaderWave {
  0% {
    transform: scaleY(var(--wave-scale-min, 0.32));
    opacity: 0.45;
  }

  35% {
    transform: scaleY(var(--wave-scale-max, 1.12));
    opacity: 1;
  }

  55% {
    transform: scaleY(calc(var(--wave-scale-max, 1.12) * 0.72));
    opacity: 0.78;
  }

  100% {
    transform: scaleY(var(--wave-scale-min, 0.32));
    opacity: 0.45;
  }
}

@keyframes loaderWaveSpark {

  0%,
  100% {
    opacity: 0.28;
  }

  35% {
    opacity: 0.92;
  }

  60% {
    opacity: 0.6;
  }
}

@keyframes loaderWaveAura {

  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.92);
  }

  50% {
    opacity: 0.55;
    transform: scaleX(1.05);
  }

  80% {
    opacity: 0.4;
    transform: scaleX(0.98);
  }
}

@keyframes loaderProgressPulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes loaderProgressFinale {

  0%,
  100% {
    opacity: 0.9;
    transform: scaleX(0.98);
  }

  40% {
    opacity: 1;
    transform: scaleX(1);
  }

  70% {
    opacity: 0.8;
    transform: scaleX(0.96);
  }
}

@keyframes loaderBackdropPulse {
  0% {
    opacity: 0.82;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

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

@keyframes loaderBackdropSpin {
  0% {
    transform: rotate(0deg);
    opacity: 0.55;
  }

  40% {
    opacity: 0.8;
  }

  100% {
    transform: rotate(360deg);
    opacity: 0.55;
  }
}

@keyframes loaderVeil {
  0% {
    transform: rotate(0deg);
    opacity: 0.52;
  }

  50% {
    opacity: 0.68;
  }

  100% {
    transform: rotate(360deg);
    opacity: 0.52;
  }
}

.glass {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 106, 0, 0.06), rgba(14, 15, 19, 0.75)), rgba(14, 15, 19, 0.55);
  backdrop-filter: blur(10px);
}

.overlay-content {
  width: min(520px, 90vw);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 106, 0, 0.08) inset;
  padding: 28px 24px;
  text-align: center;
}

.overlay-content h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.overlay-content p {
  margin: 0 0 18px;
  color: var(--muted);
}

.btn-primary,
.btn-ghost {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.25);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

#controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 120px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 25;
  pointer-events: auto;
}

#gps-accuracy {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
  background: var(--accent);
}

.mdx-tabbar {
  position: fixed;
  inset: auto 0 calc(0px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  padding: 2px 12px calc(5px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  z-index: 80;
  overflow: visible;
  opacity: 0;
  transform: translateY(160px) scale(0.6) rotate(-4deg);
  filter: blur(18px);
  will-change: transform, opacity, filter;
  --tabbar-reveal-delay: 1s;
  --tabbar-reveal-duration: 4s;
}

.mdx-tabbar::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 64px;
  background: rgba(20, 22, 28, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(calc(-50% + 90px)) scale(0.65);
}

body.has-map-ready .mdx-tabbar::before {
  animation: tabbarAura var(--tabbar-reveal-duration, 4s) cubic-bezier(0.22, 0.85, 0.28, 1.15) var(--tabbar-reveal-delay, 1s) forwards;
}

.mdx-tabbar-particles {
  position: absolute;
  inset: -60px -42px;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(140px) scale(0.58) rotate(-8deg);
  z-index: -1;
}

.mdx-tabbar-particles span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--particle-size, 18px);
  height: var(--particle-size, 18px);
  margin: calc(var(--particle-size, 18px) * -0.5);
  border-radius: 999px;
  background: radial-gradient(circle, var(--particle-color, rgba(255, 220, 180, 0.9)) 0%, rgba(255, 220, 180, 0) 72%);
  box-shadow: 0 0 32px rgba(255, 190, 140, 0.4);
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(-50%, -50%, 0) translate3d(0, 0, 0) scale(0.2);
  animation: tabParticleBurst var(--particle-duration, 3.6s) cubic-bezier(0.2, 0.74, 0.28, 1.18) calc(var(--tabbar-reveal-delay, 1s) + var(--particle-delay, 0s)) forwards;
}

body.has-map-ready .mdx-tabbar .mdx-tabbar-particles {
  animation: tabParticleField var(--tabbar-reveal-duration, 4s) cubic-bezier(0.16, 0.78, 0.28, 1.12) var(--tabbar-reveal-delay, 1s) forwards;
}

.mdx-tabbar-particles span:nth-child(1) {
  --particle-size: 24px;
  --particle-delay: 0.12s;
  --particle-duration: 3.9s;
  --particle-color: rgba(255, 200, 140, 0.88);
  --p-start-x: -460px;
  --p-start-y: -260px;
  --p-mid-x: -210px;
  --p-mid-y: -120px;
  --p-end-x: -60px;
  --p-end-y: -12px;
  --p-settle-x: -30px;
  --p-settle-y: 18px;
  --p-spin: 260deg;
}

.mdx-tabbar-particles span:nth-child(2) {
  --particle-size: 18px;
  --particle-delay: 0.18s;
  --particle-duration: 3.8s;
  --particle-color: rgba(255, 210, 160, 0.82);
  --p-start-x: 420px;
  --p-start-y: -280px;
  --p-mid-x: 180px;
  --p-mid-y: -130px;
  --p-end-x: 70px;
  --p-end-y: -18px;
  --p-settle-x: 26px;
  --p-settle-y: 12px;
  --p-spin: -220deg;
}

.mdx-tabbar-particles span:nth-child(3) {
  --particle-size: 16px;
  --particle-delay: 0.26s;
  --particle-duration: 3.6s;
  --particle-color: rgba(255, 242, 210, 0.92);
  --p-start-x: -380px;
  --p-start-y: 260px;
  --p-mid-x: -150px;
  --p-mid-y: 120px;
  --p-end-x: -60px;
  --p-end-y: 40px;
  --p-settle-x: -24px;
  --p-settle-y: 16px;
  --p-spin: 180deg;
}

.mdx-tabbar-particles span:nth-child(4) {
  --particle-size: 26px;
  --particle-delay: 0.32s;
  --particle-duration: 4s;
  --particle-color: rgba(255, 190, 160, 0.9);
  --p-start-x: 460px;
  --p-start-y: 240px;
  --p-mid-x: 180px;
  --p-mid-y: 110px;
  --p-end-x: 70px;
  --p-end-y: 38px;
  --p-settle-x: 30px;
  --p-settle-y: 18px;
  --p-spin: -200deg;
}

.mdx-tabbar-particles span:nth-child(5) {
  --particle-size: 14px;
  --particle-delay: 0.38s;
  --particle-duration: 3.4s;
  --particle-color: rgba(255, 255, 255, 0.85);
  --p-start-x: -240px;
  --p-start-y: -340px;
  --p-mid-x: -90px;
  --p-mid-y: -170px;
  --p-end-x: -30px;
  --p-end-y: -20px;
  --p-settle-x: -12px;
  --p-settle-y: 6px;
  --p-spin: 320deg;
}

.mdx-tabbar-particles span:nth-child(6) {
  --particle-size: 18px;
  --particle-delay: 0.46s;
  --particle-duration: 3.5s;
  --particle-color: rgba(255, 220, 200, 0.86);
  --p-start-x: 240px;
  --p-start-y: -360px;
  --p-mid-x: 110px;
  --p-mid-y: -180px;
  --p-end-x: 36px;
  --p-end-y: -26px;
  --p-settle-x: 18px;
  --p-settle-y: 8px;
  --p-spin: -320deg;
}

.mdx-tabbar-particles span:nth-child(7) {
  --particle-size: 22px;
  --particle-delay: 0.54s;
  --particle-duration: 3.7s;
  --particle-color: rgba(255, 204, 156, 0.88);
  --p-start-x: -420px;
  --p-start-y: 120px;
  --p-mid-x: -190px;
  --p-mid-y: 70px;
  --p-end-x: -60px;
  --p-end-y: 20px;
  --p-settle-x: -24px;
  --p-settle-y: 12px;
  --p-spin: 200deg;
}

.mdx-tabbar-particles span:nth-child(8) {
  --particle-size: 12px;
  --particle-delay: 0.62s;
  --particle-duration: 3.3s;
  --particle-color: rgba(255, 245, 220, 0.9);
  --p-start-x: 430px;
  --p-start-y: 80px;
  --p-mid-x: 180px;
  --p-mid-y: 40px;
  --p-end-x: 50px;
  --p-end-y: 16px;
  --p-settle-x: 18px;
  --p-settle-y: 8px;
  --p-spin: -180deg;
}

.mdx-tabbar-particles span:nth-child(9) {
  --particle-size: 16px;
  --particle-delay: 0.7s;
  --particle-duration: 3.8s;
  --particle-color: rgba(255, 210, 170, 0.82);
  --p-start-x: -120px;
  --p-start-y: -380px;
  --p-mid-x: -40px;
  --p-mid-y: -210px;
  --p-end-x: -20px;
  --p-end-y: -30px;
  --p-settle-x: -6px;
  --p-settle-y: 6px;
  --p-spin: 280deg;
}

.mdx-tabbar-particles span:nth-child(10) {
  --particle-size: 20px;
  --particle-delay: 0.78s;
  --particle-duration: 3.6s;
  --particle-color: rgba(255, 200, 140, 0.82);
  --p-start-x: 110px;
  --p-start-y: -390px;
  --p-mid-x: 36px;
  --p-mid-y: -210px;
  --p-end-x: 14px;
  --p-end-y: -36px;
  --p-settle-x: 8px;
  --p-settle-y: 8px;
  --p-spin: -260deg;
}

.mdx-tabbar-particles span:nth-child(11) {
  --particle-size: 28px;
  --particle-delay: 0.86s;
  --particle-duration: 3.9s;
  --particle-color: rgba(255, 185, 140, 0.85);
  --p-start-x: -380px;
  --p-start-y: 0px;
  --p-mid-x: -160px;
  --p-mid-y: 10px;
  --p-end-x: -40px;
  --p-end-y: 10px;
  --p-settle-x: -18px;
  --p-settle-y: 8px;
  --p-spin: 240deg;
}

.mdx-tabbar-particles span:nth-child(12) {
  --particle-size: 24px;
  --particle-delay: 0.94s;
  --particle-duration: 3.7s;
  --particle-color: rgba(255, 215, 160, 0.88);
  --p-start-x: 380px;
  --p-start-y: -40px;
  --p-mid-x: 150px;
  --p-mid-y: -10px;
  --p-end-x: 40px;
  --p-end-y: 8px;
  --p-settle-x: 16px;
  --p-settle-y: 6px;
  --p-spin: -240deg;
}

body:not(.registration-complete) .mdx-tabbar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(56px) scale(0.94);
  filter: blur(3px);
}

body.registration-pending .mdx-tabbar {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  pointer-events: none;
  filter: blur(2px);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

body.registration-complete .mdx-tabbar {
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

body.has-map-ready .mdx-tabbar {
  animation-name: tabbarReveal;
  animation-duration: var(--tabbar-reveal-duration, 4s);
  animation-timing-function: cubic-bezier(0.18, 0.9, 0.24, 1.1);
  animation-fill-mode: forwards;
  animation-delay: var(--tabbar-reveal-delay, 1s);
}

body.no-preloader .mdx-tabbar {
  --tabbar-reveal-delay: 0s;
}

body.has-map-ready .mdx-tabbar.is-interactive {
  pointer-events: auto;
  animation: none !important;
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  filter: none;
}

body.has-map-ready .mdx-tabbar.is-interactive::before {
  animation: none !important;
  opacity: 1;
  transform: translateY(-50%) scale(1);
  filter: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.has-map-ready .mdx-tabbar.is-interactive .mdx-tabbar-particles {
  animation: none !important;
  opacity: 0;
  filter: none;
}

body.has-map-ready .mdx-tabbar.is-interactive .tab-btn,
body.has-map-ready .mdx-tabbar.is-interactive .tab-btn--primary {
  animation: none !important;
  opacity: var(--tab-btn-rest-opacity, 0.86);
  filter: none;
  box-shadow: var(--tab-btn-final-shadow, none);
}

body.has-map-ready .mdx-tabbar .tab-btn,
body.has-map-ready .mdx-tabbar .tab-btn--primary {
  animation-name: tabButtonFlight;
  animation-duration: var(--tab-btn-duration, 2.6s);
  animation-timing-function: cubic-bezier(0.2, 0.82, 0.28, 1.18);
  animation-fill-mode: forwards;
  animation-delay: calc(var(--tabbar-reveal-delay, 1s) + var(--tab-btn-delay, 0.2s));
}

.mdx-tabbar>.tab-btn:nth-of-type(1) {
  --tab-btn-shift-x: -360px;
  --tab-btn-shift-y: -280px;
  --tab-btn-rotate: -30deg;
  --tab-btn-delay: 0.24s;
  --tab-btn-scale: 0.34;
  --tab-btn-duration: 3.4s;
}

.mdx-tabbar>.tab-btn:nth-of-type(2) {
  --tab-btn-shift-x: 340px;
  --tab-btn-shift-y: -260px;
  --tab-btn-rotate: 26deg;
  --tab-btn-delay: 0.36s;
  --tab-btn-scale: 0.38;
  --tab-btn-duration: 3.5s;
}

.mdx-tabbar>.tab-btn:nth-of-type(4) {
  --tab-btn-shift-x: -320px;
  --tab-btn-shift-y: 220px;
  --tab-btn-rotate: 22deg;
  --tab-btn-delay: 0.68s;
  --tab-btn-scale: 0.4;
  --tab-btn-duration: 3.6s;
}

.mdx-tabbar>.tab-btn:nth-of-type(5) {
  --tab-btn-shift-x: 340px;
  --tab-btn-shift-y: 210px;
  --tab-btn-rotate: -24deg;
  --tab-btn-delay: 0.82s;
  --tab-btn-scale: 0.44;
  --tab-btn-duration: 3.65s;
}

.tab-btn {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
  transition: transform .22s ease, filter .25s ease, opacity .25s ease;
  --tab-btn-shift-x: 0px;
  --tab-btn-shift-y: 140px;
  --tab-btn-rotate: 0deg;
  --tab-btn-scale: 0.45;
  --tab-btn-delay: 0.4s;
  --tab-btn-duration: 3.4s;
  --tab-btn-rest-opacity: 0.86;
  --tab-btn-final-shadow: none;
  opacity: 0;
  color: inherit;
  overflow: visible;
  margin-top: 22px;
  filter: blur(8px);
}

.tab-btn--primary {
  position: relative;
  justify-self: center;
  width: 64px;
  height: 64px;
  margin-top: 18px;
  margin-bottom: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff7a1a, #ffb877);
  box-shadow: 0 12px 26px rgba(255, 122, 26, 0.32), 0 0 0 4px rgba(20, 22, 28, 0.95);
  display: grid;
  place-items: center;
  transform: translateY(0);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease;
  --tab-btn-shift-x: 20px;
  --tab-btn-shift-y: -420px;
  --tab-btn-rotate: -12deg;
  --tab-btn-scale: 0.28;
  --tab-btn-delay: 0.62s;
  --tab-btn-duration: 3.9s;
  --tab-btn-rest-opacity: 1;
  --tab-btn-final-shadow: 0 12px 26px rgba(255, 122, 26, 0.32), 0 0 0 4px rgba(20, 22, 28, 0.95);
}

.tab-btn--primary::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 195, 120, 0.26), rgba(255, 195, 120, 0));
  filter: blur(12px);
  opacity: 0.68;
  transition: opacity .3s ease;
}

.tab-btn[data-active="true"],
.tab-btn--primary[data-active="true"] {
  --tab-btn-rest-opacity: 1;
  filter: saturate(1.08);
}

.tab-btn[data-active="true"] .tab-icon {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.tab-btn--primary[data-active="true"] {
  transform: translateY(-18px);
  box-shadow: 0 22px 40px rgba(255, 155, 80, 0.5), 0 0 0 6px rgba(20, 22, 28, 0.85);
}

.tab-btn--primary .tab-icon {
  width: 58px;
  height: 58px;
  box-shadow: 0 14px 32px rgba(255, 122, 26, 0.4);
}

.tab-btn--primary .tab-icon__svg {
  width: 32px;
  height: 32px;
}

.tab-btn--primary[data-active="true"] .tab-icon {
  box-shadow: 0 18px 36px rgba(255, 155, 80, 0.46);
}

.tab-icon {
  --tab-icon-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 170, 120, 0.55));
  --tab-icon-fg: #2b2220;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--tab-icon-bg);
  color: var(--tab-icon-fg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease, color .3s ease, background .3s ease;
}

.tab-icon__svg {
  width: 28px;
  height: 28px;
}

.tab-icon--collection {
  --tab-icon-bg: linear-gradient(135deg, #ffe6c8, #ffb97a);
  --tab-icon-fg: #6d3710;
}

.tab-icon--player {
  --tab-icon-bg: linear-gradient(135deg, #e3dcff, #a994ff);
  --tab-icon-fg: #4532c1;
}

.tab-icon--map {
  --tab-icon-bg: linear-gradient(135deg, #ffd9b0, #ff8e3c);
  --tab-icon-fg: #8d3b04;
}

.tab-icon--shop {
  --tab-icon-bg: linear-gradient(135deg, #c9edff, #7dc2ff);
  --tab-icon-fg: #0f5fae;
}

.tab-icon--profile {
  --tab-icon-bg: linear-gradient(135deg, #f6d4ff, #d38eff);
  --tab-icon-fg: #6a26a1;
}

.tab-btn:active {
  transform: translateY(2px) scale(0.96);
}

@keyframes tabbarReveal {
  0% {
    opacity: 0;
    transform: translateY(160px) scale(0.6) rotate(-4deg);
    filter: blur(18px);
  }

  18% {
    opacity: 0.45;
    transform: translateY(-80px) scale(1.28) rotate(-2.4deg);
    filter: blur(8px);
  }

  36% {
    opacity: 0.78;
    transform: translateY(42px) scale(0.88) rotate(3.6deg);
    filter: blur(3px);
  }

  52% {
    opacity: 0.95;
    transform: translateY(-24px) scale(1.07) rotate(-1.8deg);
    filter: blur(1px);
  }

  68% {
    opacity: 1;
    transform: translateY(18px) scale(0.98) rotate(1.1deg);
    filter: blur(0.6px);
  }

  82% {
    transform: translateY(-8px) scale(1.02) rotate(-0.5deg);
    filter: blur(0.3px);
  }

  92% {
    transform: translateY(3px) scale(0.995) rotate(0.16deg);
    filter: blur(0.15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes tabParticleField {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(140px) scale(0.58) rotate(-8deg);
  }

  28% {
    opacity: 0.9;
    filter: blur(4px);
    transform: translateY(-20px) scale(1.05) rotate(-2deg);
  }

  54% {
    opacity: 0.72;
    filter: blur(2px);
    transform: translateY(14px) scale(0.94) rotate(1deg);
  }

  78% {
    opacity: 0.55;
    filter: blur(1.2px);
    transform: translateY(-6px) scale(1.02) rotate(-0.6deg);
  }

  100% {
    opacity: 0;
    filter: blur(0);
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes tabbarAura {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 90px)) scale(0.65);
    filter: blur(16px);
    box-shadow: 0 20px 70px rgba(255, 140, 70, 0.22), 0 0 0 0 rgba(255, 255, 255, 0.1);
  }

  22% {
    opacity: 0.55;
    transform: translateY(calc(-50% - 32px)) scale(1.15);
    filter: blur(6px);
    box-shadow: 0 30px 90px rgba(255, 160, 90, 0.28), 0 0 0 8px rgba(255, 180, 120, 0.15);
  }

  46% {
    opacity: 0.82;
    transform: translateY(calc(-50% + 18px)) scale(0.92);
    filter: blur(3px);
    box-shadow: 0 18px 60px rgba(255, 160, 110, 0.24), 0 0 0 4px rgba(255, 200, 150, 0.12);
  }

  66% {
    opacity: 0.95;
    transform: translateY(calc(-50% - 10px)) scale(1.04);
    filter: blur(1.2px);
    box-shadow: 0 24px 70px rgba(255, 170, 120, 0.26), 0 0 0 6px rgba(255, 210, 170, 0.09);
  }

  88% {
    opacity: 1;
    transform: translateY(calc(-50% + 4px)) scale(0.99);
    filter: blur(0.4px);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

@keyframes tabButtonFlight {
  0% {
    opacity: 0;
    transform: translate3d(var(--tab-btn-shift-x), var(--tab-btn-shift-y), 0) rotate(var(--tab-btn-rotate)) scale(var(--tab-btn-scale));
    filter: blur(10px);
    box-shadow: 0 32px 90px rgba(255, 160, 120, 0.38);
  }

  28% {
    opacity: 0.7;
    transform: translate3d(calc(var(--tab-btn-shift-x) * 0.45), calc(var(--tab-btn-shift-y) * 0.45), 0) rotate(calc(var(--tab-btn-rotate) * 0.45)) scale(1.18);
    filter: blur(4px);
    box-shadow: 0 24px 70px rgba(255, 170, 130, 0.32);
  }

  48% {
    opacity: 0.95;
    transform: translate3d(calc(var(--tab-btn-shift-x) * 0.18), calc(var(--tab-btn-shift-y) * 0.18), 0) rotate(calc(var(--tab-btn-rotate) * 0.22)) scale(0.94);
    filter: blur(1.6px);
    box-shadow: 0 18px 48px rgba(255, 150, 120, 0.26);
  }

  68% {
    opacity: 1;
    transform: translate3d(calc(var(--tab-btn-shift-x) * 0.08), calc(var(--tab-btn-shift-y) * 0.08), 0) rotate(calc(var(--tab-btn-rotate) * 0.12)) scale(1.05);
    filter: blur(0.6px);
    box-shadow: 0 14px 32px rgba(255, 140, 110, 0.22);
  }

  84% {
    transform: translate3d(calc(var(--tab-btn-shift-x) * 0.03), calc(var(--tab-btn-shift-y) * 0.03), 0) rotate(calc(var(--tab-btn-rotate) * 0.04)) scale(0.98);
    filter: blur(0.3px);
    box-shadow: 0 10px 24px rgba(255, 140, 110, 0.18);
  }

  100% {
    opacity: var(--tab-btn-rest-opacity, 0.86);
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0);
    box-shadow: var(--tab-btn-final-shadow, none);
  }
}

@keyframes tabParticleBurst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--p-start-x, 0px), var(--p-start-y, 0px), 0) scale(0.18) rotate(0deg);
    filter: blur(12px);
  }

  28% {
    opacity: 0.95;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--p-mid-x, 0px), var(--p-mid-y, 0px), 0) scale(1.12) rotate(calc(var(--p-spin, 180deg) * 0.5));
    filter: blur(3px);
  }

  54% {
    opacity: 0.84;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--p-end-x, 0px), var(--p-end-y, 0px), 0) scale(0.82) rotate(calc(var(--p-spin, 180deg) * -0.25));
    filter: blur(1.4px);
  }

  78% {
    opacity: 0.6;
    transform: translate3d(-50%, -50%, 0) translate3d(calc(var(--p-end-x, 0px) * 0.6), calc(var(--p-end-y, 0px) * 0.6), 0) scale(0.52) rotate(calc(var(--p-spin, 180deg) * 0.75));
    filter: blur(2px);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--p-settle-x, 0px), var(--p-settle-y, 0px), 0) scale(0.18) rotate(calc(var(--p-spin, 180deg) * 1.3));
    filter: blur(12px);
  }
}

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

.muted {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

/* Remove legacy MapLibre tweaks */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  body.has-map-ready .mdx-tabbar {
    opacity: 1 !important;
    transform: translateY(0) scale(1) rotate(0deg) !important;
    filter: none !important;
    pointer-events: auto !important;
  }

  body.has-map-ready .mdx-tabbar::before {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1) !important;
    filter: none !important;
  }

  body.has-map-ready .mdx-tabbar .tab-btn {
    opacity: var(--tab-btn-rest-opacity, 0.86) !important;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
    filter: none !important;
  }

  body.has-map-ready .mdx-tabbar .mdx-tabbar-particles {
    display: none !important;
  }
}

/* ===== Notes collect UI ===== */
.btn-collect-note {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 25;
  padding: 14px 18px;
  border-radius: 16px;
  border: 0;
  outline: 0;
  cursor: pointer;
  color: #111;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #ffd75f, #ff4d8d);
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.06) inset;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-collect-note:active {
  transform: translateX(-50%) translateY(1px);
}

.mdx-toast {
  position: absolute;
  left: 50%;
  bottom: 140px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 30;
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid var(--panel-border);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.mdx-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Registration View */
#registration-view {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  overflow: hidden;
}

#registration-view.is-active {
  opacity: 1;
  visibility: visible;
}

/* Shop View */
#shop-view {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: linear-gradient(180deg, rgba(13, 15, 24, 0.96) 0%, rgba(10, 12, 20, 0.94) 100%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 110px;
}

#shop-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.shop-view {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 18px 36px;
  color: #fff;
}

.shop-hero {
  background: radial-gradient(120% 120% at 20% 0%, rgba(255, 122, 26, 0.25), rgba(22, 25, 34, 0) 60%), linear-gradient(180deg, rgba(19, 23, 35, 0.9) 0%, rgba(11, 13, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.shop-hero::after {
  content: '';
  position: absolute;
  inset: -10% auto auto 60%;
  width: 220px;
  height: 220px;
  background: radial-gradient(65% 65% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
}

.shop-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.shop-hero h2 {
  margin: 4px 0 6px;
  font-size: 26px;
  letter-spacing: -0.3px;
}

.shop-sub {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.8);
}

.shop-balance {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.3);
  padding: 10px 14px;
  border-radius: 14px;
}

.shop-balance__icon {
  width: 26px;
  height: 26px;
  background: url('/static/img/fan_coin.png') center/contain no-repeat;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.shop-balance__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.shop-balance__value {
  font-size: 18px;
  font-weight: 800;
  color: #ffb347;
}

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
  overflow-x: hidden;
  padding-bottom: 2px;
  justify-content: center;
  width: 100%;
  padding-left: 4px;
  padding-right: 4px;
}

.shop-cat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.shop-cat.active {
  border-color: rgba(255, 122, 26, 0.6);
  background: rgba(255, 122, 26, 0.18);
  color: #ffb347;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.18);
  transform: translateY(-1px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 4px 0 0;
}

.shop-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.shop-card--disabled {
  opacity: 0.88;
}

.shop-card--disabled .shop-card__btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  cursor: not-allowed;
}

.shop-card__media {
  position: relative;
  padding: 12px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 122, 26, 0.12), rgba(19, 20, 29, 0.95));
  min-height: 160px;
}

.shop-card__media img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
}

.shop-card__model {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card__model canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.shop-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 12px;
  color: #0f111a;
  font-weight: 700;
}

.shop-pill--new {
  background: #8ef7c5;
}

.shop-pill--limited {
  background: #ff9f54;
}

.shop-pill--soon {
  background: #9ea5b5;
}

.shop-pill+.shop-pill {
  margin-right: 0;
  margin-top: 28px;
}

.shop-card__body {
  padding: 12px 14px 6px;
  flex: 1 1 auto;
}

.shop-card__title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__rarity {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.shop-card__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin: 4px 0 0;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px;
  gap: 8px;
  margin-top: auto;
}

.shop-price {
  font-weight: 700;
  color: #ffb347;
  font-size: 14px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-price__icon {
  width: 20px;
  height: 20px;
  background: url('/static/img/fan_coin.png') center/contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.shop-card__btn {
  border: none;
  background: linear-gradient(135deg, #ff7a1a, #ffb347);
  color: #0d101a;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.45);
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.shop-error {
  padding: 30px;
  text-align: center;
  color: #ffb347;
}

.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(145deg, rgba(255, 122, 26, 0.92), rgba(255, 179, 71, 0.95));
  color: #0f111a;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  font-weight: 800;
  font-size: 15px;
}

.shop-toast--error {
  background: linear-gradient(145deg, rgba(255, 75, 75, 0.95), rgba(255, 122, 26, 0.92));
  color: #0f111a;
}

.shop-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.shop-model-fallback {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  font-size: 28px;
}

.shop-model-fallback img {
  width: 70%;
  max-width: 140px;
  opacity: 0.9;
}

.shop-model-placeholder {
  width: 100%;
  height: 150px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.shop-model-placeholder__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  animation: shopModelPulse 2.4s ease-in-out infinite;
}

.shop-card__video-wrap {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shop-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}


@keyframes shopModelPulse {
  0% {
    transform: rotate(0deg) scale(0.9);
    opacity: 0.25;
  }

  50% {
    transform: rotate(8deg) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: rotate(0deg) scale(0.9);
    opacity: 0.25;
  }
}

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.shop-page-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease;
}

.shop-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-page-btn:not(:disabled):active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.shop-page-indicator {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.shop-hero--skeleton {
  position: relative;
  overflow: hidden;
}

.shop-grid--skeleton {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.shop-card--skeleton {
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-skel {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.04) 80%);
  background-size: 200% 100%;
  animation: shopSkeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 12px;
}

.shop-skel--eyebrow {
  width: 120px;
  height: 14px;
  margin-bottom: 12px;
  border-radius: 999px;
}

.shop-skel--title {
  width: 210px;
  height: 26px;
  margin-bottom: 10px;
}

.shop-skel--sub {
  width: 240px;
  height: 16px;
  margin-bottom: 14px;
}

.shop-skel--pill {
  width: 94px;
  height: 18px;
  margin-right: 10px;
  border-radius: 999px;
}

.shop-skel--value {
  width: 72px;
  height: 26px;
  border-radius: 10px;
}

.shop-skel--model {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  display: block;
}

.shop-skel--pill-sm {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 54px;
  height: 22px;
  border-radius: 999px;
}

.shop-skel--line-lg {
  width: 78%;
  height: 18px;
  margin-bottom: 10px;
}

.shop-skel--line-md {
  width: 86%;
  height: 14px;
  margin-top: 6px;
}

.shop-skel--line-sm {
  width: 44%;
  height: 12px;
}

.shop-skel--price {
  width: 90px;
  height: 20px;
  border-radius: 10px;
}

.shop-skel--btn {
  width: 86px;
  height: 34px;
  border-radius: 12px;
}

@keyframes shopSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 640px) {
  #shop-view {
    padding-bottom: 96px;
  }

  .shop-view {
    padding: 16px 12px 30px;
  }

  .shop-hero {
    padding: 14px;
  }

  .shop-hero h2 {
    font-size: 22px;
  }

  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 8px;
  }

  .shop-card__media img {
    height: 120px;
  }
}

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

.reg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatBlob 10s infinite ease-in-out;
}

.reg-blob-1 {
  width: 300px;
  height: 300px;
  background: #ff7a1a;
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.reg-blob-2 {
  width: 250px;
  height: 250px;
  background: #00e5ff;
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.reg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, 50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.registration-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.registration-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.character-selector {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.character-preview {
  width: 300px;
  height: 300px;
  /* Glass effect for preview background */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  /* Rounded square */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2) inset;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
}

.character-preview canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 32px;
  /* Match container */
  position: relative;
  z-index: 1;
}

.character-preview::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(180deg, rgba(20, 23, 32, 0) 0%, rgba(18, 20, 28, 0.65) 55%, rgba(12, 14, 20, 0.92) 100%);
  filter: blur(4px);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

.character-preview.preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), rgba(12, 14, 20, 0.9));
}

.character-preview.preview-fallback::after {
  display: none;
}

.character-preview.preview-fallback img {
  width: 78%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

@media (max-width: 360px) {

  .nickname-section,
  .continue-btn {
    width: 92%;
  }

  .nickname-input,
  .continue-btn {
    padding: 12px;
    font-size: 15px;
    border-radius: 12px;
  }
}

.gender-buttons {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gender-btn {
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gender-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gender-btn.selected {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.4);
}

.nickname-section {
  width: min(320px, 90%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}

.nickname-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 22, 28, 0.6);
  color: var(--text);
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.nickname-input:focus {
  border-color: var(--primary);
  background: rgba(20, 22, 28, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.1);
}

.nickname-status {
  height: 20px;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.nickname-status.success {
  color: #4dff88;
  opacity: 1;
}

.nickname-status.error {
  color: #ff4d4d;
  opacity: 1;
}

.continue-btn {
  width: min(320px, 90%);
  align-self: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.3);
}

.continue-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: not-allowed;
}

.continue-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 122, 26, 0.5);
}

.continue-btn:not(:disabled):active {
  transform: translateY(0);
}

/* Ensure Tabbar is hidden by default */
.mdx-tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-map-ready .mdx-tabbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shop-card__btn:disabled {
  background: #9ea5b5;
  color: #0d101a;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}