/* Alef Bais with Morah Chanie · shared styles */
@font-face{font-family:"Baloo 2";src:url("baloo2.woff2") format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"MC Hebrew";src:url("mchebrew.woff2") format("woff2");font-display:swap}
:root{--ink:#4a3b32;--soft:#7a6656;--cream:#fff8ee;--paper:#fffdf9;--peach:#f6b89a;--rose:#f2a7b5;--sage:#a8cfa0;--sky:#9fcbe8;--butter:#ffd98a;--lav:#c9b6e4;--line:#efe2d2;--ok:#6fae6a;--shadow:0 6px 18px rgba(120,80,40,.12)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Baloo 2",system-ui,sans-serif;color:var(--ink);background:var(--cream);background-image:radial-gradient(circle at 12% 8%,#fde9dc 0,transparent 40%),radial-gradient(circle at 92% 30%,#eef3e4 0,transparent 35%);min-height:100vh;font-size:18px;line-height:1.45;overflow-x:hidden}
.he{font-family:"MC Hebrew","Ezra SIL","Taamey Frank CLM","Times New Roman",serif;font-weight:400;direction:rtl;unicode-bidi:isolate}
a{color:inherit}
button{font-family:inherit;color:inherit}
:focus-visible{outline:4px solid #7aa6c2;outline-offset:3px;border-radius:14px}
.top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:1040px;margin:0 auto;padding:10px 16px 0;min-height:52px}
.bsd{position:absolute;top:8px;right:14px;font-size:20px;color:var(--soft)}
.top-left{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-right:64px}
.pill{display:inline-flex;align-items:center;gap:6px;border:0;background:#fff;border-radius:999px;padding:6px 16px;min-height:44px;font-size:17px;font-weight:700;box-shadow:var(--shadow);text-decoration:none;cursor:pointer}
.pill .chev{font-size:24px;line-height:1;margin-top:-3px}
.wrap{max-width:1040px;margin:0 auto;padding:0 16px 40px}
h1,h2,h3{line-height:1.15;margin:0}
.hero{text-align:center;padding:18px 4px 6px}
.hero .abg{font-size:44px;display:flex;justify-content:center;gap:12px;margin-bottom:6px}
.hero .abg span{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;box-shadow:var(--shadow);padding-top:6px}
.hero h1{font-size:clamp(32px,8vw,54px);font-weight:800;letter-spacing:-.5px}
.hero h1 small{display:block;font-size:.55em;font-weight:700;color:#c07b5c;letter-spacing:0}
.lede{max-width:600px;margin:12px auto 0;font-size:18px;color:var(--soft)}
.ded{margin:22px auto 6px;max-width:520px;background:var(--paper);border:2px solid #e9dcf3;border-radius:24px;padding:16px 18px;text-align:center;box-shadow:var(--shadow)}
.ded p{margin:0;font-size:clamp(19px,5.6vw,26px);line-height:1.5;white-space:nowrap}
.ded .l3{font-size:clamp(22px,6.4vw,30px)}
section{margin-top:30px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 12px}
.sec-h h2{font-size:26px;font-weight:800}
.sec-h p{margin:0;color:var(--soft);font-size:16px}
.games{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.game{display:flex;align-items:center;gap:14px;text-decoration:none;background:var(--paper);border-radius:24px;padding:14px 16px;box-shadow:var(--shadow);min-height:96px;border:2px solid transparent;transition:transform .15s}
.game:active{transform:scale(.98)}
.game:hover{border-color:var(--line)}
.game .gi{flex:0 0 72px;height:72px;border-radius:20px;display:grid;place-items:center}
.game .gi svg{width:60px;height:60px}
.game h3{font-size:21px;font-weight:800}
.game p{margin:2px 0 0;font-size:15px;color:var(--soft);line-height:1.3}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:10px}
/* letter chart: bordered table, 7 per row, right to left; the last row of 4 is centred */
.chart{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:0;max-width:658px;margin:0 auto;padding:2px}
.chart .cell{grid-column-end:span 2;aspect-ratio:1/1;margin:-1px;border:2px solid #3b2f28;border-radius:0;background:#fff;display:grid;place-items:center;padding:0;cursor:pointer;min-width:0;-webkit-tap-highlight-color:transparent;transition:background .12s}
.chart .cell .he{font-size:clamp(28px,8.6vw,58px);line-height:1;font-weight:700;color:#2a211c;-webkit-text-stroke:.025em #2a211c;padding-top:.08em;pointer-events:none}
.chart .cell:hover{background:#fff6ea}
.chart .cell:active{background:#fdebd6}
.chart .cell:focus-visible{outline:4px solid #7aa6c2;outline-offset:-4px;border-radius:0;position:relative;z-index:1}
.lcard{border:0;background:var(--paper);border-radius:22px;box-shadow:var(--shadow);padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:112px;cursor:pointer;transition:transform .12s}
.lcard:active{transform:scale(.96)}
.lcard .he{font-size:50px;line-height:1;margin:2px 0 20px}
.lcard .nm{font-size:14px;font-weight:700;color:var(--soft);direction:ltr;line-height:1.1;text-align:center;white-space:nowrap}
.c0{background:#fde3d6}.c1{background:#fbe0e6}.c2{background:#e5f1e1}.c3{background:#e1eef8}.c4{background:#fff0cc}.c5{background:#eee6f8}
.soon{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.soon div{background:rgba(255,253,249,.7);border:2px dashed var(--line);border-radius:18px;padding:10px 14px;display:flex;gap:12px;align-items:center}
.soon .he{font-size:34px;min-width:44px;text-align:center;color:#a8907c}
.soon b{display:block;font-size:17px}
.soon span.t{font-size:14px;color:var(--soft);line-height:1.25;display:block}
.soon em{font-style:normal;font-size:13px;font-weight:700;color:#c07b5c}
footer{max-width:1040px;margin:30px auto 0;padding:18px 16px 34px;text-align:center;color:var(--soft);font-size:15px}
/* letter sheet */
.sheet{position:fixed;inset:0;z-index:20;background:rgba(74,59,50,.35);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s}
.sheet.open{opacity:1;pointer-events:auto}
.sheet .card{width:100%;max-width:560px;max-height:96vh;overflow:auto;background:var(--paper);border-radius:28px 28px 0 0;padding:14px 18px 22px;transform:translateY(30px);transition:transform .25s;box-shadow:0 -8px 30px rgba(0,0,0,.15)}
.sheet.open .card{transform:none}
@media (min-width:700px) and (min-height:600px){.sheet{align-items:center}.sheet .card{border-radius:28px}}
.sheet .row1{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:10px}
.sheet .big{display:flex;align-items:center;justify-content:center;gap:16px;margin:4px 0}
.sheet .big .he{font-size:clamp(110px,30vw,150px);line-height:1.4;pointer-events:none}
.sheet .big svg{width:120px;height:120px;flex:0 0 auto}
.sheet .big img.photo{width:clamp(150px,46vw,220px);height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:24px;box-shadow:var(--shadow);background:#fff6ea;flex:0 0 auto}
.sheet .big .he{min-width:.6em;text-align:center}
img.photo{display:block;-webkit-user-drag:none;user-select:none}
.game .gi{overflow:hidden}
.game .gi img.photo{width:72px;height:72px;object-fit:cover;border-radius:20px}
.sheet h2{text-align:center;font-size:30px;font-weight:800}
.sheet blockquote{margin:10px 0 4px;background:#fff6ea;border-radius:20px;padding:14px 18px;font-size:19px;line-height:1.45}
.sheet .by{text-align:right;font-size:15px;color:var(--soft);margin:2px 6px 10px}
.sheet .nav{display:flex;justify-content:space-between;gap:10px}
.sheet .nav .pill{background:#f4ece2;box-shadow:none}
@media (max-height:500px){.sheet .card{padding:10px 16px 12px}.sheet .big{margin:0}.sheet .big .he{font-size:76px;line-height:1.3}.sheet .big svg{width:66px;height:66px}.sheet .big img.photo{width:118px;border-radius:18px}.sheet h2{font-size:24px}.sheet .by{margin:0 6px 6px}.sheet blockquote{font-size:17px}}
/* games shared */
.gtitle{text-align:center;margin:6px 0 4px}
.gtitle h1{font-size:clamp(28px,7vw,42px);font-weight:800}
.gtitle p{margin:2px auto 0;max-width:560px;color:var(--soft);font-size:17px}
.quote{max-width:620px;margin:12px auto;background:var(--paper);border-radius:22px;padding:12px 18px;box-shadow:var(--shadow);font-size:18px}
.quote .who{display:block;font-size:14px;color:var(--soft);text-align:right}
.choices{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:14px 0}
.btn{border:0;border-radius:22px;padding:10px 22px;min-height:60px;font-size:20px;font-weight:800;background:var(--butter);box-shadow:0 4px 0 #e2b65a;cursor:pointer;transition:transform .1s}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #e2b65a}
.btn.alt{background:#e1eef8;box-shadow:0 4px 0 #b6d0e3}
.btn.on{outline:4px solid #e2a23c}
.msg{min-height:34px;text-align:center;font-size:20px;font-weight:700;margin:6px 0}
.prog{display:flex;justify-content:center;gap:6px;margin:6px 0}
.prog i{width:14px;height:14px;border-radius:50%;background:#eadccb;display:block}
.prog i.done{background:var(--ok)}
.hidden{display:none!important}
.wiggle{animation:wig .4s}
@keyframes wig{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.pop{animation:pop .35s}
@keyframes pop{50%{transform:scale(1.08)}}
.end{text-align:center;padding:20px 10px}
.end h2{font-size:34px;font-weight:800}
.end p{font-size:19px;color:var(--soft)}
.float{position:fixed;bottom:-40px;pointer-events:none;z-index:30;animation:rise 2.6s ease-out forwards}
@keyframes rise{to{transform:translateY(-110vh);opacity:0}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* game groups (home) and Play links on the letter sheet */
.ggroup{margin-top:14px}
.gh{font-size:18px;font-weight:800;color:#c07b5c;margin:0 4px 8px}
.games.sm{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.games.sm .game{min-height:76px;padding:9px 12px;gap:12px;border-radius:20px}
.games.sm .game .gi{flex:0 0 58px;height:58px;border-radius:16px}
.games.sm .game .gi img.photo{width:58px;height:58px;border-radius:16px}
.games.sm h4{margin:0;font-size:18px;font-weight:800;line-height:1.15}
.games.sm .game p{font-size:14.5px}
@media (max-width:560px){.games.sm{grid-template-columns:1fr 1fr;gap:8px}.games.sm .game{flex-direction:column;align-items:flex-start;padding:10px;gap:6px;min-height:0}.games.sm .game .gi,.games.sm .game .gi img.photo{width:52px;height:52px;flex-basis:52px}.games.sm h4{font-size:16.5px}.games.sm .game p{font-size:13.5px}}
.plays{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:8px 0 12px}
.plays .pl{font-weight:800;color:var(--soft);font-size:16px}
.plays .pill.play{background:#fff0cc;box-shadow:none;min-height:40px;font-size:16px;padding:4px 14px}
.plays .pill.play.main{background:var(--butter)}
.games.sm .game p .he{font-size:1.25em;line-height:1}

.mc-photo{margin:4px auto 16px;width:min(190px,48vw)}
.mc-photo img{display:block;width:100%;height:auto;border-radius:22px;box-shadow:0 10px 30px rgba(0,0,0,.14);border:5px solid #fff}

/* v5: the chart tiles wear Morah Chanie's own letters (her pictures, cropped only); same 7-per-row RTL chart */
.chart.art{gap:6px;padding:4px;max-width:700px}
.chart.art .cell{margin:0;border:0;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 3px 10px rgba(120,80,40,.16),inset 0 0 0 1px rgba(90,60,40,.08);position:relative;transition:transform .12s,box-shadow .12s}
.chart.art .cell img.art{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none}
.chart.art .cell .he{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chart.art .cell.noart .he{position:static;width:auto;height:auto;clip-path:none}
.chart.art .cell:hover{transform:translateY(-2px);box-shadow:0 7px 16px rgba(120,80,40,.22)}
.chart.art .cell:active{transform:scale(.95)}
.chart.art .cell:focus-visible{outline:4px solid #7aa6c2;outline-offset:2px;border-radius:16px}
@media (max-width:520px){.chart.art{gap:4px;padding:2px}.chart.art .cell{border-radius:11px}.chart.art .cell:focus-visible{border-radius:11px}}
/* v6 (Chaim, Nov 12): keep the soft coloured tiles, show the big black letter (the v4 chart's font and weight) */
.chart.art.ink .cell{box-shadow:0 3px 10px rgba(120,80,40,.14),inset 0 0 0 1px rgba(90,60,40,.10)}
.chart.art.ink .cell .he{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:clamp(26px,7.6vw,58px);line-height:1;font-weight:700;color:#1c1612;-webkit-text-stroke:.025em #1c1612;padding-top:0;margin-top:-.04em;pointer-events:none}
.chart.art.ink .cell:hover{filter:brightness(1.03)}
