* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.screen {
    display: none;
}

.active-screen {
    display: block;
}

/* Start Screen Styles */
.start-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    padding: 12px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option-btn:hover {
    background-color: #357abd;
}

/* Level Selection Screen */
.level-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.level-btn {
    padding: 10px 25px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.level-btn:hover {
    background-color: #4cae4c;
}

/* Coin Selection Screen */
.coin-options {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.coin-option {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.coin-option:hover {
    transform: scale(1.1);
}

.coin-blue {
    background: radial-gradient(circle at 30% 30%, #6495ED, #1E90FF);
}

.coin-red {
    background: radial-gradient(circle at 30% 30%, #FF6347, #DC143C);
}

.star {
    color: white;
    font-size: 40px;
}

/* Game Board Screen */
.game-info {
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    color: #555;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto;
    max-width: 400px;
}

.cell {
    aspect-ratio: 1;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #e0e0e0;
}

.coin {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    width: 60px;
    height: 60px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #357abd;
}

/* Result Screen */
.result-message {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    color: #333;
}

.result-coin {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.try-again-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.try-again-btn:hover {
    background-color: #357abd;
}

/* Selected coin highlight */
.selected {
    box-shadow: 0 0 0 3px #ffc107;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .coin-option {
        width: 80px;
        height: 80px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .coin-option {
        width: 60px;
        height: 60px;
    }
    
    .star {
        font-size: 30px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}