/* 7arif accounts: the sign-in sheet (account/auth.js adds this file to the page by itself) and the account page.
   The sheet opens on any page, so it reads the shared tokens of style.css / games/retro/kit.css and carries its own
   fallbacks. The look is the sweep's calm one (R7, .sweep/visual/R7/RESTYLE.md): the sheet is the calm blue page rising
   from the bottom (like the search sheet), light type on the blue, egg-white fields / cards / rows with a 2 px ink rim,
   rounded, a small hard drop (0 3px 0 ink); navy-deep is the one primary action; yellow only for the numbered stickers;
   red only for errors. Lalezar titles, Cairo text. Logical properties only (Arabic RTL first). Only translate and
   opacity animate. */
.ha-root, .ac {
  --ha-paper: var(--paper, #EFE6D2); --ha-paper-2: var(--paper-2, #E6DAC0); --ha-clip: var(--paper-clip, #FBF7EC);
  --ha-ink: var(--ink, #1A1A1A); --ha-soft: var(--ink-soft, #6B5D43); --ha-meta: var(--ink-meta, #4a3f2c);
  --ha-wrong: var(--c-wrong, #AE1C23); --ha-yellow: var(--yellow, #F4D21F); --ha-lime: var(--lime, #7BC43A);
  --ha-page: var(--c-page, #1D2A73); --ha-tex: var(--page-tex, none);
  --ha-on: var(--c-on, #FBF7EC); --ha-on-soft: var(--c-on-soft, rgba(251, 247, 236, .78)); --ha-line: var(--c-line, rgba(251, 247, 236, .3));
  --ha-panel: var(--c-soft, rgba(251, 247, 236, .08)); --ha-panel-hi: var(--c-soft-hi, rgba(251, 247, 236, .14));
  --ha-action: var(--c-action, #0D1238); --ha-action-ink: var(--c-action-ink, #FBF7EC);
  --ha-rad: var(--rad, 14px); --ha-drop: 0 3px 0 var(--ha-ink);
  --ha-display: var(--font-display, "Lalezar", "Cairo", sans-serif);
  --ha-ui: var(--font-ui, "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif);
}
html.ha-open, html.ha-open body { overflow: hidden; overscroll-behavior: none; }

/* ---- the sheet: the calm blue page ---- */
.ha-root { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--ha-ui); text-align: start; }
.ha-root *, .ha-root *::before, .ha-root *::after { box-sizing: border-box; }
.ha-back { position: absolute; inset: 0; background: rgba(13, 18, 56, .66); animation: ha-fade 160ms ease-out both; }
.ha-panel { position: relative; width: min(520px, 100%); margin-inline: auto; max-height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
            background: var(--ha-tex), var(--ha-page); color: var(--ha-on);
            border-top: 2px solid var(--ha-ink); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
            padding-block: 22px calc(14px + env(safe-area-inset-bottom, 0px));
            padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
            animation: ha-in 200ms cubic-bezier(.2, .8, .2, 1) both; }
.ha-panel:focus { outline: none; }
@keyframes ha-in { from { translate: 0 32px; opacity: .4; } to { translate: 0 0; opacity: 1; } }
@keyframes ha-fade { from { opacity: 0; } to { opacity: 1; } }
.ha-body { display: grid; gap: 12px; }
.ha-body > * { margin: 0; min-width: 0; }

/* close: the cream chip of the search sheet */
.ha-x { position: absolute; inset-block-start: 16px; inset-inline-end: max(14px, env(safe-area-inset-right, 0px)); z-index: 1; width: 44px; height: 44px; padding: 0;
        border: 2px solid var(--ha-ink); border-radius: 12px; background: var(--ha-clip); color: var(--ha-ink); box-shadow: 0 2px 0 var(--ha-ink);
        display: grid; place-items: center; cursor: pointer; touch-action: manipulation; transition: translate 60ms; }
.ha-x:active { translate: 0 2px; box-shadow: none; }
.ha-x span { position: relative; display: block; width: 18px; height: 18px; }
.ha-x span::before, .ha-x span::after { content: ""; position: absolute; inset-block-start: 7.5px; inset-inline-start: -1px; width: 20px; height: 3px; border-radius: 2px; background: currentColor; rotate: 45deg; }
.ha-x span::after { rotate: -45deg; }

.ha-title { font: 400 30px/1.3 var(--ha-display); color: var(--ha-on); padding-block: 6px 8px; padding-inline-end: 58px; min-height: 56px;
            border-bottom: 1px solid var(--ha-line); display: flex; align-items: flex-end; overflow-wrap: anywhere; }
.ha-root[lang="en"] .ha-title { font: 900 23px/1.3 var(--ha-ui); }
.ha-sub { font: 900 18px/1.4 var(--ha-ui); color: var(--ha-on); }
.ha-text { font: 700 15px/1.7 var(--ha-ui); color: var(--ha-on); }
.ha-off { padding: 10px 12px; border: 1.5px dashed var(--ha-line); border-radius: var(--ha-rad); background: var(--ha-panel); font-weight: 800; }

/* what the account gives: three numbered lines, hairlines between them */
.ha-gives { list-style: none; padding: 0; margin-block-start: -4px !important; }
.ha-gives li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--ha-line); font: 800 16px/1.45 var(--ha-ui); color: var(--ha-on); }
.ha-gives li:last-child { border-bottom: 0; }
.ha-gives b { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; background: var(--ha-yellow); color: var(--ha-ink); border: 2px solid var(--ha-ink); border-radius: 8px;
              font: 400 19px/1 var(--ha-display); padding-top: 3px; rotate: -4deg; }
.ha-root[lang="en"] .ha-gives b { font: 900 15px/1 var(--ha-ui); padding-top: 0; }
.ha-gives.tight li { min-height: 34px; padding: 3px 0; font-size: 14px; }
.ha-gives.tight b { width: 22px; height: 22px; font-size: 15px; border-width: 1.5px; border-radius: 6px; }
.ha-root[lang="en"] .ha-gives.tight b { font-size: 12px; }
@media (max-width: 379px) { .ha-title { font-size: 26px; } .ha-root[lang="en"] .ha-title { font-size: 21px; } }

/* buttons: navy-deep primary, egg-white secondary; ink rim, rounded, the small hard drop */
.ha-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 6px 16px; border: 2px solid var(--ha-ink); border-radius: var(--ha-rad);
          background: var(--ha-action); color: var(--ha-action-ink); font: 800 17px/1.3 var(--ha-ui); text-align: center; text-decoration: none; box-shadow: var(--ha-drop);
          cursor: pointer; touch-action: manipulation; transition: translate 60ms; -webkit-appearance: none; appearance: none; }
.ha-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--ha-ink); }
.ha-btn.paper, .ha-btn.ha-google { background: var(--ha-clip); color: var(--ha-ink); }
.ha-btn:disabled { opacity: .55; cursor: default; translate: none; box-shadow: var(--ha-drop); }
.ha-btn:focus-visible, .ha-x:focus-visible, .ha-later:focus-visible, .ha-alt:focus-visible, .ha-fine a:focus-visible { outline: 3px solid var(--ha-yellow); outline-offset: 2px; }
.ha-google { font-size: 18px; min-height: 58px; }
.ha-g { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; background: #fff; border: 1.5px solid var(--ha-ink); border-radius: 8px; }
.ha-g svg { width: 18px; height: 18px; display: block; }
/* Google's own button (account/auth.js, "GOOGLE'S OWN BUTTON"). Google draws it in a frame of its own: 40px high, at
   most 400px wide, its colours and words are Google's. The slot is as high as the site's button, so nothing below
   moves while Google's script loads, when its button arrives, or when the site's button takes the slot instead. */
.ha-gis { display: grid; place-items: center; min-height: 58px; padding-block-end: 4px; }
.ha-gis > * { grid-area: 1 / 1; }
.ha-gis.is-off { display: block; padding: 0; }
.ha-gis-skel { width: min(400px, 100%); height: 40px; border-radius: 4px; background: var(--ha-on); opacity: .14; animation: ha-wait 900ms ease-in-out infinite alternate; }
@keyframes ha-wait { from { opacity: .08; } to { opacity: .2; } }
/* hidden until Google's frame has drawn: its quick stand-in must not be pressed on a site Google does not know yet */
.ha-gis-btn { min-height: 40px; max-width: 100%; opacity: 0; pointer-events: none; color-scheme: light; border-radius: 4px; }
.ha-gis-btn.on { opacity: 1; pointer-events: auto; box-shadow: var(--ha-drop); }
.ha-gis-alt:empty { display: none; }
.ha-gis-alt { display: grid; margin-block: -6px -8px !important; }
.ha-alt { justify-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ha-on); font: 800 14px/1.3 var(--ha-ui);
          text-decoration: underline; text-underline-offset: 4px; cursor: pointer; touch-action: manipulation; }
.ha-later { justify-self: center; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--ha-on-soft); font: 800 15px/1 var(--ha-ui);
            text-decoration: underline; text-underline-offset: 4px; cursor: pointer; touch-action: manipulation; }

