@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Bilbo+Swash+Caps&display=swap');
body {
    margin: 0;
    overflow: hidden;
    background: #000;
}
#scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: default;
}
#scene.clickable {
    cursor: cell;
}
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: monospace;
    font-size: 5em !important;
}
.cryptic-message {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
#level-one-container #cryptic-message-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}
#level-one-container .cryptic-message-popup {
    position: absolute;
    font-family: monospace;
    font-size: 1.6em;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff00;
    border-radius: 15px;
    will-change: transform, opacity;
}
#level-one-container .cryptic-message-popup .symbols {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}
#level-one-container .cryptic-message-popup .text {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
}
#level-one-container .click-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #00ff00;

    color: #00ff00;
    font-family: monospace;
    z-index: 1000;
}
.level-transition {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 4em;
    text-align: center;
    z-index: 9999;
    pointer-events: none;
    padding: 20px 40px;
}
.level-transition-default {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    animation: green-pulse 2s infinite;
}
@keyframes green-pulse {
    0% { text-shadow: 0 0 20px #00ff00; }
    50% { text-shadow: 0 0 40px #00ff00; }
    100% { text-shadow: 0 0 20px #00ff00; }
}
.level-transition {
    animation: none;
}
#level-one-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.counters-container {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
    font-family: monospace;
}
#level-one-container .counter-box {
    background: rgba(0, 0, 0, 0.7);
    border: 8px solid #00ff00 !important;
    padding: 0px 35px;
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.level-box {
    margin-right: auto;
}
#level-one-container .clicks-box {
    margin-left: auto;
}
#level-one-container .counter-box .level,
#level-one-container .counter-box .clicks {
    font-size: 2em !important;
    text-shadow: 0 0 5px #00ff00;
    margin: 0;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
@keyframes click-glow {
    0% { 
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
        border-color: #00ff00;
    }
    50% { 
        box-shadow: 0 0 45px rgba(0, 255, 0, 0.8);
        border-color: #33ff33;
    }
    100% { 
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
        border-color: #00ff00;
    }
}

#level-one-container .clicks-box {
    background: rgba(0, 0, 0, 0.7);
    border: 8px solid #fff;
}

#level-one-container .clicks-box.clicking {
    animation: click-glow 0.5s ease-out;
}
.matrix-column {
    will-change: transform;
}
@keyframes matrix-rain {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}
#loading-screen .cryptic-message {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.debug-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 90%;
    z-index: 9999;
}
.level-button {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: monospace;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
    min-width: 120px;
}
.level-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    transform: scale(1.05);
}
.level-button:active {
    transform: scale(0.95);
}
#game-footer {
    display: none;
}
#level-one-container .audio-btn,
.audio-popup-backdrop.theme-1 .audio-popup {
    --ac-color: #00ff00;
    --ac-bg: rgba(0, 0, 0, 0.85);
    --ac-border-w: 8px;
    --ac-border-style: solid;
    --ac-glow: 0 0 15px rgba(0, 255, 0, 0.3);
    --ac-font: 'Monaco', 'Courier New', monospace;
    --ac-symbols: '> _ >_ _';
}
#level-one-container .audio-btn { text-shadow: 0 0 5px #00ff00; }