* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    min-height: 100vh;
    color: #222;
    padding: 20px;
}
.game-container {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.13);
    padding: 30px;
    border: 2px solid rgba(247,151,30,0.12);
}
.game-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 3px solid #f7971e;
    padding-bottom: 16px;
}
.game-header h1 {
    font-size: 2rem;
    color: #f7971e;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.07);
    font-weight: bold;
}
.game-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.score-label {
    color: #f7971e;
    font-weight: bold;
}
.score-value {
    padding: 4px 10px;
    border-radius: 8px;
    background: #fffbe6;
    color: #f7971e;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid #f7971e;
}
.game-btn {
    padding: 8px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #f7971e, #ffd200);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(247,151,30,0.12);
    background: linear-gradient(45deg, #ffd200, #f7971e);
}
.game-btn:active {
    transform: translateY(0);
}
.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.game-board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.board {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    grid-template-rows: repeat(5, 50px);
    gap: 8px;
    background: #fffbe6;
    border-radius: 12px;
    padding: 8px;
}
.light {
    width: 50px;
    height: 50px;
    background: #ffd200;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(247,151,30,0.08);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    border: 2px solid #f7971e;
}
.light.off {
    background: #fff;
    border: 2px solid #ffd200;
}
.instructions {
    background: rgba(247,151,30,0.08);
    border-radius: 15px;
    padding: 16px;
    border: 2px solid rgba(247,151,30,0.12);
    margin-top: 10px;
}
.instructions h3 {
    color: #f7971e;
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.1rem;
}
.instructions ul {
    margin-left: 20px;
    color: #222;
    font-size: 1rem;
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .game-container {
        padding: 16px 10px;
    }

    .game-status {
        flex-wrap: wrap;
        gap: 8px;
    }

    .board {
        width: 100%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: repeat(5, auto);
        gap: 4px;
        padding: 4px;
    }

    .light {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        min-height: 44px;
    }

    .game-btn {
        min-height: 44px;
    }
}
