/* ==========================================================================
   هيّا نكرّر — صفحة الإعداد
   The shared setup card in the platform palette.
   ========================================================================== */

.hr-why {
    background: #F5F3FF; border: 2px dashed #DDD6FE; border-radius: 16px;
    padding: 16px 18px; margin-bottom: 20px; color: #1F2937;
}
.hr-why h4 { font-size: 1rem; font-weight: 800; color: #3B0764; margin: 0 0 6px; }
.hr-why p { margin: 0 0 8px; font-size: .92rem; line-height: 1.8; }
.hr-why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .9rem; line-height: 1.7; }

.hr-alert-error { border-color: #FECACA; background: #FEF2F2; }
.hr-alert-error p { color: #B91C1C; font-weight: 700; margin: 0; }
.verse-count.hr-count-bad { color: #B91C1C; }

/* ---- the three worlds ---- */
.hr-worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hr-world { position: relative; margin: 0; cursor: pointer; }
.hr-world input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hr-world-card {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 6px 6px 10px; border-radius: 18px; text-align: center; background: #fff;
    border: 3px solid #EDE9FE; box-shadow: 0 4px 14px rgba(76, 29, 149, .08);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.hr-world-scene { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.hr-world-card b { font-size: .95rem; font-weight: 800; color: #3B0764; }
.hr-world-card small { font-size: .78rem; line-height: 1.5; color: #4B5563; padding: 0 4px; }
.hr-world:hover .hr-world-card { transform: translateY(-2px); border-color: #C4B5FD; }
.hr-world input:checked + .hr-world-card {
    border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(236, 72, 153, .22), 0 10px 24px rgba(139, 92, 246, .25);
}
.hr-world input:focus-visible + .hr-world-card { outline: 3px solid #F59E0B; outline-offset: 2px; }

/* ---- repetition chips ---- */
.hr-counts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hr-count { position: relative; margin: 0; cursor: pointer; }
.hr-count input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hr-count span {
    display: grid; place-items: center; min-height: 48px; border-radius: 14px;
    background: #fff; border: 2px solid #EDE9FE; color: #3B0764; font-size: 1.15rem; font-weight: 800;
    transition: background .15s, border-color .15s, color .15s;
}
.hr-count:hover span { border-color: #C4B5FD; }
.hr-count input:checked + span {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    box-shadow: 0 6px 14px rgba(139, 92, 246, .3);
}
.hr-count input:focus-visible + span { outline: 3px solid #F59E0B; outline-offset: 2px; }
#totalReps { color: #6D28D9; }

@media (max-width: 520px) {
    .hr-counts { grid-template-columns: repeat(3, 1fr); }
    .hr-worlds { grid-template-columns: 1fr; }
    .hr-world-card { display: grid; grid-template-columns: 46% 1fr; grid-template-rows: auto 1fr; column-gap: 10px; text-align: start; align-items: start; padding: 6px; }
    .hr-world-scene { grid-row: span 2; margin: 0; }
    .hr-world-card b { padding-top: 4px; }
}
