/* GHOSTLINE 1988 — SHARED / LOCAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    overflow-y: auto;
    background: #000000;
    color: #FF1A0A;
    /* Dieprood als basis alarmkleur */
    font-family: Consolas, monospace;
    min-height: 100vh;
    -webkit-user-select: none;
    user-select: none;
}
code, pre, input {
    user-select: text !important;
}
/* PCB Circuit Board Canvas Background */
#circuit-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}
/* De centrale console */
#white-rabbit-core {
    max-width: 850px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(10, 0, 5, 0.95);
    /* Zwaar industrieel donkerrood/zwart */
    border: 1px solid #FF0F6F;
    /* Neon Vaporwave Roze border */
    box-shadow: 0 0 25px rgba(255, 15, 111, 0.15);
}
header {
    text-align: center;
    border-bottom: 1px solid #FF0F6F;
    padding-bottom: 20px;
    margin-bottom: 35px;
}
.rabbit-hardware-title {
    font-size: 24px;
    color: #FF0F6F;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 15, 111, 0.4);
}
.subtitle {
    color: #555;
    font-size: 11px;
    margin-top: 5px;
}
.hardware-block {
    margin-bottom: 35px;
}
.hardware-block h2 {
    font-size: 14px;
    color: #FAFF0A;
    margin-bottom: 15px;
}
/* 📟 GESIMULEERD LILYGO LCD SCHERMPJE EN PUZZEL BOX */
#bootloader-puzzle-box {
    background: rgba(5, 5, 5, 0.96);
    border: 1px solid #FF1A0A;
    padding: 25px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(255, 26, 10, 0.1);
}
#bootloader-puzzle-box h3 {
    font-size: 14px;
    color: #FF1A0A;
    margin-bottom: 15px;
}
.puzzle-instruction {
    font-size: 12px;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.5;
}
/* Het virtuele LilyGo T-Display LCD-schermpje */
#lilygo-lcd-screen {
    width: 220px;
    height: 110px;
    background: #041a00;
    border: 4px solid #333;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(76,255,0,0.2), inset 0 0 10px rgba(0,0,0,0.8);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}
