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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#game-container {
    width: 100%;
    max-width: 500px;
    background: #111827;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: white;
}

#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1F2937;
    border-bottom: 1px solid #374151;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FCD34D;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

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

#game-area {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.instruction {
    text-align: center;
    font-size: 1.2rem;
    color: #9CA3AF;
}

.switch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 300px;
    height: 300px;
}

.switch {
    background: #374151;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    position: relative;
    border: 2px solid #4B5563;
}

.switch.on {
    background: #FCD34D;
    box-shadow: 0 0 15px #FCD34D, inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    border-color: #F59E0B;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1F2937;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid #374151;
    color: white;
}

.stars {
    font-size: 3rem;
    margin-bottom: 16px;
}

.btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    background: #FCD34D;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(252, 211, 77, 0.4);
}

.btn-secondary {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #374151;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #4B5563;
}