/* --- GENERAL RESET & FONTS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #030303;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    color: #33ff66;
    text-shadow: 0 0 4px rgba(51, 255, 102, 0.35);
}

/* Custom Colors */
.text-green { color: #33ff66; text-shadow: 0 0 5px rgba(51, 255, 102, 0.7); }
.text-cyan { color: #00ffff; text-shadow: 0 0 5px rgba(0, 255, 255, 0.7); }
.text-purple { color: #bf55ec; text-shadow: 0 0 5px rgba(191, 85, 236, 0.7); }
.text-amber { color: #ffb61e; text-shadow: 0 0 5px rgba(255, 182, 30, 0.7); }
.text-red { color: #ff3333; text-shadow: 0 0 5px rgba(255, 51, 51, 0.7); }
.text-dim { color: #229944; text-shadow: none; }
.hidden { display: none !important; }

/* --- CRT BEZEL & MONITOR LOOK --- */
.crt-bezel {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #111;
    border: 15px solid #222;
    border-radius: 30px;
    box-shadow: inset 0 0 50px rgba(0,0,0,1), 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #020804;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: text-flicker 0.15s infinite alternate;
}

/* CRT Scanlines Overlay */
.scanlines {
    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.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    z-index: 10;
    pointer-events: none;
}

/* Vignette Screen Glow & Shadows */
.screen-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 80px rgba(0, 255, 102, 0.15);
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,25,5,0.4) 100%);
    pointer-events: none;
    z-index: 9;
}

/* Subtle Screen Flicker */
@keyframes text-flicker {
    0% { opacity: 0.985; }
    100% { opacity: 1; }
}

/* Glitch Trigger Class */
.glitch-active {
    animation: screen-shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes screen-shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 1px, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, -1px, 0); }
    40%, 60% { transform: translate3d(2px, 0, 0); }
}

/* --- OVERLAY SCREENS (BOOT & GAME OVER) --- */
.overlay-panel {
    position: relative; /* Ensure relative context if needed, but absolute is fine */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 5, 2, 0.95);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow-y: auto;
}

