body {
  margin: 0;
  padding: 0;
  font-family: 'Chewy', cursive, Arial, sans-serif;
  background: #000000;
  min-height: 100vh;
  /* Запрет выделения текста */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Запрет копирования */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  /* Запрет зума */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Запрет зума для всех элементов */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Дополнительные стили для мобильных устройств */
*::before, *::after {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Специально для всех интерактивных элементов */
button, input, textarea, select, a, div, span, img, canvas {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Для кнопок оставляем возможность взаимодействия */
button, .appbar-btn, .threejs-btn, .shop-buy-btn, .hangar-btn, .settings-btn, 
.level-circle, .level-btn, #complete-level-btn, #restart-btn, #threejs-fail-exit, 
#threejs-tasks-start, #freeflight-btn, #music-toggle, #sound-toggle {
  touch-action: manipulation !important;
  cursor: pointer !important;
}

/* Дополнительные стили для кнопок */
button, input, textarea, select {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: manipulation !important;
}

/* Специально для кнопок управления */
.threejs-btn, .appbar-btn, .exit-level-btn, .shop-buy-btn, .hangar-btn, .settings-btn, 
.level-circle, .level-btn, #complete-level-btn, #restart-btn, #threejs-fail-exit, 
#threejs-tasks-start, #freeflight-btn, #music-toggle, #sound-toggle {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: manipulation !important;
}

#appbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #212121;
  box-shadow: 0 -2px 12px rgba(47,102,144,0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.appbar-btn {
  flex: 1 1 0;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  padding: 0;
}
.appbar-btn:active, .appbar-btn.active {
  background: #cf2e2e;
  box-shadow: 0 2px 8px rgba(207,46,46,0.3);
}
.appbar-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.appbar-btn.active .appbar-icon-img {
  filter: none;
}

#game-container {
  width: 100vw;
  min-height: 90vh;
  background: #212121;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(47,102,144,0.08);
  padding: 16px 8px 32px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

#sky {
  width: 100%;
  height: 180px;
  background: linear-gradient(to top, #81c3d7 60%, #d9dcd6 100%);
  border-radius: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

#plane {
  width: 64px;
  height: auto;
  position: absolute;
  left: 0;
  bottom: 32px;
  transition: left 0.2s linear, bottom 0.2s linear;
}

#hud {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin-bottom: 12px;
  font-size: 1.2em;
  color: #cf2e2e;
}

#controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

button, .level-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: #cf2e2e;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(47,102,144,0.08);
  cursor: pointer;
  transition: background 0.2s;
}
button:disabled, .level-btn:disabled {
  background: #d9dcd6;
  color: #81c3d7;
  cursor: not-allowed;
}
button:active, .level-btn:active {
  background: #3a7ca5;
}
.level-btn {
  padding: 16px 32px;
  font-size: 1.1em;
  background: #2f6690;
  color: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(47,102,144,0.08);
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.level-btn:active {
  background: #3a7ca5;
}
#level-label {
  text-align: center;
  color: #cf2e2e;
}
#back-to-map-btn {
  display: block;
  margin: 0 auto 8px auto;
  background: #81c3d7;
  color: #cf2e2e;
}
#result {
  background: #fff;
  border-radius: 16px;
  padding: 18px 8px;
  box-shadow: 0 2px 8px rgba(47,102,144,0.08);
  text-align: center;
  margin-top: 12px;
  color: #cf2e2e;
}
#missions, #badges, #leaderboard {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 1px 4px rgba(47,102,144,0.04);
}
#missions h3, #badges h3, #leaderboard h3 {
  margin: 0 0 6px 0;
  font-size: 1.1em;
  color: #2f6690;
}
#missions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#missions-list li {
  margin-bottom: 4px;
  font-size: 0.98em;
  color: #cf2e2e;
}
#badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  background: #d9dcd6;
  border: 2px solid #81c3d7;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: #2f6690;
  box-shadow: 0 1px 4px rgba(47,102,144,0.08);
}
.badge.locked {
  opacity: 0.3;
  border-style: dashed;
}
#leaderboard-list {
  margin: 0;
  padding-left: 18px;
  font-size: 1em;
}
#leaderboard-list li {
  margin-bottom: 2px;
  color: #16425b;
}
#page-content {
  height: calc(100vh - 120px); /* header + clouds примерно 120px */
  padding-top: 50px
}

/* Обёртка для скролла уровней */
#levels-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 24px;
  padding-bottom: 80px;
}

