/* לומדים בכיף – כיוון "זירת ספורט"
   בסיס כחול-לילה, אקצנטים מצבעי האיורים, טיפוגרפיה של לוח תוצאות.
   מבנה: טוקנים → בסיס → כפתורים → כותרת → בית → יחידה → מורה → חוברת → תנועה.
   המשחקים: assets/game.css. */

/* ───────────── טוקנים ───────────── */
:root {
  --night: #0F2236;
  --night-2: #142C45;
  --night-3: #1B3A58;
  --night-4: #24496C;
  --hair: rgba(247, 244, 238, .09);
  --hair-2: rgba(247, 244, 238, .17);

  --paper: #F7F2E6;          /* זהה לרקע האיורים */
  --paper-2: #EDE4D2;
  --stone: #D9CCB2;
  --ink: #10243A;
  --ink-2: #4B5D70;

  --text: #F7F4EE;
  --text-2: #C2CDD8;
  --text-3: #8FA1B4;

  --teal: #1F5F73;
  --teal-2: #27728A;
  --teal-hi: #8ACAD6;
  --amber: #E9A23B;
  --amber-hi: #F5BD60;
  --amber-deep: #A96F1B;
  --amber-ink: #2A1A04;
  --coral: #E26D5A;
  --coral-hi: #F2937F;
  --coral-deep: #A9473A;
  --good: #5CC8A6;
  --good-deep: #2E8E70;

  --gold: #E9A23B;
  --silver: #BFCAD4;
  --bronze: #C98A55;

  --font-display: "Secular One", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);

  --gutter: 16px;
  --maxw: 1200px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ───────────── בסיס ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 70% -180px, rgba(39, 114, 138, .32), transparent 70%),
    var(--night);
  color: var(--text);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.stars-row { display: inline-flex; gap: 2px; direction: ltr; vertical-align: middle; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--amber); color: var(--amber-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
@media (hover: none) { .kb-only { display: none !important; } }

/* ───────────── כפתורים ───────────── */
.btn {
  --btn-bg: rgba(247, 244, 238, .07);
  --btn-fg: var(--text);
  --btn-edge: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 16px;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 5px 0 var(--btn-edge), inset 0 0 0 1.5px var(--hair-2);
  font: 600 18px/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 150ms ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--btn-edge), inset 0 0 0 1.5px var(--hair-2); }