.ha-fine { font: 700 13px/1.6 var(--ha-ui); color: var(--ha-on-soft); text-align: center; }
.ha-fine + .ha-fine { margin-block-start: -8px; }
.ha-fine a { color: var(--ha-on); font-weight: 900; text-underline-offset: 3px; }
/* errors: red only here; red type would not read on the blue, so a red pill with light type (as the search sheet) */
.ha-err { font: 800 14px/1.5 var(--ha-ui); color: var(--ha-on); background: var(--ha-wrong); border-radius: 8px; padding: 2px 8px; justify-self: start; }
.ha-err:empty { display: none; }
.ha-body > .ha-err { justify-self: stretch; padding: 8px 12px; border: 2px solid var(--ha-ink); border-radius: var(--ha-rad); }

/* the first-time profile step */
.ha-form { display: grid; gap: 4px; }
.ha-form > * { margin: 0; }
.ha-label { font: 900 15px/1.5 var(--ha-ui); color: var(--ha-on); margin-block-start: 8px !important; }
.ha-label:first-child { margin-block-start: 0 !important; }
.ha-input { width: 100%; min-height: 52px; padding: 0 12px; margin: 0; border: 2px solid var(--ha-ink); border-radius: 12px; background: var(--ha-clip); color: var(--ha-ink);
            font: 800 18px var(--ha-ui); box-shadow: none; -webkit-appearance: none; appearance: none; }
