/* --- NAV ORBS (Landing page quick-navigation) --------------------------- */
.nav-orbs {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.nav-orb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 60, 0.4);
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    overflow: hidden;
    transition:
        transform 0.35s var(--ease-out-expo),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}

/* Themed icon */
.orb-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-icon svg {
    width: 100%;
    height: 100%;
}

/* Text label */
.orb-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.35;
}

/* Rotating targeting ring — activates on hover */
.nav-orb::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--color-cyan);
    border-right-color: var(--color-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: orb-spin 2s linear infinite;
    animation-play-state: paused;
}

/* Vertical scan line sweeps through on hover */
.nav-orb::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    top: -10%;
    opacity: 0;
}

.nav-orb:hover,
.nav-orb:focus-visible {
    border-color: var(--color-cyan);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.45),
        0 0 50px rgba(0, 240, 255, 0.14),
        inset 0 0 20px rgba(0, 240, 255, 0.07);
    transform: translateY(-8px) scale(1.08);
    color: var(--color-cyan);
    outline: none;
}

.nav-orb:hover::before,
.nav-orb:focus-visible::before {
    opacity: 1;
    animation-play-state: running;
}

.nav-orb:hover::after,
.nav-orb:focus-visible::after {
    opacity: 1;
    animation: orb-scan 1.1s linear infinite;
}

@keyframes orb-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orb-scan {
    from {
        top: -5%;
    }

    to {
        top: 105%;
    }
}

/* --- SATELLITE ORB SYSTEM ------------------------------------------------ */

/* Wrapper: same footprint as the orb, overflow visible so satellites show */
.orb-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* Lift wrapper above siblings so satellites aren't clipped by adjacent orbs */
.orb-wrapper:hover {
    z-index: 20;
}

/* Each satellite */
.orb-satellite {
    --sat-angle: calc(var(--sat-i) * 72deg - 90deg);

    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(0, 220, 80, 0.45);
    background: rgba(2, 12, 4, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 220, 80, 0.18), inset 0 0 8px rgba(0, 220, 80, 0.06);

    /* Collapsed position — close in, invisible */
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(var(--sat-angle)) translateY(-58px) rotate(calc(-1 * var(--sat-angle)));

    /* Delay before hiding gives mouse time to cross gap to satellite */
    transition:
        opacity 0.18s ease 0.16s,
        transform 0.22s ease 0.16s,
        border-color 0.2s ease 0.16s,
        box-shadow 0.2s ease 0.16s;
}

/* Show state: bloom outward, staggered by index */
.orb-wrapper:hover .orb-satellite {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) rotate(var(--sat-angle)) translateY(-100px) rotate(calc(-1 * var(--sat-angle)));

    transition:
        opacity 0.22s ease calc(var(--sat-i) * 0.045s),
        transform 0.35s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--sat-i) * 0.045s),
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.orb-satellite:hover,
.orb-satellite:focus-visible {
    border-color: var(--color-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.06);
    color: var(--color-cyan);
}

.sat-key {
    font-family: var(--font-mono);
    font-size: 0.48rem;
    letter-spacing: 1.5px;
    color: rgba(0, 220, 80, 0.9);
    line-height: 1;
}

.orb-satellite:hover .sat-key,
.orb-satellite:focus-visible .sat-key {
    color: var(--color-cyan);
}