.btn--primary {
  --btn-bg: var(--amber); --btn-fg: var(--amber-ink); --btn-edge: var(--amber-deep);
  box-shadow: 0 5px 0 var(--btn-edge);
}
.btn--primary:active { box-shadow: 0 2px 0 var(--btn-edge); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-edge: var(--stone); box-shadow: 0 5px 0 var(--btn-edge); }
.btn--paper:active { box-shadow: 0 2px 0 var(--btn-edge); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-edge: #06111D; box-shadow: 0 4px 0 var(--btn-edge); }
.btn--ink:active { box-shadow: 0 1px 0 var(--btn-edge); }
.btn--ghost { --btn-edge: rgba(0, 0, 0, .25); }
.btn--xl { min-height: 68px; padding: 0 34px; border-radius: 20px; font-size: 24px; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --btn-bg: var(--amber-hi); }
  .btn--paper:hover { --btn-bg: #FFFBF2; }
  .btn--ink:hover { --btn-bg: #1A3550; }
  .btn--ghost:hover { --btn-bg: rgba(247, 244, 238, .12); }
}
.btn .i { width: 22px; height: 22px; }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 7px; font: 600 14px/1 var(--font-body);
  background: rgba(16, 36, 58, .1); color: inherit; box-shadow: inset 0 -2px 0 rgba(16, 36, 58, .18);
}

/* ───────────── כותרת עליונה ───────────── */
.top { position: relative; z-index: 5; }
.top__in { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; flex: none; }
.brand .logo { width: 40px; height: 40px; }
.brand__name { font: 400 24px/1 var(--font-display); color: var(--text); letter-spacing: .005em; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 16px; min-width: 0; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.crumbs .sep { opacity: .6; }
.top__sp { flex: 1; }
.top__act { display: flex; gap: 10px; align-items: center; }
.top .btn { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 13px; box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.top .btn:active { transform: scale(.97); }
@media (max-width: 640px) {
  .crumbs .hide-sm, .top .btn span { display: none; }
  .top .btn { padding: 0 12px; }
  .brand__name { font-size: 21px; }
}

/* ───────────── כללי: כותרות מקטע ───────────── */
.display { font: 400 clamp(36px, 5.2vw, 62px)/1.12 var(--font-display); letter-spacing: -.005em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34ch; }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.sec-head h2 { font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--font-display); }
.sec-head p { color: var(--text-3); font-size: 16px; }

/* ───────────── עמוד הבית ───────────── */
.home-hero {
  display: grid; gap: 36px; align-items: center;
  padding-block: 28px 56px;
}
@media (min-width: 960px) { .home-hero { grid-template-columns: 1fr 1.08fr; gap: 56px; padding-block: 40px 72px; } }
.home-hero__copy { display: grid; gap: 22px; justify-items: start; }
.home-hero__copy .btn { flex-direction: column; gap: 4px; padding-block: 12px; min-height: 76px; }
.home-hero__copy .btn small { font: 500 14px/1.2 var(--font-body); opacity: .78; letter-spacing: 0; }
.home-hero__note { font-size: 15px; color: var(--text-3); }
@media (max-width: 559px) { .home-hero__copy .btn { width: 100%; } }

/* מסלול ריצה = בורר רמות */
.lanes {
  position: relative; border-radius: 24px; overflow: hidden;
  background: var(--teal);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(247, 244, 238, .08);
}
.lanes__cap {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px 12px; background: rgba(15, 34, 54, .35);
  font-size: 15px; color: var(--text-2);
}
.lanes__cap b { font: 400 19px/1 var(--font-display); color: var(--text); }
.lanes ol { position: relative; }
.lanes ol::before { /* קו הזינוק */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 68px; width: 5px;
  background: rgba(247, 244, 238, .85);
}
.lane-row + .lane-row { box-shadow: inset 0 2px 0 rgba(247, 244, 238, .42); }
.lane-row__hit {
  display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 0 18px;
  min-height: 50px; padding-inline-end: 16px; text-decoration: none; color: var(--text);
  border-radius: 0;
}
.lane-row__num { font: 400 30px/1 var(--font-display); text-align: center; color: rgba(247, 244, 238, .5); }
.lane-row__txt { display: flex; align-items: baseline; gap: 12px; padding-inline-start: 10px; min-width: 0; }
.lane-row__txt b { font-weight: 600; font-size: 18px; color: rgba(247, 244, 238, .62); }
.lane-row__txt small { font-size: 14px; color: rgba(247, 244, 238, .5); }
.lane-row.is-open .lane-row__hit { background: #2A7A92; min-height: 64px; box-shadow: inset 0 0 0 2px rgba(245, 189, 96, .55); }
.lane-row.is-open .lane-row__num { color: var(--amber-hi); font-size: 40px; }
.lane-row.is-open .lane-row__txt b { color: var(--text); font-size: 20px; }
.lane-row.is-open .lane-row__txt small { color: var(--text-2); }
/* לא כתום: בעמוד הבית יש כפתור כתום אחד בלבד ("התחל כאן") */
.lane-row__go {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15, 34, 54, .45); color: var(--text); font-weight: 600; font-size: 16px;
  padding: 8px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(247, 244, 238, .35);
  transition: background-color 150ms ease;
}
.lane-row__go .i { width: 18px; height: 18px; }
.lane-row__soon { font-size: 13px; color: rgba(247, 244, 238, .45); padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(247, 244, 238, .2); }
@media (hover: hover) and (pointer: fine) {
  .lane-row.is-open .lane-row__hit:hover .lane-row__go { background: rgba(15, 34, 54, .7); }
}
@media (max-width: 480px) {
  .lanes ol::before { inset-inline-start: 54px; }
  .lane-row__hit { grid-template-columns: 54px 1fr auto; gap: 0 12px; }
  .lane-row__txt { flex-direction: column; gap: 0; }
  .lane-row.is-open .lane-row__txt small { line-height: 1.3; }
}

/* כרטיסי יחידות */
.units { padding-block: 8px 64px; scroll-margin-top: 16px; }
.unit-grid { display: grid; gap: 16px; }
.unit-card {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair);
  text-decoration: none; color: var(--text); min-height: 220px;
}
.unit-card--open { background: var(--paper); color: var(--ink); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .7); }
.unit-card--open .unit-card__art { aspect-ratio: 16 / 7; overflow: hidden; }
.unit-card--open .unit-card__art img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 40%; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .unit-card--open:hover .unit-card__art img { transform: scale(1.03); } }
.unit-card__body { display: grid; gap: 6px; padding: 18px 20px 20px; flex: 1; align-content: start; }
.unit-card__k { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.unit-card__t { font: 400 26px/1.15 var(--font-display); }
.unit-card__d { font-size: 16px; color: var(--ink-2); }
.unit-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.unit-card__prog { font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.unit-card__prog .star { width: 18px; height: 18px; fill: var(--amber); stroke: none; }
.unit-card__go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 17px; box-shadow: 0 4px 0 #06111D;
  transition: background-color 150ms ease;
}
.unit-card__go .i { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .unit-card--open:hover .unit-card__go { background: #1A3550; } }
.unit-card--soon { justify-content: space-between; padding: 20px; }
.unit-card--soon .unit-card__k { color: var(--text-3); }
.soon-mark { display: grid; gap: 7px; margin-block: 16px 14px; }
.soon-mark span { display: block; height: 7px; border-radius: 4px; background: rgba(247, 244, 238, .07); }
.soon-mark span:nth-child(2) { width: 78%; }
.soon-mark span:nth-child(3) { width: 56%; }
.chip-soon { justify-self: start; align-self: start; font-size: 14px; color: var(--text-3); padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); }

@media (min-width: 720px) {
  .unit-grid { grid-template-columns: repeat(3, 1fr); }
  .unit-card--open { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr; min-height: 300px; }
  .unit-card--open .unit-card__art { order: 2; aspect-ratio: auto; height: 100%; min-height: 300px; }
  .unit-card--open .unit-card__art picture { display: block; height: 100%; }
  .unit-card--open .unit-card__body { align-content: center; padding: 28px 32px; gap: 8px; }
  .unit-card--open .unit-card__t { font-size: 34px; }
  .unit-card--soon { min-height: 150px; }
}
@media (max-width: 719px) { /* טלפון: יחידות שבקרוב כשורה קומפקטית */
  .unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .unit-card--open { grid-column: 1 / -1; }
  .unit-card--soon { min-height: 0; padding: 14px; gap: 10px; border-radius: 16px; }
  .unit-card--soon .soon-mark { display: none; }
}

/* ───────────── עמוד יחידה ───────────── */
.jumbo {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(247, 244, 238, .1);
  margin-top: 6px;
}
.jumbo__art { position: relative; }
.jumbo__art img { width: 100%; height: 100%; object-fit: cover; object-position: 10% 45%; }
.jumbo__copy { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; padding: 22px 20px 26px; }
.jumbo__k { font-size: 16px; font-weight: 500; color: var(--teal); }
.jumbo h1 { font: 400 clamp(34px, 4.4vw, 58px)/1.08 var(--font-display); color: var(--ink); }
.jumbo__lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34ch; }
.cta { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.cta .btn { min-width: 240px; }
.cta__next { display: flex; align-items: baseline; gap: 8px; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.cta__next b { color: var(--ink); font-weight: 600; }
.cta__next .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(233, 162, 59, .22); transform: translateY(-1px); }
@media (max-width: 759px) {
  .jumbo__art { aspect-ratio: 16 / 10; }
  .cta, .cta .btn { width: 100%; }
}
@media (min-width: 760px) {
  .jumbo { min-height: 420px; display: flex; align-items: center; }
  .jumbo__art { position: absolute; inset-block: 0; inset-inline-end: 0; height: 100%; aspect-ratio: 1672 / 941; }
  .jumbo__art::after { /* מעבר רך מהאיור לטקסט */
    content: ""; position: absolute; inset-block: 0; inset-inline-start: -2px; width: 22%;
    background: linear-gradient(to left, var(--paper), rgba(247, 242, 230, 0));
  }
  .jumbo__art img { object-position: left center; }
  .jumbo__copy { width: min(48%, 540px); padding: 44px 52px; }
}
@media (min-width: 1200px) { .jumbo { min-height: 460px; } }

/* לוח ההתקדמות של היחידה */
.board {
  display: grid; gap: 14px; align-items: center;
  margin-top: 18px; padding: 16px 18px; border-radius: 22px;
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair);
}
@media (min-width: 860px) { .board { grid-template-columns: auto auto 1fr auto; gap: 28px; padding: 14px 24px; } }
@media (min-width: 560px) and (max-width: 859px) { .board { grid-template-columns: 1fr auto; } .board .meter, .board__rec { grid-column: 1 / -1; } }
.board__h { font: 400 20px/1.2 var(--font-display); }
.board__h small { display: block; font: 400 14px/1.4 var(--font-body); color: var(--text-3); margin-top: 2px; }
.podium { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.podium__col { display: grid; justify-items: center; gap: 4px; width: 58px; }
.podium__medal { width: 34px; height: 34px; }
.podium__block {
  width: 100%; display: grid; place-items: center; border-radius: 8px 8px 3px 3px;
  font: 800 17px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text);
  background: var(--night-4);
}
.podium__col--gold .podium__block { height: 36px; background: #2D5277; }
.podium__col--silver .podium__block { height: 27px; }
.podium__col--bronze .podium__block { height: 20px; }
.meter { display: grid; gap: 8px; min-width: 0; }
.meter__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; color: var(--text-2); }
.meter__row b { font: 800 22px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text); }
.meter__row b small { font-size: 15px; font-weight: 500; color: var(--text-3); }
.meter__bar { position: relative; height: 12px; border-radius: 6px; background: rgba(247, 244, 238, .08); overflow: hidden; }
.meter__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; border-radius: 6px; background: linear-gradient(to left, var(--amber), var(--amber-hi)); transform-origin: right center; transform: scaleX(var(--p, 0)); }
.board__rec { display: grid; gap: 2px; text-align: start; }
.board__rec span { font-size: 14px; color: var(--text-3); }
.board__rec b { font: 800 22px/1.1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text); }
.board__rec b small { font-size: 15px; font-weight: 500; color: var(--text-3); }

