/* Phosphor: white on black (same CRT shell as Fake Checker, recolored) */
:root {
    --phosphor: #ffffff;
    --phosphor-bright: #f5f5f5;
    --phosphor-dim: #d0d0d0;
    --phosphor-badge: #ececec;
    --phosphor-accent: #e8e8e8;
    --phosphor-kicker: #c8c8c8;
    --phosphor-muted: #a8a8a8;
    --phosphor-strong: #e0e0e0;
    --phosphor-hover: #ffffff;
    --phosphor-scroll: #c8c8c8;
    /* Product phosphors (Bewerber Tool Bernstein, Fake Checker Grün, Parser API Cyan) */
    --product-amber: #ffbf00;
    --product-amber-rgb: 255, 191, 0;
    --product-green: #00ff41;
    --product-green-rgb: 0, 255, 65;
    --product-cyan: #00e8ff;
    --product-cyan-rgb: 0, 232, 255;
    --bg-mid: #1a1a1a;
    --bg-deep: #0d0d0d;
    --bg-skip: #080808;
}

/* ── VT323 Font ─────────────────────────────────────────────────────── */
@font-face {
    font-family: 'VT323';
    src: url("../fonts/VT323-auhAibo.woff2") format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Local monospace resized to VT323 (0.4em advance, 0.8/0.2 ascent/descent;
   the fallbacks are 0.6em), so the swap does not reflow logo and headings. */
@font-face {
    font-family: 'VT323 Fallback';
    src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'),
        local('Cousine'), local('Menlo'), local('DejaVu Sans Mono'), local('Roboto Mono');
    size-adjust: 66.67%;
    ascent-override: 120%;
    descent-override: 30%;
    line-gap-override: 0%;
}

/* ── Global Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    min-height: 100%;
    color-scheme: dark;
    overflow-anchor: none;
    overscroll-behavior: none;
    /* Reserve scrollbar width so short/tall pages don't shift content sideways. */
    scrollbar-gutter: stable;
    /* CRT scrollbar (Firefox + page chrome) — same palette as .crt-modal-body */
    scrollbar-width: thin;
    scrollbar-color: var(--phosphor-scroll) #000;
}
body {
    min-height: 100%;
    background: #000;
    color: var(--phosphor);
    font-family: 'VT323', 'VT323 Fallback', 'Courier New', monospace;
    /* Do NOT set overflow-x on html+body — Chrome then mishandles scroll Y across navigations. */
    overflow-anchor: none;
    overscroll-behavior: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M0 0 L16 16 M0 0 L0 10 M0 0 L10 0' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E") 0 0, auto;
}

code, kbd, samp {
    font-family: inherit;
    font-size: inherit;
}

/* iOS/WebKit auto-detected address/phone links — keep CRT look if detectors still fire */
a[x-apple-data-detectors],
a[href^="x-apple-data-detectors:"],
.unstyle-auto-detect a {
    color: inherit !important;
    text-decoration: none !important;
    font: inherit !important;
    letter-spacing: inherit !important;
}

/* CRT scrollbars: page + every overflow region (WebKit/Blink) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--phosphor-scroll) #000;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: #000;
}
*::-webkit-scrollbar-thumb {
    background: var(--phosphor-scroll);
    border-radius: 6px;
    border: 2px solid #000;
    box-shadow: 0 0 6px rgba(200, 200, 200, 0.4);
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--phosphor);
}
*::-webkit-scrollbar-corner {
    background: #000;
}

/* ── CRT Screen ────────────────────────────────────────────────────── */
.screen {
    min-height: 100vh;
    overflow-anchor: none;
    background: radial-gradient(ellipse at center, var(--bg-mid) 0%, var(--bg-deep) 55%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12vh 12px 80px;
    position: relative;
}

/* ── Scanlines ──────────────────────────────────────────────────────── */
.screen::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.13) 2px,
        rgba(0,0,0,0.13) 4px
    );
    pointer-events: none;
    z-index: 100;
}

