/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.logo i {
    font-size: 2rem;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #ffd700;
    pointer-events: none;
}

.language-selector select {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #ffd700;
    border-radius: 20px;
    padding: 8px 35px 9px 15px; 
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background: rgba(255, 215, 0, 0.2);
}

.language-selector select option {
    background-color: #1a1a2e;
    color: #e0e0e0;
    padding: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ff6b35, #f7931e, #ffd700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #cccccc;
    font-family: 'Roboto', sans-serif;
}

.welcome-text {
    font-size: 1.1rem;
    color: #aaaaaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Button Styles */
.win-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ff6b35, #f7931e, #ffd700);
    background-size: 400% 400%;
    border: 2px solid #ffd700;
    color: #000000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-decoration: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    animation: gradientShift 3s ease-in-out infinite;
}

.win-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.win-button:hover::before {
    left: 100%;
}

.win-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5);
    border-color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.win-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Alternative button with icon */
.win-button-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #ffd700, #a08000);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

.win-button-icon i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.win-button-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #a08000, #ffd700);
}

.win-button-icon:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Games Section */
.games-section {
    padding: 2rem 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.game-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.game-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1rem;
}

.game-description {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    margin: 5% auto;
    padding: 0;
    border: 1px solid #ffd700;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.modal-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #cccccc;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ffd700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Mines game specific styles */
.mines-field {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Assuming a 5x5 grid for mines */
    gap: 5px;
    width: 255px; /* 5 * 45px + 4 * 5px */
    margin: 20px auto;
}

.mine-cell {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: 1px solid #ffd700;
    border-radius: 5px;
    background-color: #1a1a2e; /* Default background for unrevealed cells */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mine-cell.revealed {
    cursor: default;
}

.mine-cell.revealed.mine {
    background-color: #f44336; /* Red for mines */
}

.mine-cell.revealed.safe {
    background-color: #4caf50; /* Green for safe cells */
}

.header-right-section {
    display: flex;
    align-items: center; 
    gap: 20px;
}

.user-id-display {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    top: 2px;
}

.your-id-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.your-id-button:hover {
    background-color: #0056b3;
}

.user-id-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-id-input {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
    width: 100px;
}

.user-id-save-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.user-id-save-button:hover {
    background-color: #218838;
}

/* Game Modal Button Styles */
.game-interface button {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    border: none;
    color: #1a1a2e;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.game-interface button:hover {
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.game-interface button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.game-interface input[type="number"] {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffd700;
    color: #fff;
    padding: 8px 12px;
    border-radius: 15px;
    margin: 10px 0;
    width: 150px;
    text-align: center;
}

.game-interface input[type="number"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.5);
}

.crash-game, .mines-game, .tower-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.crash-result, #minesResultDisplay, #towerResultDisplay {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}


/* ID Input Section Styles */
.id-input-section {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.id-input-section input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    width: 200px;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.id-input-section input[type="text"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
    transform: scale(1.05);
}

.id-input-section .your-id-button {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    border: none;
    color: #1a1a2e;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.id-input-section .your-id-button:hover {
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.id-warning-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

/* Enhanced Game Result Displays */
.crash-game .crash-result {
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.1), rgba(255, 102, 102, 0.05));
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.crash-game .crash-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 68, 68, 0.1), transparent);
    animation: crashGlow 2s linear infinite;
}

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

/* ================================================= */
/* === ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ИГРЫ "МИНЫ" === */
/* ================================================= */

/* Контейнер для всего поля с минами */
.mines-game .mines-field {
    display: grid; /* Включаем сеточную модель */
    grid-template-columns: repeat(5, 1fr); /* 5 колонок равной ширины */
    grid-template-rows: repeat(5, 1fr);    /* 5 рядов равной высоты */
    gap: 5px; /* Промежуток между ячейками */
    
    width: 100%; /* Поле занимает всю доступную ширину родителя */
    max-width: 320px; /* Но не становится слишком большим на широких экранах */
    margin: 20px auto; /* Центрируем поле и добавляем отступы */
    
    aspect-ratio: 1 / 1; /* Гарантирует, что поле всегда будет квадратным */
    
    /* Декоративные стили, которые вы уже использовали */
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 10px; /* Небольшой внутренний отступ для красоты */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Стиль для каждой отдельной ячейки (мины или кристалла) */
.mines-game .mine-cell {
    /* Размеры теперь задавать не нужно, grid сделает это за нас */
    width: 100%; 
    height: 100%;

    display: flex; /* Центрируем иконку внутри ячейки */
    align-items: center;
    justify-content: center;
    
    /* Декоративные стили */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2); /* Рамка чуть тоньше для аккуратности */
    border-radius: 8px; /* Скругляем углы ячеек */
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.5rem; /* Размер иконок */
}

