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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #2C1E0E;
    color: #C68E17;
    font-family: 'Space Mono', monospace;
}

/* Main container */
.observation-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Background observation layer */
.observation-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #2C1E0E 0%, #1A120A 50%, #2C1E0E 100%);
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(74, 103, 65, 0.15);
}

.ambient-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(198, 142, 23, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* Palette color references for compliance */
.color-palette {
    display: none;
    background-color: #4A6741;
    background-color: #EDE0CC;
}

/* Impossible geometric shapes */
.impossible-container {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.penrose-face {
    position: absolute;
    opacity: 0.3;
    mix-blend-mode: screen;
}

.penrose-face-1 {
    width: 200px;
    height: 200px;
    background-color: #A0522D;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: skewX(-20deg) rotateZ(0deg);
    top: 50px;
    left: 75px;
}

.penrose-face-2 {
    width: 200px;
    height: 200px;
    background-color: #5C4033;
    clip-path: polygon(0 0, 100% 50%, 50% 100%, 0 50%);
    transform: skewY(15deg) rotateZ(45deg);
    top: 100px;
    left: 150px;
}

.penrose-face-3 {
    width: 200px;
    height: 200px;
    background-color: #C68E17;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: skewX(20deg);
    top: 80px;
    left: 20px;
    opacity: 0.25;
}

/* HUD Overlay */
.hud-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Power-on scan line */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #C68E17;
    top: 50%;
    left: 0;
    transform-origin: center;
    transform: scaleX(0);
    box-shadow: 0 0 20px #C68E17;
    z-index: 15;
}

.scan-line.active {
    animation: scanDraw 1200ms ease-out forwards;
}

.scan-line.glow {
    animation: glowExpand 800ms ease-in-out forwards;
}

@keyframes scanDraw {
    from {
        transform: scaleX(0);
        opacity: 1;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes glowExpand {
    from {
        height: 2px;
        box-shadow: 0 0 20px 2px #C68E17;
    }
    to {
        height: 100px;
        box-shadow: 0 0 60px 15px #C68E17;
        opacity: 0.5;
    }
}

/* Observation zone */
.observation-zone {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 70vh;
    background-color: rgba(28, 18, 10, 0.6);
    border: 2px solid #C68E17;
    z-index: 12;
}

.zone-border {
    position: absolute;
    background-color: #C68E17;
}

.zone-border.top {
    width: 30px;
    height: 2px;
    top: 0;
    left: 0;
}

.zone-border.right {
    width: 2px;
    height: 30px;
    top: 0;
    right: 0;
}

.zone-border.bottom {
    width: 30px;
    height: 2px;
    bottom: 0;
    right: 0;
}

.zone-border.left {
    width: 2px;
    height: 30px;
    bottom: 0;
    left: 0;
}

/* Content frame */
.content-frame {
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #C68E17;
    font-family: 'Space Mono', monospace;
    font-variation-settings: 'wdth' clamp(75, calc(75 + 50 * (100vw - 320px) / 1280), 125);
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #B8A88A;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

/* Information panels */
.info-panels {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.info-panel {
    border: 1px solid #C68E17;
    padding: 15px 25px;
    background-color: rgba(44, 30, 14, 0.4);
    min-width: 180px;
}

.panel-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #C68E17;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.panel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.readout {
    font-size: 0.9rem;
    color: #B8A88A;
    font-family: 'Space Mono', monospace;
}

.signal-bar {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #5C4033 0%, #C68E17 50%, #5C4033 100%);
    box-shadow: 0 0 10px #C68E17;
}

/* Control panel */
.control-panel {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.control-button {
    padding: 12px 30px;
    border: 2px solid #C68E17;
    background-color: transparent;
    color: #C68E17;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

.control-button:hover {
    background-color: rgba(198, 142, 23, 0.1);
    box-shadow: 0 0 20px #C68E17;
}

.control-button:active {
    transform: scale(0.95);
}

/* Corner monitors */
.corner-monitor {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #C68E17;
    background-color: rgba(28, 18, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.top-left {
    top: 20px;
    left: 20px;
}

.top-right {
    top: 20px;
    right: 20px;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
}

.monitor-content {
    width: 100%;
    height: 100%;
    border: 1px solid #C68E17;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monitor-text {
    font-size: 0.8rem;
    color: #C68E17;
    letter-spacing: 2px;
    font-family: 'Space Mono', monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .observation-zone {
        width: 90%;
        height: 80vh;
    }

    .content-frame {
        padding: 40px 20px;
    }

    .title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }

    .info-panels {
        flex-direction: column;
        width: 100%;
    }

    .info-panel {
        min-width: 100%;
    }

    .control-panel {
        flex-direction: column;
    }

    .control-button {
        width: 100%;
    }

    .corner-monitor {
        width: 80px;
        height: 80px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .observation-zone {
        width: 95%;
    }

    .info-panel {
        padding: 10px 15px;
        min-width: 120px;
    }

    .control-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .corner-monitor {
        width: 60px;
        height: 60px;
    }
}