.sat-name {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.25;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

/* Hide satellites on touch / small screens — hover doesn't work reliably */
@media (max-width: 540px) {
    .nav-orbs {
        gap: 14px;
        margin-bottom: 36px;
    }

    .nav-orb {
        width: 80px;
        height: 80px;
    }

    .orb-icon {
        width: 24px;
        height: 24px;
    }

    .orb-label {
        font-size: 0.55rem;
    }

    .orb-satellite {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-orb::before {
        animation: none;
    }

    .nav-orb:hover::after,
    .nav-orb:focus-visible::after {
        animation: none;
        top: 50%;
    }

    .nav-orb:hover,
    .nav-orb:focus-visible {
        transform: none;
    }
}


/* ═══════════════════════════════════════════════════════════════
   TV ORB — Lore Terminal Button
   ═══════════════════════════════════════════════════════════════ */

.tv-orb {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 90px;
    height: 76px;
    border-radius: 10px;
    border: 1.5px solid rgba(245, 166, 35, 0.4);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(245, 166, 35, 0.7);
    cursor: pointer;
    padding: 0;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
    animation: tv-orb-pulse 2.2s ease-in-out infinite;
}

.tv-orb::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 15px;
    border: 1px solid rgba(245, 166, 35, 0);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tv-orb:hover {
    animation: none;
    border-color: rgba(245, 166, 35, 0.9);
    color: #f5a623;
    box-shadow: 0 0 22px rgba(245, 166, 35, 0.45), 0 0 45px rgba(245, 166, 35, 0.15);
    transform: translateY(-4px);
}

.tv-orb:hover::before {
    border-color: rgba(245, 166, 35, 0.22);
    box-shadow: 0 0 32px rgba(245, 166, 35, 0.1);
}

.tv-orb:active {
    transform: translateY(-1px);
}

.tv-orb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
}

.tv-orb-icon svg {
    width: 42px;
    height: 38px;
}

.tv-orb-label {
    text-transform: uppercase;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: inherit;
}


/* ═══════════════════════════════════════════════════════════════
   TV VIEWPORT OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.tv-viewport {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.tv-viewport.tv-viewport--open {
    opacity: 1;
    pointer-events: auto;
}

/* ── TV Body ──────────────────────────────────────────────────── */

.tv-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.82) translateY(20px);
    transition: transform 0.55s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.tv-viewport.tv-viewport--open .tv-body {
    transform: scale(1) translateY(0);
}

.tv-bezel {
    background: linear-gradient(155deg, #2e2418 0%, #1c1710 55%, #0f0d09 100%);
    border-radius: 18px;
    padding: 20px 24px 18px;
    box-shadow:
        0 0 0 2px rgba(245, 166, 35, 0.18),
        0 0 0 4px rgba(0, 0, 0, 0.8),
        0 30px 80px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    width: min(820px, 92vw);
    position: relative;
}

/* ── CRT Screen ───────────────────────────────────────────────── */

.tv-screen-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.9),
        0 0 0 3px #0a0806,
        0 0 0 5px rgba(245, 166, 35, 0.1);
}

.tv-screen {
    position: relative;
    background: #020603;
    height: min(440px, 52vh);
    overflow: hidden;
    border-radius: 8px;
}

/* TV orb idle pulse — draws the eye before hover */
@keyframes tv-orb-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 166, 35, 0.18);
        border-color: rgba(245, 166, 35, 0.38);
    }

    50% {
        box-shadow: 0 0 36px rgba(245, 166, 35, 0.88), 0 0 70px rgba(245, 166, 35, 0.38), 0 0 100px rgba(245, 166, 35, 0.12);
        border-color: rgba(245, 166, 35, 1);
    }
}

/* Power-on: screen expands from a horizontal slit */
@keyframes tv-power-on {
    0% {
        clip-path: inset(49% 0 49% 0);
        opacity: 0.4;
    }

    50% {
        clip-path: inset(8% 0 8% 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0% 0 0% 0);
        opacity: 1;
    }
}

@keyframes tv-power-off {
    0% {
        clip-path: inset(0% 0 0% 0);
        opacity: 1;
    }

    60% {
        clip-path: inset(8% 0 8% 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(49% 0 49% 0);
        opacity: 0;
    }
}

.tv-screen.tv-screen--powering-on {
    animation: tv-power-on 0.75s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.tv-screen.tv-screen--powering-off {
    animation: tv-power-off 0.42s ease-in forwards;
}

/* CRT glow on screen edges */
.tv-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 60px rgba(0, 255, 101, 0.04);
    pointer-events: none;
    z-index: 20;
}

/* Scanlines */
.tv-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.22) 2px,
            rgba(0, 0, 0, 0.22) 4px);
    pointer-events: none;
    z-index: 15;
}