/* ── CRT flicker ────────────────────────────────────────────────────── */
@keyframes flicker {
    0%, 94%, 100%  { opacity: 1; }
    95%             { opacity: 0.96; }
    97%             { opacity: 0.99; }
}
.screen { animation: flicker 9s infinite ease-in-out; }

/* ── Brand logo (h1 on home / p elsewhere + local stardust) ─────────── */
.brand-logo-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.4rem;
}
.brand-mark {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.6rem 2.4rem;
    isolation: isolate;
    /* Both axes must be clip. overflow-x: clip alone computes overflow-y to visible/auto,
       which creates a vertical scrollport around the larger canvas on mobile WebKit/Chrome. */
    overflow: clip;
}
.brand-mark__dust {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}
/* h1 (home) or p (other pages) — same look either way */
.brand-logo {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 0 0.35rem;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center; /* KI+ on same optical line as Fake Checker */
    justify-content: center;
    gap: 0.28em;
    font-size: clamp(2.6rem, 7.5vw, 3.8rem);
    font-weight: normal;
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
}
.brand-logo__text {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    isolation: isolate;
    word-spacing: -0.18em;
}
.brand-logo__link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: inherit;
    -webkit-text-stroke: 0;
    text-rendering: geometricPrecision;
}
.brand-logo__link:hover,
.brand-logo__link:focus-visible {
    filter: brightness(1.12);
}
/* Dual tone like mockup: Fake brighter, Checker slightly dimmer.
   Stronger bloom = optically “fatter” stroke (matches home hero). */
.brand-logo__word--fake {
    color: var(--phosphor-bright);
    text-shadow:
        0 0 2px var(--phosphor),
        0 0 8px var(--phosphor),
        0 0 18px rgba(255, 255, 255, 0.95),
        0 0 36px rgba(255, 255, 255, 0.55),
        0 0 56px rgba(255, 255, 255, 0.28),
        -1px 0 0 rgba(255, 50, 80, 0.4),
        1px 0 0 rgba(40, 160, 255, 0.35);
}
.brand-logo__word--checker {
    color: var(--phosphor-dim);
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.7),
        0 0 8px rgba(255, 255, 255, 0.65),
        0 0 18px rgba(255, 255, 255, 0.5),
        0 0 32px rgba(200, 200, 200, 0.3),
        -1px 0 0 rgba(255, 50, 80, 0.28),
        1px 0 0 rgba(40, 160, 255, 0.25);
}
/* Chromatic ghost layers (glitch) — red / cyan fringe */
.brand-logo__text::before,
.brand-logo__text::after {
    content: attr(data-glitch);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}
.brand-logo__text::before {
    color: rgba(255, 55, 85, 0.55);
    text-shadow: none;
    clip-path: inset(0 0 52% 0);
    animation: brand-glitch-a 2.8s steps(2, end) infinite;
}
.brand-logo__text::after {
    color: rgba(50, 170, 255, 0.5);
    text-shadow: none;
    clip-path: inset(48% 0 0 0);
    animation: brand-glitch-b 3.6s steps(2, end) infinite;
}
@keyframes brand-glitch-a {
    0%, 90%, 100% { transform: translate(0, 0); opacity: 0.25; }
    91% { transform: translate(-2px, 0); opacity: 0.65; }
    93% { transform: translate(2px, 1px); opacity: 0.45; }
    96% { transform: translate(-1px, 0); opacity: 0.55; }
}
@keyframes brand-glitch-b {
    0%, 88%, 100% { transform: translate(0, 0); opacity: 0.22; }
    89% { transform: translate(2px, 0); opacity: 0.55; }
    92% { transform: translate(-2px, 0); opacity: 0.4; }
    95% { transform: translate(1px, -1px); opacity: 0.5; }
}
.brand-logo::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 22%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.12) 78%,
        transparent 100%
    );
    background-size: 220% 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 255, 255, 0.25);
    opacity: 0.75;
    animation: brand-underline 4.8s ease-in-out infinite;
}
@keyframes brand-underline {
    0%, 100% {
        background-position: 100% 50%;
        opacity: 0.55;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.35), 0 0 14px rgba(255, 255, 255, 0.15);
    }
    50% {
        background-position: 0% 50%;
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 255, 255, 0.3);
    }
}

