/* Card Picker screen (Session 2). Ported from the unified picker page, scoped under #cardChooserScreen.
   Colours come from the frame's segment variables (--jf-*), glass = translucent fills + blur on the few panels. */
:root{
  --jema-bg:rgba(var(--jf-top),.55); --jema-bg2:rgba(var(--jf-surface),.50);
  --jema-accent:rgb(var(--jf-bottom)); --jema-accent-dim:rgba(var(--jf-bottom),.45);
  --jema-text:rgb(var(--jf-text)); --jema-text-dim:rgba(var(--jf-text),.72);
  --jema-card-taken:rgba(42,42,42,.50); --jema-card-free:rgba(var(--jf-surface),.5); --jema-card-mine:rgb(var(--jf-bottom));
  --jema-radius:1.1vh; --jema-font:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; --jema-anim-speed:1;
  --jema-card-w:9.6vw; --jema-hex-gap:1.6vw; --jema-hex-row-offset:5.4vw; --jema-hex-row-overlap:-1.6vh;
  --tg-safe-t:0px; --tg-safe-b:0px; --tg-safe-l:0px; --tg-safe-r:0px; --tg-min-t:0px;
  --safe-t:max(env(safe-area-inset-top,0px),var(--tg-safe-t),var(--tg-min-t));
  --safe-b:max(env(safe-area-inset-bottom,0px),var(--tg-safe-b));
  --safe-l:max(env(safe-area-inset-left,0px),var(--tg-safe-l));
  --safe-r:max(env(safe-area-inset-right,0px),var(--tg-safe-r));
  --jf-mine-ink:#0d0d0d;
}
@media (prefers-reduced-motion:reduce){:root{--jema-anim-speed:0}}
#cardChooserScreen .chooser-content{flex:1;display:flex;flex-direction:row;overflow:visible;position:relative;}
#cardChooserScreen .chooser-left-col{width:0;min-width:0;max-width:0;height:0;padding:0;border:none;overflow:visible;position:relative;}
#cardChooserScreen .header-circle-grid{position:relative;width:0;height:0;overflow:visible;}
#cardChooserScreen .phase-badge.jema-under-notch{position:fixed; top:calc(var(--safe-t) + 15vh + var(--jf-dy)); left:50%; transform:translateX(-50%);
  z-index:39; max-width:70vw; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:rgba(0,0,0,.72);}
#cardChooserScreen .jema-occupancy{position:fixed; top:calc(var(--safe-t) + 18.6vh + var(--jf-dy)); left:50%; transform:translateX(-50%);
  z-index:39; font-size:clamp(10px,1.35vh,12px); font-weight:600; color:var(--jema-text-dim);
  letter-spacing:.3px; pointer-events:none;}
#cardChooserScreen .jema-pill{position:fixed; z-index:35; height:clamp(40px,6vh,46px); display:flex; align-items:center; gap:8px;
  overflow:hidden; white-space:nowrap; cursor:pointer; font-family:inherit; color:var(--jema-text);
  background:linear-gradient(150deg,var(--jema-bg2),var(--jema-bg));
  border:1px solid var(--jema-accent-dim); box-shadow:0 2px 0 rgba(0,0,0,.4);
  -webkit-appearance:none; appearance:none; text-align:left;
  transition:width .38s cubic-bezier(.25,1,.5,1);}
