@font-face{font-family:"Baloo 2";src:url("assets/baloo2.woff2") format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"RR Hebrew";src:url("assets/hebrew.woff2") format("woff2");font-weight:400;font-display:block;unicode-range:U+0590-05FF,U+25CC}
:root{
  --ink:#10263f; --ink-soft:#3e5d75; --deep:#071a33; --night:#0b2a4a; --teal:#0e708a; --sea:#287c9b; --sky:#63a9c8;
  --cream:#fefae6; --sun:#ffc93c; --sun-d:#f0a500; --flame:#ff6b3d;
  --r:22px; --shadow:0 10px 28px rgba(0,10,30,.35); --shadow-s:0 4px 12px rgba(0,10,30,.28);
  --tb-h:64px; --heb:"RR Hebrew","Ezra SIL","Times New Roman",serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:"Baloo 2","Comfortaa",system-ui,sans-serif;color:var(--ink);overflow-x:hidden;background:var(--deep);min-height:100dvh;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:4px solid var(--sun);outline-offset:3px;border-radius:12px}
[hidden]{display:none!important}


.bsd{position:fixed;top:6px;right:12px;z-index:60;font-size:15px;font-weight:700;color:#fefae6;opacity:.85;font-family:var(--heb)}

/* top bar */
.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;justify-content:space-between;padding:22px 14px 8px;min-height:var(--tb-h)}
.tb-left,.tb-right{display:flex;gap:8px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:6px;border:0;background:rgba(255,255,255,.92);border-radius:999px;padding:8px 14px;min-height:44px;box-shadow:var(--shadow-s);font-weight:700;font-size:16px;color:var(--ink);transition:transform .15s}
.pill:hover{transform:translateY(-2px)} .pill:active{transform:scale(.95)}
.pill svg{width:22px;height:22px;fill:currentColor}
.icon-btn{width:44px;padding:0;justify-content:center}
#btnSound .off{display:none} #btnSound[aria-pressed="false"] .on{display:none} #btnSound[aria-pressed="false"] .off{display:block}
#btnSound[aria-pressed="false"],#btnMusic[aria-pressed="false"]{opacity:.6}
#btnMusic[aria-pressed="true"]{background:var(--sun)}
.finish{background:var(--flame);color:#fff}
.scores{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.score{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.92);border-radius:999px;padding:4px 12px 4px 4px;box-shadow:var(--shadow-s);font-weight:800;font-size:18px}
.score .dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:800}
.score.bump{animation:bump .6s}
@keyframes bump{30%{transform:scale(1.25)}}

