:root {
    --paper-color: #fffef2;
    --line-color: #d1d1d1;
    --red-ink: #e74c3c;
    --blue-ink: #2980b9;
    --black-ink: #2c3e50;
    --grid-color: rgba(64, 150, 238, 0.08);
}

body {
    background-color: #f4f4f4;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Gaegu', cursive;
    color: var(--black-ink);
}

.notebook {
    width: 95%;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    margin: 20px 0;
}

/* 상단 내비게이션 */
.top-nav {
    background: #f8f8f8;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    font-size: 1rem;
}

.top-nav a {
    text-decoration: none;
    color: #666;
}

.top-nav a:hover { color: var(--red-ink); }

.paper {
    background-color: var(--paper-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 25px 25px;
    padding: 40px 30px;
    min-height: 800px;
    position: relative;
}

.title {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 3.5rem;
    color: var(--red-ink);
    margin: 0;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--blue-ink);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

/* 입력 영역 */
.input-area { margin-top: 2rem; }

.name-inputs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 2rem;
}

.input-group label { display: block; font-size: 1.3rem; margin-bottom: 5px; text-align: center; }

.input-group input {
    width: 100px;
    padding: 10px;
    font-family: inherit;
    font-size: 2.2rem;
    text-align: center;
    border: none;
    background: transparent;
    border-bottom: 2px solid var(--black-ink);
    outline: none;
    color: var(--blue-ink);
}

.vs { font-size: 1.8rem; color: var(--red-ink); font-weight: bold; }

.btn-calculate {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: var(--red-ink);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 0 #c0392b;
    transition: all 0.2s;
}

.btn-calculate:hover { background-color: #ff5e4d; transform: translateY(-2px); box-shadow: 0 6px 0 #c0392b; }
.btn-calculate:active { transform: translateY(2px); box-shadow: 0 2px 0 #c0392b; }

/* 결과 영역 */
.calculation-visual { font-size: 2rem; text-align: center; letter-spacing: 12px; margin-bottom: 2rem; color: #555; }
.final-score { text-align: center; margin: 2rem 0; border: 4px double var(--red-ink); padding: 20px; }
.score-number { font-size: 4.5rem; font-weight: bold; color: var(--red-ink); }
.analysis-box { background: rgba(255,255,255,0.6); border: 1px dashed var(--blue-ink); padding: 25px; margin-top: 1.5rem; }
.analysis-text { font-size: 1.3rem; line-height: 1.8; }

/* 텍스트 콘텐츠 섹션 */
.article-section { margin-top: 4rem; text-align: left; }
.article-section h2 { font-size: 1.8rem; color: var(--black-ink); border-left: 5px solid var(--red-ink); padding-left: 10px; }
.article-section h3 { font-size: 1.5rem; color: var(--blue-ink); margin-top: 1.5rem; }
.article-section p { font-size: 1.1rem; line-height: 1.7; color: #444; margin-bottom: 1rem; }
.divider { border: none; border-top: 2px dashed #ccc; margin: 3rem 0; }

.footer { margin-top: 4rem; padding-top: 20px; border-top: 1px solid #ddd; text-align: center; font-size: 0.95rem; color: #888; }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #888; text-decoration: none; margin: 0 5px; }

.hidden { display: none; }
.privacy-page h1 { color: var(--red-ink); }
.privacy-page h2 { font-size: 1.4rem; margin-top: 1.5rem; border-bottom: 1px solid #eee; }

@media (max-width: 500px) {
    .paper { padding: 30px 15px; }
    .title { font-size: 2.8rem; }
}