#cardChooserScreen .jema-pill.open{z-index:41;}
#cardChooserScreen .jema-pill:focus-visible{outline:2px solid var(--jema-accent); outline-offset:2px;}
#cardChooserScreen .jema-pill-l{left:var(--safe-l); border-left:none; border-radius:0 999px 999px 0; padding:0 14px 0 10px;}
#cardChooserScreen .jema-pill-r{right:var(--safe-r); border-right:none; border-radius:999px 0 0 999px; padding:0 10px 0 14px; flex-direction:row-reverse;}
#cardChooserScreen .jema-pill-top{top:calc(var(--safe-t) + 4.6vh + var(--jf-dy));}
#cardChooserScreen .jema-pill-bot{bottom:max(var(--safe-b),var(--jema-pad-bot,5.5vh));}   /* layout session: nothing below Y 94.5% */
#cardChooserScreen .jema-pill-ico{font-size:18px; line-height:1; flex-shrink:0; min-width:22px; text-align:center;}
#cardChooserScreen .jema-pill-txt{display:flex; flex-direction:column; justify-content:center; line-height:1.15;}
#cardChooserScreen .jema-pill-k{display:none; font-size:9px; font-weight:700; color:var(--jema-text-dim); letter-spacing:.3px;}
#cardChooserScreen .jema-inline{display:inline;}
#cardChooserScreen .jema-pill-v{font-size:14px; font-weight:900; font-variant-numeric:tabular-nums;}
#cardChooserScreen .jema-pill-unit{display:none; font-size:12px; font-weight:700; color:var(--jema-text-dim);}
#cardChooserScreen .jema-pill.open .jema-pill-k{display:block;}
/* Change 18: expanded = icon + label + value (default); collapsed = icon only */
#cardChooserScreen .jema-pill:not(.open) .jema-pill-txt,#cardChooserScreen .jema-pill:not(.open) .jema-pill-plus{display:none;}
#cardChooserScreen .jema-pill-of{font-size:11px; font-weight:700; color:var(--jema-text-dim); margin-left:1px;}
#cardChooserScreen .jema-pill-plus{flex-shrink:0; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-size:17px; font-weight:900; line-height:1;
  background:var(--jema-accent); color:var(--jema-bg);}

#cardChooserScreen .jema-pill.open .jema-pill-unit{display:inline;}
#cardChooserScreen .jema-pill-deposit{background:var(--jema-accent); border-color:var(--jema-accent); color:var(--jema-bg);}
#cardChooserScreen .jema-pill-deposit .jema-pill-ico{font-size:22px; font-weight:800;}
#cardChooserScreen .jema-pill-deposit .jema-pill-v{display:none;}
#cardChooserScreen .jema-pill-deposit.open .jema-pill-v{display:block; font-size:13px;}
#cardChooserScreen .jema-pill-deposit .jema-pill-k{color:var(--jema-bg); opacity:.65;}
@media (prefers-reduced-motion: reduce){
#cardChooserScreen .jema-pill{transition:none;}
}
#cardChooserScreen .chooser-selection-area.jema-top-dock{position:fixed; left:0; right:0; top:calc(var(--safe-t) + 21vh + var(--jf-dy)); z-index:45;
  display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:center;
  gap:1.4vw 2vw; padding:0 3vw;}
/* Session 11 (Classic only): the dock is ONE centred row that wraps. Card 1 | "+ Add 2nd Card" (one card) or Card 2 (two cards),
   then the hint and the slide bar on their own full-width rows. The global .chooser-selection-area rule is flex-direction:column,
   which stacked card 2 under card 1; Speed keeps its own dock, so it is left alone. */
#cardChooserScreen:not(.speed-picker) .chooser-selection-area.jema-top-dock{flex-direction:row; align-items:stretch;}
#cardChooserScreen:not(.speed-picker) #add2ndCardBtn{flex:0 0 auto; width:auto; align-self:center; white-space:nowrap;}
#cardChooserScreen #lockStatus{flex:0 0 100%; order:-1; margin-bottom:.6vh; font-size:clamp(10px,1.4vh,12px);}
#cardChooserScreen .chooser-right-col{transition:padding-top .45s cubic-bezier(.25,.85,.3,1);}
#cardChooserScreen .mini-card-slot{background:linear-gradient(135deg,var(--jema-bg2),var(--jema-bg));border:1.5px solid var(--jema-accent-dim);
  border-radius:var(--jema-radius);padding:1vh;display:flex;flex-direction:column;gap:.6vh;cursor:pointer;position:relative;
  width:40vw;max-width:190px;transition:width .4s ease,opacity .22s ease,transform .22s ease;
  opacity:1;transform:scale(1);}