.ha-input::placeholder { color: var(--ha-soft); opacity: 1; font-weight: 700; }
.ha-input:focus, .ha-input:focus-visible { outline: 3px solid var(--ha-yellow); outline-offset: 2px; }
.ha-input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--ha-wrong); }
.ha-input:disabled { opacity: .6; }
.ha-year { max-width: 180px; text-align: center; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.ha-hint { font: 700 13px/1.5 var(--ha-ui); color: var(--ha-on-soft); margin-block-start: 4px !important; }
.ha-form .ha-btn { margin-block-start: 14px; }

/* the way out of an in-app browser */
.ha-exit { display: grid; gap: 12px; }
.ha-exit > * { margin: 0; }
.ha-step { padding: 10px 12px; border: 2px solid var(--ha-ink); border-radius: var(--ha-rad); background: var(--ha-clip); color: var(--ha-ink); box-shadow: var(--ha-drop); font: 900 16px/1.6 var(--ha-ui); }
.ha-art { justify-self: center; width: min(280px, 100%); }
.ha-art svg { display: block; width: 100%; height: auto; }
.ha-copy-note { text-align: center; font-size: 14px; color: var(--ha-on-soft); }
.ha-copy-src { position: fixed; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; opacity: 0; }

/* local development only */
.ha-dev { display: grid; gap: 8px; padding: 12px; border: 1.5px dashed var(--ha-line); border-radius: var(--ha-rad); background: var(--ha-panel); }
.ha-dev .ha-label { margin: 0 !important; justify-self: start; padding: 0 8px; border-radius: 6px; background: var(--ha-yellow); color: var(--ha-ink); font-size: 13px; }
.ha-row { display: flex; gap: 10px; align-items: stretch; }
.ha-row .ha-input { flex: 1 1 0; min-width: 0; }
.ha-row .ha-btn { flex: 0 0 auto; width: auto; min-height: 52px; }

@media (min-width: 700px) and (min-height: 620px) {
  .ha-root { justify-content: flex-start; padding-block-start: 9vh; }
  .ha-panel { padding: 28px 26px 22px; border: 2px solid var(--ha-ink); border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); max-height: calc(100% - 4vh); }
  .ha-x { inset-inline-end: 22px; inset-block-start: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-panel { animation: ha-fade 120ms ease-out both; }
  .ha-back { animation: none; }
  .ha-btn, .ha-x { transition: none; }
  .ha-gis-skel { animation: none; }
}

/* ---- the fan picker (account/fan.js): the sign-up's "who do you support?" step and the account page ----
   It always sits on the blue: an egg-white card on top that echoes the picks, two tabs (country, club), a search, and a
   grid of egg-white tiles. Picking is the game moment: the tile pops and gets a yellow ring and a navy check, the flag
   or crest is stamped onto the card. Flags: round SVGs from assets/flags (circle-flags, MIT). Only scale, rotate,
   translate and opacity animate; none of it with reduced motion. */
.hf { display: grid; gap: 10px; min-width: 0; font-family: var(--ha-ui); color: var(--ha-on); }
.hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf > * { margin: 0; min-width: 0; }
.hf-flag { display: block; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ha-ink); background: var(--ha-paper-2); }
.hf-crest { display: block; width: 44px; height: 44px; object-fit: contain; }

