/* ═══════════════════════════════════════════════
   Last Launch 3D — layout & HUD styles
   ═══════════════════════════════════════════════ */

/* Full-height layout: header + viewport + ticker */
body[data-page-id="last-launch-3d"] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: #04020a;
}

/* ── Header ──────────────────────────────────── */
.ll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.2rem;
    height: 44px;
    flex-shrink: 0;
    background: rgba(4, 2, 10, 0.92);
    border-bottom: 1px solid rgba(0, 200, 255, 0.12);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.ll-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
}

.ll-header-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.ll-header-link:hover { color: rgba(0,220,255,0.9); }

.ll-header-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.85);
}

.ll-header-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    background: rgba(0,200,255,0.15);
    border: 1px solid rgba(0,200,255,0.4);
    border-radius: 3px;
    color: rgba(0,200,255,0.9);
    vertical-align: middle;
    margin-left: 3px;
}

.ll-header-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
}

.ll-header-right {
    display: flex;
    gap: 0.5rem;
}

.ll-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    font-family: var(--font-mono, monospace);
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.ll-btn:hover {
    color: rgba(0,220,255,0.9);
    border-color: rgba(0,220,255,0.35);
    background: rgba(0,220,255,0.08);
}

/* ── 3D Viewport ─────────────────────────────── */
.ll3d-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
}

#ll3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    touch-action: none; /* prevent touch scroll interfering with drag */
}

/* ── HUD overlay ─────────────────────────────── */
.ll3d-hud {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 5px 14px;
    background: rgba(4, 2, 10, 0.7);
    border: 1px solid rgba(0,200,255,0.15);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
}

.ll3d-hud-item {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

.ll3d-hud-val {
    color: rgba(0, 220, 255, 0.85);
    font-weight: 600;
    margin-left: 4px;
}

.ll3d-hud-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
}

/* ── Loading screen ──────────────────────────── */
.ll3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: #04020a;
    z-index: 20;
}

.ll3d-loading-text {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(0,200,255,0.7);
    text-transform: uppercase;
    font-family: var(--font-mono, monospace);
}

.ll3d-loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.ll3d-loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(0,140,200,0.6), rgba(0,220,255,1));
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* ── Ticker bar (reuse from last-launch.css style) ── */
.ll-ticker {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1.2rem;
    height: 30px;
    background: rgba(4, 2, 10, 0.95);
    border-top: 1px solid rgba(0, 200, 255, 0.08);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    overflow: hidden;
}

.ll-ticker-label {
    color: rgba(0,200,255,0.4);
    text-transform: uppercase;
    flex-shrink: 0;
    font-family: var(--font-mono, monospace);
}

.ll-ticker-text {
    color: rgba(255,255,255,0.45);
    transition: opacity 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono, monospace);
}