body.jema-cards-2 #cardChooserScreen .mini-card-slot{width:32vw;max-width:150px;}
#cardChooserScreen .mini-card-slot.jema-incoming{opacity:0;transform:scale(.45);}
#cardChooserScreen .mini-card-slot.active-slot{border-color:var(--jema-accent);box-shadow:0 0 12px var(--jema-accent-dim);}
#cardChooserScreen .mini-card-slot-title{font-size:clamp(12px,1.7vh,15px);font-weight:700;color:var(--jema-text);text-align:center;}
#cardChooserScreen .mini-card-slot-status{font-size:clamp(9px,1.2vh,11px);color:var(--jema-text-dim);text-align:center;}
#cardChooserScreen #add2ndCardBtn{display:none;background:var(--jema-accent);border:1.5px solid var(--jema-accent);color:var(--jema-bg);
  border-radius:999px;padding:.9vh 3vw;font-size:clamp(11px,1.5vh,13px);font-weight:700;cursor:pointer;align-self:center;
  transition:opacity .2s,transform .2s;}
#cardChooserScreen #add2ndCardBtn.jema-pulsing{cursor:default;outline:2px solid var(--jema-accent);outline-offset:3px;
  animation:jemaAddBtnPulse 1.3s ease-in-out infinite;}
@keyframes jemaAddBtnPulse{
  0%,100%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.08);opacity:.7;}
}
@media (prefers-reduced-motion: reduce){
#cardChooserScreen #add2ndCardBtn.jema-pulsing{animation:none;}
}
#cardChooserScreen .inline-preview-card{width:100%;aspect-ratio:1/1;display:flex;flex-direction:column;gap:.4vh;max-width:120px;margin:0 auto;position:relative;}
#cardChooserScreen .inline-preview-card.jema-ticket{padding:.5vh; border-radius:.8vh;
  background:linear-gradient(160deg, var(--jema-bg2), var(--jema-bg));
  border:1px dashed var(--jema-accent-dim);
  box-shadow:0 0 0 3px var(--jema-bg), 0 0 14px rgba(255,255,255,.18);}
#cardChooserScreen .inline-preview-card.jema-ticket::after{content:''; position:absolute; inset:0; border-radius:.8vh; pointer-events:none;
  background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  background-size:250% 250%; background-position:120% 0; opacity:0;}
#cardChooserScreen .inline-preview-card.jema-ticket.jema-holo-once::after{animation:jemaHoloOnce calc(.9s/var(--jema-anim-speed,1)) ease-out forwards;}
@keyframes jemaHoloOnce{
  0%{opacity:1; background-position:120% 0;}
  100%{opacity:0; background-position:-20% 100%;}
}
#cardChooserScreen .inline-preview-letters{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;flex-shrink:0;}
/* Session 4a: winner-card header style */
#cardChooserScreen .inline-preview-letter{background:#d7d7d2!important;color:#222!important;border-radius:3px;display:flex;align-items:center;justify-content:center;font-size:clamp(8px,1.2vh,11px);font-weight:700;padding:.2vh 0;}
#cardChooserScreen .inline-preview-grid{flex:1;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:2px;}
#cardChooserScreen .inline-preview-cell{background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.25);border-radius:.4vh;display:flex;align-items:center;justify-content:center;font-size:clamp(8px,1.3vh,11px);font-weight:700;color:#1A1A1A;min-width:0;}
#cardChooserScreen .inline-preview-cell.free{background:linear-gradient(135deg,#2A2A2A,#1A1A1A);color:#FFFFFF;font-size:clamp(6px,.9vh,8px);}
#cardChooserScreen .chooser-right-col{position:fixed;inset:0;width:100%;height:100%;padding:calc(var(--safe-t) + 17vh + var(--jf-dy)) 3vw calc(max(var(--safe-b),var(--jema-pad-bot,5.5vh)) + 8vh);
  display:flex;flex-direction:column;gap:.8vh;overflow-y:auto;z-index:1;}
