:root {
    --blood-red: #ff0040;
    --neon-red: #ff1744;
    --deep-red: #cc0033;
    --dark-red: #880022;
    --crimson: #ff073a;
    --neon-cyan: #00ffff;
    --electric-blue: #0066ff;
    --toxic-green: #39ff14;
    --plasma-purple: #bf00ff;
    --warning-orange: #ff4500;
    --deep-black: #000000;
    --charcoal: #0d0d0d;
    --dark-gray: #1a1a1a;
    --void-black: #050505;
    
    --font-display-caps: "scribo-ink-caps", sans-serif;
    --font-tech-mono: "source-code-pro", monospace;
    --font-body-text: "source-sans-pro", sans-serif;
    
    --text-primary: #ffffff;
    --background-primary: #0a0a0a;
    --border-primary: #ff0040;
    --hover-background: #1a0505;
    
    --primary-color: #ff0040;
    --text-color: #ffffff;
    --font-primary: "scribo-ink-caps", sans-serif;
}

@keyframes chromatic-aberration {
    0% {
        text-shadow: 
            -2px 0 var(--neon-red),
            2px 0 var(--neon-cyan),
            0 0 10px var(--blood-red),
            0 0 20px var(--blood-red);
    }
    25% {
        text-shadow: 
            -3px 0 var(--neon-red),
            3px 0 var(--electric-blue),
            0 0 15px var(--blood-red),
            0 0 30px var(--blood-red);
    }
    50% {
        text-shadow: 
            -1px 0 var(--crimson),
            1px 0 var(--toxic-green),
            0 0 20px var(--neon-red),
            0 0 40px var(--neon-red);
    }
    75% {
        text-shadow: 
            -4px 0 var(--plasma-purple),
            4px 0 var(--neon-cyan),
            0 0 25px var(--crimson),
            0 0 50px var(--crimson);
    }
    100% {
        text-shadow: 
            -2px 0 var(--neon-red),
            2px 0 var(--neon-cyan),
            0 0 10px var(--blood-red),
            0 0 20px var(--blood-red);
    }
}

@keyframes flicker-effect {
    0%, 100%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70% {
        opacity: 1;
        text-shadow: 
            0 0 10px var(--blood-red), 
            0 0 20px var(--blood-red),
            0 0 30px var(--neon-red),
            2px 0 var(--neon-cyan);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: .7;
        text-shadow: 
            0 0 5px var(--blood-red),
            1px 0 var(--electric-blue);
    }
}

@keyframes flicker {
    0%, 100%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70% {
        opacity: 1;
        text-shadow: 
            0 0 8px var(--primary-color), 
            0 0 15px var(--primary-color),
            0 0 25px var(--neon-red),
            -1px 0 var(--neon-cyan);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: .6;
        text-shadow: 
            0 0 4px var(--primary-color),
            1px 0 var(--toxic-green);
    }
}

@keyframes title-pulse {
    0%, 100% {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 8px var(--primary-color),
            0 0 12px var(--deep-red),
            -2px 0 var(--neon-cyan),
            2px 0 var(--toxic-green);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 8px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--deep-red),
            0 0 25px rgba(255, 0, 64, 0.6),
            -3px 0 var(--electric-blue),
            3px 0 var(--plasma-purple);
        transform: scale(1.02);
    }
}

@keyframes cursor-blink {
    0%, 50% { 
        opacity: 1; 
        color: var(--neon-red);
        text-shadow: 
            0 0 10px var(--neon-red),
            0 0 20px var(--blood-red);
    }
    51%, 100% { 
        opacity: 0; 
    }
}

