/* الصفقة / El Safqa: the move as a vintage transfer ticket (from-crest, the year on a yellow stamp over an arrow that
   points in the reading direction, to-crest), then four names as paper cards. Frame: ../retro/rounds.css. */
.g-transfer .rd-q { font-size: 30px; }
.tf-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; gap: 6px; margin: 0 0 14px; padding: 16px 12px;
             background-color: var(--paper-clip); border: 2px solid var(--ink); box-shadow: var(--shadow-hard);
             background-image: radial-gradient(circle at 0 50%, var(--paper) 0 10px, transparent 11px), radial-gradient(circle at 100% 50%, var(--paper) 0 10px, transparent 11px); }
.tf-ticket::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--ink); pointer-events: none; }
.tf-club { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.tf-club small { font: 800 14px/1.4 var(--font-ui); color: var(--red-ink); }
.tf-club .rd-crest { width: 64px; height: 64px; }
.tf-club b { font: 900 17px/1.3 var(--font-ui); overflow-wrap: anywhere; }
.tf-mid { display: grid; justify-items: center; gap: 2px; color: var(--ink); }
.tf-year { display: inline-block; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 2px 8px 0; transform: rotate(-6deg);
           font-family: var(--font-display); font-size: 30px; line-height: 1.2; }
.tf-arrow { width: 56px; height: 28px; }
html[dir="rtl"] .tf-arrow { transform: scaleX(-1); }
.tf-opts .rd-opt { min-height: 60px; }
.tf-made { margin: 0; font: 700 17px/1.6 var(--font-ui); color: var(--ink); }
.tf-made b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; padding-top: 3px; }
html[lang="en"] .tf-made b { font-family: var(--font-ui); font-weight: 900; font-size: 22px; }
/* alignment pass 2026-11-12: the two clubs hang from the top of the ticket, so "From" / "To" and the two crests stay
   on one line when one name takes two lines (Haras El Hodoud | Petrojet); the year + arrow sit level with the crests */
.tf-club { align-self: start; }
.tf-mid { align-self: start; margin-top: calc(14px * 1.4 + 4px + var(--tf-crest, 64px) / 2 - 36px); }
@media (min-width: 1024px) { .tf-ticket { --tf-crest: 84px; } }
@media (min-width: 1024px) { .g-transfer .rd-q { font-size: 38px; } .tf-club .rd-crest { width: 84px; height: 84px; } .tf-made { font-size: 19px; } }

/* ---- UI sweep 2026-11-16 (P2-gamesB, C3): phones show the move AND all four names on one 360 x 640 screen ----
   The ticket becomes two short rows, "من [crest 36] Bayern Munich" over "راح [crest 36] Barcelona", with the year stamp and
   a down arrow on the side (the arrow points from the old club to the new one, so it never mirrors); padding 8; the
   options are 52 px minimum with the Arabic name a size smaller (Lalezar stays >= 20 px). */
@media (max-width: 1023px) {
  .g-transfer .rd-q { font-size: 24px; margin-bottom: 6px; }
  .tf-ticket { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a m" "b m"; row-gap: 4px; column-gap: 10px; padding: 8px 12px; margin-bottom: 10px; }
  .tf-ticket::before { inset: 4px; }
  .tf-ticket > .tf-club:first-child { grid-area: a; }
  .tf-ticket > .tf-club:last-child { grid-area: b; }
  .tf-ticket > .tf-mid { grid-area: m; align-self: center; margin-top: 0; padding-inline-end: 4px; }
  .tf-club { grid-template-columns: 2.6em 36px minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 8px; text-align: start; position: relative; }
  .tf-club small { justify-self: start; }
  .tf-club .rd-crest { width: 36px; height: 36px; }
  .tf-club b { font-size: 16px; line-height: 1.25; overflow-wrap: break-word; }
  .tf-year { font-size: 24px; padding: 1px 6px 0; }
  .tf-arrow, html[dir="rtl"] .tf-arrow { width: 40px; height: 20px; transform: rotate(90deg); margin-top: 8px; }
  .tf-opts { gap: 8px; }
  .tf-opts .rd-opt { min-height: 52px; padding-block: 4px; }
  .tf-opts .rd-opt.r-clip { padding-block: 6px; }
  html[lang="ar"] .tf-opts .rd-nm { font-size: 21px; line-height: 1.15; padding-top: 2px; }
  html[lang="ar"] .tf-opts .r-dn { line-height: 1.15; }
  html[lang="ar"] .tf-opts .r-dn__en { line-height: 1.2; }
  html[lang="ar"] .tf-opts .rd-opt:not(.r-clip) { padding-block: 2px; }
}
