/* 기본 배경 세팅 (아날로그 컴컴한 분위기) */
body {
    background-color: #0c0c0c;
    color: #e5c158; /* 백룸 시그니처 황색 */
    font-family: 'Courier New', Courier, monospace; /* 옛날 컴퓨터 글씨체 */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 화면 중앙 정렬 컨테이너 */
.container {
    width: 90%;
    max-width: 500px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 텍스트 글리치(지직거림) 효과 */
.glitch {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px #ff0000, -2px -2px #0000ff;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.subtitle {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 입력창 및 버튼 */
input[type="number"] {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 2px solid #e5c158;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 15px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #e5c158;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background-color: #fff;
    box-shadow: 0 0 15px #e5c158;
}

/* 화면 전환용 숨김 태그 */
.hidden {
    display: none !important;
}

/* 로딩 화면 스타일 */
#loading-screen {
    padding: 50px 0;
}
.loading-text {
    color: #ff3333;
    animation: blink 1s infinite;
}
.warning { color: #555; font-size: 0.8rem; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 결과 카드 디자인 */
.result-card {
    background-color: #151515;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}
#res-level { font-size: 1.8rem; color: #fff; margin-bottom: 15px; }
#res-img { width: 100%; max-height: 250px; object-fit: cover; border: 1px solid #e5c158; margin-bottom: 15px; }
.info-group { text-align: left; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.danger-text { color: #ff3333; font-weight: bold; }
.tip-box { background-color: #0a0a0a; border-left: 4px solid #e5c158; padding: 15px; text-align: left; }
.tip-box h3 { margin-top: 0; font-size: 1rem; color: #e5c158; }
.retry-btn { background-color: #333; color: #fff; margin-top: 20px; }