/* مين أكتر؟ / Meen Aktar?: retro-magazine skin on top of ../retro/kit.css (linked first).
   Two magazine player cards face off on one stat. The stat is a "numbers" family panel (yellow, ink icon, ink band);
   each card carries the player's last club on a team panel (navy, the club's own icon from assets/manifest.js).
   Correct pick = taped clipping (r-clip), wrong pick = red hatched card + stamp (r-bad + r-stamp), the other card
   that had more = a yellow "more" tag. Mobile first; >= 1024 px is a centred large spread. */

html.sheet-open, html.sheet-open body { overflow: hidden; }

.hl-cover { margin-top: 4px; }

/* ---- daily / practice switch: two print tabs ---- */
.hl-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hl-mode { min-height: 44px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper-clip); color: var(--ink);
           font: 800 15px/1.2 var(--font-ui); box-shadow: var(--shadow-hard); padding: 0 8px; }
.hl-mode[aria-pressed="true"] { background: var(--ink); color: var(--paper-clip); box-shadow: none; transform: translate(2px, 2px); }
.hl-mode:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---- issue strip ---- */
.hl-issue { margin-bottom: 10px; }
.hl-issue__mid { flex: 1 1 auto; min-width: 0; text-align: center; }
.hl-issue__head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hl-issue .r-issue__meta { margin-top: 1px; }

/* ---- progress row + streak sticker ---- */
.hl-hud { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-bottom: 8px; }
.hl-progress { display: flex; gap: 4px; flex: 1 1 auto; }
.hl-progress i { flex: 1 1 0; max-width: 26px; height: 22px; border: 2px dashed rgba(26,26,26,.38); background: var(--paper-2); position: relative; }
.hl-progress i.cur { border: 2px solid var(--ink); background: var(--paper-clip); box-shadow: 2px 2px 0 var(--ink); }
.hl-progress i.ok { border: 2px solid var(--ink); background: var(--lime); }
.hl-progress i.bad { border: 2px solid var(--red); background: var(--red); }
.hl-progress i.ok::after, .hl-marks i.ok::after { content: ""; position: absolute; inset: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23141821' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.hl-progress i.bad::after, .hl-marks i.bad::after { content: ""; position: absolute; inset: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23FBF7EC' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.hl-hud__run { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hl-today { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--ink-meta); }
.hl-today b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink); vertical-align: -3px; }
.hl-streak { width: 70px; flex: 0 0 auto; margin: -6px 0 -10px; align-content: center; gap: 1px; }
.hl-streak b { font-size: 28px; }
.hl-streak small { font-size: 10px; padding: 0 6px; }

