:root {
    
    --bionic-l: 0.15;
    --bionic-c: 0.05;
    --bionic-h: 240;
    --bg-color: oklch(var(--bionic-l) var(--bionic-c) var(--bionic-h));
    --fg-color: oklch(0.9 0.1 180);
    --accent-color: oklch(0.7 0.2 var(--bionic-h));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; 
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: 'Courier New', Courier, monospace; 
    transition: background-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hidden {
    display: none !important;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: #000;
}

#init-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 50;
}


.glitch-container {
    text-align: center;
    max-width: 80%;
}

.glitch {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255,0,60,0.5);
    margin-bottom: 20px;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    20% { clip: rect(62px, 9999px, 98px, 0); }
    40% { clip: rect(21px, 9999px, 63px, 0); }
    60% { clip: rect(74px, 9999px, 15px, 0); }
    80% { clip: rect(3px, 9999px, 59px, 0); }
    100% { clip: rect(96px, 9999px, 2px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(14px, 9999px, 53px, 0); }
    40% { clip: rect(98px, 9999px, 20px, 0); }
    60% { clip: rect(43px, 9999px, 78px, 0); }
    80% { clip: rect(10px, 9999px, 91px, 0); }
    100% { clip: rect(85px, 9999px, 11px, 0); }
}

.subtext {
    font-size: 1rem;
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0,255,204,0.3);
}
.subtext.dim {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #445566;
    letter-spacing: 2px;
}


.intro-box {
    text-align: center;
    border: 1px solid var(--accent-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0,255,204,0.1);
    max-width: 90%;
}
.intro-box h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.intro-box p {
    font-size: 1rem;
    color: #a0b0c0;
    margin-bottom: 20px;
}
.credits {
    font-size: 0.75rem;
    color: #607080;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.ising-verdict {
    font-size: 0.68rem;
    color: #607080;
    margin-top: 18px;
    letter-spacing: 0.5px;
    font-style: italic;
    line-height: 1.5;
    border-top: 1px solid rgba(0,255,204,0.1);
    padding-top: 12px;
}
.ising-link {
    color: #607080;
    text-decoration: none;
    border-bottom: 1px dotted #607080;
    transition: color 0.2s, border-color 0.2s;
}
.ising-link:hover {
    color: #00ffcc;
    border-color: #00ffcc;
}
.btn-bionic {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    border-radius: 4px;
    text-shadow: 0 0 8px var(--accent-color);
    box-shadow: 0 0 10px rgba(0,255,204,0.2);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-bionic:active {
    background: var(--accent-color);
    color: #000;
}


#feynman-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    touch-action: none; 
}
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    pointer-events: none;
    text-align: center;
}
.homage-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
}
.homage-credits {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}
.glow-link, .book-link {
    color: var(--accent-color);
    text-decoration: none;
    pointer-events: auto;
    text-shadow: 0 0 8px var(--accent-color);
}
.book-link {
    font-weight: 900;
    margin-top: 5px;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
}
.book-me { margin-top: 15px; }
.intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.bongo-anim {
    width: 70px;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .bongo-anim {
        width: 45px;
    }
    .intro-container {
        gap: 10px;
    }
}
