body {
    background: linear-gradient(135deg, #00c3ff 0%, #ffff1c 100%);
    color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
}
#gameCanvas {
    display: none; /* Hide by default, shown by JS when game starts */
    margin: 0 auto;
    background: #222;
    box-shadow: 0 0 40px #00c3ff55;
    border-radius: 18px;
    border: 4px solid #fff;
    touch-action: none;
}
.paddle {
    position: absolute;
    background: linear-gradient(90deg,#fff,#00c3ff 70%,#ffff1c);
    border-radius: 16px;
    box-shadow: 0 2px 16px #00c3ff77;
    height: 18px;
    z-index: 20;
    pointer-events: none;
}
.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.8;
    animation: particleFade 0.7s linear forwards;
}
@keyframes particleFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}
#gameHeader {
    position: fixed;
    top: 0;
    left: 0;
    padding: 14px 24px;
    z-index: 100;
    pointer-events: none;
}
#gameTitle {
    font-size: 2.1rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 12px #00c3ff66;
    letter-spacing: 0.04em;
}
#ui {
    display: none; /* Hide by default, shown by JS when game starts */
    position: fixed;
    top: 20px;
    right: 24px;
    left: auto;
    width: auto;
    background: none;
    text-align: right;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
#hearts {
    font-size: 2rem;
    color: #ff5252;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    text-shadow: 1px 1px 8px #fff6;
}
@media (max-width: 600px) {
    #gameTitle { font-size: 1.2rem; }
    #ui, #hearts { font-size: 1.2rem; }
}

#lives {
    font-size: 1.4rem;
    color: #ff5252;
    font-weight: bold;
    text-shadow: 1px 1px 8px #fff6;
    margin-bottom: 2px;
}
#achievement {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    color: #222;
    border-radius: 8px;
    padding: 6px 18px;
    margin: 6px auto;
    display: inline-block;
    box-shadow: 0 2px 10px #2223;
    pointer-events: auto;
    animation: popin 0.6s cubic-bezier(0.5,1.75,0.5,1) 1;
}
@keyframes popin {
    0% { transform: scale(0.6); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
/* #score styles removed */
#level {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffb300;
    text-shadow: 1px 1px 8px #000a;
}
#message {
    font-size: 2.1rem;
    font-weight: bold;
    margin-top: 12px;
    color: #fff;
    background: linear-gradient(90deg, #ff5858 0%, #f09819 100%);
    border-radius: 10px;
    padding: 10px 24px;
    display: inline-block;
    box-shadow: 0 4px 16px #0006;
    pointer-events: auto;
}
#restart {
    margin-top: 28px;
    padding: 12px 36px;
    font-size: 1.3rem;
    background: linear-gradient(90deg, #00c3ff 0%, #ffff1c 100%);
    color: #222;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px #0005;
    pointer-events: auto;
    transition: background 0.2s, color 0.2s;
}
#restart:hover {
    background: linear-gradient(90deg, #ffff1c 0%, #00c3ff 100%);
    color: #000;
}
#menu, #pause {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    color: #fff;
    text-shadow: 2px 2px 8px #000a;
}
#menu h1 {
    font-size: 3.2rem;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 4px 4px 16px #00c3ff99;
}
#menu button, #pause button, #tutorial button, #settings button, #gameOverStats button, #victory button, #restart, #ui button {
    font-size: 2.1rem;
    padding: 22px 56px;
    margin-top: 18px;
    border-radius: 18px;
    background: linear-gradient(90deg,#00c3ff 0%,#ffff1c 100%);
    color: #222;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px #0007;
    transition: background 0.2s, color 0.2s, transform 0.12s;
    letter-spacing: 0.04em;
    outline: none;
}
#menu button:hover, #pause button:hover, #tutorial button:hover, #settings button:hover, #gameOverStats button:hover, #victory button:hover, #restart:hover, #ui button:hover {
    background: linear-gradient(90deg, #ffff1c 0%, #00c3ff 100%);
    color: #000;
    transform: scale(1.06);
    box-shadow: 0 6px 24px #00c3ff66;
}
    font-size: 1.5rem;
    padding: 16px 42px;
    margin-top: 16px;
    border-radius: 14px;
    background: linear-gradient(90deg,#00c3ff 0%,#ffff1c 100%);
    color: #222;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px #0005;
    transition: background 0.2s, color 0.2s;
}
#menu button:hover, #pause button:hover {
    background: linear-gradient(90deg, #ffff1c 0%, #00c3ff 100%);
    color: #000;
}
#pause h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

