body {
    margin: 0; padding: 0;
    background: #010006;
    display: flex; justify-content: center; align-items: center;
    height: 100vh;
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    color: white; user-select: none;
    overflow: hidden;
}
#game-wrapper {
    position: relative;
    width: 600px; height: 800px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
    border: 3px solid #0ff;
    border-radius: 12px; overflow: hidden;
}
#ui-layer {
    position: absolute; top: 20px; left: 20px;
    font-size: 26px; text-shadow: 0 0 15px #0ff; color: #0ff;
    pointer-events: none; z-index: 10;
}
canvas { display: block; touch-action: none; cursor: crosshair; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 20; text-align: center;
}
h1 { font-family: 'Noto Sans TC'; font-size: 54px; margin: 0 0 15px; text-shadow: 0 0 25px #0ff; letter-spacing: 4px; }
h1.over { font-family: 'Orbitron'; text-shadow: 0 0 30px #f00; color: #ff3333; letter-spacing: 6px; }
p { font-size: 16px; color: #88c; margin-bottom: 40px; line-height: 1.6; }
.blink { font-size: 20px; animation: blinker 1.5s linear infinite; color: #ff0; text-shadow: 0 0 10px #ff0;}
@keyframes blinker { 50% { opacity: 0; } }

.btn {
    padding: 15px 40px; font-size: 22px; font-family: 'Noto Sans TC'; font-weight: 900;
    color: #010006; background: #0ff; border: none; border-radius: 4px; cursor: pointer;
    box-shadow: 0 0 20px rgba(0,255,255,0.6); transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 2px; margin-bottom: 25px;
}
.btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0,255,255,0.8); background: #fff; }
.btn:active { transform: scale(0.95); }

#gameOverOverlay .btn { background: #f0f; color: #111; box-shadow: 0 0 20px rgba(255,0,255,0.6); }
#gameOverOverlay .btn:hover { background: #ffaaaa; box-shadow: 0 0 30px rgba(255,0,255,0.8); }

.back-btn {
    position: absolute; bottom: 25px; font-size: 16px;
    color: #668; text-decoration: none; border-bottom: 1px solid #668;
    transition: color 0.2s, border-color 0.2s; letter-spacing: 1px;
}
.back-btn:hover { color: #fff; border-color: #fff; }