.page {
  text-align: center;
  color: #16425b;
}
.appbar-btn.active {
  color: #fff;
  background: #cf2e2e !important;
}
@media (max-width: 480px) {
  #appbar {
    height: 54px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  .appbar-icon-img {
    width: 28px;
    height: 28px;
  }
  #main-header {
    height: 44px;
    padding: 0 8px;
  }
  #section-title {
    font-size: 1.1em;
  }
  #header-balances {
    gap: 10px;
    font-size: 0.95em;
  }
  
  /* Дополнительные стили для мобильных устройств */
  * {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  /* Отключение выделения для всех элементов на мобильных */
  button, input, textarea, select, a, div, span, img, canvas, p, h1, h2, h3, h4, h5, h6 {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  /* Для кнопок на мобильных оставляем возможность взаимодействия */
  button, .appbar-btn, .threejs-btn, .shop-buy-btn, .hangar-btn, .settings-btn, 
  .level-circle, .level-btn, #complete-level-btn, #restart-btn, #threejs-fail-exit, 
  #threejs-tasks-start, #freeflight-btn, #music-toggle, #sound-toggle {
    touch-action: manipulation !important;
    cursor: pointer !important;
  }
} 

#splash-screen {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #212121; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
.splash-content {
  text-align: center;
}
.splash-title {
  color: #cf2e2e; 
  font-size: 2.2em;
  letter-spacing: 2px;
  margin-bottom: 32px;
  font-weight: bold;
  text-shadow: 0 2px 12px #cf2e2e44;
}
.splash-progress {
  width: 220px;
  height: 12px;
  background: #d9dcd6;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 2px 8px #cf2e2e22;
}
.splash-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #cf2e2e 0%, #760202 100%);
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(.4,1.4,.6,1);
}
#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}

/* Стили для онбординга */
#onboarding-screen {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #cf2e2e 100%);
  font-family: 'Arial', sans-serif;
  overflow: hidden;
}

.onboarding-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.illustration {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.illustration::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.plane-icon {
  font-size: 80px;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.controls-icon {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.control-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  backdrop-filter: blur(5px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.obstacles-icon {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.obstacle {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #cf2e2e, #d32f2f);
  border-radius: 8px;
  animation: rotate 4s linear infinite;
}

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

.coin-icon {
  font-size: 60px;
  color: #f1c40f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.fuel-icon {
  width: 120px;
  height: 40px;
  background: linear-gradient(
    90deg,
    #cf2e2e 0%,
    #d32f2f 50%,
    #1976d2 100%
  );
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.fuel-level {
  height: 100%;
  background: linear-gradient(90deg, #1976d2, #2196f3);
  border-radius: 20px;
  animation: fuel-drain 4s infinite;
}

@keyframes fuel-drain {
  0% {
    width: 100%;
  }
  100% {
    width: 20%;
  }
}

.level-progress {
  width: 200px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #cf2e2e, #d32f2f);
  border-radius: 10px;
  animation: progress 3s infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.6;
  max-width: 400px;
}

.navigation {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.nav-btn {
  display: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.skip-btn {
  display: none !important;
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.start-btn {
  background: linear-gradient(45deg, #cf2e2e, #d32f2f);
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(207, 46, 46, 0.3);
  transition: all 0.3s ease;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 46, 46, 0.4);
} 

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #212121;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(47,102,144,0.08);
  font-family: 'Chewy', cursive, Arial, sans-serif;
}
#section-title {
  font-size: 1.4em;
  color: #cf2e2e;
  letter-spacing: 1px;
}
#header-balances {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.1em;
}
.header-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
  margin-bottom: 2px;
}
#money-balance, #fuel-balance {
  display: flex;
  align-items: center;
  color: #cf2e2e;
  font-weight: bold;
  letter-spacing: 1px;
  gap: 2px;
}

/* Стили для низкого топлива */
#fuel-balance.low-fuel {
  color: #d32f2f;
  animation: fuel-warning 1s ease-in-out infinite alternate;
}

@keyframes fuel-warning {
  0% { 
    color: #d32f2f;
    transform: scale(1);
  }
  100% { 
    color: #ff5252;
    transform: scale(1.05);
  }
}

#fuel-balance.critical-fuel {
  color: #c62828;
  animation: fuel-critical 0.5s ease-in-out infinite alternate;
}

@keyframes fuel-critical {
  0% { 
    color: #c62828;
    transform: scale(1);
  }
  100% { 
    color: #ff1744;
    transform: scale(1.1);
  }
}



/* Стили для кнопки выхода из уровня */
.exit-level-btn {
  transition: all 0.2s ease;
}

.exit-level-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: scale(1.1);
}

.exit-level-btn:active {
  transform: scale(0.95);
}

.shop-cards {
  display: flex;
  width: 97%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0 12px;
  box-sizing: border-box;
}
.shop-card {
  width: 100%;
  background: #212121 !important;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(47,102,144,0.08);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  font-family: 'Chewy', cursive, Arial, sans-serif;
}
.shop-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.shop-card-title {
  font-size: 1.5em;
  color: #cf2e2e !important;
  margin-bottom: 8px;
  margin-top: 8px;
}
.shop-card-price {
  font-size: 1.1em;
  color: #cf2e2e;
  margin-bottom: 14px;
}
.shop-buy-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  background: #2f6690;
  color: #fff;
  font-size: 1.1em;
  font-family: 'Chewy', cursive, Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(47,102,144,0.08);
  cursor: pointer;
  transition: background 0.2s;
}
.shop-buy-btn:active {
  background: #3a7ca5;
}
@media (max-width: 480px) {
  .shop-card {
    max-width: 100vw;
    padding: 14px 6px 12px 6px;
  }
  .shop-card-icon {
    width: 36px;
    height: 36px;
  }
  .shop-buy-btn {
    font-size: 1em;
    padding: 8px 12px;
  }
} 

.shop-card.shop-card-flex {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(47,102,144,0.08);
  padding: 18px;
}
.shop-card-icon-left {
  width: 54px;
  height: 54px;
  margin-right: 18px;
  flex-shrink: 0;
}
.shop-card-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}
.shop-card-title {
  font-size: 1.3em;
  color: #2f6690;
  margin-bottom: 4px;
  margin-top: 0;
}
.shop-card-desc {
  font-size: 1em;
  color: #cf2e2e;
  opacity: 0.8;
  margin-bottom: 0;
}
.shop-card-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-left: 18px;
}
.shop-card-price {
  font-size: 1.1em;
  color: #cf2e2e;
  margin-bottom: 0;
}
.shop-buy-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 12px;
  background: #2f6690;
  color: #fff;
  font-size: 1.1em;
  font-family: 'Chewy', cursive, Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(47,102,144,0.08);
  cursor: pointer;
  transition: background 0.2s;
}
.shop-buy-btn:active {
  background: #3a7ca5;
}
@media (max-width: 600px) {
  .shop-card.shop-card-flex {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 6px 12px 6px;
  }
  .shop-card-icon-left {
    margin: 0 auto 10px auto;
    width: 40px;
    height: 40px;
  }
  .shop-card-main {
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
  }
  .shop-card-buy {
    align-items: center;
    margin-left: 0;
    margin-top: 8px;
  }
} 