#cardChooserScreen .chooser-title{position:fixed; top:calc(var(--safe-t) + .8vh); left:calc(var(--safe-l) + 1vw); z-index:37;
  font-size:clamp(11px,1.6vh,14px);font-weight:800;color:var(--jema-text);text-shadow:0 2px 8px rgba(0,0,0,.5);opacity:.8;}
#cardChooserScreen .phase-badge{text-align:center;font-size:clamp(11px,1.6vh,14px);color:var(--jema-text-dim);font-weight:600;padding:.7vh;
  background:rgba(255,255,255,.06);border-radius:.8vh;border:1px solid var(--jema-accent-dim);flex-shrink:0;}
#cardChooserScreen .cards-grid{display:flex;flex-direction:column;align-items:center;padding:1vh 0 2vh;}
#cardChooserScreen .jema-hex-row{display:flex;gap:var(--jema-hex-gap);margin-top:var(--jema-hex-row-overlap);}
#cardChooserScreen .cards-grid>.jema-hex-row:first-child{margin-top:0;}
#cardChooserScreen .jema-hex-row.jema-hex-row-odd{margin-left:var(--jema-hex-row-offset);}
#cardChooserScreen .card-option{background:linear-gradient(150deg,var(--jema-bg2),var(--jema-bg));
  border:1.5px solid var(--jema-accent-dim); clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0% 50%);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:transform .15s,filter .15s,background .15s,box-shadow .15s,opacity .15s;padding:0;position:relative;
  width:var(--jema-card-w);aspect-ratio:1/1.06;flex-shrink:0;
  
  box-shadow:0 2px 0 rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.25);
  transform:translateY(-1px);}
#cardChooserScreen .card-option:active{transform:translateY(0) scale(.92);}
#cardChooserScreen .card-option svg{width:70%;height:auto;display:block;}
#cardChooserScreen .card-option:not(.taken):not(.my-selection):hover{transform:translateY(-2px) scale(1.08);z-index:2;filter:drop-shadow(0 2px 8px var(--jema-accent-dim));}
#cardChooserScreen .card-option.taken{cursor:not-allowed; opacity:.5; background:var(--jema-card-taken);
  box-shadow:none; transform:translateY(0); border-width:1px;}
#cardChooserScreen .card-option.my-selection{transform:translateY(-1px) scale(1.08) !important; z-index:3;
  background:var(--jema-card-mine);
  box-shadow:0 0 0 2px var(--jema-bg), 0 0 0 3.5px var(--jema-accent), 0 4px 12px rgba(0,0,0,.35);
  filter:none;}
#cardChooserScreen .card-option.my-selection .jc-num{fill:var(--jema-bg) !important;}
#cardChooserScreen .card-number{display:none;}
#cardChooserScreen .card-option.jema-stamped{animation:jemaStamp .22s cubic-bezier(.2,.8,.2,1) forwards;}
@keyframes jemaStamp{
  0%{ transform:translateY(-1px) scale(1.08); }
  40%{ transform:translateY(1px) scale(.94); }
  100%{ transform:translateY(-1px) scale(1.08); }
}
#cardChooserScreen .mini-card-slot.jema-stamped{animation:jemaStampSlot .22s cubic-bezier(.2,.8,.2,1) forwards;}
@keyframes jemaStampSlot{
  0%{ transform:scale(1); } 40%{ transform:scale(.96); } 100%{ transform:scale(1); }
}
#cardChooserScreen .jema-edition-tag{flex-shrink:0;text-align:center;font-size:12px;font-weight:700;color:var(--jema-text-dim);padding:.2vh 0 .8vh;}
#cardChooserScreen .jema-edition-tag[hidden]{display:none;}
#cardChooserScreen .jema-hidden-bar[hidden]{display:none;}
#cardChooserScreen .jema-tools-row{display:flex; align-items:center; justify-content:space-between; gap:2vw;
  width:100%; padding:.2vh 0 1vh; flex-shrink:0;}