/* Эффект при наведении на ячейку */
.mines-game .mine-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Стиль для ячейки с миной */
.mines-game .mine-cell.revealed.mine {
    background: linear-gradient(145deg, #ff4444, #cc0000);
    border-color: #ff6666;
    animation: mineExplode 0.5s ease-out;
}

/* Стиль для безопасной ячейки */
.mines-game .mine-cell.revealed.safe {
    background: linear-gradient(145deg, #4caf50, #2e7d32);
    border-color: #66bb6a;
    animation: safeReveal 0.3s ease-out;
}

/* Анимации остаются без изменений */
@keyframes mineExplode {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes safeReveal {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


.tower-game #towerResultDisplay {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.05));
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    position: relative;
}

.tower-game #towerResultDisplay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    border-radius: 18px;
    animation: towerShine 3s ease-in-out infinite;
}

@keyframes towerShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Error Banner Styles */
.error-banner {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 68, 68, 0.5);
}

/* Enhanced Modal Styles */
.modal-body {
    position: relative;
}

.modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
}

/* Responsive improvements for game interfaces */
@media (max-width: 768px) {
    .id-input-section input[type="text"] {
        width: 180px;
        font-size: 0.9rem;
    }
    
    .crash-multiplier {
        font-size: 3rem !important;
    }
    
    .tower-level {
        font-size: 2rem !important;
    }
    
    .tower-multiplier {
        font-size: 2.5rem !important;
    }
    
    .mines-field {
        width: 225px;
    }
    
    .mine-cell {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .id-input-section {
        padding: 1rem;
    }
    
    .id-input-section input[type="text"] {
        width: 160px;
        padding: 10px 15px;
    }
    
    .crash-multiplier {
        font-size: 2.5rem !important;
    }
    
    .mines-field {
        width: 205px;
    }
    
    .mine-cell {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Where to find ID button */
.where-to-find-id-button {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.where-to-find-id-button:hover {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* ID Help Modal Styles */
.id-help-modal {
    z-index: 1001;
}

.id-help-content {
    max-width: 600px;
    width: 90%;
}

.id-help-body {
    text-align: center;
    padding: 1.5rem;
}

.id-help-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.id-help-text {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Responsive adjustments for ID help modal */
@media (max-width: 768px) {
    .id-help-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .id-help-body {
        padding: 1rem;
    }
    
    .id-help-text {
        font-size: 1rem;
    }
    
    .where-to-find-id-button {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .id-help-content {
        width: 98%;
    }
    
    .id-help-text {
        font-size: 0.9rem;
    }
}


/* Mines Game Options Styles */

.mines-options-controls {
    display: flex;
    /* ЭТО КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: align-items выравнивает элементы по центру */
    align-items: center; 
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.mines-options-controls label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffd700;
    /* Добавляем это, чтобы убрать любые случайные отступы, которые могут мешать */
    line-height: 1; 
}

/* Обёртка для селекта со стрелкой */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.custom-select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #ffd700;
    pointer-events: none;
}

/* Стили для самого селекта */
.mines-options-controls select {
    background-color: #1a1a2e;
    color: #fff;
    border: 1px solid #ffd700;
    padding: 10px 30px 10px 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Добавляем это, чтобы убрать любые случайные отступы, которые могут мешать */
    line-height: 1; 
}

.mines-options-controls select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.4);
}

.mines-options-controls select option {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

/* Стили для кнопки, чтобы она точно соответствовала другим элементам */
.mines-options-controls .your-id-button {
    /* Убираем верхний margin, который мог быть унаследован */
    margin-top: 0; 
    /* Явно задаем line-height, чтобы он не влиял на выравнивание */
    line-height: 1; 
    padding: 12px 22px; /* Подгоняем отступы, чтобы высота кнопки совпадала с селектом */
}