.levels-map {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px 0 32px 0;
}
.level-circle-wrap {
  display: flex;
  align-items: center;
}
.level-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d9dcd6;
  color: #2f6690;
  font-size: 1.6em;
  font-family: 'Chewy', cursive, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(47,102,144,0.10);
  border: 3px solid #81c3d7;
  margin: 0 0.5em;
  transition: background 0.2s, border 0.2s, color 0.2s;
  position: relative;
}
.level-circle.open {
  background: #cf2e2e;
  border-color: #212121; 
  color: #fff;
}
.level-circle.passed {
  background: #212121;
  border-color: #cf2e2e;
  color: #fff;
}
.level-circle.locked {
  background: #f4f8fb;
  border-color: #d9dcd6;
  color: #b0b0b0;
  opacity: 0.7;
}
.level-circle .level-lock {
  font-size: 1.3em;
  color: #b0b0b0;
}
.level-dash {
  width: 44px;
  height: 0;
  border-top: 3px dashed #cf2e2e;
  margin: 0 0.2em;
}
@media (max-width: 600px) {
  .levels-map {
    flex-direction: column;
    gap: 0;
    margin: 24px 0 18px 0;
  }
  .level-circle-wrap {
    flex-direction: column;
  }
  .level-dash {
    width: 0;
    height: 44px;
    border-top: none;
    border-left: 3px dashed #cf2e2e;
    margin: 0.2em 0;
  }
}

.levels-map-vert {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 420px;
  height: 60vh;
  max-height: 520px;
  margin: 0 auto 32px auto;
  position: relative;
}
.level-circle-wrap-vert {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}
.level-circle.level-pos-left {
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  transform: translateX(-30px);
}
.level-circle.level-pos-center {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(0);
}
.level-circle.level-pos-right {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  transform: translateX(30px);
}
.level-dash-vert {
  width: 0;
  height: 54px;
  border-left: 3px dashed #cf2e2e !important;
  margin: 0 auto;
}
.level-clouds {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 0 auto;
  position: static;
  z-index: 2;
}
.clouds-img {
  width: 100vw;
  height: auto;
  opacity: 0.8;
  filter: blur(0.5px) brightness(1.1);
  margin-top: 0;
  display: block;
}
@media (max-width: 600px) {
  .levels-map-vert {
    min-height: 320px;
    height: 44vh;
    max-height: 340px;
  }
  .level-circle.level-pos-left {
    transform: translateX(-16px);
  }
  .level-circle.level-pos-right {
    transform: translateX(16px);
  }
  .level-dash-vert {
    height: 36px;
  }
}