/* the card: two sticker slots and the line they make */
.hf-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ha-clip); color: var(--ha-ink); border: 2px solid var(--ha-ink); border-radius: var(--ha-rad); box-shadow: var(--ha-drop); }
.hf-stickers { flex: 0 0 auto; display: flex; gap: 6px; }
.hf-slot { display: grid; place-items: center; width: 54px; height: 54px; border: 2px dashed var(--ha-soft); border-radius: 12px; background: var(--ha-paper-2); }
.hf-slot.is-on { border: 2px solid var(--ha-ink); background: var(--ha-paper-2); rotate: -4deg; box-shadow: 0 2px 0 var(--ha-ink); }
.hf-slot.is-on + .hf-slot.is-on { rotate: 3deg; }
.hf-slot .hf-flag { width: 38px; height: 38px; }
.hf-slot .hf-crest { width: 42px; height: 42px; }
.hf-q { font: 400 26px/1 var(--ha-display); color: var(--ha-soft); padding-top: 4px; }
.hf-echo { flex: 1 1 auto; min-width: 0; margin: 0; font: 800 14px/1.5 var(--ha-ui); color: var(--ha-meta); overflow-wrap: anywhere; }
.hf-echo.is-on { font: 400 22px/1.35 var(--ha-display); color: var(--ha-ink); padding-top: 3px; }
.hf[lang="en"] .hf-echo.is-on { font: 900 17px/1.35 var(--ha-ui); padding-top: 0; }
.hf-stamp { animation: hf-stamp 380ms cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes hf-stamp { 0% { scale: 1.9; opacity: 0; } 55% { scale: .92; opacity: 1; } 100% { scale: 1; } }
.hf-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the two tabs: the open one egg-white with the ink rim, the other a soft panel on the blue */
.hf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hf-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 4px 8px; border: 1.5px solid var(--ha-line); border-radius: var(--ha-rad);
          background: var(--ha-panel); color: var(--ha-on); font: 900 15px/1.2 var(--ha-ui); cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
.hf-tab.is-on { border: 2px solid var(--ha-ink); background: var(--ha-clip); color: var(--ha-ink); box-shadow: var(--ha-drop); }
@media (hover: hover) and (pointer: fine) { .hf-tab:not(.is-on):hover { background: var(--ha-panel-hi); } }
.hf-num { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; background: var(--ha-yellow); color: var(--ha-ink); border: 1.5px solid var(--ha-ink); border-radius: 6px;
          font: 400 15px/1 var(--ha-display); padding-top: 2px; rotate: -4deg; }
.hf[lang="en"] .hf-num { font: 900 12px/1 var(--ha-ui); padding-top: 0; }
.hf-tab .hf-mini.hf-flag { width: 22px; height: 22px; }
.hf-tab .hf-mini.hf-crest { width: 22px; height: 22px; }

/* the search */
.hf-pane { display: grid; gap: 8px; min-width: 0; }
.hf-pane > * { margin: 0; min-width: 0; }
.hf-findbox { position: relative; }
.hf-find { width: 100%; min-height: 48px; margin: 0; padding-block: 0; padding-inline: 38px 12px; border: 2px solid var(--ha-ink); border-radius: 12px; background: var(--ha-clip);
           color: var(--ha-ink); font: 800 16px var(--ha-ui); -webkit-appearance: none; appearance: none; }
.hf-find::placeholder { color: var(--ha-soft); opacity: 1; font-weight: 700; }
.hf-find::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hf-find:focus, .hf-find:focus-visible { outline: 3px solid var(--ha-yellow); outline-offset: 2px; }
.hf-mag { position: absolute; inset-inline-start: 13px; inset-block-start: 15px; width: 14px; height: 14px; border: 2.5px solid var(--ha-ink); border-radius: 50%; pointer-events: none; }
.hf-mag::after { content: ""; position: absolute; inset-inline-start: 10px; inset-block-start: 10px; width: 7px; height: 2.5px; background: var(--ha-ink); rotate: 45deg; }
[dir="rtl"] .hf-mag::after { rotate: -45deg; }
.hf-note { font: 700 13px/1.5 var(--ha-ui); color: var(--ha-on-soft); }
.hf-note:empty { display: none; }
.hf-group { margin: 4px 0 -2px !important; font: 800 13px/1.4 var(--ha-ui); color: var(--ha-on-soft); }
.hf-grids { display: grid; gap: 8px; }
.hf-grids > * { margin: 0; }

/* the tiles: egg-white cards */
.hf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 2px 4px; }
.hf-tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 80px; padding: 8px 3px 6px; margin: 0;
           border: 2px solid var(--ha-ink); border-radius: 12px; background: var(--ha-clip); color: var(--ha-ink); box-shadow: var(--ha-drop);
           font: 800 12px/1.25 var(--ha-ui); text-align: center; cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none;
           transition: translate 60ms, background-color 120ms; -webkit-tap-highlight-color: transparent; }