/* ---- question: numbers panel + headline ---- */
.hl-question { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; margin: 4px 0 14px; }
.hl-statpanel .r-panel { aspect-ratio: 1; min-height: 0; box-shadow: var(--shadow-hard); }
.hl-statpanel .r-band { font-size: 11px; padding: 4px 3px 5px; }
.hl-statpanel .r-panel__ico { width: 54%; }
.hl-qt { font-size: 24px; line-height: 1.3; margin: 0; }
.hl-qt b { font-weight: 400; background: var(--yellow); padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-question .r-kicker { margin-bottom: 2px; font-size: 16px; line-height: 1.6; }

/* ---- the duel: two magazine player cards ---- */
.hl-duel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hl-card { position: relative; display: flex; flex-direction: column; min-height: 44px; padding: 6px; text-align: center; color: var(--ink);
           background: var(--paper-clip); border: 2px solid var(--ink); border-radius: 0; box-shadow: var(--shadow-hard); font: inherit; }
#cardA { }
#cardB { }
.hl-card:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.hl-card:disabled { cursor: default; opacity: 1; }
.hl-club { min-height: 0; aspect-ratio: 5 / 4; flex: 0 0 auto; }
.hl-club .r-panel__art { padding: 9% 12% 5%; }
.hl-club .r-panel__art img { max-height: none; height: 100%; max-width: 76%; }
.hl-club .r-panel__ico { width: 46%; }
.hl-club .r-band { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-card__body { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; padding: 8px 2px 2px; }
.hl-card__name { font-family: var(--font-display); font-size: 24px; line-height: 1.15; padding-top: 2px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.hl-card__meta { font-size: 13px; font-weight: 700; color: var(--ink-meta); line-height: 1.4; min-height: 1.4em; }
.hl-card__val { margin-top: auto; padding-top: 6px; width: 100%; display: flex; flex-direction: column; align-items: center; border-top: 1.5px solid var(--ink); }
.hl-n, .hl-q { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; padding-top: 6px; font-variant-numeric: tabular-nums; }
.hl-q { color: var(--red-ink); }
.hl-card__val small { font-size: 13px; font-weight: 800; color: var(--ink-meta); }
.hl-card:not(:disabled) .hl-card__val { border-top-style: dashed; }

/* revealed states */
.hl-card.r-clip { border-color: transparent; box-shadow: 2px 3px 0 rgba(26,26,26,.55); }
.hl-card.r-clip::after { z-index: 3; }
#cardA.r-clip::after { }   /* seal on the outer corner, clear of the VS badge */
.hl-card.r-bad { box-shadow: var(--shadow-hard); padding: 6px; border-color: var(--red); background-color: #F7D4CF;
                 background-image: repeating-linear-gradient(-45deg, rgba(215,38,46,.09) 0 6px, transparent 6px 13px); }
.hl-card.r-bad .hl-card__name { color: var(--red-ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.hl-card.r-bad .hl-club { opacity: .85; }
.hl-stamp { position: absolute; z-index: 3; top: 7%; inset-inline: 0; margin-inline: auto; width: fit-content; font-size: 26px; pointer-events: none; }
.hl-card.is-more { box-shadow: 4px 4px 0 var(--ink); }
.hl-more { position: absolute; z-index: 3; top: 6px; inset-inline-start: 6px; font-size: 13px; padding: 1px 8px; border: 2px solid var(--ink); transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--ink); }
.hl-card.is-less .hl-card__val { opacity: .8; }

.hl-vs { position: absolute; z-index: 4; inset-inline: 0; margin-inline: auto; top: 30%; translate: 0 -50%; display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 50%;
         background: var(--ink); color: var(--yellow); border: 3px solid var(--paper); font: 900 15px/1 var(--font-ui);
         box-shadow: 2px 2px 0 var(--ink); transform: rotate(-8deg); pointer-events: none; }
html[lang="ar"] .hl-vs { font-size: 16px; padding-bottom: 3px; }

/* ---- verdict + next ---- */
.hl-after { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; margin-top: 16px; }
.hl-after:has(#nextPairBtn.hidden) { margin-top: 0; }
.hl-verdict { font-family: var(--font-display); font-size: 34px; line-height: 1; padding-top: 6px; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg); }
.hl-verdict:empty { display: none; }
.hl-verdict.ok { color: var(--lime); }
.hl-verdict.bad { color: var(--red); }   /* outlined display type: bright red on the ink stroke */
#nextPairBtn { flex: 1 1 auto; max-width: 260px; margin-inline-start: auto; }
html.sheet-open .hl-after { position: static !important; }
/* phones: once a pair is revealed, the verdict + Next ride in a sticky bottom bar (primary action in the thumb zone, rule 17) */
@media (max-width: 1023px) {
  .hl-after:has(#nextPairBtn:not(.hidden)) { position: sticky; bottom: calc(8px + var(--ib)); z-index: 6; margin-inline: -4px; padding: 8px 10px;
    background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 -2px 0 rgba(26,26,26,.15), 3px 3px 0 var(--ink); }
  .hl-after #nextPairBtn { min-height: 56px; max-width: none; }
  .hl-after .hl-verdict { font-size: 30px; }
  .hl-card__val { scroll-margin-bottom: 100px; }
}

/* ---- result: the back page ---- */
.hl-result { margin-top: 4px; }
.hl-result > .r-result { margin-top: 0; }
/* daily: the run strip sits on top of the shared back page (retro/end.js) */
.hl-run { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
.hl-run .r-kicker { font-size: 16px; line-height: 1.6; margin: 0; }
.hl-run .hl-marks { margin-top: 8px; }
.hl-topractice { width: 100%; margin-top: 16px; }
.hl-result__label { margin: 0 0 2px; }
.hl-result__sub { font-weight: 700; color: var(--ink-meta); }
.hl-result__sub { font-size: 16px; }
.hl-result__sub b { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--ink); }
.hl-marks { display: flex; justify-content: center; gap: 4px; margin: 14px 0 0; }
.hl-marks:empty { display: none; }
.hl-marks i { position: relative; flex: 0 1 26px; aspect-ratio: 1; border: 2px solid var(--ink); background: var(--lime); }
.hl-marks i.bad { background: var(--red); border-color: var(--red); }
.hl-result .r-btn svg { font-size: 20px; }
.hl-best { margin: 12px 0 0; text-align: center; font-size: 16px; line-height: 1.6; font-weight: 700; color: var(--ink-meta); }
.hl-best b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink); }

/* ---- the comparison on the result: the question and both numbers; the one with more ticked, a wrong pick crossed ---- */
.hl-cmp { margin: 16px 0 0; text-align: start; }
.hl-cmp .r-kicker { font-size: 16px; line-height: 1.6; }
.hl-cmp__q { margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.6; }
.hl-cmp__q b { font-weight: 800; background: var(--yellow); padding: 0 4px; }
.hl-cmp__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hl-cmp__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; min-height: 56px;
               background: var(--paper-clip); border: 2px solid var(--ink); }
.hl-cmp__row.is-win { outline: 3px solid var(--lime); outline-offset: -6px; }
.hl-cmp__row.is-wrong { border-color: var(--red); background-color: #F7D4CF;
                        background-image: repeating-linear-gradient(-45deg, rgba(215,38,46,.09) 0 6px, transparent 6px 13px); }
.hl-cmp__mark { width: 26px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper-2); }
.hl-cmp__row.is-win .hl-cmp__mark { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23141821' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E") center / 70% no-repeat; }
.hl-cmp__row.is-wrong .hl-cmp__mark { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23FBF7EC' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E") center / 62% no-repeat; border-color: var(--red); }
.hl-cmp__who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.hl-cmp__who b { font-size: 16px; font-weight: 800; line-height: 1.4; }
.hl-cmp__row.is-wrong .hl-cmp__who b { color: var(--red-ink); }
.hl-cmp__who small { font-size: 13px; font-weight: 800; color: var(--ink-meta); }
.hl-cmp__who small.r-tag { color: var(--ink); }
.hl-cmp__n { display: flex; align-items: baseline; gap: 4px; }
.hl-cmp__n b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; padding-top: 4px; font-variant-numeric: tabular-nums; }
.hl-cmp__n small { font-size: 13px; font-weight: 800; color: var(--ink-meta); }

/* ---- how to play sheet ---- */
.hl-help { position: fixed; inset: 0; z-index: 40; }
.hl-sheet__title { font-size: 30px; margin: 4px 0 2px; }
.hl-tagline { font-weight: 800; font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.hl-howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hl-howto li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-weight: 700; font-size: 16px; line-height: 1.6; }
.hl-howto__n { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--paper-clip); border: 2px solid var(--ink);
               font: 900 16px/1 var(--font-ui); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-6deg); }
