/* First visit (Claude Design, "כניסה ראשונה בלי חשבון"; js/onboarding.js): the whole screen on a phone, a dialog over a
   scrim on a computer. */
.onb-root {
  position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 34, 71, .62);
}
html[data-theme="dark"] .onb-root { background: rgba(2, 6, 16, .74); }
html.onb-open, html.onb-open body { overflow: hidden; }
.onb-card {
  width: min(560px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--ds-bg); color: var(--ds-ink); box-shadow: 0 24px 64px rgba(15, 34, 71, .35); font-family: var(--ds-font);
}
@media (max-width: 600px) { .onb-card { width: 100%; height: 100%; box-shadow: none; } }

.onb-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; flex: none; }
.onb-back { width: 32px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ds-ink); cursor: pointer; }
.onb-prog { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.onb-bar { height: 4px; background: var(--ds-line); }
.onb-bar.is-on { background: var(--ds-ink); }
.onb-n { font: 700 15px/1 var(--ds-font-num); color: var(--ds-ink2); }
.onb-grow { flex: 1; }
.onb-skip { height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--ds-ink); font: 700 15px/1 var(--ds-font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* "+ הוספה" in "המעקב שלי" opens the leagues step alone: a cross instead of "דלג". */
.onb-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ds-ink); cursor: pointer; }

.onb-hd { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 6px; flex: none; }
.onb-kick { font: 800 13px/1.3 var(--ds-font); color: var(--ds-ink2); }
.onb-hd h1 { margin: 0; font: 900 32px/1.05 var(--ds-font); border-bottom: 3px solid var(--ds-ink); padding-bottom: 10px; outline: none; }
.onb-hd p { margin: 4px 0 0; font: 500 14px/1.5 var(--ds-font); color: var(--ds-ink2); }

.onb-q {
  margin: 12px 16px 0; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 10px; box-sizing: border-box; flex: none;
  border: 1.5px solid var(--ds-ink); background: var(--ds-card); color: var(--ds-ink);
}
.onb-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ds-ink); font: 500 16px/1 var(--ds-font); }
.onb-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.onb-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; }
.onb-sport {
  min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 0 16px; box-sizing: border-box; flex: none;
  border: 1.5px solid var(--ds-ink); background: var(--ds-card); color: var(--ds-ink); text-align: start; cursor: pointer;
}
.onb-sport.is-on { background: var(--ds-ink); color: var(--ds-card); }
.onb-sport-g { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.onb-sport-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onb-sport-t b { font: 900 22px/1.1 var(--ds-font); }
.onb-sport-t span { font: 500 13px/1.3 var(--ds-font); opacity: .86; }
.onb-box { margin-inline-start: auto; width: 26px; height: 26px; box-sizing: border-box; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }

.onb-grp { display: flex; flex-direction: column; gap: 8px; }
.onb-grp-h { display: flex; align-items: center; gap: 8px; }
.onb-grp-g { width: 20px; height: 20px; background: var(--ds-ink); color: var(--ds-card); display: grid; place-items: center; }
.onb-grp-h h2 { margin: 0; font: 900 17px/1.2 var(--ds-font); }
.onb-grp-n { margin-inline-start: auto; font: 700 15px/1 var(--ds-font-num); }
.onb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.onb-lg {
  min-height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 10px; box-sizing: border-box;
  border: 1.5px solid var(--ds-line); background: var(--ds-card); color: var(--ds-ink); text-align: start; cursor: pointer;
}
.onb-lg.is-on { border-color: var(--ds-ink); background: var(--ds-ink); color: var(--ds-card); }
.onb-mk { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.onb-lg-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.onb-lg-t b { font: 800 14px/1.15 var(--ds-font); }
.onb-lg-t span { font: 500 11px/1.2 var(--ds-font); opacity: .8; }
.onb-lg-c { margin-inline-start: auto; flex: none; display: grid; }
.onb-none { margin: 0; font: 500 14px/1.5 var(--ds-font); color: var(--ds-ink2); }

.onb-foot { padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: none; border-top: 1px solid var(--ds-line); background: var(--ds-card); }
.onb-go {
  height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0;
  background: var(--ds-ink); color: var(--ds-card); font: 800 17px/1 var(--ds-font); cursor: pointer;
}
.onb-go .num { font: 700 18px/1 var(--ds-font-num); opacity: .8; }
.onb-go[disabled] { opacity: .45; cursor: default; }
.onb-note { text-align: center; font: 500 12px/1.4 var(--ds-font); color: var(--ds-ink2); }
.onb-card :focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 2px; }
/* The step's title takes the focus when the step opens, so a screen reader starts there; no ring around a heading nobody
   tabs to. The two rules above out-ranked its own "outline: none", and a phone drew a box around "אילו ליגות?" (22.11). */
html[data-theme] .onb-card .onb-hd h1:focus-visible, .onb-card .onb-hd h1:focus { outline: none; }
.onb-lg.is-on:focus-visible, .onb-sport.is-on:focus-visible, .onb-go:focus-visible { outline-color: var(--ds-ink); outline-offset: 3px; }
