.crack-system-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crack-system-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.stage-indicator {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: #00ff88;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.stage-indicator span:first-child {
    font-size: 48px;
}

.hacker-command {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    animation: hackerfade 0.6s ease-out;
    z-index: 1000;
}

@keyframes hackerfade {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

.timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(0, 255, 136, 0.1);
}

.timer-bar-fill {
    height: 100%;
    background: #00ff88;
    transition: width 0.1s linear, background-color 0.3s ease;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
}

.timer-bar-fill.penalty-flash {
    animation: penaltyPulse 0.3s ease-out;
}

@keyframes penaltyPulse {
    0% {
        background: #ff4444;
        box-shadow: 0 0 40px rgba(255, 68, 68, 1), 0 0 80px rgba(255, 68, 68, 0.6);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
    }
}

.alignment-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 100%;
    max-width: none;
}

.target-pattern-grid {
    display: grid;
    gap: 5px;
}

.target-pattern-grid.mini {
    max-width: none;
    opacity: 0.6;
}

.target-pattern-grid.mini .alignment-cell {
    width: 50px;
    height: 50px;
    border: 3px solid #1a1a1a;
}

.alignment-grid {
    display: grid;
    gap: 16px;
}

.alignment-grid.main {
    max-width: none;
}

.alignment-cell {
    aspect-ratio: 1;
    width: 80px;
    height: 80px;
    background: #0a0a0a;
    border: 5px solid #1a1a1a;
    transition: all 0.15s ease;
}

.alignment-cell.filled {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.alignment-cell.target-cell.filled {
    background: #004433;
    border-color: #006644;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.alignment-cell.selected-column:not(.filled) {
    border-color: #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

.alignment-cell.selected-column.filled {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 10px rgba(255, 204, 0, 0.5);
}

.hash-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hash-display {
    font-size: 24px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

.hash-label {
    color: #666;
    margin-right: 15px;
}

.hash-value {
    color: #00ff88;
    font-weight: bold;
}

.hash-attempts {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 480px; 
    max-height: 480px;
    overflow-y: auto;
}

.hash-attempt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: #0a0a0a;
    border: 3px solid #1a1a1a;
    font-family: 'Courier New', monospace;
    min-height: 50px;
}

.hash-attempt.empty {
    opacity: 0.3;
    border-style: dashed;
}

.attempt-guess {
    font-size: 32px;
    color: #00aaff;
    letter-spacing: 8px;
    font-weight: bold;
}

.hash-attempt.empty .attempt-guess {
    color: #333;
}

.attempt-result {
    display: flex;
    gap: 20px;
    font-size: 24px;
}

.hash-guess {
    display: flex;
    gap: 15px;
}

.hash-slot {
    width: 60px;
    height: 70px;
    background: #0a0a0a;
    border: 4px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-family: 'Courier New', monospace;
    color: #666;
    transition: all 0.2s;
}

.hash-slot.filled {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.hash-slot.hint {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hash-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hash-button {
    width: 80px;
    height: 80px;
    background: #0a0a0a;
    border: 4px solid #00ff88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.hash-button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
}

.hash-actions {
    display: flex;
    gap: 20px;
}

.hash-action-btn {
    padding: 15px 40px;
    font-size: 20px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.hash-action-btn.submit {
    background: #0a0a0a;
    border: 3px solid #00ff88;
    color: #00ff88;
}

.hash-action-btn.submit:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hash-action-btn.clear {
    background: #0a0a0a;
    border: 3px solid #ff4444;
    color: #ff4444;
}

.hash-action-btn.clear:hover {
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.bandwidth-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.bandwidth-target {
    font-size: 28px;
    color: #00ff88;
    font-family: monospace;
}

.bandwidth-servers {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    height: 400px;
}

.bandwidth-server {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.bandwidth-server.selected {
    transform: scale(1.1);
}

.server-label {
    font-size: 24px;
    color: #00ff88;
    font-family: monospace;
    font-weight: bold;
}

.server-bar-container {
    width: 70px;
    height: 350px;
    background: #0a0a0a;
    border: 4px solid #1a1a1a;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bandwidth-server.selected .server-bar-container {
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}

.server-bar {
    width: 100%;
    background: #00aaff;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.server-load {
    font-size: 20px;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
}

.bandwidth-controls {
    font-size: 20px;
    color: #666;
    font-family: monospace;
}

.bandwidth-controls span {
    color: #00ff88;
    font-weight: bold;
}

.keymatcher-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 75px;
    position: relative;
}

.keymatcher-target {
    opacity: 0.5;
}

.keymatcher-grid-wrapper {
    position: relative;
    display: inline-block;
}

.keymatcher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.keymatcher-grid.mini {
    gap: 8px;
}

.keymatcher-grid.mini .keymatcher-cell {
    width: 50px;
    height: 50px;
    font-size: 30px;
    border: 2px solid #1a1a1a;
}

.keymatcher-grid.main {
    gap: 15px;
}

.keymatcher-cell {
    width: 100px;
    height: 100px;
    background: #0a0a0a;
    border: 4px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: all 0.2s;
}

.keymatcher-row-indicators {
    position: absolute;
    left: -50px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.row-indicator {
    width: 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #333;
    transition: all 0.2s;
}

.row-indicator.active {
    color: #ffcc00;
    font-size: 40px;
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
    transform: translateX(-5px);
}

.keymatcher-col-indicators {
    position: absolute;
    top: -50px;
    left: 0;
    display: flex;
    gap: 15px;
}

.col-indicator {
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #333;
    transition: all 0.2s;
}

.col-indicator.active {
    color: #ffcc00;
    font-size: 40px;
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
    transform: translateY(-5px);
}

.keymatcher-hint {
    font-size: 20px;
    color: #666;
    font-family: monospace;
}

.keymatcher-hint span {
    color: #00ff88;
    font-weight: bold;
}

.code-game-container {
    text-align: center;
}

.cipher-target span {
    color: #666;
    margin: 0 8px;
}

.cipher-target span.active {
    color: #00ff88;
    font-size: 40px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.cipher-target span.done {
    color: #00ff88;
    opacity: 0.5;
}

.cipher-falling {
    width: 80%;
    height: 60%;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cipher-column {
    flex: 1;
    position: relative;
    border-left: 2px solid rgba(0, 255, 136, 0.1);
}

.cipher-char {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.cipher-char:hover {
    opacity: 1;
    transform: scale(1.3);
}

.cipher-char.target-char {
    color: #00ff88;
    opacity: 1;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.cipher-char.correct {
    color: #00ff88;
    animation: charCorrect 0.5s;
}

.cipher-char.wrong {
    color: #ff4444;
    animation: charWrong 0.5s;
}

@keyframes charCorrect {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes charWrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.memory-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.memory-display {
    text-align: center;
}

.memory-label {
    font-size: 28px;
    color: #00ff88;
    font-family: monospace;
    margin-bottom: 30px;
}

.memory-sequence {
    display: flex;
    gap: 20px;
    font-size: 60px;
}

.memory-sequence span {
    display: inline-block;
    transition: all 0.3s;
}

.memory-sequence span.correct {
    animation: bounce 0.5s;
}

.memory-sequence span.wrong {
    animation: shake 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.memory-input {
    display: flex;
    gap: 15px;
}

.memory-button {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    background: #0a0a0a;
    border: 4px solid #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.memory-button:hover {
    border-color: #00ff88;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.network-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.network-hint {
    font-size: 28px;
    color: #00ff88;
    font-family: monospace;
    text-align: center;
}

.network-graph {
    width: 70%;
    height: 60%;
    position: relative;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
}

.network-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #0a0a0a;
    border: 5px solid #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.3s;
    transform: translate(-50%, -50%);
    user-select: none;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.network-node:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

.network-node.disabled {
    border-color: #666;
    color: #666;
    background: #1a1a1a;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.3;
}

.network-node.error {
    border-color: #ff4444;
    animation: nodeError 0.5s;
}

@keyframes nodeError {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-10deg); }
    75% { transform: translate(-50%, -50%) rotate(10deg); }
}

.code-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.code-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 70%;
}

.code-slot {
    padding: 20px 30px;
    background: #0a0a0a;
    border: 4px solid #1a1a1a;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    color: #666;
    transition: all 0.3s;
}

.code-slot.active {
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.code-slot.filled {
    color: #00ff88;
}

.code-slot.correct {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.code-slot.wrong {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.code-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 80%;
}

.code-piece {
    padding: 15px 25px;
    background: #0a0a0a;
    border: 3px solid #00ff88;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.code-piece:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.signal-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.signal-progress {
    font-size: 32px;
    color: #00ff88;
    font-family: monospace;
    text-align: center;
}

.signal-radar {
    width: 500px;
    height: 500px;
    border: 5px solid #00ff88;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, rgba(0, 0, 0, 0.8) 70%);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.signal-radar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 136, 0.2);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.signal-radar::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(0, 255, 136, 0.2);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #00ff88, transparent);
    top: 50%;
    left: 50%;
    transform-origin: left center;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.radar-target-zone {
    position: absolute;
    width: 40%;
    height: 40%;
    border: 4px solid #ffcc00;
    border-radius: 50%;
    top: 30%;
    left: 50%;
    transform-origin: -25% center;
    opacity: 0.6;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.6);
}

.radar-target-zone::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: #ffcc00;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.ddos-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.ddos-title {
    font-size: 28px;
    color: #ff4444;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
    letter-spacing: 3px;
}

.ddos-bots {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 800px;
}

.ddos-bot {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 68, 68, 0.05);
    border: 2px solid rgba(255, 68, 68, 0.2);
    transition: all 0.3s;
}

.ddos-bot.selected {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    background: rgba(255, 68, 68, 0.1);
}

.ddos-bot.fired {
    opacity: 0.6;
}

.ddos-bot.locked {
    opacity: 0.3;
    border-color: #666;
    background: rgba(100, 100, 100, 0.1);
}

.ddos-bot.locked .bot-label {
    color: #666;
}

.ddos-bot.locked .bot-progress-bar {
    background: linear-gradient(90deg, #666, #888);
    box-shadow: none;
}

.bot-label {
    font-size: 20px;
    color: #ff4444;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    width: 100px;
}

.bot-progress-container {
    flex: 1;
    height: 30px;
    background: #0a0a0a;
    border: 2px solid #1a1a1a;
    position: relative;
    overflow: visible;
}

.bot-target-zone {
    position: absolute;
    height: 100%;
    background: rgba(255, 204, 0, 0.15);
    border-left: 2px solid #ffcc00;
    border-right: 2px solid #ffcc00;
    z-index: 1;
}

.bot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    transition: width 0.05s linear;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
    position: relative;
    z-index: 2;
}

.bot-progress-bar.in-target {
    background: linear-gradient(90deg, #00ff88, #00ffaa);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.bot-fire-marker {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 50px;
    transform: translateX(-2px);
    z-index: 3;
}

.bot-fire-marker.hit {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 1);
}

.bot-fire-marker.miss {
    background: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 1);
}

.ddos-hint {
    font-size: 18px;
    color: #666;
    font-family: monospace;
}

.ddos-hint span {
    color: #ff4444;
    font-weight: bold;
}

.rootkit-game-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

.rootkit-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rootkit-title {
    font-size: 24px;
    color: #ff4444;
    font-weight: bold;
    text-align: center;
    font-family: monospace;
    letter-spacing: 2px;
}

.rootkit-target {
    font-size: 18px;
    color: #888;
    font-family: monospace;
    text-align: center;
}

.rootkit-target .target-file {
    color: #00ff88;
    font-weight: bold;
    font-size: 20px;
}

.rootkit-hint-text {
    font-size: 14px;
    color: #ffaa00;
    font-family: monospace;
    text-align: center;
    font-style: italic;
}

.rootkit-tree {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 16px;
    scroll-behavior: smooth;
}

.rootkit-tree::-webkit-scrollbar {
    width: 10px;
}

.rootkit-tree::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.rootkit-tree::-webkit-scrollbar-thumb {
    background: rgba(0, 170, 255, 0.5);
    border-radius: 5px;
}

.rootkit-tree::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 170, 255, 0.8);
}

.tree-item {
    padding: 8px;
    margin: 2px 0;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tree-item.selected {
    background: rgba(0, 170, 255, 0.3);
    color: #00aaff;
    border-left: 3px solid #00aaff;
}

.tree-icon {
    font-size: 18px;
}

.tree-name {
    font-family: monospace;
}

.rootkit-hint {
    font-size: 18px;
    color: #666;
    font-family: monospace;
    text-align: center;
}

.rootkit-hint span {
    color: #ff4444;
    font-weight: bold;
}

.ide-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ide-window {
    position: absolute;
    background: rgba(30, 30, 30, 0.92);
    border: 1px solid rgba(100, 100, 100, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Consolas', 'Courier New', monospace;
    backdrop-filter: blur(10px);
    animation: ideSlideIn 0.4s ease-out;
}

.ide-main {
    width: 600px;
    height: 400px;
    bottom: 80px;
    left: 60px;
    opacity: 0.5;
}

.ide-floating {
    width: 450px;
    height: 320px;
    opacity: 0.5;
    animation: ideSlideIn 0.3s ease-out;
}

.ide-floating.fade-out {
    animation: ideFadeOut 0.5s ease-out forwards;
}

@keyframes ideSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ideFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.ide-header {
    background: rgba(45, 45, 45, 0.95);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(80, 80, 80, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
}

.ide-tabs {
    display: flex;
    gap: 5px;
}

.ide-tab {
    background: rgba(60, 60, 60, 0.9);
    padding: 4px 12px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-bottom: none;
}

.ide-tab.active {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
}

.ide-icon {
    font-size: 14px;
}

.ide-close {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ide-close:hover {
    opacity: 1;
}

.ide-controls {
    display: flex;
    gap: 12px;
    color: #888;
    font-size: 16px;
}

.ide-content {
    display: flex;
    height: calc(100% - 35px);
    background: rgba(20, 20, 20, 0.95);
}

.ide-line-numbers {
    background: rgba(40, 40, 40, 0.8);
    padding: 12px 8px;
    text-align: right;
    color: #666;
    font-size: 13px;
    line-height: 20px;
    border-right: 1px solid rgba(80, 80, 80, 0.3);
    min-width: 40px;
    user-select: none;
}

.ide-code-area {
    flex: 1;
    padding: 12px;
    color: #d4d4d4;
    font-size: 13px;
    line-height: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ide-code-line {
    white-space: pre;
    font-family: 'Consolas', 'Courier New', monospace;
}

.ide-code-line .keyword {
    color: #569cd6;
    font-weight: bold;
}

.ide-code-line .string {
    color: #ce9178;
}

.ide-code-line .number {
    color: #b5cea8;
}

.ide-code-line .comment {
    color: #6a9955;
    font-style: italic;
}

.ide-code-line .boolean {
    color: #569cd6;
}

.ide-code-line .class {
    color: #4ec9b0;
}

.ide-code-area::-webkit-scrollbar {
    width: 10px;
}

.ide-code-area::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

.ide-code-area::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.5);
    border-radius: 5px;
}

.ide-code-area::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.7);
}

.pattern-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.pattern-target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-value {
    font-size: 56px;
    color: #00ff88;
    font-weight: bold;
    letter-spacing: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    background: rgba(0, 255, 136, 0.1);
    padding: 20px 40px;
    border: 3px solid #00ff88;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.pattern-grid {
    display: grid;
    gap: 5px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid #1a1a1a;
    border-radius: 10px;
}

.pattern-cell {
    width: 50px;
    height: 50px;
    background: #0a0a0a;
    border: 2px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    color: #00aaff;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.pattern-cell:hover {
    border-color: #00ff88;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.pattern-cell.selected {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.pattern-cell.correct {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    animation: patternCorrect 0.5s ease-out;
}

.pattern-cell.wrong {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    animation: patternWrong 0.5s ease-out;
}

@keyframes patternCorrect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes patternWrong {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.crack-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: loadingFadeIn 0.3s ease-out;
}

@keyframes loadingFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 600px;
}

.loading-message {
    font-size: 24px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.loading-bar-container {
    width: 100%;
    height: 40px;
    background: #0a0a0a;
    border: 3px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88, #00ffaa, #00ff88);
    background-size: 200% 100%;
    animation: loadingBarShine 2s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    transition: width 0.1s linear;
    position: relative;
}

.loading-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: loadingBarScan 1.5s linear infinite;
}

@keyframes loadingBarShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes loadingBarScan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

.loading-percentage {
    font-size: 36px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    letter-spacing: 2px;
}