main{position:relative;z-index:1}
.screen{min-height:calc(100dvh - var(--tb-h));padding:12px 18px 28px;display:flex;flex-direction:column;align-items:center}
#scrStart{justify-content:center;min-height:100dvh;padding-top:36px}
h2{margin:0;font-size:clamp(26px,4vw,42px);line-height:1.1;font-weight:800;text-align:center;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.25),0 0 22px rgba(99,169,200,.45)}
.sub{margin:.3em 0 0;text-align:center;font-weight:600;font-size:clamp(16px,2vw,20px);color:#e2f5fc}

/* start */
.start-card{position:relative;background:rgba(254,250,230,.94);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:32px;box-shadow:var(--shadow);
  padding:22px 28px 26px;max-width:560px;width:100%;display:flex;flex-direction:column;align-items:center;gap:13px;animation:rise .7s cubic-bezier(.2,1.4,.4,1) both;margin-top:40px}
.title-art{position:absolute;top:-78px;left:78%;transform:translateX(-50%) rotate(28deg);width:62px;animation:hover 3.4s ease-in-out infinite}
.title-art img{width:100%;height:auto;filter:drop-shadow(0 8px 10px rgba(0,0,0,.3))}
@keyframes hover{50%{transform:translateX(-50%) translateY(-10px) rotate(28deg)}}
.game-title{margin:28px 0 0;font-size:clamp(40px,7vw,64px);line-height:.95;font-weight:800;color:var(--night);letter-spacing:.5px;text-align:center}
.game-title span{color:var(--flame);display:inline-block;animation:wobble 4s ease-in-out infinite}
.tagline{margin:0;font-size:19px;font-weight:600;text-align:center;color:var(--ink-soft)}
.toggle{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:600;color:var(--ink-soft);cursor:pointer;max-width:420px}
.toggle input{width:22px;height:22px;accent-color:var(--sea)}
.big-btn{border:0;border-radius:999px;background:linear-gradient(180deg,#ffd75e,var(--sun-d));color:#4a2c00;font-weight:800;font-size:clamp(20px,2.4vw,26px);padding:12px 38px;min-height:56px;box-shadow:0 6px 0 #c98200,0 12px 22px rgba(0,0,0,.18);transition:transform .12s,box-shadow .12s}
.big-btn:hover{transform:translateY(-2px)} .big-btn:active{transform:translateY(4px);box-shadow:0 2px 0 #c98200,0 4px 10px rgba(0,0,0,.18)}
.friend-btn{background:linear-gradient(180deg,#4592ae,var(--teal));color:#fff;box-shadow:0 6px 0 #0a5468,0 8px 18px rgba(0,0,0,.18);font-size:clamp(18px,2.1vw,22px)}
.friend-btn:active{box-shadow:0 2px 0 #0a5468,0 4px 10px rgba(0,0,0,.18)}
.link-btn{border:0;background:none;font-weight:700;font-size:17px;color:var(--teal);text-decoration:underline;text-underline-offset:4px;min-height:44px}
@keyframes wobble{50%{transform:rotate(-2deg) scale(1.03)}}
@keyframes rise{from{opacity:0;transform:translateY(40px) scale(.95)}}
.setup{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}

/* menu: 8 versions, right to left */
#scrMenu h2{margin-top:6px}
.pills{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px;justify-content:center}
.ver-grid{direction:rtl;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:min(1180px,100%)}
.ver{direction:ltr;position:relative;border:0;border-radius:26px;padding:0 0 14px;min-height:clamp(170px,27vh,250px);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;
  background:linear-gradient(180deg,rgba(254,250,230,.97),rgba(226,245,252,.95));box-shadow:var(--shadow);text-align:center;transition:transform .18s;animation:rise .55s both;overflow:hidden;color:var(--ink)}
.ver:hover{transform:translateY(-5px)} .ver:active{transform:scale(.97)}
.ver .he{display:grid;place-items:center;width:100%;height:clamp(78px,12vh,118px);overflow:hidden;background:radial-gradient(120% 110% at 50% 0%,var(--vc,#287c9b),var(--vc2,#0b2a4a));border-radius:0 0 50% 50%/0 0 22% 22%;
  font-family:var(--heb);font-size:clamp(44px,6.5vh,70px);line-height:1;color:var(--cream);text-shadow:0 0 14px rgba(254,250,230,.85),0 0 30px rgba(142,224,240,.6);direction:rtl;margin-bottom:4px}
.ver .name{font-size:clamp(19px,1.9vw,24px);font-weight:800;line-height:1.05}
.ver .count{font-size:14px;font-weight:600;color:var(--ink-soft);line-height:1.15;flex:1}
.ver .bar{width:78%;height:7px;border-radius:9px;background:#d6e6ee;overflow:hidden}
.ver .bar i{display:block;height:100%;background:var(--sea);border-radius:9px}

/* picker */
#scrPick h2{margin-top:6px}
.sec-list{width:min(1100px,100%);display:flex;flex-direction:column;gap:18px;margin-top:14px}
.sec{background:rgba(7,26,51,.45);border:1px solid rgba(142,224,240,.18);border-radius:24px;padding:12px 14px 16px}
.sec h3{margin:0 4px 10px;color:#fff;font-size:clamp(19px,2vw,24px);font-weight:800;display:flex;gap:10px;align-items:baseline;justify-content:flex-end}
.sec h3 small{font-size:.65em;font-weight:600;color:#bfe6f4}
.b-grid{direction:rtl;display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px}
.b-grid.pairs{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}
.bpad{direction:ltr;position:relative;border:0;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#8ee0f0,#287c9b 62%,#0e708a);box-shadow:0 5px 0 rgba(0,0,0,.28),0 0 0 2px rgba(254,250,230,.15) inset;
  display:grid;place-items:center;font-size:22px;font-weight:800;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.25);transition:transform .15s}
.bpad:hover{transform:translateY(-3px)} .bpad:active{transform:scale(.94)}
.bpad.done{background:radial-gradient(circle at 35% 30%,#ffe3a6,#f7a94a 60%,#c76a2c)}
.pair-pad{direction:ltr;border:0;border-radius:20px;padding:6px 6px 8px;background:rgba(254,250,230,.95);box-shadow:0 5px 0 rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink);transition:transform .15s}
.pair-pad:hover{transform:translateY(-3px)}
.pair-pad .pl{font-family:var(--heb);font-size:34px;line-height:1.1;direction:rtl}
.pair-pad .n{font-size:14px;font-weight:700;color:var(--ink-soft)}
.pair-pad.done{background:#ffe3a6}

/* board */
#scrBoard{padding-top:0}
.board-head{direction:rtl;display:flex;align-items:center;gap:14px;width:min(1180px,100%);justify-content:space-between}
.bh-mid{direction:ltr;text-align:center;min-width:0}
#boardTitle{font-size:clamp(22px,3.2vw,36px)}
.bh-sub{direction:rtl;display:flex;gap:6px;justify-content:center;margin-top:6px;flex-wrap:wrap;color:#e2f5fc;font-weight:700;font-size:16px}
.bh-sub .dotb{width:11px;height:11px;border-radius:50%;background:rgba(255,255,255,.35)}
.bh-sub .dotb.on{background:var(--sun);box-shadow:0 0 0 3px rgba(255,255,255,.6)}
.bh-sub .dotb.done{background:#fff}
.nav-arrow{border:0;width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:var(--shadow);display:grid;place-items:center;flex:none;transition:transform .15s}
.nav-arrow svg{width:32px;height:32px;color:var(--teal)}
.nav-arrow:hover{transform:scale(1.08)} .nav-arrow:active{transform:scale(.92)} .nav-arrow:disabled{opacity:.35;cursor:default;transform:none}

.hint{margin:6px 0 4px;text-align:center;color:#e2f5fc;font-weight:700;font-size:clamp(16px,1.8vw,20px)}

/* overlays */
.overlay{position:fixed;inset:0;z-index:70;display:grid;place-items:center;background:rgba(3,14,30,.45);padding:16px;animation:fadeIn .2s both}
@keyframes fadeIn{from{opacity:0}}
.sheet{background:var(--cream);border-radius:28px;box-shadow:var(--shadow);padding:22px 26px;max-width:560px;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;animation:rise .45s cubic-bezier(.2,1.4,.4,1) both}
.sheet h2{color:var(--ink);text-shadow:none}
.sheet .sub{color:var(--ink-soft)}
.how{margin:0;padding-left:1.3em;font-size:18px;line-height:1.45;font-weight:500}
.how li{margin:.3em 0}
.keys{margin:0;font-size:15px;color:var(--ink-soft)}
.team-award{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;direction:rtl}
.team-btn{border:0;border-radius:18px;padding:10px 18px;min-height:56px;font-weight:800;font-size:20px;color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.18);transition:transform .12s}
.team-btn:hover{transform:translateY(-3px)}
.win-actions,.end-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center}
.stars{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;font-weight:800;font-size:clamp(17px,1.8vw,22px);color:var(--ink)}
.stars svg{width:1.5em;height:1.5em;flex:none}
.mp-wait-note{margin:6px 0 0;font-weight:700;color:var(--ink-soft);font-size:17px}

/* end */
#scrEnd{justify-content:center}
.end-card{position:relative;background:rgba(254,250,230,.95);border-radius:32px;box-shadow:var(--shadow);padding:26px 28px 24px;max-width:600px;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;animation:rise .6s both;margin-top:60px}
.end-card h2{color:var(--ink);text-shadow:none}
.end-card .sub{color:var(--ink-soft)}
.end-card .stars{background:#fff2c4;border-radius:999px;padding:4px 16px}
.podium{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:8px;width:100%}
.podium li{display:flex;align-items:center;gap:12px;border-radius:18px;padding:10px 16px;font-weight:800;font-size:22px;color:#fff;box-shadow:var(--shadow-s);animation:rise .5s both}
.podium li .pts{margin-left:auto}
.podium li .medal{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.3);display:grid;place-items:center;font-size:18px}
.podium li.first{transform:scale(1.04)}

/* fx: circles, five-point stars and ribbons only (no cross shapes) */
.fx{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden}
.fx i{position:absolute;display:block;will-change:transform,opacity}
.fx .c{border-radius:50%}
.fx .s{clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.fx .r{border-radius:4px}
.fx .puff{border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.95),rgba(220,230,240,.6) 60%,rgba(220,230,240,0) 72%)}

/* Play with a friend */
.pill.leave{background:#fff;color:#c2283f}
.score .nm{max-width:9ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.score.turn{box-shadow:0 0 0 4px var(--sun),var(--shadow-s);background:#fff}
.score.away{opacity:.55}
body.mp-watch #verGrid,body.mp-watch #secList{pointer-events:none}
body.mp #menuPills{display:none}
body.mp-guest .nav-arrow{visibility:hidden}
body.mp[data-screen="board"] .hint{visibility:hidden}


/* What Comes Next: Chaim's bright blue board, white cards with a navy edge, orange "What comes next?" */
:root{--blue:#19b2ff;--blue-d:#0b7fc0;--navy:#052332;--orange:#ffb319}
body{background:#0e8fd6}
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:radial-gradient(110% 80% at 85% 0%,#5cd0ff 0%,rgba(92,208,255,0) 60%),radial-gradient(90% 80% at 0% 100%,#0a6ea8 0%,rgba(10,110,168,0) 60%),linear-gradient(180deg,#19b2ff 0%,#119fe8 60%,#0b86cc 100%)}
.bg i{position:absolute;display:block;border-radius:50%;background:rgba(255,255,255,.13)}
.bg .b1{width:46vmax;height:46vmax;left:-16vmax;top:-20vmax}
.bg .b2{width:20vmax;height:20vmax;right:-6vmax;bottom:8vh;background:rgba(255,179,25,.22)}
.bg .b3{width:9vmax;height:9vmax;right:20vw;top:12vh;background:rgba(255,255,255,.18)}
.bsd{color:#fff}
h2{text-shadow:0 3px 0 rgba(5,35,50,.3)}
.sub{color:#f2fbff}
.game-title{color:var(--navy)} .game-title span{color:#f08a00}
.title-cards{display:flex;gap:10px;margin-top:-6px;direction:rtl}
.title-cards span{display:grid;place-items:center;width:64px;height:88px;border-radius:12px;background:#fff;border:3px solid var(--navy);font-family:var(--heb);font-size:52px;line-height:1;color:var(--navy);box-shadow:0 6px 0 rgba(5,35,50,.25)}
.title-cards .q{font-family:"Baloo 2",sans-serif;font-weight:800;font-size:44px;color:#f08a00;transform:rotate(-6deg)}
.title-cards span:first-child{transform:rotate(5deg)}
.friend-btn{background:linear-gradient(180deg,#2ea8e6,#0b6fa8);box-shadow:0 6px 0 #084f78,0 8px 18px rgba(0,0,0,.18)}
.ver-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));width:min(760px,100%)}
.ver .he{background:radial-gradient(120% 110% at 50% 0%,var(--vc,#19b2ff),var(--vc2,#0b5c8c));text-shadow:0 3px 0 rgba(5,35,50,.3)}
.sec{background:rgba(5,35,50,.28);border-color:rgba(255,255,255,.25)}
.sec h3 small{color:#dff4ff}
.b-grid.cardpads{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}
.cpad{direction:ltr;border:0;border-radius:14px;padding:4px 4px 6px;aspect-ratio:3/4;background:#fff;border:3px solid var(--navy);box-shadow:0 5px 0 rgba(5,35,50,.3);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:var(--navy);transition:transform .15s}
.cpad:hover{transform:translateY(-3px)} .cpad:active{transform:scale(.95)}
.cpad .pl{font-family:var(--heb);font-size:38px;line-height:1.05;direction:rtl}
.cpad .pl .vsvg{height:1.1em;filter:none}
.cpad .n{font-size:14px;font-weight:700;color:#3e5d75}
.cpad.done{background:#fff2c4}
.bh-sub{color:#f2fbff}

/* board: I HAVE card on the right, 6 choices on the left (3 on top, 3 below, right to left) */
.seq-zone{direction:rtl;flex:1;width:min(1240px,100%);display:flex;align-items:center;justify-content:center;gap:clamp(14px,3vw,44px);padding:12px 0 4px}
.have-col{direction:ltr;flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;width:var(--hw)}
.seq-zone{--cw:min(calc((min(1240px,100vw) - 80px) * .2),calc((100dvh - 290px) / 2 * .69),220px);--hw:calc(var(--cw) * 1.27)}
.lbl-have,.lbl-next{font-weight:800;line-height:1;text-align:center;letter-spacing:.5px}
.lbl-have{font-size:clamp(24px,calc(var(--cw) * .2),44px);color:#fff;text-shadow:0 3px 0 rgba(5,35,50,.35)}
.lbl-next{font-size:clamp(20px,calc(var(--cw) * .17),36px);color:var(--orange);text-shadow:0 3px 0 rgba(5,35,50,.45);max-width:var(--hw)}
.have-card,.card{position:relative;background:#fff;border:clamp(3px,.35vw,5px) solid var(--navy);border-radius:clamp(12px,1.4vw,22px);display:grid;place-items:center;box-shadow:0 8px 0 rgba(5,35,50,.25),0 14px 26px rgba(5,35,50,.25)}
.have-card{width:var(--hw);aspect-ratio:283/399}
.have-card .w,.card .w{font-family:var(--heb);direction:rtl;color:var(--navy);line-height:1;font-weight:400;white-space:nowrap;padding-top:.06em}
.have-card .w{font-size:calc(var(--hw) * .66)}
.have-card.vowel .w,.card.vowel .w{padding:0;line-height:0}
.vsvg{display:block;fill:currentColor;height:1.25em;width:auto;margin:auto}
.ver .he .vsvg{height:.95em}
.cc-ch-letter .vsvg{height:1.5em;filter:none}
.have-card .vsvg,.card .vsvg{height:1.2em;filter:none}
.have-card.arrive{animation:arrive .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes arrive{from{transform:scale(.6);opacity:.3}}
.cards{direction:rtl;display:grid;grid-template-columns:repeat(3,var(--cw));gap:clamp(12px,2.2vw,30px) clamp(12px,2.2vw,34px)}
.card{width:var(--cw);aspect-ratio:223/324;padding:0;cursor:pointer;transition:transform .15s,box-shadow .15s;animation:rise .45s both}
.card .w{font-size:calc(var(--cw) * .62)}
.card.vowel .w{font-size:calc(var(--cw) * .5)}
.card:hover{transform:translateY(-4px)} .card:active{transform:scale(.96)}
.card.asking{box-shadow:0 0 0 6px var(--orange),0 14px 26px rgba(5,35,50,.25)}
.card.shake{animation:ccShake .5s ease-in-out}
.card.gone{animation:vanish .38s cubic-bezier(.3,.7,.4,1) forwards;pointer-events:none}
@keyframes vanish{40%{transform:scale(1.1)}100%{transform:scale(.2);opacity:0}}
.card.out{visibility:hidden;pointer-events:none}
.card.right{z-index:5;pointer-events:none;box-shadow:0 0 0 7px #3fd19c,0 0 40px rgba(63,209,156,.7)}
.card.fly{transition:transform .75s cubic-bezier(.5,0,.3,1);z-index:6}
.hint{color:#fff;text-shadow:0 2px 0 rgba(5,35,50,.3)}
.hint .tm{display:inline-block;padding:0 10px;border-radius:999px;color:#fff}
.sheet.win{max-width:520px}
.podium.mini li{font-size:19px;padding:7px 14px}
.score.turn{box-shadow:0 0 0 4px var(--orange),var(--shadow-s);background:#fff}
.finish{background:#f08a00}
body.mp-watch #verGrid,body.mp-watch #secList{pointer-events:none}


/* logo: in the page flow at the bottom of the home screen; a faint corner logo everywhere else */
body[data-screen="start"] .cc-made{position:relative;left:auto;bottom:auto;transform:none;display:flex;width:max-content;margin:-58px auto 14px}
body:not([data-screen="start"]) .cc-made{left:auto;right:max(8px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));transform:none;padding:4px 6px;opacity:.55;background:rgba(255,255,255,.5)}
body:not([data-screen="start"]) .cc-made img{height:16px}
body:not([data-screen="board"]) .screen{padding-bottom:40px}
#scrStart{padding-bottom:70px}

body.mp #scrBoard{padding-bottom:64px}
body.mp .seq-zone{--cw:min(calc((min(1240px,100vw) - 80px) * .2),calc((100dvh - 340px) / 2 * .69),220px)}
/* phones */
@media (max-width:700px){
  :root{--tb-h:58px}
  .topbar{padding:24px 8px 6px;gap:6px;flex-wrap:wrap}
  .pill{min-height:40px;padding:6px 10px;font-size:15px}.icon-btn{width:40px}
  #btnBack .lbl{display:none} #btnFull{display:none}
  .scores{order:3;width:100%}
  .ver-grid.two{gap:12px}
  .ver{min-height:150px;padding:0 6px 12px}.ver .he{height:76px;width:calc(100% + 12px)}
  .start-card{padding:18px 16px 20px}
  .nav-arrow{width:48px;height:48px}.nav-arrow svg{width:26px;height:26px}
  #boardTitle{font-size:21px}
  #scrBoard{padding-left:10px;padding-right:10px}
  .b-grid.cardpads{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .cpad .pl{font-size:30px}
  .hint{font-size:16px}
  #scrBoard{min-height:0;padding-bottom:26px}
}
/* portrait phone: I HAVE on top as one row, cards below */
@media (max-aspect-ratio:4/5){
  .seq-zone{flex-direction:column;justify-content:space-evenly;gap:12px;--cw:min(calc((100vw - 60px) / 3),calc((100dvh - 330px) * .29),200px);--hw:calc(var(--cw) * .9)}
  .have-col{direction:rtl;flex-direction:row;width:auto;gap:12px}
  .have-col .lbl-have,.have-col .lbl-next{direction:ltr;max-width:9ch;font-size:clamp(18px,5.4vw,30px)}
  body.mp .seq-zone{--cw:min(calc((100vw - 60px) / 3),calc((100dvh - 390px) * .29),200px)}
}
/* short landscape (sideways phone) */
@media (max-height:500px) and (min-aspect-ratio:4/5){
  .topbar{padding:6px 8px 2px}
  .seq-zone{padding:2px 0;--cw:min(calc((100dvh - 178px) / 2 * .69),calc((100vw - 120px) * .17));--hw:calc(var(--cw) * 1.2)}
  .cards{gap:10px 16px}
  body.mp .seq-zone{--cw:min(calc((100dvh - 226px) / 2 * .69),calc((100vw - 120px) * .17))}
  .board-head .nav-arrow{width:42px;height:42px}
  #boardTitle{font-size:19px}
  .bh-sub{margin-top:2px}
  .hint{margin:2px 0;font-size:15px}
  #scrBoard{min-height:0;padding-bottom:18px}
  .seq-zone{flex:none}
  .lbl-have{font-size:20px}.lbl-next{font-size:16px}
}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}}
