/* ── Index: stronger logo glow, canvas behind UI, user-select ───────── */
body {
    user-select: none;
    -webkit-user-select: none;
}

#stardust-canvas {
    z-index: 2;
}

#logo {
    text-shadow:
        0 0 18px #00ff41,
        0 0 40px #00c832,
        0 0 80px rgba(0,255,65,0.3);
}

.char {
    text-shadow:
        0 0 18px #00ff41,
        0 0 40px #00c832,
        0 0 80px rgba(0,255,65,0.3);
}

/* ── Fakecheck input row (input + submit button) ───────────────────── */
#fakecheck-input-row {
    display: none;
    align-items: flex-end;
    gap: 10px;
    margin: 2rem auto 0;
    width: min(480px, 80vw);
}
#fakecheck-input-row.visible {
    display: flex;
    animation: flicker 4s infinite;
}
#fakecheck-input {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    outline: none;
    caret-color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
    padding: 4px 6px;
    text-align: left;
}
#fakecheck-input::placeholder {
    color: rgba(0,255,65,0.35);
    font-style: normal;
}
#fakecheck-submit-btn {
    flex-shrink: 0;
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #00ff41;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-family: 'VT323', monospace;
    font-size: calc(1.5rem + 4px);
    letter-spacing: 0.1em;
    padding: 0 10px;
    margin-bottom: 0;
    cursor: pointer;
    text-shadow: 0 0 8px #00ff41;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.1s, text-shadow 0.1s;
}
#fakecheck-submit-btn:hover,
#fakecheck-submit-btn:focus {
    color: #7fff7f;
    text-shadow: 0 0 16px #00ff41;
    outline: none;
}
#fakecheck-submit-btn:active  { transform: scale(0.95); }
#fakecheck-submit-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Copy result button ─────────────────────────────────────────────── */
#fakecheck-copy-bar {
    display: none;
    width: min(720px, 90vw);
    text-align: right;
    margin: 5px auto 0;
}
#fakecheck-copy-bar.visible { display: block; }
#fakecheck-copy-btn {
    background: transparent;
    border: none;
    color: rgba(0,255,65,0.55);
    font-family: 'VT323', monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    padding: 1px 9px;
    cursor: pointer;
    text-shadow: 0 0 4px rgba(0,255,65,0.3);
    transition: color 0.15s, text-shadow 0.15s;
}
#fakecheck-copy-btn:hover,
#fakecheck-copy-btn:focus {
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
    outline: none;
}

/* ── Result output ──────────────────────────────────────────────────── */
#fake-check-result {
    display: none;
    margin: 1.4rem auto 0;
    width: min(720px, 90vw);
    background: rgba(0,10,0,0.85);
    border: 1px solid #00ff41;
    box-shadow: 0 0 10px #00ff41;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 0 6px #00ff41;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-color: #00ff41 #000;
    scrollbar-width: thin;
}
#fake-check-result.visible { display: block; }

