* { box-sizing: border-box; margin: 0; padding: 0; touch-action: none; }
html, body {
    width: 100%; height: 100%;
    background: #0b1d2e;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#game-wrap {
    position: relative;
    width: 100vw; height: 100vh;
    background: #0b3d4c;
}
#game {
    display: block;
    width: 100%; height: 100%;
}
#hud {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    pointer-events: none;
    color: #fff;
    font-weight: 900;
    font-size: 1.6rem;
    text-shadow: 2px 2px 0 #000;
    z-index: 5;
}
#title-box { display: flex; flex-direction: column; align-items: center; }
#title { font-size: 1rem; color: #ffea00; }
#diff-label { font-size: 0.7rem; color: #aaa; margin-bottom: 2px; }
#score-box { display: flex; gap: 6px; align-items: center; }
#score-player, #score-cpu { color: #fff; }
#score-player { color: #00e5ff; }
#score-cpu { color: #ff0055; }
#set-player, #set-cpu { font-size: 0.9rem; color: #aaa; }
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.82);
    color: #fff;
    text-align: center;
    z-index: 10;
    padding: 20px;
}
.overlay h1 { font-size: 2.6rem; margin-bottom: 8px; text-shadow: 4px 4px 0 #cc0000; }
.overlay p { font-size: 0.95rem; margin-bottom: 18px; opacity: 0.9; }
.diff-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.diff-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 900;
    border: 3px solid #000;
    background: #333;
    color: #fff;
    box-shadow: 3px 3px 0 #000;
    cursor: pointer;
}
.diff-btn.active { background: #ffea00; color: #000; box-shadow: 3px 3px 0 #cc0000; }
#btn-start {
    padding: 16px 50px;
    font-size: 1.4rem;
    font-weight: 900;
    border: 4px solid #000;
    background: #ffea00;
    color: #000;
    box-shadow: 5px 5px 0 #ff0055;
    cursor: pointer;
    text-transform: uppercase;
}
#btn-start:active { transform: translateY(3px); box-shadow: 1px 1px 0 #000; }
.best { margin-top: 18px; font-size: 1rem; color: #ffea00; }
.hidden { display: none !important; }
#mobile-controls {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 4;
}
#zone-left, #zone-right { flex: 1; }