/* ── Info block ─────────────────────────────────────────────────────── */
.info {
    text-align: center;
    margin-top: 0.4rem;
    line-height: 1.45;
}
h2.info-tagline {
    font-weight: normal;
    color: var(--phosphor);
    text-shadow: 0 0 7.5px var(--phosphor), 0 0 18px rgba(255,255,255,0.4);
    letter-spacing: 1px;
}
h2 {
    font-size: 1.6rem;
    margin-top: 0.2rem;
}
/* Outlined KI+ badge — same baseline as wordmark (mockup C) */
.brand-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    top: 0;
    box-sizing: border-box;
    height: 0.92em;
    padding: 0 0.32em;
    font-size: 0.78em;
    font-family: inherit;
    font-weight: normal;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--phosphor-badge);
    background: transparent;
    border: 2px solid var(--phosphor);
    border-radius: 2px;
    text-shadow:
        0 0 6px var(--phosphor),
        0 0 14px rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.45),
        inset 0 0 8px rgba(255, 255, 255, 0.08);
}
.info-address {
    font-size: 1.5rem;
    color: var(--phosphor);
    margin-top: 0.4rem;
    letter-spacing: 1px;
    animation: glow-pulse 2.8s ease-in-out infinite;
    padding: 10px;
}
@keyframes glow-pulse {
    0%   { text-shadow: 0 0 3px var(--phosphor), 0 0 6px rgba(255,255,255,0.3); opacity: 0.7; }
    50%  { text-shadow: 0 0 9px var(--phosphor), 0 0 21px rgba(255,255,255,0.7), 0 0 36px rgba(255,255,255,0.3); opacity: 1; }
    100% { text-shadow: 0 0 3px var(--phosphor), 0 0 6px rgba(255,255,255,0.3); opacity: 0.7; }
}

@media (max-width: 600px) {
    /* Home tagline sizes live in index.css — do not override with !important */
    .info-address { font-size: 1.2rem; padding: 20px; }
    .info { line-height: 1.1; }
}

/* ── Scroll lock until first paint settles (see base.html.twig) ──────── */
html.uk-scroll-lock,
html.uk-scroll-lock body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* ── Screen-reader only utility ─────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Skip-Link (nur bei Tastatur-Fokus sichtbar) ────────────────────── */
.skip-link {
    position: absolute;
    left: 50%;
    top: -200px;
    transform: translateX(-50%);
    z-index: 500;
    padding: 0.6rem 1.2rem;
    background: var(--bg-skip);
    border: 2px solid var(--phosphor);
    color: var(--phosphor);
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 0 16px rgba(255,255,255,0.5);
    transition: top 0.15s ease-in;
}
.skip-link:focus {
    top: 0.6rem;
    outline: none;
}
main.screen:focus { outline: none; }

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .screen          { animation: none !important; }
    .info-address    { animation: none !important; }
    .brand-logo::after { animation: none !important; opacity: 0.85; }
    .brand-logo__text::before,
    .brand-logo__text::after {
        animation: none !important;
        opacity: 0 !important;
        content: none;
    }
}