.hf-tile:active { translate: 0 2px; box-shadow: 0 1px 0 var(--ha-ink); }
.hf-tile .hf-pic.hf-flag { width: 34px; height: 34px; }
.hf-tile .hf-pic.hf-crest { width: 38px; height: 38px; }
.hf-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 100%; overflow-wrap: break-word; line-height: 1.5; padding-block-end: 2px; }
.hf-found .hf-name { -webkit-line-clamp: 3; line-clamp: 3; }   /* a found club's long name ("نادي الهلال الليبي") is not cut */
/* a club found by the search: its country under the name, so the several "الهلال" can be told apart */
.hf-meta { display: block; max-width: 100%; margin-top: -2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 11px/1.35 var(--ha-ui); color: var(--ha-meta); }
.hf-tile.big { grid-column: span 2; grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; }
.hf-tile.big .hf-pic.hf-flag { width: 44px; height: 44px; }
.hf-tile.big .hf-pic.hf-crest { width: 50px; height: 50px; }
.hf-tile.big .hf-name { font: 400 20px/1.5 var(--ha-display); padding-top: 3px; }
.hf[lang="en"] .hf-tile.big .hf-name { font: 900 15px/1.5 var(--ha-ui); padding-top: 0; }
.hf-tile.is-on { box-shadow: 0 0 0 3px var(--ha-yellow), var(--ha-drop); }
.hf-tile.is-on::after { content: ""; position: absolute; inset-block-start: -9px; inset-inline-end: -9px; width: 24px; height: 24px; border: 2px solid var(--ha-ink); border-radius: 50%;
                        background: var(--ha-action) no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3L12 3.5' fill='none' stroke='%23FBF7EC' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hf-pop { animation: hf-pop 300ms cubic-bezier(.3, 1.8, .5, 1) both; }
.hf-pop::after { animation: hf-check 260ms 80ms cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes hf-pop { 0% { scale: 1; } 40% { scale: 1.13; } 100% { scale: 1; } }
@keyframes hf-check { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
.hf-tab:focus-visible, .hf-tile:focus-visible { outline: 3px solid var(--ha-yellow); outline-offset: 3px; z-index: 1; }
@media (max-width: 359px) {
  .hf-grid { gap: 6px; padding-inline: 1px; }
  .hf-tile { min-height: 74px; font-size: 11px; padding-inline: 1px; }
  .hf-tile .hf-pic.hf-flag { width: 30px; height: 30px; }
  .hf-tile .hf-pic.hf-crest { width: 34px; height: 34px; }
  .hf-meta { font-size: 10.5px; }
  .hf-card { padding: 8px 10px; gap: 10px; }
  .hf-slot { width: 48px; height: 48px; }
  .hf-slot .hf-flag { width: 34px; height: 34px; }
  .hf-echo.is-on { font-size: 19px; }
  .hf-tab { font-size: 14px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-stamp, .hf-pop, .hf-pop::after { animation: none; }
  .hf-tile { transition: none; }
}

/* the step around it, in the sheet */
.ha-fan { display: grid; gap: 10px; }
.ha-fan > * { margin: 0; }
.ha-fan .ha-btn { margin-block-start: 4px; }

/* the account page's row */
.ac-fan-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ac-fan-now .ac-mini { margin-inline-start: auto; }
.ac-fan-now .hf-stickers { flex: 0 0 auto; }
.ac-fan-line { order: 3; flex: 1 1 100%; min-width: 0; margin: 0; font: 400 22px/1.35 var(--ha-display); padding-top: 3px; overflow-wrap: anywhere; }
html[lang="en"] .ac-fan-line { font: 900 17px/1.35 var(--ha-ui); padding-top: 0; }
.ac-fan-line.is-none { font: 800 15px/1.5 var(--ha-ui); color: var(--ha-meta); padding-top: 0; }
/* editing: the picker straight on the blue (as in the sheet), not inside a card */
.ac-fan-edit { display: grid; gap: 10px; }
.ac-card.ac-fan-edit { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--ha-on); }
.ac-card.ac-fan-edit > .ac-kicker { color: var(--ha-on-soft); }
@media (max-width: 359px) { .ac-fan-edit .hf-grid { gap: 5px; } .ac-fan-edit .hf-tile { font-size: 10.5px; } }
.ac-fan-edit > * { margin: 0; }
.ac-fan-edit .ha-row { flex-wrap: wrap; }

/* ---- the account page (account/index.html, body.r-calm): the calm blue page, egg-white cards ---- */
html[lang="en"] .ac [data-l="ar"], html:not([lang="en"]) .ac [data-l="en"] { display: none !important; }
.ac { display: grid; gap: 14px; max-width: 560px; margin-inline: auto; padding-block-start: 14px; color: var(--ha-on); font-family: var(--ha-ui); }
.ac > * { margin: 0; min-width: 0; }
.ac[aria-busy="true"] { min-height: 220px; }
.ac-lead { font: 800 17px/1.7 var(--ha-ui); color: var(--ha-on); }
.ac-note { font: 700 13px/1.6 var(--ha-ui); color: var(--ha-on-soft); }
.ac-err { justify-self: start; padding: 2px 8px; border-radius: 8px; background: var(--ha-wrong); font: 800 14px/1.5 var(--ha-ui); color: var(--ha-on); }
.ac-err:empty, .ac-ok:empty { display: none; }
.ac-ok { font: 800 14px/1.5 var(--ha-ui); color: var(--ha-ink); justify-self: start; padding: 0 8px; border-radius: 6px; background: var(--ha-lime); border: 1.5px solid var(--ha-ink); }

/* the nickname and the picks: egg-white cards (ink type inside) */
.ac-card { position: relative; display: grid; gap: 8px; padding: 12px 14px 14px; background: var(--ha-clip); color: var(--ha-ink); border: 2px solid var(--ha-ink); border-radius: var(--ha-rad); box-shadow: var(--ha-drop); }
.ac-card > * { margin: 0; min-width: 0; }
.ac-card .ac-note { color: var(--ha-meta); }
.ac-card .ac-err { color: var(--ha-on); }
.ac-kicker { font: 800 13px/1.4 var(--ha-ui); color: var(--ha-meta); }
.ac-nick { display: flex; align-items: center; gap: 12px; }
.ac-name { margin: 0; flex: 1 1 auto; min-width: 0; font: 400 34px/1.25 var(--ha-display); padding-top: 4px; overflow-wrap: anywhere; }
.ac-name bdi { font: inherit; }
/* small secondary buttons (Change, Save, Cancel): a cream-dark chip with the ink rim */
.ac-mini { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 2px solid var(--ha-ink); border-radius: 12px; background: var(--ha-paper-2); color: var(--ha-ink);
           font: 800 15px/1 var(--ha-ui); box-shadow: 0 2px 0 var(--ha-ink); cursor: pointer; touch-action: manipulation; }
.ac-mini:active { translate: 0 2px; box-shadow: none; }
.ac-mini.paper { background: var(--ha-clip); }
.ac-mini:disabled { opacity: .55; }
.ac-edit { display: grid; gap: 8px; }
.ac-edit .ha-row { flex-wrap: wrap; }
.ac-edit .ha-input { flex: 1 1 180px; }

/* the numbers: three columns in one egg-white card; this week's points is the one yellow counter */
.ac-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ha-ink); border-radius: var(--ha-rad); overflow: hidden; background: var(--ha-ink); gap: 2px; box-shadow: var(--ha-drop); }
.ac-stat { display: grid; align-content: start; justify-items: center; gap: 2px; padding: 10px 4px 8px; background: var(--ha-clip); color: var(--ha-ink); text-align: center; }
.ac-stat > * { margin: 0; }
.ac-stat dt { font: 800 12.5px/1.35 var(--ha-ui); color: var(--ha-meta); min-height: 2.7em; display: grid; align-items: center; }
.ac-stat dd { font: 400 38px/1 var(--ha-display); padding-top: 6px; unicode-bidi: isolate; }
.ac-stat small { font: 800 12px/1.4 var(--ha-ui); color: var(--ha-ink); }
.ac-stat.is-main { background: var(--ha-yellow); }
.ac-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 2px; border-top: 1px solid var(--ha-line); border-bottom: 1px solid var(--ha-line);
           font: 800 15px/1.5 var(--ha-ui); color: var(--ha-on); }
