:root {
    --primary-color: #4a90e2;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --correct-color: #48bb78;
    --incorrect-color: #f56565;
    --pending-color: #a0aec0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

h1 {
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.quote-display {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    min-height: 100px;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
}

.quote-display span {
    position: relative;
    color: var(--pending-color);
    transition: color 0.1s;
}

.quote-display .correct {
    color: var(--correct-color);
}

.quote-display .incorrect {
    color: var(--incorrect-color);
    background-color: rgba(245, 101, 101, 0.1);
}

.quote-display .current {
    border-bottom: 3px solid var(--primary-color);
}

.quote-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    height: 80px;
    box-sizing: border-box;
}

.quote-input:focus {
    border-color: var(--primary-color);
}

.restart-btn {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.restart-btn:hover {
    background-color: #357abd;
}

.restart-btn:active {
    transform: translateY(2px);
}

/* 제휴 문의 섹션 스타일 */
.contact-section {
    margin-top: 3rem;
    text-align: left;
}

.contact-section hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.contact-section h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    padding: 0.75rem;
    background-color: #2d3748;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1a202c;
}