/* ── Site footer (home + lexikon) ───────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 3;
    width: 100%;
    align-self: stretch;
    flex-shrink: 0;
    margin-top: auto;
    background: rgba(12, 12, 12, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem clamp(0.65rem, 2.5vw, 1.35rem);
    width: 100%;
    max-width: 100%;
    padding: 14px clamp(10px, 3vw, 32px);
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}
.site-footer__primary,
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem clamp(0.65rem, 2.5vw, 1.35rem);
}
.site-footer__primary {
    flex: 1 1 auto;
    min-width: 0;
}
.site-footer__legal {
    flex: 0 0 auto;
    margin-left: auto;
}
.site-footer__support {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    order: -1;
    line-height: 1;
    text-decoration: none !important;
    padding: 0.2rem 0.15rem;
}
.site-footer__support .support-title-heart {
    display: block;
    width: 1.2em;
    height: 1.2em;
    color: inherit;
    transition: transform 0.18s ease, filter 0.18s ease, color 0.15s;
}
.site-footer__support:hover,
.site-footer__support:focus-visible {
    color: var(--phosphor);
    text-decoration: none !important;
    outline: none;
}
.site-footer__support:focus-visible {
    box-shadow: 0 0 0 2px var(--phosphor), 0 0 10px rgba(255, 255, 255, 0.55);
    border-radius: 2px;
}
.site-footer__support:hover .support-title-heart,
.site-footer__support:focus-visible .support-title-heart {
    transform: scale(1.18);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}
@media (prefers-reduced-motion: reduce) {
    .site-footer__support .support-title-heart {
        transition: none;
    }
    .site-footer__support:hover .support-title-heart,
    .site-footer__support:focus-visible .support-title-heart {
        transform: none;
    }
}
.site-footer a,
.site-footer__btn {
    flex: 0 1 auto;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'VT323', monospace;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0.15rem 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
}
.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer__btn:hover,
.site-footer__btn:focus-visible {
    color: var(--phosphor);
    text-decoration: underline;
    outline: none;
}

@media (min-width: 901px) {
    .site-footer a,
    .site-footer__btn {
        font-size: 1.4rem;
    }
}

/* Heart on own row + centered link text from tablet down */
@media (max-width: 1024px) {
    .site-footer__nav {
        justify-content: center;
        gap: 0.35rem 0.75rem;
        padding-left: 12px;
        padding-right: 12px;
    }
    .site-footer__primary,
    .site-footer__legal {
        display: contents;
    }
    .site-footer__legal {
        margin-left: 0;
    }
    .site-footer__support {
        position: static;
        flex: 1 0 100%;
        order: -1;
        justify-content: flex-start;
        margin-bottom: 0.15rem;
    }
}

/* Secondary footer links: desktop only */
@media (max-width: 900px) {
    .site-footer a.site-footer__hide-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-footer a,
    .site-footer__btn {
        font-size: 1.2rem;
    }
}

/* ── Mobile navigation ───────────────────────────────────────────────── */
#hamburger-btn {
    display: flex;
    position: fixed;
    top: 6px;
    right: 1.2rem;
    z-index: 350;
    background: rgba(8,8,8,0.7);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: none;
    width: 34px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    opacity: 1;
    transition: opacity 0.2s, border-color 0.2s;
}
#hamburger-btn:hover,
#hamburger-btn:focus-visible,
#hamburger-btn.open {
    opacity: 1;
    border-color: rgba(255,255,255,0.75);
}
#hamburger-btn span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--phosphor);
    box-shadow: none;
    transition: transform 0.2s, opacity 0.2s;
}
#hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger-btn.open span:nth-child(2) { opacity: 0; }
#hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-nav-menu {
    display: none;
    position: fixed;
    top: 48px;
    right: 1.2rem;
    z-index: 340;
    background: rgba(10,10,10,0.97);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 12px rgba(255,255,255,0.28);
    padding: 2px 0;
    min-width: 232px;
    max-width: calc(100vw - 2rem);
    flex-direction: column;
    gap: 0;
}
#mobile-nav-menu.open { display: flex; }
.nav-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    color: var(--phosphor);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
    padding: 6px 12px;
    white-space: nowrap;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    text-shadow: 0 0 5px var(--phosphor);
    display: block;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}
