/* BSV Paratrooper — CGA terminal look: black, cyan, magenta, white. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    color: #55ffff;
    -webkit-user-select: none;
    user-select: none;
}

#game {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    touch-action: none;
    cursor: crosshair;
}

.panel {
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid #55ffff;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.5;
}

.hud { position: fixed; z-index: 10; }

#hud-title { top: 10px; left: 10px; max-width: 340px; }

.hud-title-row { display: flex; align-items: center; gap: 8px; }

#hud-toggle {
    border: none;
    background: none;
    color: #55ffff;
    font-size: 11px;
    padding: 0 2px;
    margin-left: auto;
    cursor: pointer;
}
#hud-toggle:hover { color: #fff; background: none; }
#hud-title.collapsed .hud-sub,
#hud-title.collapsed .hud-links { display: none; }

.hud-title {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 11px;
    white-space: nowrap;
}

.hud-sub { color: #55ffff; opacity: 0.85; margin-top: 2px; }
.hud-sub b { color: #ff55ff; }

.hud-subtitle {
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-size: 10px;
}

.hud-links { margin-top: 5px; display: flex; gap: 12px; }
.hud-links a, a { color: #ff55ff; text-decoration: none; }
.hud-links a:hover, a:hover { color: #fff; text-decoration: underline; }

.badge {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 1px 6px;
    border: 1px solid #55ff55;
    color: #55ff55;
}
.badge.paused { border-color: #ffff55; color: #ffff55; }
.badge.demo { border-color: #ff55ff; color: #ff55ff; }
.badge.offline { border-color: #ff5555; color: #ff5555; }

/* bottom-left so it never blocks the top corners where helicopters fly in;
   JS lifts it just above the on-canvas score bar (see layoutPanels). */
#kill-panel { left: 10px; bottom: 10px; min-width: 170px; max-width: 260px; display: none; }
.k-cat { font-weight: bold; }
.k-txid { display: block; margin: 2px 0; }
.k-row { color: #fff; opacity: 0.8; font-size: 10px; word-break: break-word; }

#hud-hint {
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hint-text { color: #55ffff; opacity: 0.8; font-size: 10px; }

button {
    background: #000;
    border: 1px solid #ff55ff;
    color: #ff55ff;
    font-family: inherit;
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
}
button:hover { background: #ff55ff; color: #000; }

#banner {
    position: fixed;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #ff55ff;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 10px 18px;
    text-shadow: 0 0 8px #ff55ff;
    max-width: 90vw;
}
#banner div + div { color: #55ffff; font-size: 11px; margin-top: 4px; text-shadow: none; }

#gameover {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
#gameover-body { min-width: 260px; max-width: 90vw; text-align: center; border-color: #ff55ff; }
.go-title {
    color: #ff55ff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-shadow: 0 0 10px #ff55ff;
}
.go-row { color: #fff; margin-bottom: 4px; }
.go-hi { color: #ffff55; font-weight: bold; margin-bottom: 4px; }
.go-sub { color: #55ffff; opacity: 0.85; margin: 6px 0 2px; }
.go-killer { font-size: 10px; }
.go-restart { color: #fff; opacity: 0.7; margin-top: 10px; font-size: 10px; }

@media (max-width: 700px) {
    #hud-title { max-width: 60vw; }
    .hud-sub:first-of-type { display: none; }
    #hud-hint .hint-text { display: none; }

    /* Bottom HUD strip: resize() reserves a band below the on-canvas score bar
       so these panels no longer cover the ground / landing zone. Controls show
       as bare icons (right); last-kill is a compact text block (left). */
    .btn-label { display: none; }
    #mute-btn, #pause-btn {
        font-size: 16px;
        line-height: 1;
        padding: 5px 9px;
    }
    #hud-hint {
        bottom: 6px;
        right: 8px;
        gap: 10px;
        background: none;
        border: none;
        padding: 0;
    }

    #kill-panel {
        left: 8px;
        right: auto;
        bottom: 6px;
        max-width: calc(100vw - 130px);
        max-height: 50px;
        overflow: hidden;
        background: none;
        border: none;
        padding: 0;
    }
    #kill-panel .hud-subtitle {
        font-size: 9px;
        letter-spacing: 1px;
        margin-bottom: 1px;
    }
    #kill-body { font-size: 9px; line-height: 1.3; }
    .k-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
