/* ==========================================================================
   3D SANDBOX - ОФИЦИАЛЬНЫЙ САЙТ (КЛАССИЧЕСКИЙ РЕТРО-СТИЛЬ, БЕЗ GLOW)
   Полноэкранный компактный интерфейс без скролла, плавное появление
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.preview-map-image,
.brand-logo-3d,
.brand-logo-sandbox {
  pointer-events: none;
}

/* Полное скрытие полосы прокрутки для чистого посадочного экрана */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  background-color: #181a20;
  color: #c8cbd2;
  font-family: 'Tahoma', 'MS Sans Serif', Geneva, sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* Плавное, мягкое появление страницы и элементов */
@keyframes smoothPageFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes cascadeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cascade-item {
  opacity: 0;
  animation: cascadeFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Полноэкранный контейнер ровно на 100vh */
.site-wrapper {
  width: 100%;
  height: 100vh;
  background: #181a20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: smoothPageFadeIn 2.0s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Основной блок во весь экран */
.hero-section {
  flex: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 44px;
  align-items: center;
}

@media (max-width: 900px) {
  html, body {
    overflow-y: auto;
  }
  .site-wrapper {
    height: auto;
    min-height: 100vh;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 20px;
  }
}

/* Левая часть: логотип, описание и кнопка */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.brand-logo-3d {
  width: 104px;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.brand-logo-sandbox {
  width: 400px;
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-subtitle {
  font-size: 13px;
  color: #9297a5;
  margin-bottom: 12px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.hero-desc {
  font-size: 12px;
  color: #a8adb8;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 580px;
}

/* Мета-информация в классическом ретро-стиле (фасон Windows 98 / 90s игры) */
.meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  background: #121418;
  border-top: 2px solid #0a0b0d;
  border-left: 2px solid #0a0b0d;
  border-right: 2px solid #2e323b;
  border-bottom: 2px solid #2e323b;
  padding: 12px 16px;
  margin-bottom: 22px;
  max-width: 500px;
}

.meta-item {
  display: flex;
  font-size: 11px;
  gap: 6px;
}

.meta-label {
  color: #727785;
  font-weight: bold;
}

.meta-val {
  color: #d1d5db;
  font-family: 'Consolas', 'Courier New', monospace;
}

.download-container {
  display: flex;
  flex-direction: column;
  width: 500px;
  max-width: 100%;
  gap: 10px;
}

/* Ретро-кнопка скачивания: классический приподнятый скос (beveled button) */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #2b552d;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 22px;
  border-top: 3px solid #4d8f50;
  border-left: 3px solid #4d8f50;
  border-right: 3px solid #142816;
  border-bottom: 3px solid #142816;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-download:hover {
  background: #346937;
  color: #ffffff;
}

.btn-download:active {
  background: #1c3b1e;
  border-top: 3px solid #142816;
  border-left: 3px solid #142816;
  border-right: 3px solid #4d8f50;
  border-bottom: 3px solid #4d8f50;
  padding: 17px 21px 15px 23px; /* эффект нажатия кнопки без прыжка вверх */
}

.btn-icon {
  font-size: 20px;
  line-height: 1;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.8px;
  font-family: 'Tahoma', sans-serif;
}

.btn-sub {
  font-size: 11px;
  color: #a8cca9;
  font-family: 'Consolas', monospace;
  margin-top: 2px;
}

/* Блок предупреждения об обновлениях */
.update-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #13151a;
  border-top: 1px solid #0d0e12;
  border-left: 1px solid #0d0e12;
  border-right: 1px solid #282b36;
  border-bottom: 1px solid #282b36;
  padding: 10px 14px;
  font-size: 11px;
  color: #9ea3b0;
  line-height: 1.5;
  font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
}

.update-notice-icon {
  color: #c9aa48;
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Правая колонка: классическая ретро-рамка (beveled panel) */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-frame {
  width: 100%;
  max-width: 660px;
  background: #15171c;
  border-top: 2px solid #2e323b;
  border-left: 2px solid #2e323b;
  border-right: 2px solid #090a0d;
  border-bottom: 2px solid #090a0d;
  display: flex;
  flex-direction: column;
}

.preview-media-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0f1014;
}

.preview-map-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-top: 2px solid #060708;
  border-left: 2px solid #060708;
  border-right: 2px solid #262933;
  border-bottom: 2px solid #262933;
  margin-bottom: 12px;
  display: block;
}

.preview-canvas-card {
  width: 100%;
  background: #14161b;
  border-top: 1px solid #0c0d10;
  border-left: 1px solid #0c0d10;
  border-right: 1px solid #272a33;
  border-bottom: 1px solid #272a33;
  padding: 10px 14px;
}

.preview-tag {
  font-size: 11px;
  font-family: 'Consolas', 'Lucida Console', monospace;
  color: #b0b4be;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.preview-scene-desc {
  font-size: 12px;
  color: #838896;
  line-height: 1.5;
  font-family: 'Tahoma', Arial, sans-serif;
}

/* Подвал: лаконичный ретро-подвал */
.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  background: #121318;
  border-top: 2px solid #242730;
  font-size: 11px;
  color: #5d6170;
  text-align: center;
}

.footer-copyright {
  font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
  letter-spacing: 0.4px;
}