@media (max-width: 480px) {
    .nav-item { font-size: calc(1.2rem + 1px); }
}
.nav-item:last-child { border-bottom: none; }
.nav-item:hover,
.nav-item:focus {
    background: rgba(255,255,255,0.1);
    outline: none;
}
.nav-item[aria-current="page"] { background: rgba(255,255,255,0.16); }
.nav-item--cyberdeck {
    color: #00ff41;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
    border-top: 1px solid rgba(0, 255, 65, 0.25);
}
.nav-item--cyberdeck:hover,
.nav-item--cyberdeck:focus {
    background: rgba(0, 255, 65, 0.15);
    color: #ffffff;
}

/* ── Cyberpunk HUD Bar ─────────────────────────────────────────────── */
.cyber-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    z-index: 345;
    background: rgba(4, 7, 10, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(0, 255, 65, 0.1);
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    user-select: none;
}
.cyber-hud__inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 4rem 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}
.cyber-hud__section {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cyber-hud__section--status {
    flex-shrink: 0;
}
.cyber-hud__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 8px #00ff41;
    display: inline-block;
    animation: hud-pulse 2.2s infinite ease-in-out;
}
@keyframes hud-pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 12px #00ff41; }
}
.cyber-hud__text {
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    letter-spacing: 0.05em;
}
.cyber-hud__dim {
    color: #6a7d88;
}
.cyber-hud__sep {
    color: rgba(255, 255, 255, 0.2);
}
.cyber-hud__sector {
    color: #b2c5d0;
    letter-spacing: 0.05em;
}
.cyber-hud__section--center {
    flex: 1;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cyber-hud__ticker {
    color: #8c9fa9;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}
.cyber-hud__section--actions {
    flex-shrink: 0;
}
.cyber-hud__cli-trigger {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.35);
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    padding: 2px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    transition: all 0.15s ease;
    touch-action: manipulation;
}
.cyber-hud__cli-trigger:hover,
.cyber-hud__cli-trigger:focus-visible {
    background: rgba(0, 255, 65, 0.18);
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.45);
    color: #ffffff;
}
@media (max-width: 760px) {
    .cyber-hud__section--center { display: none; }
    .cyber-hud__sector { display: none; }
    .cyber-hud__sep { display: none; }
}

/* ── Cyberdeck Interactive Terminal ────────────────────────────────── */
.cyberdeck {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62vh;
    min-height: 380px;
    max-height: 580px;
    z-index: 360;
    background: #020406;
    border-bottom: 2px solid #00ff41;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 255, 65, 0.25);
    overflow: hidden;
    font-family: 'VT323', monospace;
    color: #ffffff;
}
.cyberdeck.open {
    display: flex;
    flex-direction: column;
    animation: cyberdeck-slide-down 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cyberdeck-slide-down {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.cyberdeck__matrix {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0.26;
    pointer-events: none;
    z-index: 1;
}
.cyberdeck__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}
.cyberdeck__window {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px 18px 14px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
.cyberdeck__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.35);
    color: #00ff41;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}
.cyberdeck__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cyberdeck__hotkey-hint {
    font-size: 1rem;
    color: #798b96;
}
.cyberdeck__close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
}
.cyberdeck__close-btn:hover {
    border-color: #ff0055;
    color: #ff0055;
    text-shadow: 0 0 8px #ff0055;
}
.cyberdeck__output {
    flex: 1;
    overflow-y: auto;
    margin: 10px 0;
    padding-right: 8px;
    font-size: 1.25rem;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-break: break-word;
}
.cyberdeck__line {
    color: #dbe4e8;
    white-space: pre-wrap;
}
.cyberdeck__art-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 8px;
}
.cyberdeck__art {
    margin: 0;
    padding: 0;
    font: inherit;
    font-variant-ligatures: none;
    letter-spacing: -0.08em;
    line-height: 1;
    white-space: pre;
    overflow: hidden;
}
.cyberdeck__line--prompt {
    color: #8c9da6;
    margin-top: 4px;
}
.cyberdeck__line--green {
    color: #00ff41;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}
.cyberdeck__line--amber {
    color: #ffbf00;
    text-shadow: 0 0 6px rgba(255, 191, 0, 0.5);
}
.cyberdeck__line--cyan {
    color: #00e8ff;
    text-shadow: 0 0 6px rgba(0, 232, 255, 0.5);
}
.cyberdeck__line--red {
    color: #ff3366;
    text-shadow: 0 0 6px rgba(255, 51, 102, 0.5);
}
.cyberdeck__line--dim {
    color: #687982;
}
.cyberdeck__cmd-hint {
    color: #00ff41;
    font-weight: normal;
    text-decoration: underline;
}
.cyberdeck__link {
    color: #00e8ff;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(0, 232, 255, 0.4);
}
.cyberdeck__link:hover {
    color: #ffffff;
}
.cyberdeck__link--highlight {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}
.cyberdeck__input-row {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 8px;
}
.cyberdeck__prompt {
    color: #00ff41;
    font-size: 1.35rem;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}
.cyberdeck__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'VT323', monospace;
    font-size: 1.35rem;
    outline: none;
    caret-color: #00ff41;
}

