/* ============================================================
   ONE KILL PLAY — holographic HUD layer
   Layered on top of app.css; driven by the site theme variables
   (--lp-primary cyan, --lp-accent amber, --lp-warm magenta).
   ============================================================ */

:root {
    --hud: rgb(var(--lp-primary));
    --hud-soft: rgb(var(--lp-primary) / 0.28);
    --amber: rgb(var(--lp-accent));
    --magenta: rgb(var(--lp-warm));
}

/* ---------- ambient scanline + sweep ---------- */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0 2px,
        rgb(0 0 0 / 0.35) 2px 4px
    );
    mix-blend-mode: multiply;
    opacity: 0.45;
}

.scan-sweep {
    position: fixed;
    left: 0;
    right: 0;
    top: -18vh;
    height: 18vh;
    z-index: 41;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgb(var(--lp-primary) / 0.05) 70%,
        rgb(var(--lp-primary) / 0.14)
    );
    animation: hud-sweep 8s linear infinite;
}

@keyframes hud-sweep {
    0%   { transform: translateY(0); }
    100% { transform: translateY(140vh); }
}

/* ---------- holo type ---------- */
.holo-glow {
    text-shadow:
        0 0 8px rgb(var(--lp-primary) / 0.55),
        0 0 34px rgb(var(--lp-primary) / 0.22);
}

.holo-flicker { animation: hud-flicker 5s infinite; }

@keyframes hud-flicker {
    0%, 100% { opacity: 1; }
    92%      { opacity: 1; }
    93%      { opacity: 0.45; }
    94%      { opacity: 1; }
    96%      { opacity: 0.65; }
    97%      { opacity: 1; }
}

.hud-mono {
    font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hud-eyebrow {
    font-family: "Share Tech Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgb(var(--lp-primary) / 0.8);
}

/* ---------- wireframe panel with corner brackets ---------- */
.hud-panel {
    position: relative;
    background: linear-gradient(160deg, rgb(var(--lp-primary) / 0.07), rgb(var(--lp-panel) / 0.9));
    border: 1px solid rgb(var(--lp-primary) / 0.26);
    backdrop-filter: blur(4px);
}

.hud-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    border-color: var(--hud);
    border-style: solid;
    border-width: 0;
    filter: drop-shadow(0 0 4px rgb(var(--lp-primary) / 0.7));
}

.hud-corner-tl { top: -1px; left: -1px;  border-top-width: 2px; border-left-width: 2px; }
.hud-corner-tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner-bl { bottom: -1px; left: -1px;  border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner-br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hud-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid rgb(var(--lp-primary) / 0.18);
    font-family: "Share Tech Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgb(var(--lp-primary) / 0.85);
    white-space: nowrap;
}

.hud-panel-title-bar {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--lp-primary) / 0.45));
}

.hud-panel-title-bar:last-child {
    background: linear-gradient(90deg, rgb(var(--lp-primary) / 0.45), transparent);
}

/* ---------- telemetry tiles ---------- */
.telemetry-tile { overflow: hidden; }

.telemetry-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgb(var(--lp-primary) / 0.14) 50%, transparent 60%);
    background-size: 250% 100%;
    animation: hud-tile-scan 3.4s linear infinite;
}

@keyframes hud-tile-scan {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

/* ---------- data bars ---------- */
.data-bar {
    height: 6px;
    border: 1px solid rgb(var(--lp-primary) / 0.35);
    padding: 1px;
}

.data-bar > span {
    display: block;
    height: 100%;
    width: var(--v, 50%);
    background: repeating-linear-gradient(
        90deg,
        var(--hud) 0 6px,
        rgb(var(--lp-primary) / 0.35) 6px 8px
    );
    box-shadow: 0 0 8px rgb(var(--lp-primary) / 0.6);
}

/* ---------- HUD buttons ---------- */
.hud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 10px 22px;
    font-family: "Share Tech Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hud);
    border: 1px solid rgb(var(--lp-primary) / 0.45);
    background: rgb(var(--lp-primary) / 0.06);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hud-btn:hover {
    background: rgb(var(--lp-primary) / 0.14);
    transform: translateY(-1px);
}

.hud-btn-solid {
    color: rgb(var(--lp-deep));
    background: var(--hud);
    box-shadow: 0 0 26px rgb(var(--lp-primary) / 0.45);
}

.hud-btn-solid:hover {
    background: rgb(var(--lp-primary));
    filter: brightness(1.12);
}

/* ---------- logo ---------- */
.hud-logo {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid var(--hud);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgb(var(--lp-primary) / 0.5);
}

.hud-logo::after {
    content: "";
    position: absolute;
    inset: 7px;
    background: var(--hud);
    animation: hud-core 2.4s ease-in-out infinite;
}

@keyframes hud-core {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.hud-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: var(--hud);
    box-shadow: 0 0 8px var(--hud);
    animation: hud-core 1.6s ease-in-out infinite;
}

/* ---------- radar plate ---------- */
.radar-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
}

.radar-plate canvas {
    width: 240px;
    height: 240px;
}

@media (min-width: 640px) {
    .radar-plate canvas { width: 280px; height: 280px; }
}

.radar-readout {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    font-family: "Share Tech Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: rgb(var(--lp-primary) / 0.65);
}

/* ---------- game card accent ---------- */
.hud-card .lp-card::before {
    background: linear-gradient(135deg, transparent 0 78%, rgb(var(--lp-primary) / 0.22) 78% 86%, rgb(var(--lp-accent) / 0.18) 86% 100%);
}

/* ---------- small layout utilities used by the HUD pages ---------- */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.border { border-width: 1px; }
.gap-3\.5 { gap: 0.875rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.text-\[9px\] { font-size: 9px; line-height: 1.35; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.24em\] { letter-spacing: 0.24em; }
.tracking-\[0\.32em\] { letter-spacing: 0.32em; }

@media (min-width: 640px) {
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .scan-sweep,
    .holo-flicker,
    .telemetry-tile::after {
        animation: none !important;
    }
}
