/* Trudvang Quiz — shared between trudvang.html and trudvang-raser.html */

#trudvangQuiz {
    --tvq-dark: #0f1211;
    --tvq-gold: #c5a059;
    --tvq-text: #e2d9c2;
    --tvq-card-bg: rgba(20, 22, 18, 0.85);
    --tvq-border: rgba(197, 160, 89, 0.3);
    --tvq-muted: rgba(226, 217, 194, 0.6);
}

.tvq-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.tvq-section-title {
    font-family: 'Cinzel Decorative', serif;
    color: var(--tvq-gold, #c5a059);
    text-align: center;
    margin-bottom: 24px;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.tvq-card {
    background: var(--tvq-card-bg);
    border: 1px solid var(--tvq-border);
    border-radius: 3px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.tvq-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tvq-gold);
    opacity: 0.85;
    margin: 0 0 10px 0;
}

.tvq-title {
    font-family: 'Cinzel Decorative', serif;
    color: var(--tvq-gold);
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.tvq-lede {
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tvq-text);
    opacity: 0.9;
    margin: 0 auto 24px auto;
    max-width: 560px;
}

.tvq-footnote {
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    color: var(--tvq-muted);
    margin: 16px 0 0 0;
}

.tvq-progress-wrap {
    margin-bottom: 22px;
}

.tvq-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--tvq-border);
    border-radius: 3px;
    overflow: hidden;
}

.tvq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a3b1a, var(--tvq-gold));
    transition: width 0.35s ease;
    width: 0%;
}

.tvq-step-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tvq-muted);
    margin: 10px 0 0 0;
}

.tvq-question {
    font-family: 'Cinzel', serif;
    color: var(--tvq-gold);
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    line-height: 1.4;
    margin: 0 0 22px 0;
}

.tvq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.tvq-option {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--tvq-text);
    background: rgba(20, 22, 18, 0.6);
    border: 1px solid var(--tvq-border);
    border-radius: 3px;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.tvq-option:hover:not(:disabled) {
    border-color: rgba(197, 160, 89, 0.7);
    background: rgba(40, 34, 18, 0.55);
}

.tvq-option:focus-visible {
    outline: 2px solid var(--tvq-gold);
    outline-offset: 2px;
}

.tvq-option:disabled {
    cursor: default;
    opacity: 0.55;
}

.tvq-option-selected {
    border-color: var(--tvq-gold) !important;
    background: linear-gradient(135deg, rgba(74, 59, 26, 0.55), rgba(197, 160, 89, 0.18)) !important;
    color: #fff6e4;
}

.tvq-btn {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 12px 22px;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    border: 1px solid var(--tvq-gold);
    display: inline-block;
}

.tvq-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.tvq-btn-primary {
    background: linear-gradient(135deg, #4a3b1a, var(--tvq-gold));
    color: #1a1208;
}

.tvq-btn-ghost {
    background: transparent;
    color: var(--tvq-gold);
    border-color: var(--tvq-border);
}

.tvq-result-name {
    font-family: 'Cinzel Decorative', serif;
    color: var(--tvq-gold);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin: 6px 0 14px 0;
    background: linear-gradient(135deg, var(--tvq-gold) 0%, #e8d5a3 50%, var(--tvq-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tvq-result-blurb {
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--tvq-text);
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 24px auto;
    text-align: left;
}

.tvq-name-form {
    margin: 0 auto 22px auto;
    max-width: 480px;
    text-align: left;
}

.tvq-name-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tvq-gold);
    margin-bottom: 8px;
}

.tvq-name-input {
    width: 100%;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: var(--tvq-text);
    background: rgba(15, 17, 14, 0.85);
    border: 1px solid var(--tvq-border);
    border-radius: 3px;
    padding: 12px 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.tvq-name-input:focus {
    outline: none;
    border-color: var(--tvq-gold);
}

.tvq-input-error {
    border-color: #c66 !important;
    animation: tvqShake 0.35s ease;
}

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

.tvq-name-hint {
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    color: var(--tvq-muted);
    margin: 8px 0 0 0;
}

.tvq-result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.tvq-result-actions .tvq-btn { min-width: 280px; }

@media screen and (max-width: 600px) {
    .tvq-card { padding: 24px 18px; }
    .tvq-option { padding: 12px 14px; font-size: 0.95rem; }
}
