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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.game-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

#level {
    font-size: 1.5rem;
    font-weight: 600;
}

#message {
    font-size: 1.25rem;
    font-weight: 500;
}

#game-canvas {
    display: block;
    background: #2d3436;
    border-radius: 12px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.3);
}

.controls {
    text-align: center;
    margin-top: 1rem;
}

.hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.touch-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.arrow-row {
    display: flex;
    gap: 3rem;
}

.arrow-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.arrow-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.45);
}

.back-link {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: #fff;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes winner {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}
