:root {
    --dev-color: #f7697d;
    --ai-color: #42d35b;
    --write-color: #65a5f9;
}

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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #f0f0f0;
    overflow-x: hidden;
    cursor: crosshair;
}

#cursor-context {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    transition: all 0.3s;
    z-index: 100;
}

#main-content {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 120px;
    justify-content: center;
    position: relative;
}

#code-display {
    width: 90%;
    max-width: 800px;
    background: #0f0f0f;
    border: 2px solid #333;
    padding: 0px 30px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

.highlight {
    background: transparent;
    transition: all 0.3s;
    position: relative;
    cursor: help;
}

body.context-dev .highlight {
    color: var(--dev-color);
}

body.context-ai .highlight {
    color: var(--ai-color);
}

body.context-write .highlight {
    color: var(--write-color);
}

.highlight:hover {
    background: #2a2a2a !important;
    box-shadow: 0 0 10px currentColor;
}

#interpretation {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    padding: 20px;
    background: #000;
    border: 1px solid #333;
    opacity: 0;
    transition: all 0.3s;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

body.context-dev #interpretation {
    border-color: var(--dev-color);
}

body.context-ai #interpretation {
    border-color: var(--ai-color);
}

body.context-write #interpretation {
    border-color: var(--write-color);
}

#interpretation.active {
    opacity: 1;
    top: -120px;
}

.context-label {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #444;
    transition: all 0.3s;
    width: 200px;
    text-align: center;
}

.zone {
    position: absolute;
    width: 100%;
    height: 33.33%;
    left: 0;
    z-index: 10;
    cursor: crosshair;
}

.zone-dev { top: 0; }
.zone-ai { top: 33.33%; }
.zone-write { top: 66.66%; }

#identity {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 15px;
    //text-transform: uppercase;
    letter-spacing: 2px;
    color: #eee;
}

#identity a {
    color: #eee;
}

#nav-hint {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    letter-spacing: 2px;
    color: #333;
    text-transform: uppercase;
}

.active-zone-indicator {
    position: fixed;
    left: 0;
    width: 4px;
    transition: all 0.3s;
    opacity: 0;
}

.active-zone-indicator.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .context-label {
        display: none;
    }
    
    #nav-hint {
        display: none;
    }
    
    #code-display {
        font-size: 12px;
        padding: 10px;
    }
}