/* ── Modals ─────────────────────────────────────────────────────────── */
.crt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.crt-modal-overlay.open { display: flex; }
.crt-modal {
    background: #000d00;
    border: 2px solid #00ff41;
    box-shadow: 0 0 32px #00ff41, 0 0 8px #00ff41 inset;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-shadow: 0 0 6px #00ff41;
    display: flex;
    flex-direction: column;
}
.crt-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 56px 32px 24px;
    scrollbar-color: #00ff41 #000;
    scrollbar-width: thin;
}
.crt-modal-intro {
    display: none;
    border: 1px solid rgba(0,255,65,0.5);
    background: rgba(0,255,65,0.1);
    padding: 0.6rem 0.9rem !important;
    margin-bottom: 1.2rem !important;
    opacity: 1 !important;
}
.crt-modal-overlay.must-accept .crt-modal-intro { display: block; }
.crt-modal h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    margin: 0 0 1.2rem;
    padding: 0.4rem 0.6rem 0.5rem;
    border: 1px solid #00ff41;
    background: rgba(0,255,65,0.18);
    box-shadow: 0 0 14px rgba(0,255,65,0.35) inset;
    text-shadow: 0 0 10px #00ff41, 0 0 24px #00c832;
    text-align: left;
}
.crt-modal h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 1.8rem 0 0.5rem;
    letter-spacing: 0.1em;
    opacity: 1;
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 3px solid #00ff41;
    background: rgba(0,255,65,0.13);
    text-shadow: 0 0 6px #00ff41;
}
.crt-modal-body > p:first-of-type,
.crt-modal h3 + p {
    margin-top: 0.2rem;
}
.crt-modal p {
    margin-bottom: 0.6rem;
    opacity: 0.9;
    padding-left: 0.15rem;
}
.crt-modal code {
    font-family: inherit;
    font-size: inherit;
    background: rgba(0,255,65,0.1);
    padding: 0 3px;
    border-radius: 2px;
}
.crt-modal ul {
    margin: 0.3rem 0 0.8rem 1rem;
    padding: 0;
    opacity: 0.9;
}
.crt-modal ul li {
    margin-bottom: 0.25rem;
    list-style: none;
    padding-left: 1.1em;
    position: relative;
}
.crt-modal ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ff41;
    text-shadow: 0 0 6px #00ff41;
}
.crt-modal a {
    color: #00ff41;
    text-decoration: underline;
}
.crt-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 0 6px #00ff41;
    padding: 0 4px;
    z-index: 10;
}
.crt-modal-close:hover { opacity: 0.7; }
.crt-modal-overlay.must-accept .crt-modal-close { display: none; pointer-events: none; }
.crt-modal-accept-bar {
    display: none;
    padding: 14px 32px;
    border-top: 1px solid #00ff41;
    flex-shrink: 0;
    text-align: center;
}
.crt-modal-overlay.must-accept .crt-modal-accept-bar { display: block; }
.crt-modal-accept-btn {
    background: none;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 6px 24px;
    text-shadow: 0 0 8px #00ff41;
    box-shadow: 0 0 8px #00ff41 inset;
    width: 100%;
}
.crt-modal-accept-btn:hover { background: rgba(0,255,65,0.12); }
@media (min-width: 900px) {
    .crt-modal { max-width: 860px; }
}
/* ── Retro Loader ───────────────────────────────────────────────────── */
#fake-check-loader {
    display: none;
    margin: 0.6rem auto 0;
    width: min(720px, 90vw);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #00ff41;
    text-shadow: 0 0 6px #00ff41;
    letter-spacing: 0.05em;
    text-align: center;
}
#fake-check-loader.visible { display: block; }

/* ── Score unter dem Logo ───────────────────────────────────────────── */
#logo-score {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: #00ff41;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px #00ff41;
    margin-top: -1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
#logo-score span {
    font-size: 1.6rem;
    text-shadow: 0 0 12px #00ff41, 0 0 24px #00c832;
}

/* ── Hamburger-Button ───────────────────────────────────────────────── */
#hamburger-btn {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1.6rem;
    z-index: 350;
    background: rgba(0,6,0,0.7);
    border: 1px solid rgba(0,255,65,0.35);
    box-shadow: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    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(0,255,65,0.75);
}
#hamburger-btn span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #00ff41;
    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-Menü ────────────────────────────────────────────────── */
#mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 340;
    background: rgba(0,8,0,0.97);
    border: 2px solid #00ff41;
    box-shadow: 0 0 24px rgba(0,255,65,0.4);
    padding: 62px 0 10px;
    min-width: 210px;
    flex-direction: column;
    gap: 0;
}
#mobile-nav-menu.open { display: flex; }
.nav-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,255,65,0.2);
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    padding: 13px 22px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    text-shadow: 0 0 6px #00ff41;
    display: block;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}
.nav-item:last-child { border-bottom: none; }
.nav-item:hover,
.nav-item:focus {
    background: rgba(0,255,65,0.1);
    outline: none;
}


