:root {
    --bg-color: #050000;
    --text-red: #ff3333;      /* 경고/에러 */
    --text-amber: #ffb000;    /* 기본 텍스트 */
    --text-green: #33ff00;    /* 행운(주인공) 전용 */
    --text-dim: #554444;      /* 어두운 색 */
    --font-pixel: 'VT323', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    color: var(--text-amber);
    font-family: var(--font-pixel);
    height: 100vh;
    overflow: hidden; /* 스크롤바 숨김 */
    text-shadow: 0 0 4px rgba(255, 176, 0, 0.4);
}

/* CRT 효과 */
.crt-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    z-index: 10; pointer-events: none;
}
.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 11; pointer-events: none;
}

/* 레이아웃 */
.terminal-container {
    padding: 20px; max-width: 800px; margin: 0 auto;
    height: 100%; display: flex; flex-direction: column;
}

.sys-header {
    display: flex; justify-content: space-between;
    font-size: 18px; color: var(--text-dim); border-bottom: 1px solid var(--text-dim);
    padding-bottom: 5px; margin-bottom: 30px;
}

.main-display { flex-grow: 1; display: flex; flex-direction: column; gap: 40px; }

/* 카운트다운 */
.warning-box { text-align: center; }
.glitch-text {
    font-size: 32px; color: var(--text-red); margin: 0 0 10px 0;
    text-shadow: 2px 2px 0px #000; animation: skew 3s infinite;
}
.timer-label { font-size: 20px; color: var(--text-amber); letter-spacing: 2px; }

.countdown-wrapper { margin: 15px 0; border: 2px solid var(--text-red); padding: 10px; background: rgba(20, 0, 0, 0.3); }
.giant-number { font-size: 80px; line-height: 1; color: var(--text-red); text-shadow: 0 0 10px var(--text-red); }
.sub-number { font-size: 30px; color: var(--text-red); opacity: 0.8; }
.sub-text { font-size: 14px; color: var(--text-dim); margin-top: 5px; }

/* 프로세스 목록 */
.process-section { font-size: 22px; }
.section-title { font-size: 16px; color: var(--text-dim); margin-bottom: 10px; font-weight: normal; }
.process-list { list-style: none; padding: 0; margin: 0; }
.proc-row { display: flex; justify-content: space-between; margin-bottom: 5px; }

.p-name { color: var(--text-amber); }
.dots { flex-grow: 1; margin: 0 10px; color: var(--text-dim); opacity: 0.3; overflow: hidden; white-space: nowrap; }

/* 상태 컬러 */
.status.special { color: var(--text-green); text-shadow: 0 0 8px var(--text-green); font-weight: bold; }
.status.online { color: var(--text-amber); }
.status.error { color: var(--text-red); background: #300; padding: 0 5px; font-weight: bold; }

/* 로그 섹션 */
.log-section { height: 150px; overflow: hidden; border-top: 1px dashed var(--text-dim); padding-top: 10px; margin-top: 20px; }
.log-header { font-size: 14px; color: var(--text-dim); margin-bottom: 5px; }
.log-body { font-size: 18px; color: var(--text-amber); font-family: 'Courier New', monospace; }
.log-line { margin-bottom: 4px; opacity: 0.7; }
.log-line.critical { color: var(--text-red); font-weight: bold; opacity: 1; }

/* 애니메이션 */
.blink { animation: blink 0.5s infinite; }
.blink-slow { animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0; } }

@keyframes skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(0deg); }
    90% { transform: skew(5deg); }
    100% { transform: skew(0deg); }
}

@media (max-width: 600px) {
    .giant-number { font-size: 60px; }
    .sub-number { font-size: 24px; }
    .process-section { font-size: 18px; }
}