.screen { display: none; }
.screen.is-active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero { text-align: center; padding: 18px 6px 8px; }
.hero h1 { font-size: 26px; font-weight: 800; color: var(--green-800); }
.hero h1::after { content: ''; display: block; width: 64px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px; }
.lead { font-size: 17px; color: var(--ink-2); }
.h2 { font-size: 22px; color: var(--green-800); font-weight: 800; }

.rules { list-style: none; padding: 0; margin: 0 0 14px; }
.rules li { position: relative; padding: 8px 34px 8px 0; border-bottom: 1px dashed var(--line); font-size: 16.5px; }
.rules li:last-child { border-bottom: 0; }
.rules li::before {
  content: ''; position: absolute; right: 4px; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135c46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.count-note { text-align: center; font-weight: 700; color: var(--gold-600); background: var(--gold-100); border-radius: 12px; padding: 10px; margin: 6px 0 16px; }

.banner { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
form#info-form { position: relative; }

.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.actions .btn--primary, .actions .btn--gold { flex: 1; }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 5; background: linear-gradient(to top, var(--ivory) 70%, rgba(250,246,236,0));
  padding: 14px 0 calc(10px + env(safe-area-inset-bottom));
}

/* التقدم */
.progress { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.progress__top { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; color: var(--green-800); gap: 8px; flex-wrap: wrap; }
.progress__bar { height: 10px; border-radius: 999px; background: var(--green-100); overflow: hidden; margin: 8px 0 10px; }
.progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--green-600)); border-radius: 999px; transition: width .3s; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.steps li { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.steps li.done { background: var(--green-600); }
.steps li.current { background: var(--gold); }

/* رأس المؤشر */
.ind-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.ind-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-800); color: var(--gold-100); display: grid; place-items: center; flex: none; }
.ind-icon svg { width: 30px; height: 30px; }
.ind-head small { display: block; color: var(--gold-600); font-weight: 700; font-size: 13.5px; }
.ind-head h2 { font-size: 20px; color: var(--green-800); font-weight: 800; margin: 0; }

/* بطاقة العبارة */
.q-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); transition: border-color .2s; }
.q-card.answered { border-color: var(--green-100); }
.q-card.missing { border-color: var(--danger); }
.q-text { display: flex; gap: 10px; font-size: 17.5px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.q-num { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 58px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ivory);
  font-weight: 700; font-size: 15px; text-align: center; transition: all .15s; color: var(--ink);
}
.choice span::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9c1ad; background: #fff; transition: all .15s;
}
.choice input:checked + span { background: var(--green-700); color: #fff; border-color: var(--green-700); box-shadow: 0 3px 10px rgba(19,92,70,.25); }
.choice input:checked + span::before {
  border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135c46' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center/14px no-repeat;
}
.choice.na input:checked + span { background: #6f7773; border-color: #6f7773; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice:hover span { border-color: var(--green-600); }

@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; gap: 7px; }
  .choice span { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 50px; padding: 8px 14px; font-size: 16.5px; }
  .hero h1 { font-size: 22px; }
  .q-text { font-size: 17px; }
}

/* المراجعة */
.review-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 14px; }
.review-meta div { background: var(--green-50); border-radius: 10px; padding: 8px 12px; }
.review-meta dt { font-size: 13px; color: var(--ink-2); }
.review-meta dd { margin: 0; font-weight: 800; color: var(--green-800); }
.review-group { margin-bottom: 10px; }
.review-group h3 { font-size: 15.5px; color: var(--green-800); background: var(--ivory-2); border-radius: 10px; padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.review-row:last-child { border-bottom: 0; }
.review-row .q-num { width: 28px; height: 28px; font-size: 13px; }
.review-row p { flex: 1; margin: 0; }
.review-row .ans { font-weight: 800; color: var(--green-700); white-space: nowrap; }
.review-row .ans.na { color: #6f7773; }
.review-row .ans.missing { color: var(--danger); }

.big-icon { width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; }
.big-icon svg { width: 54px; height: 54px; }
.big-icon.ok { background: var(--lvl-good-bg); color: var(--lvl-good); }
.big-icon.muted { background: var(--lvl-none-bg); color: #5f6663; }