/* De oplichtende Matrix-groene letters op het LCD-schermpje */
#lcd-text {
    color: #4CFF00;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.6;
    text-shadow: 0 0 4px #4CFF00;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 1px;
}
/* De scanlines over het LCD schermpje simuleren */
#lilygo-lcd-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 3px, 6px 100%;
    z-index: 5;
}
.hardware-sliders {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin: 0 auto 20px;
    text-align: left;
}
.slider-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ccc;
    font-size: 13px;
    font-weight: bold;
}
.slider-control input[type="range"] {
    appearance: none;
    background: #1a0003;
    height: 6px;
    border: 1px solid #400008;
    outline: none;
}
.slider-control input::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 22px;
    background: #FF1A0A;
    border: 1px solid #000;
    cursor: ew-resize;
    box-shadow: 0 0 8px #FF1A0A;
}
#boot-status {
    font-size: 12px;
    font-weight: bold;
    color: #FAFF0A;
}
/* MEDIA BEVEILIGINGS LAY-OUT */
.media-container {
    position: relative;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #333;
}
.media-container img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
.media-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 10;
}
.hardware-neon-glow {
    box-shadow: 0 0 15px rgba(255, 26, 10, 0.15);
}
/* TERMINAL TEXT BOX */
.text-terminal-style {
    background: rgba(5, 5, 5, 0.9);
    border-left: 3px solid #FAFF0A;
    padding: 20px;
    line-height: 1.7;
    font-size: 14px;
    color: #ccc;
}
/* NAVIGATIEGRID KNOPPEN */
#hardware-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}
.hardware-nav-btn {
    height: 45px;
    background: transparent;
    border: 1px solid #00FFCC;
    color: #00FFCC;
    font-family: Consolas, monospace;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hardware-nav-btn:hover {
    background: rgba(0, 255, 204, 0.08);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.3);
}
/* SPECIALE STEGANOGRAFIE KNOP LOOK */
.crypt-btn {
    border-color: #FF0F6F !important;
    color: #FF0F6F !important;
}
.crypt-btn:hover {
    background: #FF0F6F !important;
    color: #000 !important;
    box-shadow: 0 0 15px #FF0F6F !important;
}
/* SHUTDOWN SESSIONS BUTTON */
footer {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
}
.back-hub-btn {
    height: 40px;
    padding: 0 25px;
    background: #FF1A0A;
    border: none;
    color: #fff;
    font-family: Consolas, monospace;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 26, 10, 0.3);
}
.back-hub-btn:hover {
    background: #FF0F6F;
    box-shadow: 0 0 15px #FF0F6F;
}
@media (max-width: 768px) {
    #hardware-nav-grid {
        grid-template-columns: 1fr;
    }
}
/* Targeted Rabbit bootloader improvements: original PCB canvas preserved */
.rabbit-hardware-title {
    position: relative;
    isolation: isolate;
    animation: rabbitBootFlicker 7s infinite;
    overflow-wrap: anywhere;
}
.rabbit-hardware-title::before, .rabbit-hardware-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}
.rabbit-hardware-title::before {
    color: #00ffcc;
    text-shadow: -2px 0 #00ffcc;
    animation: rabbitBootSplit 6.2s infinite;
}
.rabbit-hardware-title::after {
    color: #ffef44;
    text-shadow: 2px 0 #ff0f6f;
    animation: rabbitBootSplit 6.2s 70ms infinite reverse;
}
@keyframes rabbitBootSplit {
    0%,89%,94%,100% {
        opacity: 0;
        transform: none;
        clip-path: inset(0 0 0 0);
    }
    90% {
        opacity: .8;
        transform: translate(2px,-1px);
        clip-path: inset(10% 0 62% 0);
    }
    92% {
        opacity: .9;
        transform: translate(-2px,1px);
        clip-path: inset(58% 0 12% 0);
    }
}
@keyframes rabbitBootFlicker {
    0%,88%,94%,100% {
        filter: none;
    }
    90% {
        filter: brightness(1.6);
    }
    92% {
        filter: brightness(.8);
    }
}
.subtitle {
    color: #faff0a;
    font-size: 13px;
    line-height: 1.5;
}
.text-terminal-style {
    color: #fff;
}
.text-terminal-style p {
    color: #fff;
    margin-bottom: 14px;
}
.text-terminal-style strong {
    color: #00ffcc;
}
.media-container {
    margin-left: auto;
    margin-right: auto;
}
#hardware-nav-grid .hardware-nav-btn:not(.crypt-btn):hover, #hardware-nav-grid .hardware-nav-btn:not(.crypt-btn):focus-visible {
    background: #00ffcc;
    color: #000;
    border-color: #00ffcc;
    box-shadow: 0 0 17px #00ffcc;
}
#hardware-nav-grid .crypt-btn:hover {
    background: #ff0f6f !important;
    color: #000 !important;
}
.learning-section {
    border: 1px solid #5c3450;
    border-left: 3px solid #faff0a;
}
.puzzle-instruction {
    color: #fff;
}
@media(max-width:600px) {
    #white-rabbit-core {
        margin: 16px 10px;
        padding: 16px;
    }
    .rabbit-hardware-title {
        font-size: 19px;
    }
    .hardware-nav-btn {
        min-height: 48px;
        height: auto;
        padding: 10px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .rabbit-hardware-title,.rabbit-hardware-title::before,.rabbit-hardware-title::after {
        animation: none!important;
    }
}
/* Canvas blijft zichtbaar achter de console. */
body {
    isolation: isolate;
}
#circuit-canvas {
    z-index: 0;
    pointer-events: none;
}
#white-rabbit-core {
    position: relative;
    z-index: 1;
    background: rgba(10,0,15,.86);
    overflow-wrap: anywhere;
}
#lcd-text {
    white-space: pre-line;
}
#boot-reset {
    padding: 10px;
    background: #17102b;
    color: #fff;
    border: 1px solid #ff48bc;
    cursor: pointer;
}
