body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
}

.game-container {
    position: relative;
    width: 90vmin;
    height: 90vmin;
    max-width: 500px;
    max-height: 500px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

#maze {
    display: grid;
    width: 100%;
    height: 100%;
    background-color: #fafafa;
}

.cell {
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.wall {
    background-color: #333;
}

.player {
    background-color: #4CAF50;
    border-radius: 50%;
    width: 70%;
    height: 70%;
    transition: all 0.2s;
    position: relative;
}

.player::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.exit {
    background-color: #FF5722;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.stats {
    display: flex;
    justify-content: space-between;
    width: 90vmin;
    max-width: 500px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
}

.stat {
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

button {
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

button:hover {
    background-color: #f0f0f0;
}

.win-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.win-message.show {
    opacity: 1;
    pointer-events: all;
}

.win-message h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.win-message p {
    font-size: 16px;
    margin-bottom: 20px;
}