@keyframes border-glow {
    0%, 100% {
        border-color: var(--blood-red);
        box-shadow: 
            0 0 20px rgba(255, 0, 64, 0.3),
            0 0 40px rgba(255, 0, 64, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    25% {
        border-color: var(--neon-cyan);
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            0 0 40px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(0, 255, 255, 0.1);
    }
    50% {
        border-color: var(--toxic-green);
        box-shadow: 
            0 0 20px rgba(57, 255, 20, 0.3),
            0 0 40px rgba(57, 255, 20, 0.2),
            inset 0 1px 0 rgba(57, 255, 20, 0.1);
    }
    75% {
        border-color: var(--plasma-purple);
        box-shadow: 
            0 0 20px rgba(191, 0, 255, 0.3),
            0 0 40px rgba(191, 0, 255, 0.2),
            inset 0 1px 0 rgba(191, 0, 255, 0.1);
    }
}

* {
    box-sizing: border-box;
}

body {
    background: 
        radial-gradient(ellipse at top left, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at center, #1a0a0a 0%, #0a0a0a 70%, #000000 100%);
    color: var(--text-primary);
    font-family: var(--font-primary);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    background: 
        linear-gradient(135deg, var(--background-primary) 0%, #1a0a0a 100%),
        linear-gradient(45deg, rgba(255, 0, 64, 0.05) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    animation: border-glow 8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.file-system-directory {
    padding: 25px;
}

.file-entry {
    margin-bottom: 20px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    background: 
        linear-gradient(135deg, #0f0a0a 0%, #1a0a0a 100%),
        linear-gradient(45deg, rgba(57, 255, 20, 0.02) 0%, rgba(191, 0, 255, 0.02) 100%);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 0, 64, 0.2),
        inset 0 1px 0 rgba(255, 0, 64, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.file-entry:hover {
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 0, 64, 0.4),
        0 0 50px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.file-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-red), var(--neon-cyan), transparent);
    opacity: 0.6;
}

.file-entry-header {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: 
        linear-gradient(135deg, var(--hover-background) 0%, #3d1a1a 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 64, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-primary);
    min-height: 60px;
    position: relative;
}

.file-entry-header:hover {
    background: 
        linear-gradient(135deg, #660000 0%, #7d2d2d 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.1) 0%, rgba(57, 255, 20, 0.1) 100%);
    color: var(--neon-red);
    box-shadow: 
        inset 0 0 20px rgba(255, 0, 64, 0.3),
        0 0 15px rgba(255, 0, 64, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3);
}

.folder-icon {
    font-size: 1.4rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    color: var(--crimson);
    text-shadow: 
        0 0 5px var(--crimson),
        0 0 10px var(--neon-red);
    transition: all 0.3s ease;
}

.file-entry-header:hover .folder-icon {
    animation: chromatic-aberration 2s ease-in-out infinite;
    color: var(--neon-cyan);
}

.file-entry-name {
    font-family: var(--font-display-caps);
    font-weight: bold;
    font-size: 1.2rem;
    flex: 1;
    margin-right: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 
        0 0 5px currentColor,
        1px 0 var(--neon-cyan);
}

.file-entry-size {
    color: var(--neon-red);
    font-size: 1rem;
    font-family: var(--font-tech-mono);
    margin-right: 20px;
    min-width: 70px;
    text-align: right;
    text-shadow: 
        0 0 5px var(--neon-red),
        0 0 10px var(--blood-red),
        -1px 0 var(--toxic-green);
}

.file-entry.collapsed .file-entry-content {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.file-entry-content {
    max-height: 2000px;
    opacity: 1;
    transition: all 0.5s ease;
    overflow: hidden;
}

.file-text-content {
    padding: 30px;
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%),
        linear-gradient(45deg, rgba(255, 0, 64, 0.02) 0%, rgba(0, 255, 255, 0.02) 100%);
    border-top: 1px solid rgba(255, 0, 64, 0.3);
    font-family: var(--font-body-text);
    position: relative;
}

.file-text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 255, 0.01) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(255, 0, 64, 0.01) 50%, transparent 51%);
    pointer-events: none;
}

.file-text-content p {
    margin: 0 0 18px 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 5px rgba(255, 255, 255, 0.1);
}

.file-text-content p:last-child {
    margin-bottom: 0;
}

.access-section {
    margin: 25px;
    padding: 30px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    background: 
        linear-gradient(135deg, #1a0a0a 0%, #2d1a1a 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.05) 0%, rgba(191, 0, 255, 0.05) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 0, 64, 0.05) 20px,
            rgba(255, 0, 64, 0.05) 40px
        );
    text-align: center;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 0, 64, 0.3),
        inset 0 1px 0 rgba(255, 0, 64, 0.2);
}

.monitor-display-container {
    margin: 0 0 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.monitor-display-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 0 25px var(--blood-red), 
        0 0 50px rgba(255, 0, 64, 0.4),
        0 0 75px rgba(0, 255, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid var(--border-primary);
}

.monitor-display-image:hover {
    box-shadow: 
        0 0 35px var(--blood-red), 
        0 0 70px rgba(255, 0, 64, 0.6),
        0 0 100px rgba(0, 255, 255, 0.4),
        0 0 150px rgba(57, 255, 20, 0.3);
    transform: scale(1.03);
}

.access-invitation-text {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 20px 0;
    opacity: 0.9;
    font-style: italic;
    font-family: var(--font-body-text);
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.3),
        1px 0 var(--neon-cyan);
}

.access-button {
    display: inline-block;
    font-size: 1.6rem;
    color: var(--blood-red);
    text-decoration: none;
    border: 3px solid var(--blood-red);
    padding: 18px 35px;
    margin: 15px 0 25px 0;
    transition: all 0.4s ease;
    background: 
        transparent,
        linear-gradient(45deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 64, 0.05) 100%);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-family: var(--font-display-caps);
    border-radius: 8px;
    box-shadow: 
        0 0 15px rgba(255, 0, 64, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 15px rgba(255, 0, 64, 0.1);
    text-shadow: 
        0 0 5px currentColor,
        -1px 0 var(--neon-cyan),
        1px 0 var(--toxic-green);
}

.access-button:hover {
    background: 
        linear-gradient(135deg, var(--blood-red) 0%, var(--deep-red) 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.2) 0%, rgba(57, 255, 20, 0.2) 100%);
    color: var(--void-black);
    box-shadow: 
        0 0 30px var(--blood-red),
        0 0 50px rgba(255, 0, 64, 0.6),
        0 0 75px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px var(--neon-cyan);
}

.cursor-blink {
    display: block;
    text-align: center;
    animation: cursor-blink 1s infinite;
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 15px;
}

.glitch-effect {
    position: relative;
}

.ipsButton.ipsButton_primary,
.ipsButton.ipsButton_veryLight,
.ipsComment_controls a[data-action=quoteComment],
.ipsComment_controls button[data-action=multiQuoteComment],
.ipsType_blendLinks,
.ipsType_pageTitle,
.ipsType_pageTitle a span,
.ipsType_reset.ipsType_sectionTitle,
.ipsType_sectionHead,
ul.ipsList_reset li strong {
    animation: flicker 5s infinite;
    color: var(--primary-color);
}

.ipsToolList_primaryAction a[title="Back to characters index"],
.ipsToolList_primaryAction a[title=Edit] {
    animation: none;
}

.ipsRating,
.ipsType_light.ipsType_medium {
    font-size: 0;
}
.ipsBox {
    background-color: transparent;
}
.ipsAreaBackground.ipsPad.ipsClear.ipsSpacer_top {
    background-color: transparent;
}
  
.ipsPos_right,
.ipsDataItem_main,
.ipsType_reset,
.ipsType_sectionTitle,
.ipsType_sectionHead,
.ipsType_light {
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.5rem;
}

.ipsAreaBackground_light.ipsPad.ipsSpacer_bottom,
.ipsType_reset.ipsType_sectionTitle {
    background-color: transparent !important;
}

.ipsType_pageTitle.ipsType_center.ipsType_veryLarge.ipsSpacer_bottom {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: title-pulse 4s infinite alternate;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--neon-cyan) 50%, var(--toxic-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ipsType_sectionTitle {
    color: var(--primary-color);
    text-align: center;
    margin: 80px 0 50px;
    font-size: 2.8rem;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--neon-red),
        -2px 0 var(--neon-cyan),
        2px 0 var(--toxic-green);
    font-family: var(--font-display-caps);
}

.ipsType_pageTitle.ipsType_center.ipsType_large a span {
    color: var(--primary-color) !important;
    font-size: 3rem;
    text-shadow: 
        0 0 15px var(--primary-color),
        0 0 30px var(--neon-red),
        -1px 0 var(--neon-cyan);
    font-family: var(--font-display-caps) !important;
}

.toggle-btn {
    font-size: 1.8rem !important;
    min-width: max-content !important;
    background: 
        linear-gradient(135deg, var(--dark-red) 0%, var(--deep-red) 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.1) 0%, rgba(57, 255, 20, 0.1) 100%);
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 0, 64, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.toggle-btn:hover {
    background: 
        linear-gradient(135deg, var(--primary-color) 0%, var(--deep-red) 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.2) 0%, rgba(191, 0, 255, 0.2) 100%);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.ipsAreaBackground_light.ipsPad.ipsClearfix.ipsType_center {
    background-color: transparent;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .file-system-directory {
        padding: 20px;
    }
    
    .file-entry-header {
        padding: 12px 20px;
        min-height: 55px;
    }
    
    .folder-icon {
        margin-right: 12px;
        font-size: 1.2rem;
    }
    
    .file-entry-name {
        margin-right: 15px;
        font-size: 1.1rem;
    }
    
    .file-entry-size {
        margin-right: 15px;
        min-width: 60px;
        font-size: 0.9rem;
    }
    
    .file-text-content {
        padding: 25px;
    }
    
    .file-text-content p {
        font-size: 1rem;
    }
    
    .monitor-display-image {
        max-width: 280px;
    }
    
    .access-button {
        font-size: 1.4rem;
        padding: 15px 25px;
        letter-spacing: 2px;
    }
    
    .access-section {
        margin: 20px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .file-entry-header {
        padding: 10px 15px;
        min-height: 50px;
    }
    
    .file-entry-name {
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .file-entry-size {
        margin-right: 10px;
        min-width: 50px;
        font-size: 0.85rem;
    }
    
    .monitor-display-image {
        max-width: 220px;
    }
    
    .access-button {
        font-size: 1.2rem;
        padding: 12px 20px;
        letter-spacing: 1px;
    }
    
    .access-section {
        padding: 20px;
        margin: 15px;
    }
    
    .access-invitation-text {
        font-size: 1.1rem;
    }
    
    .file-text-content {
        padding: 20px;
    }
}