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

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    min-height: 100vh;
    position: relative;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.disruption-field {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 30% 70%, rgba(20, 20, 40, 0.8), transparent 70%),
                radial-gradient(circle at 70% 30%, rgba(40, 20, 20, 0.6), transparent 70%),
                linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
}

#conformityCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    cursor: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: filter 0.3s ease;
    touch-action: none;
}

#conformityCanvas:hover {
    filter: brightness(1.1) contrast(1.05);
}

.interface-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.abstract-header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.disruption-title {
    font-size: clamp(60px, 12vw, 120px);
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(45deg, #ff0080, #00ff80, #8000ff, #ff8000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: disruption-flow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.manifesto {
    font-size: clamp(12px, 2.5vw, 18px);
    font-weight: 200;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

@keyframes disruption-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mode-selector {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    z-index: 15;
}

.selector-ring {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.selector-ring:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mode-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-55px) rotate(calc(-1 * var(--rotation)));
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.mode-segment:hover {
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-55px) rotate(calc(-1 * var(--rotation))) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.mode-segment.active {
    border-color: #ff0080;
    background: rgba(255, 0, 128, 0.2);
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.4);
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-55px) rotate(calc(-1 * var(--rotation))) scale(1.15);
}

.mode-segment[data-mode="question"]:hover, .mode-segment[data-mode="question"].active {
    border-color: #ff0080;
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.4);
}

.mode-segment[data-mode="challenge"]:hover, .mode-segment[data-mode="challenge"].active {
    border-color: #00ff80;
    box-shadow: 0 0 25px rgba(0, 255, 128, 0.4);
}

.mode-segment[data-mode="provocation"]:hover, .mode-segment[data-mode="provocation"].active {
    border-color: #8000ff;
    box-shadow: 0 0 25px rgba(128, 0, 255, 0.4);
}

.mode-segment[data-mode="chaos"]:hover, .mode-segment[data-mode="chaos"].active {
    border-color: #ff8000;
    box-shadow: 0 0 25px rgba(255, 128, 0, 0.4);
}

.mode-icon {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.mode-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.selector-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.selector-center:hover {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.reset-icon {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.reset-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.interaction-hints {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.hint-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    margin: 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hint-item.visible {
    opacity: 1;
}

.status-display {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: none;
}

.disruption-meter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meter-label, .index-label {
    font-size: 12px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meter-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff80, #ff0080);
    transition: width 0.5s ease;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: meter-pulse 2s ease-in-out infinite;
}

@keyframes meter-pulse {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.conformity-index {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.index-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .abstract-header {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .disruption-title {
        font-size: clamp(40px, 8vw, 80px);
        margin-bottom: 5px;
    }
    
    .manifesto {
        font-size: clamp(10px, 2vw, 14px);
    }
    
    .mode-selector {
        bottom: 40px;
    }
    
    .selector-ring {
        width: 160px;
        height: 160px;
    }
    
    .mode-segment {
        width: 60px;
        height: 60px;
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-50px) rotate(calc(-1 * var(--rotation)));
    }
    
    .mode-segment:hover {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-50px) rotate(calc(-1 * var(--rotation))) scale(1.1);
    }
    
    .mode-segment.active {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-50px) rotate(calc(-1 * var(--rotation))) scale(1.15);
    }
    
    .mode-icon {
        font-size: 20px;
    }
    
    .mode-label {
        font-size: 9px;
    }
    
    .selector-center {
        width: 50px;
        height: 50px;
    }
    
    .reset-icon {
        font-size: 16px;
    }
    
    .reset-label {
        font-size: 7px;
    }
    
    .status-display {
        top: 20px;
        right: 10px;
        transform: none;
        gap: 15px;
    }
    
    .meter-bar {
        width: 120px;
        height: 4px;
    }
    
    .meter-label, .index-label {
        font-size: 10px;
    }
    
    .index-value {
        font-size: 16px;
    }
    
    .interaction-hints {
        bottom: 5px;
    }
    
    .hint-item {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .mode-selector {
        bottom: 30px;
    }
    
    .selector-ring {
        width: 140px;
        height: 140px;
    }
    
    .mode-segment {
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-45px) rotate(calc(-1 * var(--rotation)));
    }
    
    .mode-segment:hover {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-45px) rotate(calc(-1 * var(--rotation))) scale(1.1);
    }
    
    .mode-segment.active {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-45px) rotate(calc(-1 * var(--rotation))) scale(1.15);
    }
    
    .mode-icon {
        font-size: 18px;
    }
    
    .mode-label {
        font-size: 8px;
    }
    
    .selector-center {
        width: 45px;
        height: 45px;
    }
    
    .reset-icon {
        font-size: 14px;
    }
    
    .reset-label {
        font-size: 6px;
    }
    
    .status-display {
        right: 5px;
        gap: 12px;
    }
    
    .meter-bar {
        width: 100px;
    }
    
    .hint-item {
        font-size: 9px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .abstract-header {
        top: 10px;
    }
    
    .disruption-title {
        font-size: clamp(30px, 6vh, 60px);
    }
    
    .mode-selector {
        bottom: 15px;
    }
    
    .selector-ring {
        width: 120px;
        height: 120px;
    }
    
    .mode-segment {
        width: 40px;
        height: 40px;
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-40px) rotate(calc(-1 * var(--rotation)));
    }
    
    .mode-segment:hover {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-40px) rotate(calc(-1 * var(--rotation))) scale(1.1);
    }
    
    .mode-segment.active {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-40px) rotate(calc(-1 * var(--rotation))) scale(1.15);
    }
    
    .mode-icon {
        font-size: 16px;
    }
    
    .mode-label {
        font-size: 7px;
    }
    
    .selector-center {
        width: 35px;
        height: 35px;
    }
    
    .reset-icon {
        font-size: 12px;
    }
    
    .reset-label {
        font-size: 5px;
    }
    
    .interaction-hints {
        bottom: 2px;
    }
    
    .hint-item {
        font-size: 8px;
    }
}