/* Launch page for an app with more to show (site.js appShowcase; first used by Basketball Shoot & Learn).
   Loaded only by that page. Night-court hero and call to action, the site's light cards in between.
   Logical properties throughout, so Hebrew and Arabic mirror; text in controls is centred on the glyph ink. */
.showcase{--sc-night:#140b33;--sc-violet:#2b1563;--sc-plum:#5a1f74;--sc-flame:#ff7a3d;--sc-amber:#ffc04d;--sc-cream:#ffe1b3;--sc-lilac:#e7deff}
.sc-hero,.sc-band,.sc-cta{background:radial-gradient(60% 70% at 88% 18%,#ff8a3d40,transparent 70%),radial-gradient(55% 65% at 0% 100%,#8b47ff4d,transparent 72%),linear-gradient(150deg,var(--sc-night) 0%,var(--sc-violet) 48%,var(--sc-plum) 78%,#7a2a62 100%);color:#fff}
.sc-hero{position:relative;overflow:hidden;isolation:isolate;padding:26px 0 64px}
.sc-court{position:absolute;inset:0;z-index:-1;pointer-events:none}
.sc-court::before{content:"";position:absolute;width:560px;height:560px;border:2px solid #ffffff14;border-radius:50%;inset-inline-end:-150px;bottom:-300px}
.sc-court::after{content:"";position:absolute;inset-block:0;inset-inline-start:57%;border-inline-start:2px solid #ffffff0f}
.sc-court span{position:absolute;width:220px;height:220px;border:2px solid #ffffff10;border-radius:50%;inset-inline-start:-90px;top:30px}
.sc-hero .back-link{color:#e6dbff}
.sc-hero .back-link:hover{color:#fff}
.showcase :is(.sc-hero,.sc-cta,.sc-band) a:focus-visible{outline-color:#ffd59a}
.sc-hero-inner{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:48px;align-items:center}
.sc-brand{display:flex;align-items:center;gap:14px}
.sc-icon{width:64px;height:64px;border-radius:18px;box-shadow:0 8px 24px #00000059,0 0 0 2px #ffffff26}
.sc-hero .download-type{color:var(--sc-cream);margin:0;font-size:14px;font-weight:800;letter-spacing:.3px}
.sc-hero h1{color:#fff;font-size:clamp(38px,4.6vw,60px);line-height:1.1;margin:18px 0 12px;text-wrap:balance;overflow-wrap:break-word;text-shadow:0 3px 0 #00000030}
.sc-slogan{font-size:clamp(21px,2.3vw,28px);font-weight:900;line-height:1.35;margin:0 0 14px;color:var(--sc-amber)}
.sc-lead{font-size:18px;line-height:1.75;color:#ece6ff;max-width:36rem;margin:0}
.sc-facts{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:20px 0 26px}
.sc-facts li{display:inline-flex;align-items:center;min-height:36px;box-sizing:border-box;padding:0 14px;border-radius:999px;background:#ffffff17;border:1px solid #ffffff33;color:#fff;font-size:14px;font-weight:800;line-height:1.2}
.sc-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
/* UI rule 1: the label inside every pill and button is trimmed to its letters (cap height to baseline; x-height for
   Hebrew and Arabic labels, whose letters sit in that band; Latin names on those pages keep cap height), so flex
   centring centres the ink in every language and font. Browsers without text-box keep the ordinary line box. */
.showcase .sc-t{display:block;text-box:trim-both cap alphabetic}
.showcase:lang(he) .sc-t:dir(rtl),.showcase:lang(ar) .sc-t:dir(rtl){text-box:trim-both ex alphabetic}
.showcase .sc-t.sc-num:dir(rtl){text-box:trim-both cap alphabetic}
.showcase .sc-actions .button.sc-play{min-height:52px;padding:0 26px;font-size:16px;line-height:1.2;gap:10px;color:#2b0f00;border:1px solid #ffd08a;background:linear-gradient(135deg,#ffc04d 0%,#ff8a3d 55%,#f4612f 100%);box-shadow:inset 0 1px 0 #ffffff99,0 8px 22px #ff7a3d4d}
.showcase .sc-actions .button.sc-play:hover{box-shadow:inset 0 1px 0 #ffffff99,0 12px 26px #ff7a3d66}
.showcase .sc-actions .button.sc-play:active{transform:translateY(1px);box-shadow:inset 0 1px 0 #ffffff99,0 4px 12px #ff7a3d4d}
.sc-soon{display:inline-flex;align-items:center;justify-content:center;min-height:52px;box-sizing:border-box;padding:0 22px;border-radius:30px;border:2px dashed #ffffff66;background:#ffffff0d;color:#f3eeff;font-size:15px;font-weight:800;line-height:1.2;cursor:default;user-select:none;text-align:center}
.sc-peek{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:10px;color:var(--sc-cream);font-weight:800;font-size:15px}
.sc-peek:hover{color:#fff}
.sc-hero-visual{position:relative;height:540px}
.sc-phone{position:absolute;width:262px;height:auto;aspect-ratio:235/418;object-fit:cover;border-radius:30px;border:7px solid #0b0720;background:#0b0720;box-shadow:0 30px 60px #0000006b,0 0 0 1px #ffffff26}
.sc-phone-front{inset-inline-end:7%;top:4px;transform:rotate(5deg);z-index:2}
.sc-phone-back{inset-inline-start:3%;top:62px;transform:rotate(-7deg);filter:brightness(.9)}
html[dir=rtl] .sc-phone-front{transform:rotate(-5deg)}
html[dir=rtl] .sc-phone-back{transform:rotate(7deg)}
.sc-ball{position:absolute;z-index:3;width:96px;height:96px;border-radius:50%;inset-inline-end:0;bottom:6px;box-shadow:0 14px 30px #00000066;animation:scBounce 2.6s ease-in-out infinite}
@keyframes scBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}

.sc-steps,.sc-learn,.sc-modes{margin-top:56px}
.sc-step-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.sc-step,.sc-subject,.sc-mode{background:#fff;border:1px solid var(--edge);border-radius:24px;box-shadow:inset 0 2px 0 #ffffffed,0 4px 0 #9865c710,0 8px 22px #643d9410}
.sc-step{position:relative;padding:26px 26px 24px}
.sc-step-icon,.sc-subject-icon,.sc-mode-icon{display:flex;align-items:center;justify-content:center;flex:none;line-height:1;font-family:Arial,sans-serif}
/* The emoji in a tile: trimmed like the labels, on one first font in every page language. */
.sc-e{display:block;text-box:trim-both cap alphabetic}
.sc-step-icon{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#fff0d9,#ffdcae);font-size:30px;margin-bottom:16px}
.sc-step-num{position:absolute;top:16px;inset-inline-end:22px;font-size:52px;font-weight:900;line-height:1;color:#f6e8d6}
.sc-step h3{position:relative;font-size:20px;color:var(--purple-deep);margin:0 0 8px}
.sc-step p{margin:0;font-size:16px;line-height:1.7;color:var(--muted)}

.sc-intro{max-width:780px;margin:0 auto 26px;text-align:center;font-size:17px;line-height:1.75;color:var(--muted)}
.sc-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.sc-subject{padding:24px 26px}
.sc-subjects>.sc-code{grid-row:span 2}.sc-subjects>.sc-more{grid-column:1/-1}
.sc-subject h3{display:flex;align-items:center;gap:12px;font-size:21px;margin:0 0 14px;color:var(--purple-deep)}
.sc-subject-icon{width:46px;height:46px;border-radius:14px;font-size:24px}
.sc-code .sc-subject-icon{background:#ede4ff}.sc-science .sc-subject-icon{background:#dff5ec}.sc-exams .sc-subject-icon{background:#fff0d9}.sc-more .sc-subject-icon{background:#ffe4f0}
.sc-row+.sc-row{margin-top:13px}
.sc-row h4{margin:0 0 7px;font-size:14px;line-height:1.4;color:#6b5b86;font-weight:800}
.sc-tags{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:7px}
.sc-tags li{display:inline-flex;align-items:center;min-height:32px;box-sizing:border-box;padding:5px 12px;border-radius:999px;background:#f7f2ff;border:1px solid #e4d8f7;color:#47288a;font-size:14px;font-weight:700;line-height:1.25;overflow-wrap:break-word}
.sc-exams .sc-tags li{background:#fff7ea;border-color:#f3dcb8;color:#7a4510}
.sc-science .sc-tags li{background:#effaf5;border-color:#cdeadc;color:#1f6247}
.sc-more .sc-tags li{background:#fff2f8;border-color:#f6d3e4;color:#8a2357}

.sc-mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.sc-mode{padding:22px}
.sc-mode-icon{width:54px;height:54px;border-radius:17px;font-size:28px;margin-bottom:14px;background:linear-gradient(140deg,#24125a,#5a2384);box-shadow:0 6px 14px #3a1a7a33}
.sc-mode h3{font-size:18px;margin:0 0 8px;color:var(--purple-deep)}
.sc-mode p{font-size:15px;line-height:1.65;margin:0;color:var(--muted)}

.sc-band{margin:60px 0 20px;padding:54px 0}
.sc-band h2{text-align:center;color:#fff;margin:0 0 10px}
.sc-band-text{text-align:center;color:#e3daff;max-width:720px;margin:0 auto 22px;font-size:17px;line-height:1.7}
.sc-moves{list-style:none;padding:0;margin:0 auto 32px;display:flex;flex-wrap:wrap;justify-content:center;gap:9px;max-width:920px}
.sc-moves li{display:inline-flex;align-items:center;min-height:38px;box-sizing:border-box;padding:0 16px;border-radius:999px;background:#ffffff12;border:1px solid #ffb3476b;color:#ffdcae;font-weight:800;font-size:14.5px;line-height:1.2}
.sc-extras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.sc-extra{background:#ffffff10;border:1px solid #ffffff26;border-radius:22px;padding:24px 26px}
.sc-extra-icon{display:block;font-size:30px;line-height:1;margin-bottom:12px}
.sc-extra h3{color:#fff;font-size:20px;margin:0 0 8px}
.sc-extra p{color:#e6ddff;margin:0;line-height:1.7;font-size:15.5px}

.sc-cta-wrap{margin-top:48px}
.sc-cta{display:flex;align-items:center;gap:30px;padding:34px 40px;border-radius:30px;box-shadow:0 18px 40px #2a135a33}
.sc-cta-icon{width:96px;height:96px;flex:none;border-radius:26px;box-shadow:0 10px 26px #00000059,0 0 0 2px #ffffff26}
.sc-cta-copy{min-width:0}
.sc-cta h2{color:#fff;margin:0 0 6px;font-size:30px}
.sc-cta p{color:#ece4ff;margin:0 0 18px;font-size:17px;line-height:1.65}
.sc-notes{max-width:840px;margin:18px auto 0;text-align:center}
.sc-notes p{font-size:13.5px;line-height:1.65;color:var(--muted);margin:6px 0}

@media(max-width:1060px){.sc-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-hero-inner{gap:28px}.sc-phone{width:226px}.sc-hero-visual{height:480px}}
@media(max-width:820px){
 .sc-hero{padding:20px 0 40px}
 .sc-court::after{display:none}
 .sc-hero-inner{grid-template-columns:1fr;gap:26px}
 .sc-hero-copy{text-align:center}
 .sc-brand,.sc-facts,.sc-actions{justify-content:center}
 .sc-lead{margin-inline:auto}
 .sc-hero-visual{height:auto;display:flex;justify-content:center;align-items:flex-start;padding:8px 0 18px}
 .sc-phone{position:relative;inset:auto;width:min(42vw,210px);border-radius:22px;border-width:5px}
 .sc-phone-back{top:26px;margin-inline-end:-9vw}
 .sc-phone-front{top:0}
 .sc-ball{width:64px;height:64px;bottom:0;inset-inline-end:max(4px,calc(50% - 190px))}
 .sc-step-list{grid-template-columns:1fr}
 .sc-subjects,.sc-extras{grid-template-columns:1fr}
 .sc-subjects>.sc-code{grid-row:auto}
 .sc-steps,.sc-learn,.sc-modes{margin-top:40px}
}
@media(max-width:620px){
 .sc-hero h1{font-size:clamp(32px,9vw,40px)}
 .sc-lead{font-size:16.5px}
 .sc-actions{flex-direction:column;align-items:stretch}
 .showcase .sc-actions .button.sc-play,.sc-soon{width:100%}
 .sc-mode-grid{grid-template-columns:1fr}
 .sc-mode,.sc-step{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center}
 .sc-mode-icon,.sc-step-icon{width:48px;height:48px;font-size:25px;margin:0}
 .sc-mode h3,.sc-step h3{margin:0}
 .sc-mode p,.sc-step p{grid-column:1/-1;margin-top:12px}
 .sc-step-num{top:12px;font-size:40px}
 .sc-step,.sc-subject{padding:22px 20px}
 .sc-band{padding:40px 0;margin-top:44px}
 .sc-extra{padding:22px 20px}
 .sc-cta{flex-direction:column;text-align:center;padding:28px 20px;gap:18px}
 .sc-cta h2{font-size:26px}
}
@media(prefers-reduced-motion:reduce){.sc-ball{animation:none}}
@media print{.sc-hero,.sc-band,.sc-cta{background:none;color:inherit}.sc-hero-visual,.sc-ball{display:none}.showcase :is(.sc-hero,.sc-band,.sc-cta) :is(h1,h2,h3,p,li,a,span){color:#25233e!important}}
