/* =====================================================
   VERITAT O MENTIDA — JOC INTERACTIU
   ===================================================== */

.vm-section {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 2rem;
}

.vm-panel {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
}

/* ==================== INICI ==================== */
.vm-char {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto .75rem;
}

.vm-title-main {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--verde);
    margin-bottom: .4rem;
}

.vm-intro {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: .3rem;
}

.vm-hint {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.vm-level-select {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.vm-level-btn {
    padding: .6rem 1.2rem;
    border-radius: var(--r-full);
    background: var(--bg);
    border: 2px solid transparent;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}

.vm-level-btn:hover {
    border-color: var(--verde);
    transform: translateY(-2px);
}

/* ==================== JOC ==================== */
.vm-exit {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.vm-exit:hover { background: var(--verde); color: var(--white); }

.vm-title {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 900;
    color: var(--verde);
    margin: 1.5rem 0 .3rem;
}

.vm-game-hint {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

/* ==================== PREGUNTES ==================== */
.vm-questions {
    text-align: left;
    margin-bottom: 1.25rem;
}

.vm-q {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
    background: var(--bg);
    border-radius: var(--r);
    border: 2px solid transparent;
    transition: border-color .15s;
}

.vm-q-num {
    font-size: 1rem;
    font-weight: 900;
    color: var(--verde);
    min-width: 1.5rem;
}

.vm-q-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    flex: 1;
}

.vm-q-btns {
    display: flex;
    gap: .4rem;
    flex-shrink: 0;
}

.vm-q-btn {
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 800;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.1);
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-q-btn:hover { border-color: var(--verde); }

.vm-q-btn.selected-v {
    background: var(--verde);
    color: var(--white);
    border-color: var(--verde);
}

.vm-q-btn.selected-m {
    background: #e53935;
    color: var(--white);
    border-color: #e53935;
}

.vm-q.correct { border-color: var(--verde); }
.vm-q.wrong { border-color: #e53935; }

.vm-q-result {
    font-size: .9rem;
    font-weight: 800;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==================== BOTONS TOGGLE ==================== */
.vm-toggle-btn {
    display: block;
    margin: 0 auto 1rem;
}

/* ==================== SOLUCIONS ==================== */
.vm-answers {
    text-align: left;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: #e8f5e9;
    border-radius: var(--r);
    border: 2px solid var(--verde);
}

.vm-answers-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--verde);
    margin-bottom: .75rem;
}

.vm-a-item {
    display: flex;
    gap: .5rem;
    padding: .3rem 0;
    font-size: .95rem;
}

.vm-a-num { font-weight: 900; color: var(--verde); min-width: 1.5rem; }
.vm-a-val { font-weight: 700; }
.vm-a-val.veritat { color: var(--verde); }
.vm-a-val.mentida { color: #e53935; }

/* ==================== EXPLICACIONS ==================== */
.vm-explanations {
    text-align: left;
    margin-bottom: 1rem;
}

.vm-exp-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--verde);
    margin-bottom: .75rem;
}

.vm-exp-item {
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    background: var(--bg);
    border-radius: var(--r);
    border-left: 4px solid var(--verde);
}

.vm-exp-num { font-weight: 900; color: var(--verde); }
.vm-exp-answer { font-weight: 800; }
.vm-exp-answer.veritat { color: var(--verde); }
.vm-exp-answer.mentida { color: #e53935; }

.vm-exp-text {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: .25rem;
}

/* ==================== RESULTAT ==================== */
.vm-result {
    margin-bottom: .75rem;
}

.vm-result-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.vm-next-wrap {
    margin-bottom: .75rem;
}

.vm-actions {
    margin-top: .5rem;
}

.vm-link-btn {
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s;
}

.vm-link-btn:hover { color: var(--verde); }

/* ==================== FINAL ==================== */
.vm-final-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--verde);
    margin-bottom: .4rem;
}

.vm-final-msg {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.vm-final-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 500px) {
    .vm-panel { padding: 1.25rem .75rem; }
    .vm-q { flex-wrap: wrap; gap: .4rem; }
    .vm-q-btns { width: 100%; justify-content: flex-end; }
    .vm-final-actions { flex-direction: column; align-items: stretch; }
}
