* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #000;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* STILURI PENTRU MENIU - NEGRU CU VERDE */
.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    padding: 20px;
    position: relative;
}

.menu-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.2"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/><circle cx="90" cy="90" r="0.8" fill="white" opacity="0.15"/><circle cx="10" cy="60" r="0.3" fill="white" opacity="0.2"/></svg>') repeat;
    animation: stars-twinkle 3s ease-in-out infinite;
}

@keyframes stars-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.menu-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
}

.game-card {
    background: rgba(0, 255, 150, 0.05);
    border-radius: 25px;
    padding: 25px;
    border: 2px solid rgba(0, 255, 150, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 150, 0.1);
}

.game-card.active {
    border-color: rgba(0, 255, 150, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 150, 0.2);
}

.game-card.active:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 150, 0.5);
    box-shadow: 0 10px 40px rgba(0, 255, 150, 0.3);
}

.game-card.disabled {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.05);
}

.game-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* MINES ICON */
.mines-icon {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
    position: relative;
}

.mines-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.mines-icon::before {
    content: 'MINES';
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #00ff88, #00cc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ALTE ICOANE */
.luckyjet-icon {
    background: linear-gradient(135deg, #9370db 0%, #4b0082 100%);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.4);
}

.luckyjet-logo {
    font-size: 40px;
    margin-bottom: 5px;
    animation: rocket-bounce 2s ease-in-out infinite;
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.luckyjet-text {
    font-size: 12px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.aviator-icon {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.aviator-logo {
    font-size: 40px;
    margin-bottom: 5px;
    transform: rotate(-15deg);
}

.aviator-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
    font-style: italic;
}

.spibe-icon {
    background: linear-gradient(135deg, #4169e1 0%, #0000cd 100%);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.spibe-logo {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.spibe-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00ff88;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

.game-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00ff99 0%, #00dd77 100%);
}

.disabled-btn {
    background: rgba(0, 255, 150, 0.1);
    color: rgba(0, 255, 150, 0.5);
    cursor: not-allowed;
    border: 1px solid rgba(0, 255, 150, 0.1);
}

/* STILURI PENTRU JOC - TEMA NEGRU-VERDE */
.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
}

/* EFECTUL DE STELE ȘI ÎN JOC */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.2"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/><circle cx="90" cy="90" r="0.8" fill="white" opacity="0.15"/><circle cx="10" cy="60" r="0.3" fill="white" opacity="0.2"/></svg>') repeat;
    animation: stars-twinkle 3s ease-in-out infinite;
    z-index: 0;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 18px;
    background: rgba(0, 255, 150, 0.1);
    padding: 18px 18px 50px 18px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 150, 0.2);
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 255, 150, 0.15);
}

.header h1 {
    font-size: 1.8em;
    margin-bottom: 0;
    background: linear-gradient(45deg, #00ff88, #00cc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

.back-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 150, 0.2);
    border: 2px solid rgba(0, 255, 150, 0.3);
    color: #00ff88;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 255, 150, 0.2);
}

.back-button:hover {
    background: rgba(0, 255, 150, 0.3);
    border-color: rgba(0, 255, 150, 0.5);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 150, 0.4);
}

.game-section {
    background: rgba(0, 255, 150, 0.1);
    padding: 18px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 150, 0.2);
    box-shadow: 0 8px 25px rgba(0, 255, 150, 0.15);
}

.grid-container {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 18px;
    border-radius: 18px;
    border: 2px solid rgba(0, 255, 150, 0.3);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cell {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
    border: 2px solid rgba(0, 255, 150, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 255, 150, 0.1);
}

.cell:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 150, 0.4);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 150, 0.3);
    background: linear-gradient(135deg, #2a5d4a 0%, #1d3828 100%);
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.mines-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid rgba(0, 255, 150, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 150, 0.1);
}

.mines-selector label {
    font-weight: bold;
    color: #00ff88;
    font-size: 1em;
    text-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

.selector {
    display: flex;
    align-items: center;
    gap: 18px;
}

.selector button {
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
    border: 2px solid rgba(0, 255, 150, 0.4);
    color: #00ff88;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 255, 150, 0.2);
}

.selector button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 150, 0.6);
    background: linear-gradient(135deg, #2a5d4a 0%, #1d3828 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 150, 0.4);
}

#mines-count {
    font-size: 1.7em;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
    color: #00ff88;
    text-shadow: 0 2px 4px rgba(0, 255, 136, 0.5);
}

.signal-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    border: none;
    color: #000;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    width: 100%;
    max-width: 280px;
    border: 2px solid rgba(0, 255, 150, 0.3);
}

.signal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
    background: linear-gradient(135deg, #00ff99 0%, #00dd77 100%);
}

.signal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: rgba(0, 255, 150, 0.3);
    color: rgba(0, 0, 0, 0.7);
}

/* ANIMAȚII PENTRU SPARGERE ȘI STELUTE - TEMA VERDE */
.cell.breaking {
    animation: breaking 300ms ease-in-out;
    background: linear-gradient(45deg, #00ff88, #00cc66);
    border-color: rgba(0, 255, 150, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
}

@keyframes breaking {
    0% {
        transform: scale(1) rotate(0deg);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    25% {
        transform: scale(1.1) rotate(-2deg);
        clip-path: polygon(10% 0%, 90% 10%, 95% 90%, 5% 95%);
    }
    50% {
        transform: scale(0.9) rotate(2deg);
        clip-path: polygon(20% 5%, 80% 15%, 85% 85%, 15% 90%);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
        clip-path: polygon(15% 10%, 85% 5%, 90% 95%, 10% 85%);
    }
    100% {
        transform: scale(1) rotate(0deg);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

.cell.star-revealed {
    animation: star-appear 500ms ease-out;
}

@keyframes star-appear {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(90deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.cell.predicted {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    animation: star-pulse-green 2s ease-in-out infinite;
    border-color: rgba(0, 255, 150, 0.8);
}

.cell.predicted::before {
    content: '⭐';
    font-size: 1.1em;
    color: #000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes star-pulse-green {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.5), 0 0 15px rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.6);
        transform: scale(1.08);
    }
}

.ai-info {
    text-align: center;
    background: rgba(0, 255, 150, 0.1);
    padding: 12px;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 150, 0.2);
    box-shadow: 0 4px 15px rgba(0, 255, 150, 0.1);
}

.prediction-status {
    font-weight: bold;
    color: #00ff88;
    font-size: 1em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

/* RESPONSIVE DESIGN - MOBIL */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
    }
    
    .game-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 10px;
    }
    
    .games-grid {
        gap: 15px;
        padding: 10px;
    }
    
    .game-card {
        padding: 15px;
    }
    
    .game-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .container {
        max-width: 320px;
        padding: 8px;
    }

    .cell {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }

    .grid {
        gap: 8px;
        padding: 15px;
    }

    .header h1 {
        font-size: 1.6em;
    }

    .signal-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

.access-denied {
    background: #f44336 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.access-denied:hover {
    background: #f44336 !important;
    transform: none !important;
}

#access-status {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