#cardChooserScreen .jema-size{display:flex; align-items:center; gap:2px;}
#cardChooserScreen .jema-size button{width:32px; height:30px; display:flex; align-items:center; justify-content:center;
  background:none; border:none; padding:0; cursor:pointer; color:var(--jema-text-dim); opacity:.7;
  -webkit-appearance:none; appearance:none;}
#cardChooserScreen .jema-size button svg{display:block; fill:none; stroke:currentColor; stroke-width:1.2; stroke-linejoin:round;}
#cardChooserScreen .jema-size button[aria-pressed="true"]{color:var(--jema-accent); opacity:1;}
#cardChooserScreen .jema-size button[aria-pressed="true"] svg{fill:var(--jema-accent-dim);}
#cardChooserScreen .jema-lucky-btn{height:30px; padding:0 12px; display:flex; align-items:center; gap:6px; cursor:pointer;
  background:none; border:1px solid var(--jema-accent-dim); border-radius:999px;
  color:var(--jema-text); font-family:inherit; font-size:12px; font-weight:800; white-space:nowrap;
  -webkit-appearance:none; appearance:none;}
#cardChooserScreen .jema-lucky-btn:active{transform:scale(.96);}
#cardChooserScreen .jema-lucky-btn:disabled{opacity:.45; cursor:default;}
#cardChooserScreen .jema-lucky-btn .jema-dice{display:inline-block; font-size:14px;}
#cardChooserScreen .jema-lucky-btn.jema-rolling .jema-dice{animation:jemaDiceTilt .5s ease-in-out 2;}
@keyframes jemaDiceTilt{0%,100%{transform:rotate(0);}50%{transform:rotate(25deg);}}
@media (prefers-reduced-motion: reduce){
#cardChooserScreen .jema-lucky-btn.jema-rolling .jema-dice{animation:none;}
}
#cardChooserScreen .card-option.jema-flicker{background:var(--jema-card-mine); transform:translateY(-1px) scale(1.12); z-index:3;}
#cardChooserScreen .card-option.jema-flicker .jc-num{fill:var(--jema-bg) !important;}
#cardChooserScreen .jema-tear-strip{flex:0 0 100%; order:99; display:none; flex-direction:column; align-items:center;
  gap:.5vh; margin-top:.8vh; padding:0 4vw; touch-action:none; user-select:none;}
#cardChooserScreen .jema-tear-strip.jema-tear-ready{display:flex;}
#cardChooserScreen .jema-tear-hint{font-size:clamp(10px,1.3vh,12px); font-weight:700; color:var(--jema-text-dim);
  letter-spacing:.4px; text-align:center;}
#cardChooserScreen .jema-tear-track{width:min(72vw,280px); height:36px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1.5px dashed var(--jema-accent-dim);
  position:relative; overflow:hidden;}
#cardChooserScreen .jema-tear-handle{position:absolute; left:4px; top:3px; bottom:3px; width:56px;
  border-radius:999px; background:var(--jema-accent); color:var(--jema-bg);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:900; letter-spacing:.5px;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  transition:left .05s linear;
  cursor:grab;}
#cardChooserScreen .jema-tear-handle:active{cursor:grabbing;}
#cardChooserScreen .jema-tear-label{position:absolute; left:60px; right:12px; top:0; bottom:0; display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; letter-spacing:.6px; color:var(--jema-text-dim); pointer-events:none; white-space:nowrap;}
#cardChooserScreen .jema-tear-strip.jema-locked .jema-tear-label{left:12px; right:60px; color:var(--jema-text);}
#cardChooserScreen .jema-tear-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:999px;background:var(--jema-accent-dim);pointer-events:none;}
#cardChooserScreen .jema-tear-handle{font-size:15px;letter-spacing:2px;}
#cardChooserScreen .jema-tear-handle.jema-snap{transition:left .22s cubic-bezier(.25,.85,.3,1);}
#cardChooserScreen .jema-tear-fill.jema-snap{transition:width .22s cubic-bezier(.25,.85,.3,1);}
#cardChooserScreen .jema-tear-strip.jema-locked .jema-tear-track{border-style:solid; opacity:.55;}
#cardChooserScreen .jema-tear-strip.jema-locked .jema-tear-handle{left:calc(100% - 60px) !important;}
#cardChooserScreen .jema-tear-strip.jema-locked .jema-tear-hint{color:var(--jema-text);}
.jema-dauber-ring{position:fixed;z-index:190;pointer-events:none;border-radius:50%;
  border:2px solid var(--jema-accent);opacity:.9;transform:scale(.6);
  animation:jemaDauber .45s ease-out forwards;}