/* Screen inner content */
.tv-screen-inner {
    position: relative;
    z-index: 5;
    padding: 14px 20px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Header bar */
.tv-header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 101, 0.18);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.tv-channel-badge {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 2px;
    color: rgba(0, 255, 101, 0.45);
    border: 1px solid rgba(0, 255, 101, 0.2);
    padding: 2px 7px;
    border-radius: 2px;
    flex-shrink: 0;
}

.tv-screen-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: rgba(0, 255, 101, 0.45);
    flex: 1;
}

.tv-signal-dot {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: #00ff65;
    animation: tv-signal-blink 1.6s infinite;
    flex-shrink: 0;
}

@keyframes tv-signal-blink {

    0%,
    65%,
    100% {
        opacity: 1;
    }

    35% {
        opacity: 0.1;
    }
}

/* Log text area */
.tv-log {
    flex: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1.4vw, 0.9rem);
    line-height: 1.75;
    color: #00ff65;
    text-shadow: 0 0 7px rgba(0, 255, 101, 0.45);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 101, 0.25) transparent;
    white-space: pre-wrap;
    word-break: break-word;
}

.tv-log::-webkit-scrollbar {
    width: 4px;
}

.tv-log::-webkit-scrollbar-track {
    background: transparent;
}

.tv-log::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 101, 0.25);
    border-radius: 2px;
}

.tv-log-line {
    display: block;
}

.tv-log-line--pending {
    opacity: 0;
}

.tv-log-line--dim {
    color: rgba(0, 255, 101, 0.4);
    text-shadow: none;
}

.tv-log-line--bright {
    color: #80ffb4;
    text-shadow: 0 0 12px rgba(0, 255, 101, 0.7);
    font-weight: bold;
}

.tv-log-line--warn {
    color: #f5c842;
    text-shadow: 0 0 8px rgba(245, 200, 66, 0.5);
}

/* Line reveal animation */
@keyframes tv-line-reveal {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tv-log-line--reveal {
    animation: tv-line-reveal 0.22s ease-out forwards;
}

/* Cursor + prompt row */
.tv-cursor-line {
    height: 1.6em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-cursor {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #00ff65;
    text-shadow: 0 0 10px rgba(0, 255, 101, 0.7);
    animation: tv-blink 0.85s step-end infinite;
    flex-shrink: 0;
}

@keyframes tv-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.tv-prompt {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: rgba(0, 255, 101, 0.32);
    animation: tv-prompt-pulse 1.6s ease-in-out infinite;
}

.tv-prompt.tv-prompt--visible {
    display: inline;
}

@keyframes tv-prompt-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* ── Controls bar ─────────────────────────────────────────────── */

.tv-controls-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
}

.tv-power-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.07);
    color: rgba(245, 166, 35, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
}

.tv-power-btn:hover {
    border-color: rgba(245, 166, 35, 0.9);
    color: #f5a623;
    background: rgba(245, 166, 35, 0.15);
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.35);
}

.tv-power-btn svg {
    width: 18px;
    height: 18px;
}

.tv-speaker-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 166, 35, 0.45);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(245, 166, 35, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tv-speaker-btn:hover {
    border-color: rgba(245, 166, 35, 0.9);
    color: #f5a623;
    background: rgba(245, 166, 35, 0.15);
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.35);
}

.tv-speaker-btn svg {
    width: 18px;
    height: 18px;
}

/* Show/hide correct icon based on mute state */
.tv-speaker-btn .tv-icon-muted {
    display: none;
}

.tv-speaker-btn--muted .tv-icon-on {
    display: none;
}

.tv-speaker-btn--muted .tv-icon-muted {
    display: block;
}

.tv-speaker-btn--muted {
    border-color: rgba(255, 0, 60, 0.5);
    color: rgba(255, 0, 60, 0.6);
}

.tv-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 166, 35, 0.45);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(245, 166, 35, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tv-pause-btn:hover {
    border-color: rgba(245, 166, 35, 0.9);
    color: #f5a623;
    background: rgba(245, 166, 35, 0.15);
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.35);
}

.tv-pause-btn svg {
    width: 16px;
    height: 16px;
}

/* Show pause icon by default; show play icon when paused */
.tv-pause-btn .tv-icon-play {
    display: none;
}