/* ── Cyberpunk Decryption / Scramble ────────────────────────────────── */
.is-scrambling {
    text-shadow:
        0 0 4px currentColor,
        0 0 10px currentColor,
        0 0 18px currentColor;
    opacity: 0.96;
    letter-spacing: inherit;
    will-change: contents;
}
@media (prefers-reduced-motion: reduce) {
    .is-scrambling {
        text-shadow: none !important;
        animation: none !important;
    }
}

/* ── Cyberpunk Background: Floor Grid & Corner Reticles ────────────── */
.cyber-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    overflow: hidden;
}

/* 3D Perspective Floor Grid (Tron / Cyberspace Grid) */
.cyber-bg__grid-floor {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -60px;
    height: 44vh;
    min-height: 240px;
    perspective: 320px;
    perspective-origin: 50% 0%;
    overflow: hidden;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
}
.cyber-bg__grid-plane {
    position: absolute;
    inset: -30px;
    transform-origin: 50% 0%;
    transform: rotateX(74deg);
    background-image:
        linear-gradient(to right, rgba(0, 255, 65, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 65, 0.25) 1px, transparent 1px);
    background-size: 54px 54px;
    box-shadow: inset 0 0 50px rgba(0, 255, 65, 0.12);
    animation: cyber-grid-scroll 8s linear infinite;
}
@keyframes cyber-grid-scroll {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 0 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .cyber-bg__grid-plane {
        animation: none;
    }
}
.cyber-bg__horizon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(0, 255, 65, 0.45) 25%, rgba(0, 232, 255, 0.6) 50%, rgba(0, 255, 65, 0.45) 75%, transparent 95%);
    box-shadow: 0 0 16px 2px rgba(0, 255, 65, 0.35), 0 0 32px 5px rgba(0, 232, 255, 0.2);
}

/* Tactical HUD Corner Reticles */
.cyber-bg__reticle {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    color: rgba(0, 255, 65, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.35);
    letter-spacing: 0.08em;
}
.cyber-bg__crosshair {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 14px;
    height: 14px;
    font-size: 1.2rem;
    line-height: 1;
    color: #00ff41;
}
.cyber-bg__reticle--tl {
    top: 56px;
    left: 18px;
    border-top: 1px solid rgba(0, 255, 65, 0.28);
    border-left: 1px solid rgba(0, 255, 65, 0.28);
    padding: 3px 8px;
}
.cyber-bg__reticle--tr {
    top: 56px;
    right: 74px;
    border-top: 1px solid rgba(0, 255, 65, 0.28);
    border-right: 1px solid rgba(0, 255, 65, 0.28);
    padding: 3px 8px;
}
.cyber-bg__reticle--bl {
    bottom: 16px;
    left: 18px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.28);
    border-left: 1px solid rgba(0, 255, 65, 0.28);
    padding: 3px 8px;
}
.cyber-bg__reticle--br {
    bottom: 16px;
    right: 18px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.28);
    border-right: 1px solid rgba(0, 255, 65, 0.28);
    padding: 3px 8px;
}
@media (max-width: 1140px) {
    .cyber-bg__label {
        display: none;
    }
    .cyber-bg__reticle {
        padding: 2px 4px;
    }
}
@media (max-width: 580px) {
    .cyber-bg__reticle {
        display: none;
    }
}

