    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Arial, sans-serif;
	  background: #0a0a1a url('img/fon.png') center/cover no-repeat fixed;
      color: #f1f1f1;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .container {
      text-align: center;
      padding: 40px;
    }

    .tagline {
      font-size: 2rem;
      letter-spacing: 12px;
      text-shadow: 0 0 50px rgba(230, 57, 70, 0.8);
      color: #888;
      letter-spacing: 10px;
      margin-bottom: 0px;
	  transform: translateY(-350px);
    }

    .discord-btn {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 16px 40px;
      background: #5865f2;
      color: white;
      text-decoration: none;
      border-radius: 12px;
      font-size: 1.1rem;
      font-weight: 600;
      transition: all 0.3s;
      box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
    }

    .discord-btn:hover {
      background: #4752c4;
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
    }

    .discord-btn svg {
      width: 24px;
      height: 24px;
    }

    /* ===== Экран лобби ===== */
    .lobby-screen {
      display: none;
    }

    .user-card {
      display: flex;
      align-items: center;
      gap: 20px;
      background: rgba(20, 20, 40, 0.75);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 16px;
      padding: 24px 32px;
      margin-bottom: 40px;
      justify-content: center;
    }

    .user-card img {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 3px solid #d4a843;
    }

    .user-card .name {
      font-size: 1.5rem;
      font-weight: 600;
    }

    .user-card .status {
      color: #4caf50;
      font-size: 0.85rem;
    }

    .lobby-title {
      font-size: 1.8rem;
      margin-bottom: 30px;
      color: #d4a843;
    }

    .actions {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .action-btn {
      padding: 20px 32px;
      background: rgba(20, 20, 40, 0.75);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      color: #f1f1f1;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s;
      font-family: inherit;
    }

    .action-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: #d4a843;
      transform: translateY(-2px);
    }

    .action-btn .emoji {
      font-size: 2rem;
      display: block;
      margin-bottom: 8px;
    }
	
	
	
	
	
	
	
	/* ===== Экран лобби игры ===== */
.game-lobby-screen {
  display: none;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.room-code {
  background: rgba(20, 20, 40, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 1.1rem;
}

.room-code span {
  color: #d4a843;
  font-weight: bold;
  letter-spacing: 3px;
  margin-left: 8px;
}

.back-btn {
  padding: 14px 24px;
  background: rgba(20, 20, 40, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f1f1f1;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.back-btn:hover {
  border-color: #e63946;
  color: #e63946;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.player-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(20, 20, 40, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 80px;
}

.player-slot.empty {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 40, 0.4);
  justify-content: center;
  color: #666;
  font-style: italic;
}

.player-slot img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #d4a843;
}

.player-slot .player-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.player-slot .slot-number {
  color: #d4a843;
  font-weight: bold;
  font-size: 0.85rem;
  margin-right: 4px;
}




/* ===== Экран ввода кода ===== */
.join-screen {
  display: none;
}

.join-card {
  background: rgba(20, 20, 40, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  margin: 0 auto;
}

.join-label {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 20px;
}

.code-input {
  width: 100%;
  padding: 20px;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(212, 168, 67, 0.4);
  border-radius: 12px;
  color: #d4a843;
  font-weight: bold;
  font-family: inherit;
  text-transform: uppercase;
  outline: none;
  transition: border 0.3s;
}

.code-input:focus {
  border-color: #d4a843;
}

.join-error {
  color: #e63946;
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 20px;
}

.join-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.join-btn {
  padding: 14px 32px;
}





/* ===== Кнопка старта игры ===== */
.start-game-wrap {
  margin-top: 30px;
  text-align: center;
}

.start-btn {
  padding: 18px 48px;
  background: linear-gradient(135deg, #d4a843, #b8902f);
  color: #0a0a1a;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.5);
}

.start-btn:disabled {
  background: rgba(100, 100, 100, 0.4);
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.start-hint {
  margin-top: 12px;
  color: #888;
  font-size: 0.9rem;
}