/* מקצים ומסלול התחנות */
.heats { display: grid; gap: 22px; margin-top: 30px; }
.heat { border-radius: 24px; padding: 22px 20px 18px; background: linear-gradient(to bottom, rgba(20, 44, 69, .9), rgba(20, 44, 69, .55)); box-shadow: inset 0 0 0 1px var(--hair); }
@media (min-width: 900px) { .heat { padding: 24px 28px 22px; } }
.heat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.heat__tag { font: 600 15px/1 var(--font-body); color: var(--text); background: rgba(31, 95, 115, .85); box-shadow: inset 0 0 0 1px rgba(138, 202, 214, .4); padding: 6px 11px; border-radius: 9px; align-self: center; }
.heat__head h2 { font: 400 clamp(22px, 2.3vw, 28px)/1.2 var(--font-display); }
.heat__genre { font-size: 15px; color: var(--text-3); }

.track { --disc: 72px; position: relative; display: grid; gap: 4px; padding-top: 34px; }
.track::before { /* משטח המסלול */
  content: ""; position: absolute; z-index: 0;
  background:
    repeating-linear-gradient(to left, rgba(247, 244, 238, .34) 0 16px, transparent 16px 32px) center / 100% 2px no-repeat,
    var(--teal);
  box-shadow: inset 0 2px 0 rgba(247, 244, 238, .55), inset 0 -2px 0 rgba(247, 244, 238, .55);
}
.st { position: relative; z-index: 1; min-width: 0; }
.st__hit {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 4px;
  width: 100%; padding: 0 6px 6px; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--text);
  border-radius: 18px; text-align: center;
}
.st__disc {
  position: relative; display: grid; place-items: center;
  width: var(--disc); height: var(--disc); border-radius: 50%;
  background: var(--night-3); color: var(--text-3);
  box-shadow: 0 0 0 6px var(--night-2), inset 0 0 0 2px rgba(247, 244, 238, .1);
  transition: transform 160ms var(--ease-out);
}
.st__disc .i { width: 32px; height: 32px; stroke-width: 1.8; }
.st__num {
  position: absolute; top: -6px; inset-inline-start: -6px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--night); color: var(--text-2); font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px var(--hair-2);
}
.st__name { margin-top: 10px; font: 600 17px/1.25 var(--font-body); color: var(--text); }
.st__sub { font-size: 14px; color: var(--text-3); line-height: 1.3; }
.st__stars { display: flex; gap: 2px; margin-top: 4px; direction: ltr; }
.st__stars .star { width: 17px; height: 17px; fill: rgba(247, 244, 238, .14); stroke: none; }
.st__stars .star.on { fill: var(--amber); }
.st__soon { margin-top: 4px; font-size: 13px; color: var(--text-3); padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.st__rec { font-size: 13px; color: var(--amber-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.st--soon .st__name { color: var(--text-2); }
.st--open .st__disc { background: var(--paper); color: var(--ink); }
.st--next .st__disc { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 6px var(--night-2), 0 0 0 10px rgba(233, 162, 59, .35); }
.st--gold .st__disc { background: var(--gold); color: var(--amber-ink); }
.st--silver .st__disc { background: var(--silver); color: var(--ink); }
.st--bronze .st__disc { background: var(--bronze); color: #2A1405; }
.st--next.st--gold .st__disc, .st--next.st--silver .st__disc, .st--next.st--bronze .st__disc { box-shadow: 0 0 0 6px var(--night-2), 0 0 0 10px rgba(233, 162, 59, .35); }
.st__flag {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%); z-index: 2;
  font: 600 14px/1 var(--font-body); color: var(--amber-ink); background: var(--amber); white-space: nowrap;
  padding: 6px 10px; border-radius: 8px;
}
.st__flag::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--amber); }
.st__medal { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) {
  .st__hit:hover .st__disc { transform: translateY(-3px); }
  .st__hit:hover .st__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
}
.st__hit:active .st__disc { transform: scale(.96); }
.finish { /* קו סיום משובץ בסוף כל מקצה */
  position: absolute; z-index: 0;
  background: repeating-conic-gradient(rgba(247, 244, 238, .9) 0 25%, var(--night-2) 0 50%) 0 0 / 10px 10px;
}
/* מסלול אופקי (מחשב) */
@media (min-width: 760px) {
  .track { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .track::before { inset-inline: 0 26px; top: calc(34px + var(--disc) / 2 - 15px); height: 30px; border-radius: 15px 0 0 15px; }
  .finish { top: calc(34px + var(--disc) / 2 - 15px); height: 30px; width: 20px; inset-inline-end: 6px; }
  .st__txt { display: grid; justify-items: center; gap: 2px; }
  .st__line { display: grid; justify-items: center; gap: 2px; }
}
/* מסלול אנכי (טלפון) */
@media (max-width: 759px) {
  .track { --disc: 60px; padding-top: 8px; gap: 12px; padding-bottom: 40px; }
  .track::before { inset-block: 8px 34px; inset-inline-start: calc(var(--disc) / 2 - 13px); width: 26px; border-radius: 13px 13px 0 0;
    background:
      repeating-linear-gradient(to bottom, rgba(247, 244, 238, .34) 0 14px, transparent 14px 28px) center / 2px 100% no-repeat,
      var(--teal);
    box-shadow: inset 2px 0 0 rgba(247, 244, 238, .55), inset -2px 0 0 rgba(247, 244, 238, .55);
  }
  .finish { bottom: 8px; height: 26px; width: 26px; inset-inline-start: calc(var(--disc) / 2 - 13px); }
  .st__hit { display: flex; align-items: center; gap: 16px; text-align: start; padding: 2px 0; }
  .st__disc .i { width: 28px; height: 28px; }
  .st__txt { display: grid; justify-items: start; gap: 2px; min-width: 0; }
  .st__name { margin-top: 0; }
  .st__flag { position: static; transform: none; margin-bottom: 4px; justify-self: start; }
  .st__flag::after { display: none; }
  .st__line { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
  .st__stars, .st__soon { margin-top: 0; }
}

/* החוברת ועוד תרגול */
.extras { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 860px) { .extras { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.panel { border-radius: 22px; padding: 20px 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); }
.panel h2 { font: 400 22px/1.2 var(--font-display); margin-bottom: 4px; }
.panel > p { font-size: 16px; color: var(--text-3); margin-bottom: 14px; }
.book { display: grid; gap: 12px; }
.book-digital {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 18px 18px 16px; border-radius: 18px; text-decoration: none;
  background: var(--paper); color: var(--ink); box-shadow: 0 6px 0 var(--stone), 0 24px 40px -28px rgba(0, 0, 0, .7);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.book-digital:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--stone); }
.book-digital__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--teal); color: var(--paper); }
.book-digital__ic .i { width: 32px; height: 32px; stroke-width: 1.8; }
.book-digital__t { display: block; font: 400 22px/1.2 var(--font-display); }
.book-digital__d { display: block; font-size: 15px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.book-digital__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(16, 36, 58, .08); }
@media (hover: hover) and (pointer: fine) { .book-digital:hover { background: #FFFBF2; } .book-digital:hover .book-digital__go { background: rgba(16, 36, 58, .14); } }
.book-pdf {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; min-height: 56px;
  background: rgba(247, 244, 238, .05); text-decoration: none;
}
.book-pdf:hover { background: rgba(247, 244, 238, .09); }
.book-pdf .i { color: var(--text-2); }
.book-pdf b { font-weight: 600; font-size: 17px; }
.book-pdf span { display: block; font-size: 14px; color: var(--text-3); }
.book-pdf .grow { flex: 1; }
@media (max-width: 480px) { .book-digital { grid-template-columns: auto 1fr; } .book-digital__go { display: none; } }
.ext-list { display: grid; gap: 8px; }
.ext-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(247, 244, 238, .05); text-decoration: none; min-height: 56px;
}
.ext-list a:hover { background: rgba(247, 244, 238, .09); }
.ext-list b { font-weight: 600; font-size: 17px; }
.ext-list span { font-size: 14px; color: var(--text-3); }
.ext-list .grow { flex: 1; display: grid; }
.ext-list .i { color: var(--text-3); width: 20px; height: 20px; }

.foot { padding-block: 40px 48px; color: var(--text-3); font-size: 15px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--hair); }
.foot a { color: var(--text-3); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--text); }