.tv-pause-btn--paused .tv-icon-pause {
    display: none;
}

.tv-pause-btn--paused .tv-icon-play {
    display: block;
}

.tv-pause-btn--paused {
    border-color: rgba(0, 200, 100, 0.5);
    color: rgba(0, 200, 100, 0.7);
}

.tv-knob-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tv-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #4a3c28, #18140d);
    border: 1px solid rgba(245, 166, 35, 0.18);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
    position: relative;
}

.tv-knob::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 7px;
    background: rgba(245, 166, 35, 0.45);
    border-radius: 1px;
}

.tv-knob--small {
    width: 14px;
    height: 14px;
}

.tv-vent-holes {
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(2, 7px);
    gap: 5px;
}

.tv-vent {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(245, 166, 35, 0.07);
}

/* ── Stand ────────────────────────────────────────────────────── */

.tv-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-stand-neck {
    width: 56px;
    height: 18px;
    background: linear-gradient(to bottom, #2a1f12, #18140d);
    clip-path: polygon(18% 0%, 82% 0%, 96% 100%, 4% 100%);
}

.tv-stand-base {
    width: 130px;
    height: 12px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to bottom, #1c1710, #0e0c08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 600px) {
    .tv-bezel {
        padding: 14px 14px 14px;
        width: 96vw;
    }

    .tv-screen {
        height: min(340px, 50vh);
    }

    .tv-stand-base {
        width: 90px;
    }

    .tv-stand-neck {
        width: 36px;
    }

    .tv-controls-bar {
        gap: 10px;
    }

    .tv-orb {
        width: 72px;
        height: 62px;
    }

    .tv-orb-icon,
    .tv-orb-icon svg {
        width: 34px;
        height: 30px;
    }

    .tv-screen-title {
        display: none;
    }
}

@media (max-width: 380px) {
    .tv-stand-base {
        width: 72px;
    }

    .tv-bezel {
        width: 98vw;
        padding: 10px 10px 14px;
    }
}

/* ── TV Orb Row (lore + film side by side) ──────────────────── */

.tv-orb-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    justify-content: center;
    margin-bottom: 20px;
}

/* When inside a row, orbs don't carry their own bottom margin */
.tv-orb-row .tv-orb {
    margin-bottom: 0;
}

/* Film orb — same dimensions/pulse as base tv-orb, amber accent to differentiate */
.tv-orb--video {
    border-color: rgba(245, 130, 35, 0.38);
    animation: tv-video-orb-pulse 2.4s ease-in-out infinite;
}

.tv-orb--video:hover {
    color: rgba(245, 130, 35, 1);
    border-color: rgba(245, 130, 35, 1);
    box-shadow: 0 0 28px rgba(245, 130, 35, 0.7), 0 0 60px rgba(245, 130, 35, 0.3);
}

@keyframes tv-video-orb-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 130, 35, 0.18);
        border-color: rgba(245, 130, 35, 0.38);
    }

    50% {
        box-shadow: 0 0 36px rgba(245, 130, 35, 0.88), 0 0 70px rgba(245, 130, 35, 0.38), 0 0 100px rgba(245, 130, 35, 0.12);
        border-color: rgba(245, 130, 35, 1);
    }
}

/* ── TV Video Screen inner layout ───────────────────────────── */

.tv-video-screen-inner {
    position: relative;
    z-index: 5;
    padding: 14px 0 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Push header inside standard padding */
.tv-video-screen-inner .tv-header-bar {
    padding-left: 20px;
    padding-right: 20px;
}

/* Video element — fills remaining screen height */
#tv-video-el {
    width: 100%;
    flex: 1;
    display: block;
    object-fit: contain;
    background: #000;
    min-height: 0;
}

/* Progress row */
.tv-video-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    flex-shrink: 0;
}

.tv-video-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.tv-video-progress-bar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tv-video-progress-fill {
    height: 100%;
    width: 0%;
    background: #00ff65;
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.25s linear;
}