/* ── Custom tooltips ────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #000;
    color: var(--phosphor);
    border: 1px solid var(--phosphor);
    box-shadow: 0 0 8px var(--phosphor);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    letter-spacing: normal;
    white-space: nowrap;
    padding: 3px 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 300;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
/* Hide tooltips while a modal is open (sticky hover after click/tap) */
body:has(.crt-modal-overlay.open) [data-tooltip]::after {
    opacity: 0 !important;
    visibility: hidden;
    transition: none;
}

/* Footer heart: must win over generic [data-tooltip]::after */
a.site-footer__support[data-tooltip]::after {
    left: 0;
    right: auto;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: none;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(14, 14, 14, 0.96);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) {
    a.site-footer__support[data-tooltip]::after {
        transition: none;
    }
}

/* ── Shared CRT search bar (home FAKE-check + Lexikon) ──────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1rem auto 0;
    width: 100%;
    max-width: 584px;
    min-height: 46px;
    padding: 0 6px 0 4px;
    border: 2px solid var(--phosphor);
    border-radius: 24px;
    background: rgba(14, 14, 14, 0.72);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
}
.search-bar:focus-within {
    border-color: var(--phosphor);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.32);
}
.search-bar__addon,
.search-bar__submit {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
    color: var(--phosphor);
}
.search-bar__addon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.search-bar__help-mark {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.06em;
    text-shadow: none;
}
.search-bar__addon .support-title-heart {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    color: inherit;
}
.search-bar__submit {
    gap: 0;
    width: 44px;
    height: 40px;
    padding: 0;
    margin-right: 2px;
    border-radius: 20px;
}
.search-bar__submit .search-bar__icon {
    display: block;
    width: 26px;
    height: 26px;
    color: var(--phosphor);
    text-shadow: none;
    filter: none;
    transition: color 0.15s, filter 0.15s;
}
.search-bar__submit .search-bar__icon--ai {
    overflow: visible;
}
.search-bar__submit:hover:not(:disabled) .search-bar__icon,
.search-bar__submit:focus-visible:not(:disabled) .search-bar__icon {
    color: var(--phosphor);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
}
.search-bar__submit:disabled {
    cursor: not-allowed;
}
.search-bar__submit:disabled .search-bar__icon {
    color: var(--phosphor);
}
.search-bar__addon:hover,
.search-bar__addon:focus-visible,
.search-bar__submit:hover:not(:disabled),
.search-bar__submit:focus-visible:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.search-bar__addon:hover,
.search-bar__addon:focus-visible {
    color: var(--phosphor);
}
.search-bar__submit:active:not(:disabled) {
    transform: scale(0.97);
}
.search-bar__input {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
    border: none;
    border-bottom: none;
    color: var(--phosphor);
    font-family: 'VT323', monospace;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    outline: none;
    caret-color: var(--phosphor);
    text-shadow: 0 0 7.5px var(--phosphor), 0 0 18px rgba(255, 255, 255, 0.4);
    padding: 8px 10px;
    text-align: left;
}
.search-bar__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-style: normal;
    text-shadow: none;
}
@media (max-width: 480px) {
    .search-bar__input {
        font-size: 1.2rem;
    }
}

