* { margin: 0; padding: 0; box-sizing: border-box; }
body, html {
    width: 100%; height: 100%;
    background-color: #1a0a2a;
    overflow: hidden;
    touch-action: none;
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
    -webkit-user-select: none;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
}
#ui {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 10;
}
.hud-top {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}
#score { font-size: 20px; font-weight: bold; color: #00e5ff; text-align: left; }
#levelNum { font-size: 20px; color: #00e5ff; text-align: center; }
#lives { font-size: 20px; color: #ff4081; text-align: center; letter-spacing: 4px; margin-left: 12px; }
#highScore { font-size: 20px; color: #00e5ff; text-align: right; }
#message {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #ff4081;
    pointer-events: auto;
}
#seedRow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}
#seedCheck {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #ff4081;
    touch-action: manipulation;
}
#seedInput {
    border: 1px solid #ff4081;
    background: rgba(0, 0, 0, 0.4);
    color: #00e5ff;
    padding: 6px 10px;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    border-radius: 4px;
    outline: none;
    width: 140px;
    margin-left: 6px;
    touch-action: manipulation;
}
#seedInput:disabled { opacity: 0.4; }
#copyright { font-size: 10px; color: #666; text-align: right; }
.hidden { display: none !important; }
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }
