/* ============================================
   BREACH TERMINAL - Pump.fun Hackathon 2026
   HARDCORE HACKER AESTHETICS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Press+Start+2P&display=swap');

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

:root {
    --bg-dark: #0a0a0a;
    --bg-terminal: #0d1117;
    --text-primary: #00ff88;
    --text-secondary: #00d18c;
    --text-dim: #3d5a4c;
    --text-white: #ffffff;
    --accent-green: #00ff88;
    --accent-cyan: #00ffff;
    --accent-purple: #bf00ff;
    --error-red: #ff3333;
    --warning-yellow: #ffcc00;
    --pump-green: #00d18c;
    --glow-green: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 40px #00ff88;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    position: relative;
}

/* ============================================
   MATRIX RAIN CANVAS
   ============================================ */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* ============================================
   CRT & SCANLINE EFFECTS
   ============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
    background: var(--bg-dark);
    mix-blend-mode: overlay;
}

.glitch-overlay.active {
    animation: hardGlitch 0.5s ease-out;
}

@keyframes hardGlitch {
    0% { opacity: 0; transform: translate(0); }
    10% { opacity: 1; transform: translate(-10px, 5px); background: #ff0000; }
    20% { opacity: 0; transform: translate(10px, -5px); background: #00ff00; }
    30% { opacity: 1; transform: translate(-5px, 0); background: #0000ff; }
    40% { opacity: 0; transform: translate(5px, 5px); }
    50% { opacity: 0.8; transform: translate(0, -10px); background: #ff00ff; }
    60% { opacity: 0; }
    70% { opacity: 0.5; transform: translate(-15px, 5px); background: #00ffff; }
    80% { opacity: 0; transform: translate(15px, 0); }
    90% { opacity: 0.3; transform: translate(0, 5px); }
    100% { opacity: 0; transform: translate(0); }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ============================================
   SCREENS
   ============================================ */
.screen {
    display: none;
    width: 100%;
    max-width: 1000px;
    height: 85vh;
    max-height: 800px;
    background: var(--bg-terminal);
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        var(--glow-green),
        inset 0 0 100px rgba(0, 255, 136, 0.03);
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: screenOn 0.5s ease-out;
}

@keyframes screenOn {
    0% {
        opacity: 0;
        transform: scaleY(0.01);
        filter: brightness(10);
    }
    50% {
        opacity: 1;
        transform: scaleY(0.5);
        filter: brightness(2);
    }
    100% {
        transform: scaleY(1);
        filter: brightness(1);
    }
}

/* ============================================
   BOOT SCREEN
   ============================================ */
.boot-screen {
    background: #000;
    padding: 0;
}

.boot-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
}

.pump-ascii {
    color: var(--pump-green);
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: var(--glow-green);
    white-space: pre;
}

.boot-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.boot-text .line {
    margin-bottom: 2px;
}

.boot-text .success { color: var(--accent-green); }
.boot-text .error { color: var(--error-red); }
.boot-text .warning { color: var(--warning-yellow); }
.boot-text .system { color: var(--text-dim); }
.boot-text .highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}
.boot-text .pump {
    color: var(--pump-green);
    font-weight: bold;
    text-shadow: var(--glow-green);
}
.boot-text .breach {
    color: var(--error-red);
    font-weight: bold;
    font-size: 18px;
    animation: breachFlash 0.2s infinite;
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--error-red);
    margin: 10px 0;
}

@keyframes breachFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   TERMINAL SCREEN
   ============================================ */
.terminal-screen {
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-bottom: 1px solid var(--accent-green);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons .btn.red { background: #ff5f56; }
.terminal-buttons .btn.yellow { background: #ffbd2e; }
.terminal-buttons .btn.green { background: #27ca40; }

.terminal-title {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--error-red);
    animation: pulse 1s infinite;
}

.status-indicator.online {
    background: var(--accent-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#securityLevel {
    color: var(--warning-yellow);
    font-weight: bold;
}

#securityLevel.unlocked {
    color: var(--accent-green);
    text-shadow: var(--glow-green);
}

.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.terminal-output::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

.terminal-output .line {
    margin-bottom: 4px;
    word-wrap: break-word;
}

.terminal-output .system { color: var(--text-dim); }
.terminal-output .ai { color: var(--accent-cyan); }
.terminal-output .user { color: var(--text-white); }
.terminal-output .error { color: var(--error-red); }
.terminal-output .success {
    color: var(--accent-green);
    text-shadow: 0 0 5px var(--accent-green);
}
.terminal-output .highlight {
    color: var(--pump-green);
    text-shadow: var(--glow-green);
}
.terminal-output .ascii {
    color: var(--accent-green);
    font-size: 12px;
    line-height: 1.1;
}
.terminal-output .pump-ref {
    color: var(--pump-green);
    font-weight: bold;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid var(--text-dim);
    border-radius: 4px;
    gap: 10px;
}

.terminal-input-line:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.prompt {
    color: var(--accent-green);
    font-weight: bold;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    caret-color: var(--accent-green);
}

.cursor-block {
    width: 10px;
    height: 18px;
    background: var(--accent-green);
    animation: blink 1s step-end infinite;
}

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

.terminal-input-line.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.terminal-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background: rgba(0, 209, 140, 0.1);
    border-top: 1px solid var(--text-dim);
    font-size: 11px;
}

.footer-text {
    color: var(--pump-green);
}

.footer-status {
    color: var(--text-dim);
}

.footer-twitter {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-twitter:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* ============================================
   HACK ATTACK MINI-GAME
   ============================================ */
.hack-screen {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a0a 100%);
    justify-content: center;
    align-items: center;
}

.hack-container {
    text-align: center;
    padding: 30px;
    width: 100%;
    max-width: 600px;
}

.hack-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    color: var(--error-red);
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--error-red);
}

.hack-visual {
    margin-bottom: 30px;
}

.firewall-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid var(--error-red);
    border-radius: 8px;
}

.firewall-cell {
    aspect-ratio: 1;
    background: var(--error-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.firewall-cell.dead {
    background: var(--text-dim);
    opacity: 0.3;
}

.hack-progress {
    margin-bottom: 20px;
}

.progress-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.progress-bar {
    height: 30px;
    background: var(--bg-dark);
    border: 2px solid var(--error-red);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--error-red) 0%, #ff6600 100%);
    width: 100%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.2) 10px,
        rgba(0,0,0,0.2) 20px
    );
}

.progress-percent {
    font-size: 14px;
    color: var(--error-red);
    margin-top: 8px;
    font-weight: bold;
}

.hack-instruction {
    margin-bottom: 20px;
}

.hack-instruction p {
    font-size: 16px;
    color: var(--warning-yellow);
    margin-bottom: 5px;
}

.hack-instruction .sub-instruction {
    font-size: 12px;
    color: var(--text-dim);
}

.hack-input {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-green);
    border-radius: 4px;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    text-align: center;
    outline: none;
    margin-bottom: 20px;
}

.hack-input:focus {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hack-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
    color: var(--text-dim);
}

.hack-stats span span {
    color: var(--accent-green);
    font-weight: bold;
}

/* ============================================
   WIRE CUT MINI-GAME
   ============================================ */
.wire-screen {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a0a 100%);
    justify-content: center;
    align-items: center;
}

.wire-container {
    text-align: center;
    padding: 30px;
    width: 100%;
    max-width: 500px;
}

.wire-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: var(--warning-yellow);
    margin-bottom: 10px;
}

.wire-subtitle {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 13px;
}

.bomb-display {
    margin-bottom: 20px;
}

.timer-display {
    font-family: 'Press Start 2P', monospace;
    font-size: 48px;
    color: var(--error-red);
    text-shadow: 0 0 20px var(--error-red);
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.trivia-question {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-white);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wire-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.wire {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-dark);
    border: 2px solid var(--text-dim);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wire:hover:not(.cut) {
    border-color: var(--accent-green);
    transform: translateX(5px);
}

.wire.cut {
    opacity: 0.3;
    cursor: not-allowed;
}

.wire.cut .wire-line {
    background: var(--text-dim) !important;
}

.wire-line {
    width: 100px;
    height: 8px;
    border-radius: 4px;
}

.wire-line.red { background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%); }
.wire-line.blue { background: linear-gradient(90deg, #3333ff 0%, #6666ff 100%); }
.wire-line.green { background: linear-gradient(90deg, #33ff33 0%, #66ff66 100%); }
.wire-line.yellow { background: linear-gradient(90deg, #ffff33 0%, #ffff66 100%); }

.wire-label {
    font-weight: bold;
    font-size: 14px;
}

.wires-remaining {
    color: var(--text-dim);
    font-size: 14px;
}

.wires-remaining span {
    color: var(--accent-green);
    font-weight: bold;
}

/* ============================================
   SEQUENCE MINI-GAME
   ============================================ */
.sequence-screen {
    background: linear-gradient(180deg, #0a1a0a 0%, #0a0a1a 100%);
    justify-content: center;
    align-items: center;
}

.sequence-container {
    text-align: center;
    padding: 30px;
    width: 100%;
    max-width: 500px;
}

.sequence-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.sequence-subtitle {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 13px;
}

.sequence-display {
    background: var(--bg-dark);
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-green);
    text-shadow: var(--glow-green);
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.address-btn {
    padding: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--text-dim);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    word-break: break-all;
}

.address-btn:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.address-btn.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-dark);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.address-btn.error {
    background: var(--error-red);
    border-color: var(--error-red);
}

.address-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.sequence-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
    color: var(--text-dim);
}

.sequence-info span span {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ============================================
   VICTORY SCREEN
   ============================================ */
.victory-screen {
    background: linear-gradient(180deg, #0a0a0a 0%, #001a0a 100%);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.victory-container {
    text-align: center;
    padding: 30px;
    width: 100%;
}

.vault-wrapper {
    perspective: 1000px;
    margin-bottom: 30px;
}

.vault-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.vault-door {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #666 50%, #333 100%);
    border: 4px solid var(--accent-green);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.5s ease-in-out;
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.5),
        0 0 30px rgba(0, 255, 136, 0.3);
}

.vault-door.open {
    transform: rotateY(-120deg);
}

.vault-handle {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-green);
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.vault-lock {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lock-circle {
    width: 30px;
    height: 30px;
    border: 3px solid var(--warning-yellow);
    border-radius: 50%;
    position: relative;
}

.lock-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--warning-yellow);
    border-radius: 50%;
}

.vault-text {
    color: var(--pump-green);
    font-size: 14px;
    font-weight: bold;
    text-shadow: var(--glow-green);
    position: absolute;
    bottom: 20px;
}

.reveal-content {
    animation: fadeInUp 1s ease-out;
}

.reveal-content.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.victory-ascii {
    color: var(--pump-green);
    font-size: 8px;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: var(--glow-green);
}

.access-granted {
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    color: var(--accent-green);
    margin-bottom: 30px;
    text-shadow: var(--glow-green);
    animation: accessPulse 2s infinite;
}

@keyframes accessPulse {
    0%, 100% { text-shadow: var(--glow-green); }
    50% { text-shadow: 0 0 30px #00ff88, 0 0 60px #00ff88, 0 0 100px #00ff88; }
}

.token-card {
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid var(--accent-green);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.token-header {
    margin-bottom: 15px;
}

.token-badge {
    background: var(--pump-green);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.token-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 5px;
}

.token-tagline {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 20px;
}

.contract-box {
    margin-bottom: 20px;
}

.contract-box label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.address-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-dark);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--text-dim);
}

.address-copy code {
    flex: 1;
    font-size: 11px;
    color: var(--accent-green);
    word-break: break-all;
}

.copy-btn {
    background: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--text-white);
    transform: scale(1.05);
}

.pump-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--pump-green) 0%, #00a070 100%);
    color: var(--bg-dark);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.pump-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 209, 140, 0.4);
}

.pump-icon {
    font-size: 20px;
}

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

.social-btn {
    padding: 10px 20px;
    border: 2px solid var(--text-dim);
    background: transparent;
    color: var(--text-white);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.hackathon-banner {
    background: linear-gradient(135deg, rgba(0, 209, 140, 0.2) 0%, rgba(0, 209, 140, 0.05) 100%);
    border: 2px solid var(--pump-green);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.trophy {
    font-size: 30px;
}

.banner-text {
    text-align: center;
}

.banner-text strong {
    display: block;
    color: var(--pump-green);
    font-size: 16px;
    margin-bottom: 5px;
}

.banner-text span {
    color: var(--text-dim);
    font-size: 12px;
}

.pump-link {
    display: inline-block;
    color: var(--pump-green);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.pump-link:hover {
    text-shadow: var(--glow-green);
    transform: scale(1.1);
}

.credits {
    color: var(--text-dim);
    font-size: 13px;
}

.credits .small {
    font-size: 11px;
    margin-top: 5px;
}

/* ============================================
   PRESS ANY KEY OVERLAY
   ============================================ */
.press-key-overlay {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    display: none;
}

.press-key-overlay.active {
    display: block;
}

.press-key-content {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
}

.blink {
    color: var(--accent-green);
    animation: blink 1s step-end infinite;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-green);
    color: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 2000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   GLITCH TEXT EFFECT
   ============================================ */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: #ff0000;
    animation: glitch-1 0.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translateX(-2px);
}

.glitch-text::after {
    color: #00ffff;
    animation: glitch-2 0.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translateX(2px);
}

@keyframes glitch-1 {
    0%, 100% { transform: translateX(-2px); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translateX(2px); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }

    .screen {
        height: 95vh;
        max-height: none;
        border-radius: 4px;
    }

    .terminal-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 12px;
    }

    .terminal-title {
        font-size: 10px;
        order: 3;
        width: 100%;
        text-align: center;
    }

    .terminal-body {
        padding: 10px;
    }

    .terminal-output {
        font-size: 13px;
    }

    .terminal-input {
        font-size: 16px;
    }

    .prompt {
        font-size: 12px;
    }

    .hack-title,
    .wire-title,
    .sequence-title {
        font-size: 16px;
    }

    .timer-display {
        font-size: 32px;
    }

    .firewall-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .access-granted {
        font-size: 20px;
    }

    .token-name {
        font-size: 24px;
    }

    .vault-frame {
        width: 150px;
        height: 150px;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pump-ascii,
    .victory-ascii {
        font-size: 6px;
    }

    .boot-content {
        font-size: 12px;
    }

    .hack-container,
    .wire-container,
    .sequence-container {
        padding: 15px;
    }

    .firewall-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
