/* ========================================
   Mines - Signal System
   ======================================== */

:root {
    --bg-dark: #0a0e1a;
    --bg-darker: #060913;
    --text-primary: #ffffff;
    --text-muted: #8b92a7;
    --blue-primary: #1a3a5a;
    --blue-dark: #0f2338;
    --orange-primary: #ff6b35;
    --green-primary: #00ff00;
    --green-dark: #00cc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, var(--bg-darker) 0%, #0a1a1a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.mines-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.mines-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px 0;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mines-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Game Board */
.game-board {
    background: var(--blue-primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mine-square {
    aspect-ratio: 1;
    background: var(--blue-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mine-square::before {
    content: '';
    width: 60%;
    height: 60%;
    background: rgba(100, 150, 200, 0.6);
    border-radius: 50%;
    display: block;
}

.mine-square.revealed {
    background: var(--orange-primary);
    animation: revealAnimation 0.3s ease;
}

.mine-square.revealed::before {
    background: rgba(255, 255, 255, 0.9);
}

.mine-square.revealed .star-icon {
    color: #ffffff;
    font-size: 1.5rem;
    display: block;
    position: absolute;
    z-index: 1;
}

.mine-square:not(.revealed):hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.star-icon {
    display: none;
}

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

/* Identify Opportunity Button */
.identify-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: var(--green-primary);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.identify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
}

.identify-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.identify-button.wait-button {
    background: rgba(0, 255, 0, 0.5);
    cursor: not-allowed;
}

/* Protection Text */
.protection-text {
    text-align: center;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Platform Section */
.platform-section {
    margin-top: auto;
    margin-bottom: 30px;
}

.platform-button {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.3));
    border: 2px solid rgba(0, 255, 0, 0.5);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.platform-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.4);
    border-color: rgba(0, 255, 0, 0.8);
}

.platform-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mines-container {
        padding: 15px;
    }

    .mines-header h1 {
        font-size: 1.5rem;
    }

    .game-board {
        padding: 15px;
    }

    .mines-grid {
        gap: 6px;
    }

    .mine-square {
        border-radius: 6px;
    }

    .mine-square.revealed .star-icon {
        font-size: 1.2rem;
    }

    .identify-button {
        font-size: 1rem;
        padding: 15px;
    }

    .platform-button {
        font-size: 1.1rem;
        padding: 18px;
    }
}

