/* الحلقة الناقصة / El Halqa El Na'sa: the career as a ticket strip (first club at the top, a rail on the inline-start
   side, the covered club a dashed yellow slot), then four crests in a 2 x 2 grid. Frame: ../retro/rounds.css.
   UI sweep C1 (2026-11-16): the question rides on the round line above the chain, chain rows 40 px, crest cards ~84 px
   with the crest beside the name, so both crest rows are on a 360x640 screen. */
.g-missing .rd-q { font-size: 32px; }
.ms-chain { list-style: none; margin: 0 0 8px; padding: 0 0 0; padding-inline-start: 18px; position: relative; display: grid; gap: 4px; counter-reset: st; }
.ms-chain::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 6px; width: 4px; background: var(--ink); }
.ms-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px;
           padding: 2px 10px; background: var(--paper-clip); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.ms-step::before { content: ""; position: absolute; inset-inline-start: -19px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
                   background: var(--paper-clip); border: 3px solid var(--ink); }
.ms-step .rd-crest { width: 30px; height: 30px; }
.ms-name { font: 800 16px/1.3 var(--font-ui); min-width: 0; overflow-wrap: break-word; }
.ms-yr { font: 700 15px/1.4 var(--font-ui); color: var(--ink-meta); unicode-bidi: isolate; white-space: nowrap; }
html[lang="ar"] .ms-yr { font-size: 16px; }
.ms-step.is-hole { background: var(--yellow); border-style: dashed; border-width: 3px; box-shadow: none; }
.ms-step.is-hole::before { background: var(--yellow); }
.ms-q { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--paper-clip); border: 2px solid var(--ink);
        font-family: var(--font-display); font-size: 24px; line-height: 1; padding-top: 6px; transform: rotate(-8deg); }
.ms-step.is-hole .ms-name { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; padding-top: 3px; }
.ms-step.is-found { padding: 2px 10px; outline-offset: -5px; }
.ms-step.is-shown { outline: 3px dashed var(--red); outline-offset: 2px; }
/* crest cards: the number in the top corner, the verdict tag / stamp centred on the top band, the crest beside the name */
.ms-opts { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 2px; padding-inline: 2px; }
.ms-opts .rd-opt { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 22px 6px 6px; min-height: 80px; justify-items: center; text-align: center; }
.ms-opts .rd-num { position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; font-size: 15px; }
.ms-opts .rd-tag, .ms-opts .rd-stamp { position: absolute; top: 4px;   /* inside the card: nothing past its edge */ inset-inline: 0; margin-inline: auto; width: fit-content; font-size: 14px; }
.ms-opts .rd-stamp { font-size: 20px; }
.ms-opts .rd-opt.r-clip::after { top: 4px; margin-top: 0; }   /* seal in the top corner, the number in the other, the tag between */
.ms-opt { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; max-width: 100%; }
.ms-opt .rd-crest { flex: 0 0 auto; width: 40px; height: 40px; }
.ms-optname { min-width: 0; font: 800 15px/1.3 var(--font-ui); overflow-wrap: break-word; text-align: start; }
.ms-was { display: flex; align-items: center; gap: 12px; }
.ms-was .rd-crest { width: 56px; height: 56px; }
.ms-was b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; padding-top: 3px; color: var(--ink); }
.ms-was bdi { font: 700 16px/1.4 var(--font-ui); }
html[lang="en"] .ms-was b { font-family: var(--font-ui); font-weight: 900; font-size: 22px; }
/* short phones: the star's two names on one line */
@media (max-width: 599px) and (max-height: 760px) {
  .g-missing .rd-q { font-size: 26px; }
  .g-missing .rd-q .r-dn { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
}
@media (min-width: 1024px) { .g-missing .rd-q { font-size: 40px; } .ms-step { min-height: 52px; } .ms-step .rd-crest { width: 34px; height: 34px; } .ms-name { font-size: 17px; } .ms-was .rd-crest { width: 120px; height: 120px; } .ms-was { flex-direction: column; text-align: center; } }

/* P3-fix2 (16): at 360x640 the 2nd crest row ended at 671 (4-club chain) / 715 (5 clubs). Phones: chain rows 34 px
   (crest 26), crest cards ~58 px with the number at the inline start and the crest beside the name; the top band for the
   verdict tag / stamp opens only once the question is answered (cards are disabled then) */
@media (max-width: 1023px) {
  .ms-chain { gap: 3px; margin-bottom: 6px; }
  .ms-chain::before { inset-block: 12px; }
  .ms-step { min-height: 34px; padding: 1px 10px; gap: 8px; grid-template-columns: 26px minmax(0, 1fr) auto; }
  .ms-step.is-found { padding: 1px 10px; }
  .ms-step .rd-crest, .ms-q { width: 26px; height: 26px; }
  .ms-q { font-size: 21px; padding-top: 5px; }
  .ms-step.is-hole .ms-name { font-size: 20px; line-height: 1.15; }
  .ms-opts .rd-opt { min-height: 58px; padding: 6px 6px 6px 6px; padding-inline-start: 32px; }
  .ms-opts .rd-opt:disabled { padding-top: 24px; }
  .ms-opts .rd-num { top: 50%; margin-top: -12px; }
  .ms-opts .rd-opt:disabled .rd-num { top: 4px; margin-top: 0; }
  .ms-opt { justify-content: flex-start; width: 100%; }
  .ms-opt .rd-crest { width: 34px; height: 34px; }
}