.levels-map-vertclean {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  min-height: 420px;
  height: 60vh;
  max-height: 520px;
  margin: 0 auto 48px auto;
  position: relative;
}
.level-circle-wrap-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.level-dash-clean {
  width: 0;
  height: 54px;
  border-left: 3px dashed #cf2e2e;
  margin: 0 auto;
}
.level-clouds {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
  min-height: 48px;
}
.clouds-img {
  width: 100vw;
  height: auto;
  opacity: 0.8;
  filter: blur(0.5px) brightness(1.1);
}
@media (max-width: 600px) {
  .levels-map-vertclean {
    min-height: 320px;
    height: 44vh;
    max-height: 340px;
  }
  .level-dash-clean {
    height: 36px;
  }
}

.levels-map-center {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  min-height: 420px;
  height: 60vh;
  max-height: 520px;
  margin: 0 auto 48px auto;
  position: relative;
  margin-top: 0 !important;
}
.level-circle-wrap-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.level-dash-center {
  width: 0;
  height: 54px;
  border-left: 3px dashed #cf2e2e;
  margin: 0 auto;
}
.dash-to-cloud {
  height: 40px;
  border-left: 3px dashed #cf2e2e;
  margin-bottom: 0;
}
.level-clouds {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
  min-height: 48px;
}
.clouds-img {
  width: 100vw;
  height: auto;
  opacity: 0.8;
  filter: blur(0.5px) brightness(1.1);
}
@media (max-width: 600px) {
  .levels-map-center {
    min-height: 320px;
    height: 44vh;
    max-height: 340px;
  }
  .level-dash-center, .dash-to-cloud {
    height: 36px;
  }
}

.levels-map-center .level-dash-center:last-of-type {
  margin-bottom: 0;
}

/* Убираю лишние отступы у .page.map и .levels-map-center */
.page.map {
  margin: 0 !important;
  padding: 0 !important;
  background: none;
  box-shadow: none;
}


.shop {
  display: flex;
  width: 100%;
}

/* Убираю top только для страницы карты */
.page.map ~ .levels-map-center,
.page.map {
  top: 0 !important;
}

#level-scroll {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
}
.level-tasks {
  margin: 24px 0 18px 0;
  padding: 0 0 0 0;
  list-style: none;
  font-family: 'Chewy', cursive, Arial, sans-serif;
}
.level-task {
  font-size: 1.1em;
  margin-bottom: 12px;
  color: #b0b0b0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.level-task.done {
  color: #2f6690;
  font-weight: bold;
}
.level-task .task-check {
  font-size: 1.2em;
}
#complete-level-btn {
  display: block;
  margin: 32px auto 0 auto;
  padding: 14px 36px;
  background: #2f6690;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.2em;
  font-family: 'Chewy', cursive, Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(47,102,144,0.08);
  cursor: pointer;
  transition: background 0.2s;
}
#complete-level-btn:disabled {
  background: #b0b0b0;
  color: #fff;
  cursor: not-allowed;
}

#page-content.level-scroll-active {
  overflow-y: auto !important;
  height: 100vh !important;
}

html.level-scroll-active, body.level-scroll-active {
  overflow-y: auto !important;
  height: 100vh !important;
}

.threejs-btn {
  border-radius: 50%;
  box-shadow: 0 2px 8px #0002;
  border: 2px solid #1976d2;
  outline: none;
  background: #e3f2fd;
  color: #1976d2;
  opacity: 0.92;
  font-size: 2.2em;
  font-weight: bold;
  width: 60px;
  height: 60px;
  pointer-events: auto;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.threejs-btn:active {
  background: #bbdefb;
  box-shadow: 0 1px 4px #0003;
}

/* Контейнер для кнопок влево/вправо — в ряд */
#threejs-controls .left-right-group {
  position: absolute;
  left: 4vw;
  bottom: 18vh;
  display: flex;
  flex-direction: row;
  gap: 4vw;
}
/* Контейнер для кнопок вверх/вниз — в колонку */
#threejs-controls .up-down-group {
  position: absolute;
  right: 4vw;
  bottom: 18vh;
  display: flex;
  flex-direction: column;
  gap: 4vh;
}

/* Стили для изображений в онбординге */
.plane-image {
  width: 80px;
  height: 80px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.rock-image {
  width: 40px;
  height: 40px;
  animation: rotate 4s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.obstacle-single-image {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.coin-image {
  width: 60px;
  height: 60px;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.fuel-image {
  width: 120px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.levels-image {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}