* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: ui-monospace, monospace;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ffff00;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 10px;
    max-width: 100%;
}

h1 {
    font-size: clamp(14px, 3vw, 24px);
    margin-bottom: 10px;
    color: #ffff00;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ffff00;
}

.header {
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: clamp(10px, 2vw, 14px);
    font-weight: bold;
}

.stat {
    text-shadow: 0 0 5px currentColor;
}

#gameCanvas {
    background: #000;
    border: 3px solid #2121de;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(33, 33, 222, 0.5);
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.instructions {
    margin-top: 10px;
    color: #888;
    font-size: clamp(9px, 1.8vw, 12px);
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.overlay h2 {
    font-size: clamp(20px, 5vw, 36px);
    color: #ffff00;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #ffff00;
    letter-spacing: 2px;
    line-height: 1.3;
}

.overlay p {
    font-size: clamp(10px, 2.5vw, 14px);
    margin: 8px 0;
    color: #aaa;
    line-height: 1.5;
}

.overlay button {
    margin-top: 20px;
    padding: 12px 40px;
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: bold;
    font-family: inherit;
    color: #000;
    background: #ffff00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay button:hover {
    background: #fff;
    transform: scale(1.05);
}

.hidden { display: none !important; }

/* Ghost colors in overlay for legend */
.ghost-red { color: #ff0000; }
.ghost-pink { color: #ffb8ff; }
.ghost-cyan { color: #00ffff; }
.ghost-orange { color: #ffb852; }
