
:root {
    /* Morandi Palette */
    --bg-color: #F2E9E4;        /* Warm Beige */
    --text-color: #4A4E69;      /* Dark Grey Blue */
    --accent-color: #9A8C98;    /* Muted Purple/Grey */
    --btn-bg: #C9ADA7;          /* Soft Pink/Brown */
    --btn-text: #FFFFFF;
    --card-bg: #FFFFFF;
    --shadow: 0 10px 30px rgba(74, 78, 105, 0.1);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Fonts */
.serif {
    font-family: var(--font-serif);
}

.title-large {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Section */
.landing-content {
    text-align: center;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid var(--accent-color);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-bottom-color: var(--text-color);
}

.btn-start {
    margin-top: 2rem;
    background: var(--text-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-start:hover, .btn-contact:hover {
    transform: scale(1.05);
}

.btn-start:active, .btn-contact:active {
    transform: scale(0.95);
}

/* Quiz Section */
.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.question-card {
    text-align: center;
}

.question-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.option-btn:hover {
    transform: translateY(-5px);
    border-color: var(--btn-bg);
    background: #FFF5F5;
}

.option-btn:active {
    transform: scale(0.98);
}

/* Loader */
.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(74, 78, 105, 0.1);
    border-radius: 50%;
    border-top-color: var(--text-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Section (Poster Style) */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.animal-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.archetype-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.result-desc {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.result-desc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--btn-bg), var(--accent-color));
}

#result-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.radar-chart-placeholder {
    background: rgba(255,255,255,0.5);
    border: 2px dashed var(--accent-color);
    border-radius: 20px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

.tips-box {
    background: #F4F1EA;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.tips-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--btn-bg);
}

/* Contact Button */
.contact-section {
    margin-top: 4rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-contact {
    background: var(--text-color);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 78, 105, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 10px;
}

.qr-image {
    max-width: 250px;
    display: block;
}

.modal-close {
    margin-top: 1rem;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Shake Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .title-large {
        font-size: 2.5rem;
    }
    .question-text {
        font-size: 1.4rem;
    }
}