.ac-line a, .ac-links a { color: var(--ha-on); font-weight: 900; text-underline-offset: 4px; }
.ac-out { display: grid; gap: 6px; }
.ac-out > * { margin: 0; }

/* delete: quiet until asked, then a plain warning card */
.ac-danger { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ha-line); }
.ac-danger > * { margin: 0; }
.ac-del { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ha-on-soft); font: 800 15px/1 var(--ha-ui);
          text-decoration: underline; text-underline-offset: 4px; cursor: pointer; touch-action: manipulation; }
.ac-warn { display: grid; gap: 10px; padding: 12px; border: 2px solid var(--ha-ink); border-radius: var(--ha-rad); background: var(--ha-clip); box-shadow: var(--ha-drop); }
.ac-warn > * { margin: 0; }
.ac-warn p { font: 800 15px/1.7 var(--ha-ui); color: var(--ha-ink); }
.ac-warn p + p { font-weight: 700; font-size: 14px; }
.ac-warn p.ac-err { color: var(--ha-on); }
.ac-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .ac-two { grid-template-columns: 1fr; } }
.ac-links { display: flex; gap: 18px; justify-content: center; font: 800 14px/1.5 var(--ha-ui); padding-top: 4px; }
.ac .ha-btn { font-family: var(--ha-ui); }
.ac-del:focus-visible, .ac-mini:focus-visible, .ac a:focus-visible { outline: 3px solid var(--ha-yellow); outline-offset: 2px; }
/* your shirt (games/retro/shirt.js): 120 px, centred under the kicker */
.ac-shirt { justify-items: center; text-align: center; }
.ac-shirt > .ac-kicker { justify-self: stretch; text-align: start; }
.ac-shirt .ac-shirt__img { width: 120px; height: 120px; margin: 4px 0; }
