  @font-face {
    font-family: 'Monitorca';
    src:url('/fonts/Monitorca/woff/Monitorca-Bold.woff2') format('woff2'),
        url('/fonts/Monitorca/woff/Monitorca-Bold.woff') format('woff'),
        url('/fonts/Monitorca/Monitorca-Bd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
  }
  
  body {
      margin: 0;
      padding: 0;
      min-height: 100vh;
      display: flex;
	  width: 100%;
      justify-content: center;
      align-items: center;
      font-family: 'Monitorca', monospace;
      color: #e0e0e0;
      overflow-x: hidden;
      background: linear-gradient(-45deg, #0f0523, #1a0933, #2d0b5e, #4a148c);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
  }

  @keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
  }

  .container {
      display: flex;
	  flex-direction: column;
	  justify-content: center;
	  min-height: 10vh;
	  width: 100%;
      max-width: 200vh;
      text-align: center;
      padding: 20px;
      box-sizing: border-box;
	  margin-top: -10vh;
  }

  h1 {
      font-size: clamp(2rem, 5vw, 10rem); /* Адаптивный размер */
      text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
      margin-bottom: clamp(20px, 5vh, 50px);
      font-family: 'Monitorca', monospace;
	  text-align: center;
      width: 100%;
  }

  .button-container {
      display: flex;
      justify-content: center;
	  align-items: center;
      gap: clamp(8px, 1.2vw, 20px);
      margin-top: 10vh;
      flex-wrap: nowrap; /* Перенос на мобильных */
	  width: 100%;
  }

  .retro-button {
      /* Динамические размеры */
	  flex: 1 1 0;
      width: clamp(200px, 30vw, 700px);
      height: clamp(120px, 18vw, 400px);
	  min-width: 200px;
	  max-width: 28vw;
      aspect-ratio: 5/3;
      border: 2px solid #ff00ff;
      border-radius: 8px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      transition: all 0.3s ease;
      background-color: rgba(20, 5, 40, 0.6);
      box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
      overflow: hidden;
  }

  .retro-button:hover {
      transform: scale(1.05);
      box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
      border-color: #00ffff;
  }

  .retro-button img {
      /* Адаптивные изображения */
      width: 200%;
      height: 200%;

      object-fit: fill;
      transition: transform 0.3s ease;
  }
  
  .button-container.second-row {
    margin-top: 3vh; /* расстояние между первым и вторым рядом */
}



.button-with-status {
    display: flex;
    width: clamp(280px, 40vw, 860px);
	max-width: 95vw;
    height: clamp(120px, 18vw, 400px);
    border: 2px solid #ff00ff;
    border-radius: 8px;
    overflow: hidden;
	font-size: clamp(12px, 1.8vw, 19px);
	transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.button-with-status:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
    border-color: #00ffff;
}

/* кнопка внутри */
.button-with-status .retro-button {
    flex: 3;
    border: none; /* рамка у общего контейнера */
    border-radius: 0;
    height: 100%;
}

/* статус-контейнер берём твой, но убираем absolute */
.button-with-status .status-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3vh;
    background-color: rgba(0,0,0,0.9);
    padding: 8px;
    border-left: 2px solid #ff00ff;
    border-radius: 0;
    box-shadow: none;
	min-width: 120px;
}

.button-with-status .status-item {
    display: flex;
    align-items: center;
    gap: 8px;
	text-align: left;
	margin-left: 10px;
}

.button-with-status .status-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px currentColor;
}

.button-with-status .status-label {
    font-size: 1em;
    color: #FFFFFF;
    font-family: 'Monitorca', monospace;
    min-width: 60px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.button-with-status .status-label a {
    text-decoration: none;      /* убираем подчёркивание */
    color: #ffffff;             /* базовый цвет — белый */
    transition: color 0.3s ease;
}

.button-with-status .status-label a:visited {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.button-with-status .status-label a:hover {
    color: #00ffff;             /* при наведении — слегка голубой */
}


.button-with-status .retro-button:hover {
    transform: none;        /* убираем отдельное увеличение */
    box-shadow: none;       /* чтобы не было двойной подсветки */
    border-color: inherit;
}

.button-with-status .retro-button img {
    width: 200%;
    height: 200%;
    object-fit: fill;  /* картинка вписывается внутрь без обрезки */

}


.green { background-color: #2ecc71; color: #2ecc71; }
.red   { background-color: #e74c3c; color: #e74c3c; }
.gray  { background-color: #95a5a6; color: #95a5a6; }


/* Добавьте в конец файла style.css */

.button-container.first-row {
    margin-top: 0.5vh;
}

.button-container.second-row {
    margin-top: 3vh; /* расстояние между первым и вторым рядом */
}

/* Для мобильных устройств можно добавить адаптивность */
@media (max-width: 768px) {
    .button-container.first-row,
    .button-container.second-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .button-container.first-row .retro-button,
    .button-container.second-row .retro-button {
        min-width: 150px;
        max-width: 45vw;
    }
    
    .button-with-status {
        width: 95vw;
        max-width: 95vw;
    }
}