
/* RUST BREEZE | RESPONSIVE MOBILE */

@media screen and (max-width: 768px) {

  html,
  body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #000014;
  }

  /* Звёздное небо */
  canvas#starCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  /* Основная композиция */
  .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;

    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;

    padding: clamp(20px, 7vh, 65px) 18px 0;
    gap: 5px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Заголовок и описание */
  .content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    text-align: center;
    transform: translateY(-15px);
  }

  .content h1 {
    font-size: clamp(2rem, 5.8vw, 2.3rem);
    line-height: 1.1;
    margin: 0 0 15px;
  }

  .content h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .content p {
    font-size: clamp(0.8rem, 2.3vw, 0.9rem);
    line-height: 1.5;
    margin: 0 auto;
  }

  .join-btn {
    margin-top: clamp(15px, 2.5vh, 25px);
    padding: 13px 22px;
    font-size: 0.9rem;
  }

  /* Главная планета */
  .moon-orbit-container {
    position: relative;
    left: auto;
    top: auto;

    width: min(90vw, 42dvh, 420px);
    height: min(90vw, 42dvh, 420px);

    flex: 0 0 auto;
    margin-top: -50px;
    transform: none;

    animation: floatRustBreeze 18s ease-in-out infinite;
  }

  .moon-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  /* Спутник */
  .satellite-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 94%;
    height: 94%;
    margin: 0;
    transform-origin: center;
    translate: -50% -50%;
  }

  .satellite {
    width: 45px;
  }

  .target-dot,
  .target-dot2 {
    width: 9px;
    height: 9px;
  }

  /* Маленькие планеты сверху */
  .earth-icon {
    position: absolute;
    top: 25px;
    left: 8%;
    width: 45px;
  }

  .mars-icon {
    position: absolute;
    top: 35px;
    left: 33%;
    width: 35px;
  }

  .jupiter-icon {
    position: absolute;
    top: 45px;
    right: 8%;
    left: auto;
    width: 50px;
  }

  /* Люмен внизу слева */
  .lumen-moon {
    position: absolute;
    top: auto;
    bottom: clamp(30px, 4vh, 40px);
    left: 10%;
    right: auto;
    width: clamp(45px, 15vw, 60px);
  }

  /* Солнце */
  .sun-icon {
    position: absolute;
    top: 100px;
    left: -45px;
    width: 110px;
    max-width: none;
  }

  /* Астероиды */
  .asteroid-belt {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    max-width: 400px;
    height: auto;
    margin: -10px auto 20px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
  }

  /* Печенька */
  body > .rust-cookie {
    position: fixed !important;
    top: auto !important;
    left: auto !important;

    right: 100px !important;
    bottom: clamp(160px, 23vh, 200px) !important;

    width: clamp(50px, 16vw, 65px) !important;
    height: clamp(50px, 16vw, 65px) !important;

    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    transform: none !important;
    z-index: 99999 !important;
  }

  .rust-cookie img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  /* Окно поддержки */
  .cookie-modal {
    box-sizing: border-box;
    max-height: 100dvh;
  }

  .cookie-panel {
    width: min(90vw, 400px);
    max-height: 85dvh;
    overflow-y: auto;
    box-sizing: border-box;
  }
}

/* Дополнительная подстройка для низких экранов */
@media screen and (max-width: 768px) and (max-height: 700px) {

  .container {
    padding-top: 25px;
    gap: 0;
  }

  .content {
    transform: translateY(-10px);
  }

  .content h1 {
    margin-bottom: 10px;
  }

  .content p {
    line-height: 1.4;
  }

  .join-btn {
    margin-top: 15px;
  }

  .moon-orbit-container {
    margin-top: -35px;
  }
}