@keyframes jemaDauber{to{transform:scale(1.7);opacity:0;}}
@media (prefers-reduced-motion: reduce){
.jema-dauber-ring{display:none;}
}
.jema-flight-clone{position:fixed;z-index:200;pointer-events:none;transition:transform calc(.55s/var(--jema-anim-speed,1)) cubic-bezier(.2,.7,.2,1),opacity calc(.55s/var(--jema-anim-speed,1));}
.jema-flight-clone svg{width:100%;height:100%;display:block;}
#cardChooserScreen .toast{position:fixed;top:calc(var(--safe-t) + 15.6vh + var(--jf-dy));left:50%;transform:translateX(-50%);
  background:rgba(20,20,20,.92);color:#fff;padding:1vh 4vw;border-radius:1vh;font-size:clamp(12px,1.7vh,16px);
  font-weight:700;z-index:250;animation:jemaFadeInOut calc(2.5s/max(var(--jema-anim-speed,1),.4)) forwards;}
@keyframes jemaFadeInOut{0%{opacity:0;transform:translateX(-50%) translateY(-10px);}15%{opacity:1;transform:translateX(-50%) translateY(0);}75%{opacity:1;}100%{opacity:0;}}

/* ── glass layer ── */
#cardChooserScreen{background:transparent}
#cardChooserScreen .jema-pill,#cardChooserScreen .mini-card-slot,#cardChooserScreen .jema-tear-track,
#cardChooserScreen .jema-tools-row,#cardChooserScreen .phase-badge{-webkit-backdrop-filter:blur(10px) saturate(1.15);backdrop-filter:blur(10px) saturate(1.15)}
#cardChooserScreen .card-option.my-selection .jc-num,#cardChooserScreen .card-option.jema-flicker .jc-num{fill:var(--jf-mine-ink)!important}
#cardChooserScreen .card-option.taken .jc-num{fill:rgba(var(--jf-text),.45)!important}
/* the frame owns the bottom profile circle and the old tab bar is replaced by the deposit pill on this screen */
html[data-jema-screen="picker"] #bottomNav,html[data-jema-screen="picker"] #bottomNavReveal{display:none!important}
body.jema-desk-silence #cardChooserScreen *{animation-play-state:paused}
#cardChooserScreen .jema-pill .jema-pill-unit{display:none!important} /* xindex's stake/balance text already carries ETB */

/* ═══════════════════════════════════════════════════════════════
   Session 3 — Speed 10-card picker (.speed-picker scope only)
   ═══════════════════════════════════════════════════════════════ */

#cardChooserScreen.speed-picker #cardSlot1,
#cardChooserScreen.speed-picker #cardSlot2,
#cardChooserScreen.speed-picker #add2ndCardBtn {
  display: none !important;
}

#cardChooserScreen.speed-picker .speed-slots-dock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin: 4px auto 6px;
  padding: 0 4px;
}

#cardChooserScreen.speed-picker .speed-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 3px 5px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12,16,24,.55);
  min-height: 72px;
}

#cardChooserScreen.speed-picker .speed-slot.filled {
  border-color: rgba(124,255,178,.45);
  background: rgba(40,80,60,.35);
}

#cardChooserScreen.speed-picker .speed-slot.just-picked {
  box-shadow: 0 0 0 2px rgba(124,255,178,.7);
  transition: box-shadow .4s ease;
}

