/* سنة كام؟ / Sana Kam?: a title poster (the trophy panel on the red sunburst with the club crest pinned on it, and the
   three players as a team sheet) above a dial: the year in big outlined type between -5 / -1 / +1 / +5 steppers, a
   slider for big jumps and the Lock button. Digits never mirror: the dial is a left-to-right number line in both
   languages. Frame: ../retro/rounds.css. */
.g-year .rd-q { font-size: 28px; }
.yr-poster { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0 0 14px; }
.yr-art { position: relative; }
.yr-art .r-panel { height: 128px; box-shadow: var(--shadow-hard); }
.yr-art .r-band { font-size: 14px; }
.yr-pin { position: absolute; inset-inline-end: 6px; bottom: 26px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--paper-clip);
          border: 2px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-8deg); }
.yr-pin .rd-crest { width: 40px; height: 40px; }
.yr-art.is-join { display: grid; place-items: center; height: 128px; background: var(--fam-team); border: 2px solid var(--ink); box-shadow: var(--shadow-hard); position: relative; overflow: hidden; }
.yr-art.is-join::before { content: ""; position: absolute; inset: 0; background-image: var(--tex-halftone); background-size: 5px 5px; }
.yr-art.is-join .rd-crest { position: relative; width: 92px; height: 92px; }
.yr-team ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.yr-team li { font: 800 17px/1.35 var(--font-ui); padding: 4px 10px; background: var(--paper-clip); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.yr-team li:nth-child(2) { }
.yr-team li:nth-child(3) { }

.yr-dial { display: grid; gap: 8px; padding: 12px 10px 10px; background: var(--paper-clip); border: 2px solid var(--ink); box-shadow: var(--shadow-hard); }
.yr-row { display: grid; grid-template-columns: 46px 46px minmax(0, 1fr) 46px 46px; gap: 6px; align-items: center; }
.yr-step { min-height: 52px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); font: 900 18px/1 var(--font-ui); color: var(--ink); padding: 0; }
.yr-step:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.yr-step:disabled { opacity: .35; }
.yr-val { display: grid; justify-items: center; text-align: center; line-height: 1; }
.yr-val small { font: 800 14px/1.4 var(--font-ui); color: var(--ink-meta); }
.yr-val bdi { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; padding-top: 6px; color: var(--yellow);
              -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.yr-range { width: 100%; height: 44px; margin: 0; accent-color: var(--red); cursor: pointer; }
.yr-ends { display: flex; justify-content: space-between; font: 700 14px/1.4 var(--font-ui); color: var(--ink-meta); margin-top: -8px; }
.yr-lock { width: 100%; min-height: 56px; font-size: 20px; }
.yr-dial.is-done .yr-val bdi { color: var(--paper-2); }
.yr-cmp { display: flex; gap: 14px; justify-content: center; margin-top: 4px; }
.yr-cmp > div { display: grid; justify-items: center; min-width: 120px; padding: 6px 12px; border: 2px solid var(--ink); background: var(--paper); }
.yr-cmp small { font: 800 14px/1.4 var(--font-ui); }
.yr-cmp bdi { font-family: var(--font-display); font-size: 30px; line-height: 1.2; padding-top: 3px; }
.yr-cmp__a { background: var(--paper-clip) !important; }
.yr-cmp__y.r-bad bdi { color: var(--red-ink); text-decoration: line-through; text-decoration-thickness: 3px; }
.yr-say { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.yr-say .r-kicker { flex: 1 0 100%; }
.yr-say b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.2; color: var(--ink); }
.yr-off { font: 800 16px/1.5 var(--font-ui); color: var(--ink-meta); }
@media (max-width: 359px) { .yr-poster { grid-template-columns: 104px minmax(0, 1fr); } .yr-art .r-panel, .yr-art.is-join { height: 108px; } .yr-row { grid-template-columns: 46px 46px minmax(0, 1fr) 46px 46px; } .yr-step { min-height: 46px; } }
@media (min-width: 1024px) { .g-year .rd-q { font-size: 36px; } .yr-poster { grid-template-columns: 180px minmax(0, 1fr); } .yr-art .r-panel, .yr-art.is-join { height: 180px; } .yr-val bdi { font-size: 48px; } .yr-row { grid-template-columns: 56px 56px minmax(0, 1fr) 56px 56px; } }

/* ---- UI sweep 2026-11-16 (P2-gamesB, C5) ----
   the crest pin hangs off the panel's top corner, clear of the competition's name on the band */
.yr-pin { top: -10px; bottom: auto; inset-inline-end: -10px; }
/* narrow phones: the dialled value on its own full-width row, the four steppers (−5 −1 +1 +5) in one row under it */
@media (max-width: 419px) {
  .yr-row, .yr-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .yr-row > .yr-val { grid-column: 1 / -1; grid-row: 1; }
  .yr-step { min-height: 48px; }
  .yr-val bdi { font-size: 40px; }
}
/* phones: Lock is pinned to the bottom like Next (.rd-next), in thumb reach; the page keeps room for it */
@media (max-width: 1023px) {
  .yr-lock { position: fixed; z-index: 30; inset-inline: max(14px, var(--il)) max(14px, var(--ir)); inset-block-end: calc(12px + var(--ib)); width: auto; margin: 0; }
  body:has(.yr-lock) .r-poster { padding-block-end: calc(96px + var(--ib)); }
  html.sheet-open .yr-lock { visibility: hidden; }
}
/* after the reveal the dial (steppers, value, slider, ends) steps aside: only "the answer | your pick" stays */
.yr-dial.is-done .yr-row, .yr-dial.is-done .yr-range, .yr-dial.is-done .yr-ends { display: none; }
.yr-dial.is-done { padding-block: 10px; }
/* phones (C5 follow-up): with Lock pinned, the poster and the dial are a little tighter so the value and the four
   steppers sit above the pinned button at 360 x 640 (the slider may need a short scroll) */
@media (max-width: 1023px) {
  .g-year .rd-q { font-size: 24px; margin-bottom: 6px; }
  .yr-poster { margin-bottom: 8px; gap: 10px; }
  .yr-team ul { margin-top: 0; gap: 5px; }
  .yr-team li { padding: 2px 8px; font-size: 16px; line-height: 1.25; }
  .yr-dial { padding: 8px 10px; gap: 6px; }
  .yr-val { grid-auto-flow: column; align-items: baseline; justify-content: center; column-gap: 10px; }
  .yr-val bdi { font-size: 36px; padding-top: 4px; }
}
@media (max-width: 1023px) and (max-height: 700px) {
  .yr-team > .r-kicker { display: none; }        /* short phones: the question line already says they won it together */
}
