

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #87CEEB, #FFE4B5);
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    touch-action: manipulation;
}

.game-container {
    position: relative;
    width: 400px;
    height: 600px;
    background: #f0f8ff;
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

canvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
}

.ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pillow-btn {
    width: 70px;
    height: 40px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.blue-btn {
    background: #4169E1;
    color: white;
}

.pink-btn {
    background: #FF69B4;
    color: white;
}

.finish-btn {
    background: white;
    color: #333;
    width: 70px;
}

.pillow-btn.active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.score {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    z-index: 100;
}

.instructions {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    opacity: 0.8;
}

.high-scores {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: white;
    margin-top: 5px;
    opacity: 0.9;
}

.game-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
}