.tv-video-time {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: rgba(0, 255, 101, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Title prompt at bottom (reuses tv-prompt visibility logic) */
.tv-video-title-prompt {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    letter-spacing: 1.2px;
    color: rgba(0, 255, 101, 0.5);
    padding: 4px 14px 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-video-title-prompt.tv-prompt--visible {
    opacity: 1;
}

/* Video screen: taller to give video more room */
.tv-video-screen {
    height: min(480px, 58vh);
}

@media (max-width: 600px) {
    .tv-video-screen {
        height: min(360px, 54vh);
    }

    .tv-orb-row {
        gap: 12px;
    }
}



/* ═══════════════════════════════════════════════════════════════
   BOOT SPLASH SCREEN
   ═══════════════════════════════════════════════════════════════ */

.boot-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    opacity: 1;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.boot-splash--out {
    opacity: 0;
    pointer-events: none;
}

.boot-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.boot-scanlines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.12) 2px,
            rgba(0, 0, 0, 0.12) 4px);
    pointer-events: none;
    animation: boot-scanline-drift 8s linear infinite;
    opacity: 0.6;
}

@keyframes boot-scanline-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 40px;
    }
}

.boot-logo-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: boot-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes boot-entrance {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.boot-logo {
    width: clamp(180px, 24vw, 280px);
    height: clamp(180px, 24vw, 280px);
    filter:
        drop-shadow(0 0 24px rgba(0, 240, 255, 0.7)) drop-shadow(0 0 60px rgba(120, 0, 255, 0.4));
    animation: boot-logo-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes boot-logo-pulse {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6)) drop-shadow(0 0 50px rgba(120, 0, 255, 0.3));
    }

    to {
        filter: drop-shadow(0 0 36px rgba(0, 240, 255, 0.95)) drop-shadow(0 0 80px rgba(180, 0, 255, 0.55)) drop-shadow(0 0 6px #fff);
    }
}

.boot-wordmark {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3.5vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.9),
        0 0 30px rgba(0, 240, 255, 0.4);
    animation: boot-wordmark-in 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes boot-wordmark-in {
    from {
        opacity: 0;
        letter-spacing: 0.9em;
    }

    to {
        opacity: 1;
        letter-spacing: 0.45em;
    }
}

.boot-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.55rem, 1.6vw, 0.72rem);
    letter-spacing: 0.18em;
    color: rgba(0, 240, 255, 0.65);
    animation: boot-blink 1.1s 0.5s step-end infinite,
        boot-tagline-in 0.8s 0.4s ease both;
}

@keyframes boot-tagline-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes boot-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boot-logo {
        animation: none;
    }

    .boot-logo-wrap {
        animation: none;
    }

    .boot-wordmark {
        animation: none;
    }

    .boot-tagline {
        animation: none;
    }

    .boot-scanlines {
        animation: none;
    }
}


/* ═══════════════════════════════════════════════════════════════
   PLAY GAME HINT — tv-orb row, icon only, hover tooltip
   ═══════════════════════════════════════════════════════════════ */

.tv-orb--game-hint {
    border-color: rgba(120, 80, 255, 0.35);
    color: rgba(140, 100, 255, 0.6);
    cursor: pointer;
    position: relative;
    user-select: none;
    pointer-events: auto;
}

.tv-orb--game-hint:hover,
.tv-orb--game-hint:focus-visible {
    animation: none;
    border-color: rgba(160, 120, 255, 0.75);
    color: rgba(190, 160, 255, 0.95);
    box-shadow: 0 0 22px rgba(120, 80, 255, 0.45), 0 0 50px rgba(100, 60, 255, 0.18);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    position: relative;
    z-index: var(--z-ui);
    padding: 4px 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1.4vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(0, 240, 255, 0.35);
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.12);
}

.footer-powered {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.1vw, 0.72rem);
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Footer on non-landing pages — centered, separated from content */
main+.site-footer,
.squad-main+.site-footer {
    text-align: center;
    padding: 20px 16px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* Footer inside dept scroll container */
.dept-content .site-footer {
    text-align: center;
    padding: 24px 0 8px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-ui-layer .hero-section {
    flex: 1;
    margin-bottom: 0;
}