#cardChooserScreen.speed-picker .speed-slot-title {
  font-size: clamp(9px, 2.4vw, 11px);
  font-weight: 700;
  color: rgba(238,242,246,.92);
  letter-spacing: .02em;
  white-space: nowrap;
}

#cardChooserScreen.speed-picker .speed-slot-status {
  font-size: clamp(8px, 2.1vw, 10px);
  font-weight: 600;
  color: rgba(124,255,178,.9);
}
#cardChooserScreen.speed-picker .speed-slot-status.dim {
  color: rgba(185,195,207,.55);
}

#cardChooserScreen.speed-picker .speed-slot-ph {
  width: 100%;
  aspect-ratio: 1;
  max-width: 56px;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(185,195,207,.4);
  font-size: 14px;
}

#cardChooserScreen.speed-picker .speed-mini-face {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 56px;
  aspect-ratio: 5 / 6;
  background: rgba(0,0,0,.25);
  border-radius: 4px;
  padding: 2px;
}

#cardChooserScreen.speed-picker .sc-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5px, 1.6vw, 7px);
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(255,255,255,.92);
  border-radius: 1px;
  min-width: 0;
  line-height: 1;
}
#cardChooserScreen.speed-picker .sc-head {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5px, 1.6vw, 7px);
  font-weight: 800;
  color: #222;
  background: #d7d7d2;
  border-radius: 1px;
  min-width: 0;
  line-height: 1;
}
#cardChooserScreen.speed-picker .sc-cell.free {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #fff;
  font-size: clamp(6px, 1.8vw, 8px);
}

/* Hex pool: mine stays green; taken greyed (already via .taken / .my-selection) */
#cardChooserScreen.speed-picker .card-option.my-selection {
  filter: none;
  opacity: 1;
}
#cardChooserScreen.speed-picker .card-option.taken {
  opacity: .45;
  pointer-events: none;
}

/* Ensure 44px-ish tap targets on hexes at 5-col density */
#cardChooserScreen.speed-picker .card-option {
  min-width: 40px;
  min-height: 40px;
}

/* ═══════════════════════════════════════════════════════════════
   Session 4 — preview phantoms, locked state, 44px targets
   ═══════════════════════════════════════════════════════════════ */

#cardChooserScreen.speed-picker .speed-slot.speed-preview {
  opacity: 0.55;
  border-style: dashed;
  border-color: rgba(255,255,255,.22);
  pointer-events: none;
}
#cardChooserScreen.speed-picker .speed-slot.speed-preview .preview-ph {
  letter-spacing: 2px;
  color: rgba(185,195,207,.5);
  animation: speedPreviewPulse 1.2s ease-in-out infinite;
}
@keyframes speedPreviewPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  #cardChooserScreen.speed-picker .speed-slot.speed-preview .preview-ph {
    animation: none;
  }
}

/* After Slide to lock: freeze hex grid + lucky */
#cardChooserScreen.speed-picker.speed-locked #cardsGrid {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.25);
}
#cardChooserScreen.speed-picker.speed-locked #jemaLuckyBtn {
  opacity: 0.4;
  pointer-events: none;
}

/* Feeling lucky — keep 44px min height */
#cardChooserScreen.speed-picker #jemaLuckyBtn {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

/* Hex chips: aim for ≥44px touch target at default density */
#cardChooserScreen.speed-picker .card-option {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

/* Safe-area bottom padding so footer/lucky aren't under home indicator */
#cardChooserScreen.speed-picker .chooser-right-col,
#cardChooserScreen.speed-picker #cardsSection {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}
#cardChooserScreen.speed-picker .jema-stub,
#cardChooserScreen.speed-picker .jema-lucky-btn {
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

/* Tear strip stays interactive until locked */
#cardChooserScreen.speed-picker #jemaTearStrip {
  min-height: 44px;
}
#cardChooserScreen.speed-picker #jemaTearHandle {
  min-width: 44px;
  min-height: 44px;
}