/* ───────────── עמוד המורה ───────────── */
.t-head { display: grid; gap: 10px; padding-block: 18px 26px; }
.t-head h1 { font: 400 clamp(34px, 4vw, 48px)/1.1 var(--font-display); }
.t-head p { color: var(--text-2); max-width: 60ch; }
.t-grid { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 960px) { .t-grid { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 28px; } }
.t-card { border-radius: 24px; padding: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: 16px; min-width: 0; }
.t-card h2 { font: 400 22px/1.2 var(--font-display); }
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font-weight: 600; font-size: 16px; color: var(--text-2); }
.field textarea, .field input[type="text"] {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; font: 400 17px/1.6 var(--font-body);
  background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 236px; resize: vertical; unicode-bidi: plaintext; }
.field textarea:focus-visible, .field input:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 2px; }
.field small { font-size: 14px; color: var(--text-3); }
.t-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.t-row .btn { flex: 1 1 200px; }
.status { font-size: 16px; font-weight: 600; color: var(--good); display: flex; align-items: center; gap: 8px; }
.status:empty { display: none; }
.status.is-warn { color: var(--amber-hi); }
.status .i { width: 20px; height: 20px; }
.t-link { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; color: var(--text-3); }
.t-link a { color: var(--teal-hi); direction: ltr; unicode-bidi: isolate; word-break: break-all; }
.t-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
.t-actions { gap: 12px; }
.t-reset { justify-self: start; min-height: 44px; font-size: 16px; }
.phone {
  justify-self: center; width: min(100%, 380px); border-radius: 34px; padding: 14px;
  background: #0B1A2A; box-shadow: 0 0 0 2px rgba(247, 244, 238, .1), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; font-size: 15px; color: var(--text-2); }
.phone__av { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.phone__av svg { width: 22px; height: 22px; }
.phone__chat { border-radius: 22px; padding: 16px 12px; min-height: 300px; background: #12283F; display: grid; align-content: start; }
.bubble {
  justify-self: start; max-width: 92%; padding: 12px 14px 8px; border-radius: 16px 4px 16px 16px;
  background: var(--paper); color: var(--ink); font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2); unicode-bidi: plaintext;
}
.bubble a { color: #1C6B8A; direction: ltr; unicode-bidi: isolate; }
.bubble__time { display: block; text-align: left; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.t-tips { display: grid; gap: 10px; font-size: 16px; color: var(--text-2); }
.t-tips li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.t-tips .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(31, 95, 115, .55); color: var(--text); font-weight: 700; font-size: 14px; }
.t-acts { display: grid; gap: 6px; }
.t-acts li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 12px; background: rgba(247, 244, 238, .04); font-size: 16px; }
.t-acts .n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 1.5px var(--hair-2); font-size: 13px; font-weight: 700; }
.t-acts .grow { flex: 1; min-width: 0; }
.t-acts small { color: var(--text-3); font-size: 14px; }
.t-acts a .sub { color: var(--text-2); font-weight: 400; }
.t-acts button { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(247, 244, 238, .06); color: var(--text-2); cursor: pointer; }
.t-acts button:hover { background: rgba(247, 244, 238, .12); color: var(--text); }
.t-acts button.is-done { color: var(--good); }
.t-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.t-note { font-size: 15px; color: var(--text-3); margin-top: -8px; }
.t-acts { grid-template-columns: 1fr; }
@media (min-width: 560px) { .t-acts { grid-template-columns: 1fr 1fr; } }
.t-acts a { color: var(--text); text-decoration: none; font-weight: 600; }
.t-acts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-acts .grow { display: grid; line-height: 1.3; }
@media (max-width: 959px) {
  .t-main, .t-side { display: contents; }
  .t-actions { order: -1; }
  .t-msg { order: 0; }
  .phone { order: 1; }
  .t-tipcard { order: 2; }
  .t-links { order: 3; }
}

/* ───────────── החוברת הדיגיטלית – מקום שמור ───────────── */
.bk-hold { display: grid; gap: 22px; justify-items: center; text-align: center; padding-block: 48px 64px; }
.bk-hold__ic { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 32px; background: var(--paper); color: var(--teal); box-shadow: 0 8px 0 var(--stone); }
.bk-hold__ic .i { width: 56px; height: 56px; stroke-width: 1.6; }
.bk-hold h1 { font: 400 clamp(34px, 4.4vw, 52px)/1.1 var(--font-display); }
.bk-hold p { color: var(--text-2); max-width: 44ch; }
.bk-hold__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ───────────── תנועה (רק למי שלא ביקש להפחית) ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .meter__fill { transition: transform 700ms var(--ease-out); }
  .st--next .st__disc { animation: ring 2.4s var(--ease-out) 600ms 2 both; }
  @keyframes ring {
    0% { box-shadow: 0 0 0 6px var(--night-2), 0 0 0 10px rgba(233, 162, 59, .35); }
    40% { box-shadow: 0 0 0 6px var(--night-2), 0 0 0 18px rgba(233, 162, 59, 0); }
    100% { box-shadow: 0 0 0 6px var(--night-2), 0 0 0 10px rgba(233, 162, 59, .35); }
  }
  .status:not(:empty) { animation: rise 240ms var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .st__disc, .unit-card--open .unit-card__art img, .book-digital { transition: none; }
}
html.demo *, html.demo *::before, html.demo *::after { animation: none !important; transition: none !important; }
