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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    user-select: none;
}

.game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* HUD */
.hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.hud-label {
    color: #ff6b6b;
}

.power-container {
    flex: 1;
    max-width: 300px;
    margin-left: 20px;
}

.power-bar {
    flex: 1;
    height: 20px;
    background: #333;
    border: 2px solid #666;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.power-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
    width: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

.power-fill.low {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
}

.power-fill.critical {
    background: linear-gradient(90deg, #ff0000 0%, #cc0000 100%);
    animation: pulse 1s infinite;
}

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

#powerPercent {
    min-width: 50px;
    text-align: right;
}

/* Oyun Ekranı */
.game-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

.view {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.view.active {
    display: block;
}

/* Ofis Görünümü */
.office-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    display: flex;
    position: relative;
}

.office-left,
.office-right {
    width: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.office-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.desk {
    width: 100%;
    height: 150px;
    background: #2a2a3e;
    border-top: 3px solid #444;
    position: relative;
    margin-bottom: 20px;
}

.monitor-frame {
    width: 90%;
    max-width: 800px;
    height: 500px;
    background: #1a1a2e;
    border: 10px solid #333;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.camera-view {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

.camera-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
    animation: static 0.1s infinite;
}

@keyframes static {
    0% { opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

.camera-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.camera-room-name {
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 20px;
    font-weight: bold;
    color: #4ecdc4;
    text-align: center;
}

.camera-feed {
    flex: 1;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 24px;
    position: relative;
}

.room-item {
    margin: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 18px;
}

.animatronic-present {
    color: #ff6b6b;
    font-weight: bold;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px #ff6b6b; }
    50% { text-shadow: 0 0 20px #ff6b6b, 0 0 30px #ff6b6b; }
}

/* Butonlar */
.door-btn,
.light-btn {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    border: 3px solid #666;
    border-radius: 5px;
    background: #2a2a3e;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Courier New', monospace;
}

.door-btn:hover,
.light-btn:hover {
    background: #3a3a4e;
    border-color: #888;
}

.door-btn.active {
    background: #4a0e0e;
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.light-btn.active {
    background: #4a4a0e;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.door-label,
.light-label {
    font-size: 14px;
}

.door-status {
    font-size: 18px;
    color: #4ecdc4;
}

.door-btn.active .door-status {
    color: #ff6b6b;
}

/* Kamera Butonları */
.camera-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 200;
}

.cam-btn {
    width: 60px;
    height: 60px;
    border: 3px solid #666;
    border-radius: 5px;
    background: #2a2a3e;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.cam-btn:hover {
    background: #3a3a4e;
    border-color: #888;
}

.cam-btn.active {
    background: #0e4a4a;
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

/* Jump Scare */
.jump-scare {
    background: #000;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.jump-scare.active {
    display: flex;
}

.jump-scare-content {
    text-align: center;
}

.jump-scare-face {
    font-size: 200px;
    animation: jumpScare 0.5s ease-out;
    margin-bottom: 30px;
}

@keyframes jumpScare {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.jump-scare-text {
    font-size: 48px;
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 20px #ff0000;
    animation: textShake 0.3s infinite;
}

@keyframes textShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Menü */
.menu,
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    text-align: center;
    padding: 40px;
}

.menu h1,
.game-over h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.menu-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 600px;
    line-height: 1.6;
}

.night-selector {
    margin-bottom: 30px;
}

.night-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #4ecdc4;
}

.night-selector select {
    padding: 10px 20px;
    font-size: 18px;
    background: #2a2a3e;
    color: #fff;
    border: 2px solid #666;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    max-width: 500px;
}

.instructions h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
}

.instructions p {
    margin: 10px 0;
    color: #ccc;
    text-align: left;
}

button {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    margin: 10px;
}

button:hover {
    background: #ff8b8b;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.final-night {
    font-size: 24px;
    margin: 20px 0;
    color: #4ecdc4;
}

/* Işık Efekti */
.light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.light-overlay.left-on {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3) 0%, transparent 50%);
}

.light-overlay.right-on {
    background: linear-gradient(270deg, rgba(255, 215, 0, 0.3) 0%, transparent 50%);
}

/* Kapı Işığı Görünümü */
.door-light-view {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.5);
}

.office-left .door-light-view {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 215, 0, 0.2) 50%, transparent 100%);
}

.office-right .door-light-view {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 215, 0, 0.2) 50%, transparent 100%);
}

.door-light-content {
    text-align: center;
    padding: 20px;
    width: 100%;
}

.door-animatronic {
    animation: doorGlow 2s infinite;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}

@keyframes doorGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 107, 107, 0.8));
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .office-left,
    .office-right {
        width: 120px;
        padding: 10px;
    }
    
    .door-btn,
    .light-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .monitor-frame {
        height: 300px;
    }
    
    .camera-buttons {
        bottom: 10px;
    }
    
    .cam-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
