:root {
    --bg-color: #0a0a0a;
    --card-bg: #151515;
    --primary-color: #ff3c00;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --font-head: 'Black Ops One', cursive;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* 배경 오버레이 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 60, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 60, 0, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 내비게이션 바 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-head);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* 섹션 공통 */
.section {
    padding: 100px 0;
}

.main-content {
    min-height: 100vh;
}

/* 계산기 카드 섹션 */
#calculator .container {
    background: var(--card-bg);
    padding: 3rem;
    max-width: 500px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-family: var(--font-head);
    font-size: 2.8rem;
    color: var(--text-main);
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* 텍스트 콘텐츠 섹션 */
.text-content {
    background: #0f0f0f;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.text-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #fff;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-content ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.text-content li {
    margin-bottom: 10px;
}

.formula-box {
    background: #000;
    padding: 20px;
    border-radius: 4px;
    border: 1px dashed #444;
    margin: 20px 0;
    text-align: center;
}

.formula-box code {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: monospace;
}

/* 입력 그룹 */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

input, select {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    font-size: 1rem;
}

.input-helper {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

button {
    width: 100%;
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 18px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #ff5e2e;
}

/* 결과 */
.result {
    margin-top: 2rem;
    padding: 2rem;
    background: #0a0a0a;
    border: 1px solid #222;
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.stat-row strong {
    color: var(--primary-color);
}

.divider {
    height: 1px;
    background: #222;
    margin: 1.5rem 0;
}

.rank-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    margin: 1rem 0;
}

.percentile-display {
    font-size: 1.2rem;
}

.highlight {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* 푸터 */
.footer {
    padding: 50px 0;
    background: #050505;
    text-align: center;
    border-top: 1px solid #111;
}

.footer p {
    color: #555;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 애니메이션 및 티어별 스타일 (기존 유지/강화) */
.tier-god .rank-title { 
    color: #d255ff;
    text-shadow: 0 0 20px #d255ff;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    /* ... (생략 가능하지만 완성도를 위해 유지) */
}

@media (max-width: 600px) {
    .navbar .nav-menu { display: none; }
    #calculator .container { padding: 1.5rem; }
    header h1 { font-size: 2rem; }
}