.floppy-bg-overlay {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%) rotate(45deg);
    width: 230px; /* Even larger size */
    height: 230px;
    background-image: url('yellow_floppy_disk.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.28;
    pointer-events: auto; /* Allow clicks & hovers */
    cursor: pointer;
    z-index: 10; /* Bring it forward enough to be clickable */
    filter: sepia(100%) hue-rotate(15deg) saturate(250%) brightness(95%) contrast(110%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.floppy-bg-overlay:hover {
    transform: translateY(-50%) rotate(30deg) scale(1.25); /* Rotate counter-clockwise 15 degrees (45 -> 30) & zoom 1.25x */
    opacity: 0.6; /* Less dark overlay on hover */
}

/* Logo Design */
.ascii-logo {
    font-size: 9.5px; /* Sized down slightly to save space */
    line-height: 1.1;
    color: #33ff66;
    text-shadow: 0 0 10px rgba(51, 255, 102, 0.8);
    margin-bottom: 12px; /* Reduced from 20px */
    white-space: pre;
    font-weight: bold;
    text-align: center;
}

.boot-header {
    position: relative;
    text-align: center;
    margin-bottom: 15px; /* Reduced from 25px */
    width: 100%;
    max-width: 950px;
}

@media (max-width: 768px) {
    .floppy-bg-overlay {
        display: none; /* Hide on smaller viewports to prevent overlapping logo text */
    }
}

.boot-text {
    font-size: 14px;
    line-height: 1.5;
    color: #229944;
}

.section-title {
    font-size: 18px; /* Slightly smaller */
    letter-spacing: 2px;
    margin-bottom: 12px; /* Reduced from 20px */
    border-bottom: 2px solid #33ff66;
    padding-bottom: 4px;
    width: 300px;
    text-align: center;
}

/* Character Grid Selection */
.character-grid {
    display: flex;
    gap: 15px; /* Reduced from 25px */
    max-width: 950px;
    margin-bottom: 15px; /* Reduced from 20px */
}

/* Handle Input Container */
.handle-input-container {
    margin-bottom: 15px; /* Reduced from 25px */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 480px; /* Widened to fit button in-line */
}

.handle-input-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.handle-input-row .btn {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 14px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-input-container label {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #229944;
    font-weight: bold;
}

.handle-input-container input {
    width: 100%;
    background: rgba(0, 10, 3, 0.7);
    border: 2px solid #229944;
    border-radius: 4px;
    padding: 8px 12px;
    color: #33ff66;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    box-shadow: inset 0 0 10px rgba(51, 255, 102, 0.1);
    transition: all 0.3s ease;
}

.handle-input-container input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.1);
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.char-card {
    flex: 1;
    background: rgba(0, 15, 5, 0.6);
    border: 1px solid #229944;
    border-radius: 6px;
    padding: 12px 16px; /* Reduced from 20px */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.char-card:hover {
    transform: translateY(-5px);
    border-color: #33ff66;
    box-shadow: 0 0 15px rgba(51, 255, 102, 0.25);
    background: rgba(0, 25, 8, 0.8);
}

.char-card.selected {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(0, 20, 25, 0.8);
    color: #fff;
}

.char-card.selected .char-name {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.char-avatar {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.char-name {
    font-size: 18px; /* Reduced from 22px */
    font-weight: bold;
    margin-bottom: 6px; /* Reduced from 12px */
    letter-spacing: 1px;
}

.char-bio {
    font-size: 12.5px;
    line-height: 1.4;
    color: #88cc99;
    margin-bottom: 10px; /* Reduced from 15px */
}

.ability-block {
    border-top: 1px dashed rgba(51, 255, 102, 0.3);
    padding-top: 10px;
    font-size: 13px;
}

.ability-label {
    font-weight: bold;
    color: #ffb61e;
}

.ability-desc {
    font-size: 12px;
    color: #88cc99;
    margin-top: 4px;
}

/* Button styles */
.btn {
    font-family: 'Share Tech Mono', monospace;
    background: #022b10;
    color: #33ff66;
    border: 2px solid #33ff66;
    padding: 10px 30px;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px rgba(51, 255, 102, 0.6);
}

.btn:hover:not(:disabled) {
    background: #33ff66;
    color: #000;
    box-shadow: 0 0 15px rgba(51, 255, 102, 0.8);
}

.btn:disabled {
    border-color: #225533;
    color: #225533;
    cursor: not-allowed;
    text-shadow: none;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 12px;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    border-width: 1px;
}

.btn-warn {
    color: #ffb61e;
    border-color: #ffb61e;
    background: #301f00;
    text-shadow: 0 0 5px rgba(255, 182, 30, 0.6);
}
.btn-warn:hover:not(:disabled) {
    background: #ffb61e;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 182, 30, 0.8);
}

/* --- MAIN HUD PANEL & GAMEPLAY PANELS --- */
.game-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 12px;
    z-index: 1;
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 15, 5, 0.8);
    border: 1px solid #229944;
    border-radius: 4px;
    padding: 8px 20px;
    margin-bottom: 10px;
    font-size: 16px;
    box-shadow: inset 0 0 10px rgba(51,255,102,0.1);
}

.hud-item-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-label {
    color: #229944;
    font-weight: bold;
}

.hud-value {
    font-weight: bold;
}

/* Trace Meter */
.trace-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.trace-progress-bg {
    flex: 1;
    height: 14px;
    background: #0d2d14;
    border: 1px solid #229944;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.trace-progress-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        45deg,
        #ff3333,
        #ff3333 10px,
        #cc1111 10px,
        #cc1111 20px
    );
    transition: width 0.4s ease, background-color 0.4s ease;
    box-shadow: 0 0 8px rgba(255,51,51,0.6);
}

/* --- GAME LAYOUT STRUCTURE --- */
.game-layout {
    display: flex;
    flex: 1;
    gap: 10px;
    height: calc(100vh - 85px);
}

.column-left {
    flex: 7;
    position: relative;
    border: 1px solid #229944;
    border-radius: 4px;
    background: #000;
    overflow: hidden;
}

#three-container {
    width: 100%;
    height: 100%;
}

.flight-controls-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    border: 1px solid #229944;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    color: #88cc99;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.column-right {
    flex: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

/* --- FLOATING 90S WINDOW PANELS --- */
.win-panel {
    display: flex;
    flex-direction: column;
    background: rgba(0, 8, 4, 0.9);
    border: 1px solid #229944;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

#stream-window { flex: 2; min-height: 100px; }
#inspector-window { flex: 4; min-height: 160px; }
#terminal-window { flex: 3; min-height: 140px; }
#status-window { flex: 2; min-height: 100px; }

.win-header {
    background: #0d2d14;
    border-bottom: 1px solid #229944;
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.win-title {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #33ff66;
}

.win-dots {
    display: flex;
    gap: 4px;
}

.win-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.win-dots .dot.red { background: #ff3333; }
.win-dots .dot.green { background: #33ff66; }

.win-content {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
}

/* System Logs Panel */
#system-stream-content {
    font-size: 12px;
    color: #4cd964;
}
.log-line {
    margin-bottom: 2px;
    font-family: 'Share Tech Mono', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Inspector Panel */
.empty-inspector-msg {
    color: #229944;
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
}

.node-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.node-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(13, 45, 20, 0.4);
    padding: 6px;
    border: 1px solid rgba(51,255,102,0.15);
    border-radius: 3px;
}

.firewall-bypass-zone {
    text-align: center;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(51,255,102,0.2);
}

.kernel-hack-game {
    background: rgba(20, 5, 5, 0.6);
    border: 1px solid #ff3333;
    border-radius: 3px;
    padding: 8px;
    margin-top: 5px;
    text-align: left;
}

.hack-prompt {
    font-size: 12px;
    color: #ff3333;
    margin-bottom: 6px;
    font-weight: bold;
}

.hack-input-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.hack-input-row input {
    flex: 1;
    background: #000;
    border: 1px solid #ff3333;
    color: #ff3333;
    font-family: 'Share Tech Mono', monospace;
    padding: 2px 6px;
    font-size: 12px;
    outline: none;
}

.hack-hint {
    font-size: 11px;
    color: #ff9999;
}

.directory-list-header {
    font-size: 12px;
    color: #229944;
    font-weight: bold;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 120px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 15, 5, 0.4);
    border: 1px solid rgba(51, 255, 102, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
}

.file-item.honeypot {
    border-color: rgba(255, 51, 51, 0.15);
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: bold;
}

.file-type {
    font-size: 11px;
    color: #88cc99;
}

/* Terminal Console Panel */
#terminal-content {
    display: flex;
    flex-direction: column;
    background: #000502;
    padding: 6px;
}

.terminal-logs {
    flex: 1;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 6px;
    font-size: 12px;
    color: #33ff66;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    border-top: 1px solid #114422;
    padding-top: 5px;
}

.prompt-char {
    color: #33ff66;
    font-weight: bold;
    margin-right: 8px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #33ff66;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    text-shadow: 0 0 3px rgba(51,255,102,0.8);
}

/* Hacker Status & Utilities Grid */
.status-grid {
    display: flex;
    gap: 10px;
}

.status-panel-left {
    flex: 4;
    border-right: 1px dashed rgba(51,255,102,0.2);
    padding-right: 10px;
}

.status-panel-right {
    flex: 6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ping-results-hud {
    font-size: 12px;
    background: rgba(13, 45, 20, 0.4);
    border: 1px solid rgba(51,255,102,0.1);
    padding: 4px;
    border-radius: 3px;
    text-align: center;
    color: #ffb61e;
}

.inventory-section {
    font-size: 11px;
}

.inventory-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.inventory-list li {
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 1px 5px;
    border-radius: 2px;
}

.ability-cooldown-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: bold;
}

/* --- GAME OVER DETAILS & TABLES --- */
.game-over-screen {
    text-align: center;
    max-width: 650px;
}

.ascii-gameover {
    font-size: 9px;
    line-height: 1.1;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
    margin-bottom: 20px;
    white-space: pre;
    font-weight: bold;
    display: inline-block;
}

.game-over-title {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.game-over-reason {
    font-size: 15px;
    color: #88cc99;
    margin-bottom: 20px;
    line-height: 1.4;
}

.final-score-box {
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #00ffff;
    background: rgba(0, 25, 30, 0.5);
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 25px;
}

.leaderboard-section {
    width: 100%;
    margin-bottom: 30px;
}

.leaderboard-section h3 {
    font-size: 14px;
    letter-spacing: 2px;
    color: #ffb61e;
    margin-bottom: 10px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.leaderboard-table th {
    background: #0d2d14;
    color: #229944;
    font-weight: bold;
    padding: 6px;
    border: 1px solid #229944;
    text-align: center;
}

.leaderboard-table td {
    padding: 6px;
    border: 1px solid #229944;
    text-align: center;
    background: rgba(0, 10, 5, 0.4);
}

.leaderboard-table tr.highlight td {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    font-weight: bold;
    border-color: #00ffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 10, 5, 0.5);
}
::-webkit-scrollbar-thumb {
    background: #229944;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #33ff66;
}

/* --- HACK THE PLANET GLITCH FLASH OVERLAY --- */
.hack-planet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 5, 2, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
}

/* Re-use class with animation triggers */
.hack-planet-overlay.flash-fade-out {
    animation: hack-flash-anim 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hack-planet-text {
    font-size: 78px;
    font-weight: 900;
    color: #33ff66;
    letter-spacing: 8px;
    text-align: center;
    text-shadow: 0 0 20px rgba(51, 255, 102, 0.8);
    position: relative;
    text-transform: uppercase;
}

/* Chromatic Aberration Glitch Layer Left (Magenta) */
.hack-planet-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -2px;
    width: 100%;
    height: 100%;
    color: #ff007f;
    background: transparent;
    text-shadow: -2px 0 0 #ff007f;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse;
}

/* Chromatic Aberration Glitch Layer Right (Cyan) */
.hack-planet-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    height: 100%;
    color: #00ffff;
    background: transparent;
    text-shadow: 2px 0 0 #00ffff;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-1 2s infinite linear alternate-reverse;
}

@keyframes hack-flash-anim {
    0% {
        opacity: 0;
        transform: scale(0.95);
        background: rgba(0, 5, 2, 0.95);
    }
    10% {
        opacity: 1;
        transform: scale(1.02);
        background: rgba(255, 51, 51, 0.2); /* Red flash threat scan look */
    }
    15% {
        transform: scale(1.0) translate(-2px, 2px);
        background: rgba(0, 5, 2, 0.95);
    }
    20% {
        transform: translate(2px, -2px);
    }
    30% {
        transform: translate(-1px, -1px);
    }
    80% {
        opacity: 1;
        transform: scale(1.0);
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
        display: none;
    }
}

@keyframes noise-anim-1 {
    0% { clip: rect(10px, 9999px, 50px, 0); }
    10% { clip: rect(30px, 9999px, 80px, 0); }
    20% { clip: rect(5px, 9999px, 120px, 0); }
    30% { clip: rect(70px, 9999px, 90px, 0); }
    40% { clip: rect(100px, 9999px, 160px, 0); }
    50% { clip: rect(10px, 9999px, 20px, 0); }
    60% { clip: rect(120px, 9999px, 140px, 0); }
    70% { clip: rect(40px, 9999px, 60px, 0); }
    80% { clip: rect(80px, 9999px, 100px, 0); }
    90% { clip: rect(20px, 9999px, 45px, 0); }
    100% { clip: rect(60px, 9999px, 130px, 0); }
}

@keyframes noise-anim-2 {
    0% { clip: rect(40px, 9999px, 70px, 0); }
    15% { clip: rect(10px, 9999px, 40px, 0); }
    25% { clip: rect(80px, 9999px, 120px, 0); }
    40% { clip: rect(30px, 9999px, 60px, 0); }
    55% { clip: rect(100px, 9999px, 150px, 0); }
    70% { clip: rect(15px, 9999px, 35px, 0); }
    85% { clip: rect(60px, 9999px, 90px, 0); }
    100% { clip: rect(5px, 9999px, 110px, 0); }
}

/* --- VICTORY FLOPPY SCOREBOARD BUTTON --- */
.final-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

#victory-floppy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.victory-floppy-btn {
    width: 90px;
    height: 90px;
    background-image: url('yellow_floppy_disk.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    filter: sepia(100%) hue-rotate(15deg) saturate(200%) brightness(85%);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
    position: relative;
    animation: floppy-glow 1.5s infinite alternate;
}

.victory-floppy-btn:hover {
    transform: scale(1.15) rotate(-10deg);
    filter: sepia(100%) hue-rotate(15deg) saturate(300%) brightness(120%) contrast(110%);
}

.victory-floppy-label {
    position: absolute;
    bottom: -22px;
    width: 130px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #ffb61e;
    text-shadow: 0 0 4px rgba(255, 182, 30, 0.6);
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

@keyframes floppy-glow {
    0% { filter: sepia(100%) hue-rotate(15deg) saturate(200%) brightness(80%) drop-shadow(0 0 2px rgba(51, 255, 102, 0.2)); }
    100% { filter: sepia(100%) hue-rotate(15deg) saturate(250%) brightness(105%) drop-shadow(0 0 10px rgba(51, 255, 102, 0.6)); }
}

/* --- DECRYPTED FILE VIEWER MODAL --- */
#garbage-reader-panel {
    background: rgba(0, 3, 1, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.garbage-reader-window {
    width: 90%;
    max-width: 680px;
    height: 80%;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(51, 255, 102, 0.3);
}

.reader-body {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    line-height: 1.45;
    color: #00ffff; /* Cyber cyan text for the decrypted contents */
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.4);
    background: #000;
    padding: 20px;
    overflow-y: auto;
    white-space: pre-wrap;
    border-bottom: 1px solid #229944;
}

.reader-footer {
    background: #0d2d14;
    padding: 10px;
    text-align: center;
}

.game-over-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.win-dots .dot.red {
    cursor: pointer;
}

/* --- HACKER COPYRIGHT & LINKS --- */
.hacker-copyright {
    margin-top: 25px;
    font-size: 12px;
    color: #229944;
    text-shadow: none;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    z-index: 10;
}

.hacker-link {
    color: #33ff66;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #33ff66;
    transition: all 0.2s ease;
}

.hacker-link:hover {
    color: #00ffff;
    border-bottom-color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}