.hl-fine { font-size: 16px; line-height: 1.6; font-weight: 700; color: var(--ink-soft); margin: 12px 0 14px; }
.hl-play { width: 100%; }

/* ---- small phones ---- */
@media (max-width: 359px) {
  .hl-question { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
  .hl-duel { gap: 16px; }
  .hl-n, .hl-q { font-size: 38px; }
  .hl-stamp { font-size: 24px; }
  .hl-progress { gap: 3px; }
  .hl-progress i { height: 18px; border-style: solid; border-width: 1.5px; }
  .hl-club .r-band { font-size: 11px; }
  .hl-vs { width: 40px; font-size: 14px; }
  .hl-mode { font-size: 14px; }
  .hl-verdict { font-size: 30px; }
}

/* ---- desktop: a centred large card, the duel as a two-page spread ---- */
@media (min-width: 1024px) {
  .hl-cover { max-width: 900px; margin: 4px auto 0; }
  .hl .r-cover__rule { padding: 18px 28px 22px; }
  .hl-top { display: grid; }
  .hl-modes { max-width: 420px; margin: 0 auto 14px; }
  .hl-question { grid-template-columns: 104px minmax(0, 1fr); gap: 22px; margin: 0 auto 18px; max-width: 760px; }
  .hl-statpanel .r-band { font-size: 14px; }
  .hl-qt { font-size: 32px; }
  .hl-duel { gap: 72px; max-width: 760px; margin: 0 auto; }
  .hl-card { padding: 10px; }
  .hl-club { aspect-ratio: 2 / 1; }
  .hl-card__name { font-size: 28px; }
  .hl-card__meta { font-size: 14px; }
  .hl-club .r-band { font-size: 15px; }
  .hl-n, .hl-q { font-size: 56px; }
  .hl-card__val small { font-size: 14px; }
  .hl-vs { width: 62px; font-size: 20px; top: 50%; }
  html[lang="ar"] .hl-vs { font-size: 22px; }
  .hl-stamp { font-size: 38px; top: 12%; }
  .hl-after { max-width: 760px; margin-inline: auto; }
  .hl-hud { max-width: 760px; margin-inline: auto; }
  .hl-progress i { max-width: 40px; height: 26px; }
  .hl-streak { width: 80px; }
  .hl-streak b { font-size: 34px; }
  .hl-own { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 26px; text-align: center; }
  .hl-daily { max-width: 760px; margin-inline: auto; padding: 22px 26px; }
}

/* compact (owner 2026-11-11): the question and both cards on one screen. Phones: slimmer tabs, hud and stat panel, shorter
   club strips on the cards, smaller numbers; desktop: a shorter club strip so the cards end above the fold */
.hl-club .r-band { white-space: normal; line-height: 1.2; flex: 0 0 auto; overflow: visible; }
@media (max-width: 1023px) {
  .hl-modes { gap: 8px; margin-bottom: 8px; }
  .hl-issue { margin-bottom: 6px; }
  .hl-hud { min-height: 26px; margin-bottom: 4px; }
  .hl-progress i { height: 18px; }
  .hl-hud__run { gap: 2px; }
  .hl-streak { width: 58px; margin: -4px 0 -6px; }
  .hl-streak b { font-size: 24px; }
  .hl-question { grid-template-columns: 66px minmax(0, 1fr); gap: 10px; margin: 2px 0 10px; }
  .hl-statpanel .r-band { font-size: 11px; padding: 3px 2px 4px; }
  .hl-duel { gap: 14px; }
  .hl-card { padding: 5px; }
  .hl-club { aspect-ratio: 2 / 1; }
  .hl-club .r-panel__art { padding: 5% 12% 3%; }
  .hl-card__body { padding: 5px 2px 1px; }
  .hl-card__name { min-height: 0; }
  .hl-card__val { padding-top: 3px; }
  .hl-n, .hl-q { font-size: 36px; padding-top: 4px; }
  .hl-vs { top: 22%; width: 42px; }
  .hl-after { margin-top: 10px; }
  .hl-after #nextPairBtn { min-height: 48px; }
}
@media (max-width: 359px) {
  .hl-question { grid-template-columns: 58px minmax(0, 1fr); }
  .hl-n, .hl-q { font-size: 32px; }
}
/* P3-fix2: the kicker "tap the one with more" now stays on short phones too: the coach mark is skipped there (no room
   under the cards), so this line is the instruction */
@media (min-width: 1024px) {
  .hl .r-cover__rule { padding: 12px 24px 16px; }
  .hl-modes { margin-bottom: 10px; }
  .hl-question { margin-bottom: 12px; }
  .hl-club { aspect-ratio: 3 / 1; }
}
/* narrow phones in English: long Latin names in Cairo 800 wrap on word boundaries (Lalezar broke them mid-word) */
@media (max-width: 420px) { html[lang="en"] .hl-card__name { font: 800 19px/1.25 var(--font-ui); overflow-wrap: normal; } }
@media (max-width: 359px) { .hl-club { aspect-ratio: 5 / 2; } .hl-modes .hl-mode { min-height: 44px; } }
/* alignment pass 2026-11-12: "ورا بعض" under the streak number reached the rim of the 58 px disc: a little wider disc,
   the word without side padding */
@media (max-width: 1023px) { .hl-streak { width: 66px; margin: -8px 0 -10px; } .hl-streak small { padding: 0 2px; } }
/* alignment pass 2026-11-12: the RIGHT / WRONG stamp sat on the club band and hid the club's name ("...chester United"):
   it now stays on the crest art at the top of the card */
.hl-stamp { top: 8px; font-size: 19px; }
@media (min-width: 1024px) { .hl-stamp { top: 10px; font-size: 30px; } }
/* very short phones (320x568): both cards end above the fold, also with the English line under an Arabic name */
@media (max-height: 600px) and (max-width: 1023px) {
  .hl-question { margin-bottom: 6px; }
  .hl-club { aspect-ratio: 3 / 1; }
  html[lang="ar"] .hl-card__name { font-size: 20px; }
  html[lang="en"] .hl-card__name { font-size: 17px; }
  .hl-n, .hl-q { font-size: 28px; padding-top: 2px; }
}

/* ---- UI sweep 2026-11-16 (P2-gamesB) ----
   C9: the run line sits under the end screen's verdict + ■ □ shape (end.js), quiet: no second row of marks, no rule */
.r-end .hl-run { padding: 0; margin: 2px 0 10px; border: 0; text-align: center; }
.r-end .hl-run .r-kicker { font-size: 14px; line-height: 1.6; color: var(--ink-meta); }
.r-end .hl-run .hl-marks { display: none; }
.hl-today.hidden, .hl-best.hidden { display: none; }
/* E1 type floor: secondary labels 14 px, sticker / band labels 12 px bold, no Lalezar under 20 px */
.hl-card__meta, .hl-card__val small, .hl-more, .hl-cmp__who small, .hl-cmp__n small { font-size: 14px; }
.hl-streak small { font-size: 12px; font-weight: 800; }
.hl-statpanel .r-band, .hl-club .r-band { font-size: 12px; font-weight: 800; }
.hl-stamp { font-size: 20px; }
@media (max-width: 359px) { .hl-club .r-band { font-size: 12px; } }
/* P3 cold CLS: until game.js has written the first pair the stage keeps its final phone height unpainted (the cards
   moved 94-126 px down when the question filled: CLS 0.10-0.12 on slow 4G); failsafe: shown after 6 s (the data timeout) */
#stage:has(#qt:empty):has(#cardA:empty) { visibility: hidden; animation: r-gate-open 0s 6s forwards; }
@media (max-width: 1023px) { #stage:has(#qt:empty):has(#cardA:empty) { min-height: 306px; } }
/* P3-fix2 (19): Arabic panel bands up from 12 px: the club band 14 px (one line, or two for the longest club names); the
   stat band 13 px bold, because in the 66 px stat panel two-word labels already wrap at 12 px */
html[lang="ar"] .hl-club .r-band { font-size: 14px; line-height: 1.25; }
html[lang="ar"] .hl-statpanel .r-band { font-size: 13px; line-height: 1.25; }
