:root {
    --blush: #f8e9e4;
    --blush-light: #fdf6f3;
    --rose: #c98a90;
    --rose-dark: #a8636b;
    --gold: #c9a45d;
    --ink: #4a3b3a;
    --success: #7c9473;
    --shadow: 0 20px 45px rgba(90, 60, 60, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, var(--blush-light), var(--blush) 70%);
    background-attachment: fixed;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background: #fffdfc;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(201, 164, 93, 0.25);
}

.ornament {
    font-size: 2.2rem;
    margin: 0 0 4px;
}

h1 {
    font-family: 'Playfair Display', serif;
    color: var(--rose-dark);
    font-size: 2.4rem;
    margin: 0 0 8px;
}

.subtitle {
    font-style: italic;
    color: var(--gold);
    margin: 0 0 20px;
}

.lead {
    line-height: 1.6;
    margin: 0 0 24px;
    font-size: 1.05rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input[type="password"],
input[type="text"],
.text-answer {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(169, 99, 107, 0.3);
    font-size: 1rem;
    font-family: inherit;
    background: var(--blush-light);
    color: var(--ink);
}

input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--rose);
}

.btn-primary {
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(169, 99, 107, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #b3413b;
    min-height: 1.2em;
    margin-top: 12px;
    font-size: 0.95rem;
}

.shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.progress-indicator {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
}

.question-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.question-image {
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(169, 99, 107, 0.25);
    background: var(--blush-light);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.option-item:has(input:checked) {
    border-color: var(--rose);
    background: #fbeceb;
}

.option-item input {
    accent-color: var(--rose-dark);
}

.text-answer {
    width: 100%;
    margin-bottom: 20px;
}

.feedback-message {
    min-height: 1.2em;
    color: #b3413b;
    margin-bottom: 12px;
}

.locked-card .lock-message {
    background: var(--blush-light);
    border: 1.5px dashed var(--gold);
    border-radius: 16px;
    padding: 20px;
    line-height: 1.6;
}

.coords-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coords-list a {
    display: block;
    padding: 14px;
    border-radius: 14px;
    background: var(--blush-light);
    color: var(--rose-dark);
    text-decoration: none;
    font-weight: 500;
    border: 1.5px solid rgba(169, 99, 107, 0.25);
    transition: background 0.15s ease;
}

.coords-list a:hover {
    background: #fbeceb;
}

@media (max-width: 480px) {
    .card {
        padding: 32px 22px;
    }

    h1 {
        font-size: 2rem;
    }
}
