/* St Ann's Open: full-screen, thumb-sized UI. Everything scales from one root size. */
:root {
  --bg: #07111f; --ink: #f4f7fb; --dim: #9fb0c8; --line: rgba(255,255,255,0.14);
  --blue: #2f7bff; --mint: #63f5c2; --gold: #ffd23f; --coral: #ff6b5e; --violet: #9b7bff;
  --glass: rgba(9,20,38,0.5);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: clamp(15px, 4vmin, 23px); height: 100%; }
body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: "Barlow", system-ui, sans-serif;
  overflow: hidden; overscroll-behavior: none; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  font-variant-numeric: tabular-nums; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#bgv { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #07111f; opacity: 0; transition: opacity .5s; pointer-events: none; }
body.menu #bgv { opacity: 1; }
#scrim { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s, background .35s;
  background: linear-gradient(180deg, rgba(7,17,31,0.74) 0%, rgba(7,17,31,0.6) 38%, rgba(7,17,31,0.86) 100%); }
body.menu #scrim { opacity: 1; }
body.menu.open #scrim { background: linear-gradient(180deg, rgba(7,17,31,0.34) 0%, rgba(7,17,31,0.02) 24%, rgba(7,17,31,0.06) 46%, rgba(7,17,31,0.58) 100%); }
#ui { position: fixed; inset: 0; display: flex; pointer-events: none; }
#ui > * { pointer-events: auto; }
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; margin: 0; letter-spacing: 0.01em; }

/* ---- screens ---- */
.screen { flex: 1; display: flex; flex-direction: column; gap: 0.9rem; width: 100%; max-width: 34rem; margin: 0 auto;
  padding: calc(1.1rem + var(--sat)) calc(1.1rem + var(--sar)) calc(1.1rem + var(--sab)) calc(1.1rem + var(--sal));
  overflow-y: auto; animation: rise .28s ease-out; }
.screen.wide { max-width: 52rem; }
@keyframes rise { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: none; } }
.top { display: flex; align-items: center; gap: 0.7rem; min-height: 3rem; }
.top h2 { font-size: 1.55rem; flex: 1; }
.back { width: 3rem; height: 3rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; }
.screen.fit { overflow: hidden; }
.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -0.3rem; padding: 0.3rem; }
.grow { flex: 1; }
.center { text-align: center; }
.dim { color: var(--dim); }
.small { font-size: 0.82rem; }
.scenery-credit { align-self: center; color: var(--dim); font-size: 0.7rem; padding: 0.3rem; text-align: center; }
.scenery-credit:hover, .scenery-credit:focus-visible { color: var(--ink); }
.hero { margin-top: auto; }
.hero h1 { font-size: clamp(2.6rem, 15vmin, 5.2rem); line-height: 0.92; text-transform: uppercase; }
.hero h1 span { color: var(--mint); display: block; }
.hero p { font-size: 1.05rem; color: #dbe6f5; margin: 0.7rem 0 0; max-width: 22rem; text-shadow: 0 1px 0.6rem rgba(7,17,31,0.8); }
.hero h1 { text-shadow: 0 0.15rem 1.2rem rgba(7,17,31,0.55); }
.stack { display: flex; flex-direction: column; gap: 0.7rem; }
.row { display: flex; gap: 0.7rem; }
.row > * { flex: 1; }

.btn { appearance: none; border: 0; border-radius: 1rem; min-height: 3.3rem; padding: 0.65rem 1.1rem; font: 600 1.05rem "Barlow", sans-serif;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line); display: flex; align-items: center; gap: 0.8rem;
  text-align: left; cursor: pointer; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: transform .08s, filter .15s; width: 100%; }
.btn:active { transform: scale(0.975); filter: brightness(1.15); }
.btn .ico { font-size: 1.5rem; width: 2rem; text-align: center; flex: none; }
.btn .txt { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.btn .txt small { font: 500 0.8rem "Barlow", sans-serif; letter-spacing: 0; color: var(--dim); margin-top: 0.1rem; }
.btn.on { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(99,245,194,0.25); }
.btn.primary { background: linear-gradient(135deg, rgba(47,123,255,0.88), rgba(30,200,165,0.88)); border-color: rgba(255,255,255,0.22); min-height: 3.9rem; font-size: 1.5rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: 0.03em; box-shadow: 0 0.5rem 1.5rem rgba(47,123,255,0.28); }
.btn.primary .txt small { color: rgba(255,255,255,0.85); }
.btn.gold { background: linear-gradient(135deg, #ffd23f, #ff9d3f); color: #1a1300; border-color: transparent; }
.btn.ghost { background: transparent; justify-content: center; text-align: center; min-height: 2.6rem; color: var(--dim); backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn.center { justify-content: center; text-align: center; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 99px; background: var(--glass);
  border: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: 1.1rem; padding: 0.9rem; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.field { width: 100%; min-height: 3.6rem; border-radius: 1.1rem; border: 2px solid var(--line); background: rgba(4,10,20,0.7); color: var(--ink);
  font: 700 1.25rem "Barlow", sans-serif; padding: 0 1.1rem; outline: none; user-select: text; -webkit-user-select: text; }
.field:focus { border-color: var(--blue); }
.field.code { font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; letter-spacing: 0.5rem; text-align: center; text-transform: uppercase; min-height: 5rem; }
label.lab { font-size: 0.8rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- player card + characters ---- */
.me { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; }
.me .face { width: 4.4rem; height: 4.4rem; border-radius: 1.1rem; background: #12233d; flex: none; overflow: hidden; display: grid; place-items: end center; }
.face img, .fig img { image-rendering: pixelated; }
.me .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.me .who { flex: 1; min-width: 0; }
.me .who b { font: 700 1.35rem "Barlow Condensed", sans-serif; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: 0.6rem; }
.char { position: relative; border-radius: 1.2rem; border: 2px solid var(--line); background: var(--glass); padding: 0.6rem 0.5rem 0.7rem; text-align: center; cursor: pointer; }
.char.sel { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(99,245,194,0.25); }
.char.locked { opacity: 0.5; }
.char .fig { height: 7rem; display: flex; align-items: flex-end; justify-content: center; }
.char .fig img { height: 7rem; width: auto; max-width: 100%; object-fit: contain; }
.char b { font: 700 1.05rem "Barlow Condensed", sans-serif; display: block; margin-top: 0.3rem; }
.char small { display: none; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.6rem; align-items: center; font-size: 0.8rem; font-weight: 700; }
.bar { height: 0.55rem; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.detail { display: flex; gap: 1rem; align-items: center; }
.detail .fig { height: 10rem; flex: none; width: 6.4rem; display: flex; align-items: flex-end; justify-content: center; }
.detail .fig img { height: 10rem; width: auto; max-width: 100%; object-fit: contain; }

/* ---- lists ---- */
.court { display: flex; align-items: center; gap: 0.8rem; }
.court .num { width: 3rem; height: 3rem; border-radius: 0.9rem; background: #12305a; display: grid; place-items: center; font: 700 1.2rem "Barlow Condensed", sans-serif; flex: none; }
.court.live .num { background: var(--coral); }
.court.open .num { background: #17805f; }
.levels { display: grid; gap: 0.7rem; }
/* the coach picker (Play the coach): three across, a face, a name and a way of playing */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.coach { appearance: none; border: 2px solid var(--line); border-radius: 1.1rem; background: var(--glass); color: var(--ink); cursor: pointer; padding: 0.5rem 0.3rem 0.55rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-height: 7.4rem; font: inherit; }
.coach:active { transform: scale(0.97); filter: brightness(1.15); }
.coach.sel { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(99,245,194,0.25); background: rgba(30,200,165,0.16); }
.coach .face { width: 4rem; height: 4rem; border-radius: 1rem; background: #12233d; overflow: hidden; display: grid; place-items: end center; flex: none; }
.coach .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.coach .face .any { font-size: 2rem; align-self: center; }
.coach b { font: 700 1.1rem "Barlow Condensed", sans-serif; letter-spacing: 0.03em; line-height: 1.05; }
.coach small { font: 500 0.7rem "Barlow", sans-serif; color: var(--dim); line-height: 1.1; text-align: center; }
.coachline { padding: 0.6rem 0.8rem; font-size: 0.88rem; line-height: 1.3; color: #dbe6f5; min-height: 3.4rem; }
.coachline b { color: var(--ink); }
/* a short screen: smaller faces, so that the coach's line and the three levels stay on it */
@media (max-height: 700px) { .coach { min-height: 5.9rem; padding-top: 0.4rem; } .coach .face { width: 3rem; height: 3rem; border-radius: 0.8rem; } .coach .face .any { font-size: 1.6rem; } .coachline { min-height: 0; padding: 0.45rem 0.8rem; } }
/* a phone on its side: the six faces in one row, the three levels in another */
@media (orientation: landscape) and (max-height: 520px) {
  .coaches { grid-template-columns: repeat(6, 1fr); }
  .coach { min-height: 5.4rem; } .coach small { display: none; }
  .levels.pick { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .levels.pick .btn { min-height: 3.3rem; padding: 0.4rem 0.7rem; } .levels.pick .btn.primary { font-size: 1.2rem; } .levels.pick .btn .ico { display: none; } .levels.pick .btn .txt small { font-size: 0.7rem; }
}
.tip { display: flex; gap: 0.9rem; align-items: flex-start; }
.tip .n { width: 2.6rem; height: 2.6rem; border-radius: 0.9rem; background: var(--blue); display: grid; place-items: center; font: 700 1.2rem "Barlow Condensed", sans-serif; flex: none; }
.tip b { display: block; font-size: 1.05rem; }
.tip span { color: var(--dim); font-size: 0.9rem; line-height: 1.3; }
.bigcode { font: 700 3.4rem "Barlow Condensed", sans-serif; letter-spacing: 0.4rem; text-align: center; color: var(--gold); }
.spinner { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0.35rem solid var(--line); border-top-color: var(--mint); margin: 0.6rem auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- match HUD ---- */
#hud { position: fixed; inset: 0; pointer-events: none; font-family: "Barlow", sans-serif; }
#hud > * { position: absolute; }
/* a small broadcast-style score bug: server dot, name, games, points */
.board { top: calc(0.5rem + var(--sat)); left: calc(0.5rem + var(--sal)); background: rgba(6,14,28,0.82); border: 1px solid var(--line); border-radius: 0.45rem;
  overflow: hidden; max-width: 10.6rem; box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.3); }
.board .r { display: grid; grid-template-columns: var(--cols, 0.34rem minmax(0, 1fr) 0.9rem 1.6rem); align-items: center; gap: 0.28rem; padding: 0.14rem 0.18rem 0.14rem 0.36rem; font-weight: 600; font-size: 0.74rem; line-height: 1.25; }
.board .r + .r { border-top: 1px solid var(--line); }
.board .r.me .nm { color: var(--mint); }
.board .dot { width: 0.34rem; height: 0.34rem; border-radius: 50%; background: var(--gold); opacity: 0; }
.board .r.srv .dot { opacity: 1; }
.board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 5.6rem; }
.board .gm { font: 700 0.86rem "Barlow Condensed", sans-serif; text-align: center; }
.board .pt { font: 700 0.86rem "Barlow Condensed", sans-serif; text-align: center; background: var(--blue); border-radius: 0.22rem; line-height: 1.2; }
.board .st { font: 600 0.8rem "Barlow Condensed", sans-serif; text-align: center; color: var(--dim); }
.board .st.won { color: var(--ink); }
.board.sd .pt, .board.tb .pt { background: var(--gold); color: #07111f; }
.board .tag { padding: 0.08rem 0.36rem; font: 700 0.56rem "Barlow Condensed", sans-serif; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; border-top: 1px solid var(--line); text-align: center; }
/* the practice court: what is counted instead of a score */
.board.drill .r.d { grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; padding-left: 0.45rem; }
.board.drill .pt { min-width: 2.1rem; padding: 0 0.3rem; }
.lesson { top: calc(2.5rem + var(--sat)); left: calc(0.5rem + var(--sal)); right: calc(0.5rem + var(--sar)); max-width: 24rem; background: rgba(6,14,28,0.84); border: 1px solid var(--line);
  border-radius: 0.8rem; padding: 0.55rem 0.75rem 0.6rem; display: none; flex-direction: column; gap: 0.25rem; box-shadow: 0 0.3rem 1rem rgba(0,0,0,0.3); }
body.lessons .lesson { display: flex; }
.lesson b { font: 700 1.1rem "Barlow Condensed", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.lesson span { font-size: 0.86rem; line-height: 1.3; }
.pips { display: flex; gap: 0.3rem; margin-top: 0.15rem; }
.pips i { width: 1.5rem; height: 0.3rem; border-radius: 99px; background: rgba(255,255,255,0.18); }
.pips i.on { background: var(--mint); }
body.lessons .speed, body.lessons .rally { display: none; }
.hbtn { pointer-events: auto; top: calc(0.5rem + var(--sat)); right: calc(0.5rem + var(--sar)); width: 2.5rem; height: 2.5rem; border-radius: 0.8rem;
  background: rgba(6,14,28,0.8); border: 1px solid var(--line); color: var(--ink); font-size: 1.2rem; font-weight: 700; display: grid; place-items: center; }
.speed { top: calc(3.9rem + var(--sat)); left: calc(0.5rem + var(--sal)); font: 700 0.95rem "Barlow Condensed", sans-serif; letter-spacing: 0.03em; background: rgba(6,14,28,0.8);
  border: 1px solid var(--line); border-radius: 99px; padding: 0.22rem 0.65rem; opacity: 0; transition: opacity .3s; }
.speed.on { opacity: 1; }
.call { left: 0; right: 0; top: 21%; text-align: center; opacity: 0; transform: scale(0.8); transition: opacity .18s, transform .22s cubic-bezier(.2,1.6,.4,1); }
.call.on { opacity: 1; transform: none; }
.call b { font: 700 clamp(1.25rem, 6vmin, 1.9rem) "Barlow Condensed", sans-serif; letter-spacing: 0.1em; text-shadow: 0 0.08rem 0 rgba(6,16,32,0.9), 0 0 0.8rem rgba(6,16,32,0.7); display: block; line-height: 1; }
.call span { display: inline-block; margin-top: 0.3rem; font-weight: 600; font-size: 0.74rem; background: rgba(6,14,28,0.8); padding: 0.14rem 0.6rem; border-radius: 99px; }
.call.good b { color: var(--mint); } .call.bad b { color: var(--coral); } .call.info b { color: var(--gold); }
.hint { left: 50%; transform: translateX(-50%); bottom: calc(0.45rem + var(--sab)); width: max-content; max-width: 94vw; text-align: center; background: rgba(6,14,28,0.86);
  border: 1px solid var(--line); border-radius: 99px; padding: 0.32rem 0.85rem; font-weight: 600; font-size: 0.8rem; opacity: 0; transition: opacity .25s; }
.hint.on { opacity: 1; }
.hint.pulse { border-color: var(--gold); box-shadow: 0 0 0 0 rgba(255,210,63,0.5); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 0.8rem rgba(255,210,63,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } }
.banner { left: 0; right: 0; top: 42%; text-align: center; }
.banner div { display: inline-flex; flex-direction: column; gap: 0.7rem; background: rgba(6,14,28,0.92); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1rem 1.3rem; font-weight: 700; pointer-events: auto; }

/* ---- overlays ---- */
.sheet { position: fixed; inset: 0; background: rgba(4,10,20,0.78); display: flex; align-items: flex-end; justify-content: center; pointer-events: auto; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 5; }
.sheet .panel { width: 100%; max-width: 30rem; background: #0c1a30; border: 1px solid var(--line); border-radius: 1.6rem 1.6rem 0 0; padding: 1.2rem 1.2rem calc(1.2rem + var(--sab)); display: flex; flex-direction: column; gap: 0.7rem; animation: rise .22s ease-out; }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet .panel { border-radius: 1.6rem; } }
.result h1 { font-size: clamp(2.8rem, 16vmin, 5.4rem); line-height: 0.95; text-transform: uppercase; }
.result.win h1 { color: var(--mint); } .result.lose h1 { color: var(--coral); }
.scoreline { font: 700 2.6rem "Barlow Condensed", sans-serif; }
.table { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.35rem 0.8rem; font-weight: 700; }
.table .l { text-align: right; font-family: "Barlow Condensed", sans-serif; } .table .c { text-align: center; color: var(--dim); font-size: 0.85rem; } .table .rr { font-family: "Barlow Condensed", sans-serif; }
.vs { position: fixed; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 0.4rem; pointer-events: none;
  background: linear-gradient(100deg, rgba(47,123,255,0.92) 0%, rgba(47,123,255,0.92) 49.6%, rgba(7,17,31,0.96) 50.4%, rgba(7,17,31,0.96) 100%); transition: opacity .45s; }
.vs.out { opacity: 0; }
.vside { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-width: 0; }
.vside.l { animation: vl .45s cubic-bezier(.2,1.2,.4,1); } .vside.r { animation: vr .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes vl { from { transform: translateX(-60%); opacity: 0; } } @keyframes vr { from { transform: translateX(60%); opacity: 0; } }
.vfigs { display: flex; align-items: flex-end; justify-content: center; }
/* each player close up: the figure is drawn at more than twice the frame's height and cut off at the waist */
.vfig { height: min(56vh, 54vw, 20rem); overflow: hidden; display: flex; justify-content: center; align-items: flex-start; flex: none;
  filter: drop-shadow(0 0.5rem 0.7rem rgba(0,0,0,0.5)); -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.vfig img { height: 218%; width: auto; max-width: none; image-rendering: pixelated; flex: none; }
.vfig + .vfig { margin-left: -1.2rem; }
.vfigs:has(.vfig + .vfig) .vfig { height: min(40vh, 30vw, 14rem); }
.vmid { position: relative; z-index: 1; margin: 0 -0.9rem; }
.vside b { font: 700 1.15rem "Barlow Condensed", sans-serif; text-align: center; padding: 0 0.4rem; overflow-wrap: break-word; max-width: 46vw; }
.vmid { font: 700 2.6rem "Barlow Condensed", sans-serif; color: var(--gold); text-shadow: 0 0.2rem 0 rgba(6,16,32,0.9); flex: none; }
#toasts { position: fixed; left: 0; right: 0; bottom: calc(5.2rem + var(--sab)); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; pointer-events: none; z-index: 9; }
.toast { background: rgba(6,14,28,0.95); border: 1px solid var(--line); border-radius: 99px; padding: 0.6rem 1.1rem; font-weight: 700; font-size: 0.95rem; animation: rise .2s ease-out; max-width: 92vw; text-align: center; }
.toast.err { border-color: var(--coral); }

.rally { left: calc(0.5rem + var(--sal)); top: calc(3.9rem + var(--sat)); font: 700 0.95rem "Barlow Condensed", sans-serif; letter-spacing: 0.03em; background: rgba(6,14,28,0.8); border: 1px solid var(--line); border-radius: 99px; padding: 0.22rem 0.65rem; color: var(--gold); opacity: 0; transition: opacity .3s; }
.rally.on { opacity: 1; }
.speed.on + .rally { top: calc(5.8rem + var(--sat)); }
@media (orientation: landscape) and (max-height: 520px) {
  html { font-size: clamp(13px, 3.3vmin, 18px); }
  .screen { max-width: 46rem; }
  .home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
}

/* ---- home: the courts show through; small glass tiles ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tile { appearance: none; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--glass); color: var(--ink); cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.55rem; align-items: center; padding: 0.55rem 0.7rem; min-height: 3.3rem;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: transform .08s, filter .15s; }
.tile:active { transform: scale(0.97); filter: brightness(1.15); }
.tile .ico { grid-row: 1 / span 2; font-size: 1.35rem; width: 1.6rem; text-align: center; }
.tile b { font: 700 1.08rem "Barlow Condensed", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.tile small { font: 500 0.72rem "Barlow", sans-serif; color: var(--dim); line-height: 1.15; }
.links .btn.ghost { font-size: 0.82rem; min-height: 2.2rem; padding: 0.2rem; color: #c4d2e6; text-shadow: 0 1px 0.5rem rgba(7,17,31,0.9); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.seg button { flex: 1; appearance: none; border: 0; background: transparent; color: var(--dim); font: 700 1rem "Barlow Condensed", sans-serif; letter-spacing: 0.05em; text-transform: uppercase; min-height: 2.6rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: rgba(47,123,255,0.85); color: #fff; }
.member { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; border-radius: 0.8rem; border: 1px solid var(--line); background: var(--glass); cursor: pointer; font-weight: 600; }
.member .tick { width: 1.3rem; height: 1.3rem; border-radius: 0.4rem; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.9rem; flex: none; color: transparent; }
.member.on { border-color: var(--mint); }
.member.on .tick { background: var(--mint); border-color: var(--mint); color: #07111f; }
@media (orientation: landscape) and (max-height: 520px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ---- the title card: the club's badge and the game's name, and how they arrive ---- */
.lockup { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 6vh; text-align: center; }
.badge { position: relative; width: min(40vmin, 10.5rem); aspect-ratio: 1; filter: drop-shadow(0 0.5rem 1.3rem rgba(3,8,16,0.6)); }
.badge img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.badge .ringfx { position: absolute; inset: -3%; border-radius: 50%; border: 0.16rem solid #fff; opacity: 0; pointer-events: none; }
.badge .shine { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.badge .shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 42%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); opacity: 0; }
.lockup h1 { font-size: clamp(2.6rem, 14vmin, 4.8rem); line-height: 0.9; text-transform: uppercase; text-shadow: 0 0.15rem 1.2rem rgba(7,17,31,0.65); perspective: 30rem; }
.lockup h1 .w { display: block; white-space: nowrap; }
.lockup h1 .open { color: var(--mint); }
.lockup h1 .l { display: inline-block; transform-origin: 50% 100%; }
.lockup .serve { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.lockup .serve b { position: absolute; left: 0; bottom: 20%; width: 0.72rem; height: 0.72rem; border-radius: 50%; background: #e4ff3a;
  box-shadow: 0 0 0.7rem rgba(228,255,58,0.9), -0.55rem 0 0.9rem rgba(228,255,58,0.3); }
.tagline { text-align: center; font-size: 1.02rem; color: #dbe6f5; margin: 0.2rem auto 0; max-width: 20rem; text-shadow: 0 1px 0.6rem rgba(7,17,31,0.85); }
/* the badge spins in and lands, a ring of light leaves it, a ball crosses, and the name stands up letter by letter as it passes */
.lockup.play .badge img { animation: badgeIn 1.05s cubic-bezier(.2,1.2,.3,1) both; }
.lockup.play .ringfx { animation: ringOut 1s 0.6s ease-out both; }
.lockup.play .shine::before { animation: shine 0.9s 1.15s ease-in-out both; }
.lockup.play h1 .l { animation: letterIn 0.55s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(0.85s + var(--i) * 55ms); }
.lockup.play .serve { animation: ballX 1s 0.72s linear both; }
.lockup.play .serve b { animation: ballY 1s 0.72s linear both; }
.title.intro .tagline { animation: fadeUp 0.6s 1.75s both; }
.title.intro .late { animation: fadeUp 0.6s 2s both; }
@keyframes badgeIn { 0% { opacity: 0; transform: scale(0.12) rotate(-210deg); filter: blur(8px); } 50% { opacity: 1; filter: blur(0); }
  72% { transform: scale(1.07) rotate(7deg); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ringOut { 0% { opacity: 0.9; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes shine { 0% { left: -60%; opacity: 0; } 15% { opacity: 1; } 100% { left: 125%; opacity: 0; } }
@keyframes letterIn { 0% { opacity: 0; transform: translateY(0.5em) rotateX(-88deg) scale(0.8); } 100% { opacity: 1; transform: none; } }
@keyframes ballX { 0% { opacity: 0; transform: translateX(-14%); } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(114%); } }
@keyframes ballY { 0% { transform: translateY(-8.5rem); animation-timing-function: cubic-bezier(.45,0,1,.65); }
  46% { transform: translateY(0); animation-timing-function: cubic-bezier(0,.45,.5,1); } 100% { transform: translateY(-5.5rem); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: none; } }
.title.skip *, .title.skip *::before { animation-duration: 0.01s !important; animation-delay: 0s !important; }
/* the same card on its own, when a remembered player lands straight on the home screen */
#intro { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(ellipse at 50% 46%, rgba(7,17,31,0.55), rgba(7,17,31,0.12) 72%); transition: opacity 0.55s, transform 0.55s; }
#intro .lockup { margin: 0 0 6vh; }
#intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
#ui { transition: opacity 0.5s; }
body.intro #ui { opacity: 0; pointer-events: none; }
body.intro #ui > * { pointer-events: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .lockup { flex-direction: row; gap: 1.1rem; margin-top: 3vh; text-align: left; justify-content: center; }
  .badge { width: 30vmin; }
  .lockup h1 { font-size: clamp(2rem, 13vmin, 3.6rem); }
  .tagline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lockup.play *, .lockup.play *::before, .title.intro .tagline, .title.intro .late { animation: none !important; }
  .lockup .serve { display: none; }
}

/* Over the film (title and home) the glass is plain see-through, not blurred: blurring a moving picture behind
   a dozen tiles on every frame is what makes a phone stutter there. */
body.menu.open .tile, body.menu.open .btn, body.menu.open .card { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu.open .tile, body.menu.open .card, body.menu.open .btn:not(.primary):not(.ghost) { background: rgba(9,20,38,0.6); }

/* which of the eight courts the match is on, at the head of the versus card */
.vcourt { position: absolute; top: calc(12vh + var(--sat)); left: 0; right: 0; text-align: center; font: 700 1.7rem "Barlow Condensed", sans-serif; letter-spacing: 0.22em;
  text-transform: uppercase; color: #fff; text-shadow: 0 0.12rem 0 rgba(6,16,32,0.9), 0 0 1rem rgba(6,16,32,0.6); animation: fadeUp .5s .15s both; }
@media (orientation: landscape) and (max-height: 520px) { .vcourt { top: calc(3vh + var(--sat)); font-size: 1.4rem; } }

/* ---- the photo creator ---- */
.photo { appearance: none; width: 100%; min-height: 9rem; border: 2px dashed var(--line); border-radius: 1.1rem; background: var(--glass); color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.9rem; font-family: "Barlow", sans-serif; }
.photo .ico { font-size: 2rem; }
.photo b { font: 700 1.2rem "Barlow Condensed", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.photo small { color: var(--dim); font-size: 0.78rem; text-align: center; }
.photo.has { border-style: solid; }
.photo img { max-height: 11rem; max-width: 100%; border-radius: 0.8rem; }
.creating h1 { font-size: clamp(2.2rem, 12vmin, 4rem); text-transform: uppercase; color: var(--mint); }
.cprev { width: 100%; max-width: 26rem; align-self: center; border-radius: 1rem; border: 1px solid var(--line); }
.cfig { align-self: center; height: min(42vh, 20rem); }
.cfig img { height: 100%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 0.5rem 0.8rem rgba(0,0,0,0.5)); }
.cbar { height: 0.6rem; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--mint)); transition: width .6s; }

/* match settings (sets, scoring, court) */
.fmt .seg button { min-height: 2.5rem; font-size: 0.95rem; }
.seg.courtpick button { padding: 0; min-width: 0; }
.seg.levelseg button { font-size: 0.9rem; }
.fmtnote { margin-top: -0.2rem; }
/* the tutorial's gesture strip in the lesson card */
.lesson .gest { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin-top: 0.15rem; }
.lesson .gest .g { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.5rem; border-radius: 0.6rem; background: rgba(255,210,63,0.14);
  border: 1px solid rgba(255,210,63,0.45); font: 700 0.8rem "Barlow Condensed", sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
.lesson .gest .g.on { background: rgba(255,210,63,0.4); }
.lesson .gest em { font-style: normal; font-size: 1.05rem; }
.lesson .gest .arr { font-style: normal; color: var(--gold); font-weight: 700; }
.scroll.stack > .seg, .fmt > .seg { flex: none; }       /* a row of choices never shrinks away inside a scrolling list */
.vcourt .vfmt { display: block; font-size: 0.55em; letter-spacing: 0.14em; opacity: 0.85; margin-top: 0.35em; }

/* ================= QA pass, 2026-11-16 ================= */
/* The game's own icons: a roundel like the club badge (a white disc in the badge's blue ring, the drawing in the
   pavilion's green, in one thick even line). js/icons.js holds the drawings. */
.ic { display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0.14rem #284e97, 0 0.12rem 0.4rem rgba(0,0,0,0.35); }
.ic svg { width: 66%; height: 66%; stroke: #2f9e4a; stroke-width: 2.3; fill: none; display: block; }
.ic svg .f { fill: #2f9e4a; }
.ic svg .gold { stroke: #e6a800; stroke-width: 3.6; }
.btn { position: relative; }
.btn .ic.ico { width: 2.1rem; font-size: inherit; }
.btn.center .ic.ico { position: absolute; left: 1rem; }          /* the label stays in the middle of the button */
.tile .ic.ico { width: 1.9rem; height: 1.9rem; grid-row: 1 / span 2; }
.ic.mini { width: 1.3rem; height: 1.3rem; box-shadow: 0 0 0 0.09rem #284e97; }
.ic.any { width: 2.6rem; height: 2.6rem; align-self: center; }
.ic.big { width: 3rem; height: 3rem; }
.ic.hero-ic { width: 5rem; height: 5rem; align-self: center; }
.ic.chip-ic { width: 2rem; height: 2rem; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.chip .ic.mini { margin-right: 0.1rem; }
.chip.gold { border-color: var(--gold); color: var(--gold); }

/* C1: nothing in a scrolling column gives up its height (the coach's line used to collapse under the next label) */
.scroll.stack > * { flex: none; }
/* C2: a screen never moves sideways (the title's animated badge is wider than the screen) */
.screen { overflow-x: hidden; }
.lockup { max-width: 100%; }
/* C3: messages appear near the top, clear of the buttons at the bottom of every screen */
#toasts { bottom: auto; top: calc(4.3rem + var(--sat)); }
/* C5: thumb-sized targets (44 px) whatever the root size */
.btn.ghost { min-height: max(2.6rem, 44px); }
.links .btn.ghost { min-height: max(2.2rem, 44px); }
.seg button, .fmt .seg button { min-height: max(2.6rem, 44px); }
.hbtn { width: max(2.5rem, 44px); height: max(2.5rem, 44px); }
.back { width: max(3rem, 44px); height: max(3rem, 44px); flex: none; }
.court .btn { min-height: max(2.8rem, 44px) !important; }
/* nine courts do not fit a phone's width at thumb size: two rows */
.seg.courtpick { display: grid; grid-template-columns: repeat(5, 1fr); }
.seg.courtpick button { border-left: 0; box-shadow: inset -1px -1px 0 var(--line); }

/* B5: the match settings as one line; the three rows of choices open behind "Change" */
.fmtline { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0.6rem 0.5rem 0.9rem; }
.fmtline small { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.fmtline b { font: 700 1.1rem "Barlow Condensed", sans-serif; letter-spacing: 0.02em; }
.btn.mini { width: auto; min-height: max(2.4rem, 44px); padding: 0.3rem 1rem; font-size: 0.92rem; flex: none; justify-content: center; }
.fmtwrap > .fmt { display: none; }
.fmtwrap.open > .fmt { display: flex; }

/* A5: the invite screen's QR code and the waiting line */
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.qrbox:empty { display: none; }
.qr { width: min(62vw, 14rem); height: auto; border-radius: 0.6rem; image-rendering: pixelated; }
.field.small { min-height: 2.8rem; font-size: 0.9rem; font-weight: 600; }
.waitline { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.spinner.mini { width: 1.4rem; height: 1.4rem; border-width: 0.2rem; margin: 0; flex: none; }

/* the tutorial's lesson card: a way past a lesson, and arrows that travel with their step */
.lesson .skip { position: absolute; top: 0.4rem; right: 0.5rem; pointer-events: auto; appearance: none; border: 1px solid var(--line); background: rgba(255,255,255,0.06);
  color: var(--dim); border-radius: 99px; font: 600 0.78rem "Barlow", sans-serif; padding: 0 0.8rem; min-height: 2.2rem; cursor: pointer; }
.lesson > b { padding-right: 4rem; }
.lesson .gest .g .arr { margin-right: 0.15rem; }
.earned { gap: 0.4rem; }

/* C4: a phone on its side. The root size no longer falls below 15 px, and the screens use the width. */
@media (orientation: landscape) and (max-height: 520px) {
  html { font-size: clamp(15px, 4vmin, 18px); }
  .screen { max-width: 54rem; padding-top: calc(0.6rem + var(--sat)); padding-bottom: calc(0.6rem + var(--sab)); gap: 0.6rem; }
  .screen.home { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr auto auto; column-gap: 0.9rem; align-content: start; }
  .screen.home > .me { grid-column: 1; grid-row: 1; }
  .screen.home > .grow { display: none; }
  .screen.home > .stack { grid-column: 2; grid-row: 1 / span 3; }
  .screen.home > .links { grid-column: 1; grid-row: 2; flex-direction: column; gap: 0.2rem; align-self: start; }
  .screen.home > .homeinfo { grid-column: 1; grid-row: 3; }
  .screen.home > .scenery-credit { grid-column: 1 / span 2; grid-row: 4; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .btn.primary { min-height: 3.2rem; font-size: 1.3rem; }
  .board .r { font-size: 0.8rem; }
}
/* B1: the versus card stays until this phone has the players' and the court's pictures */
.vload { position: absolute; left: 0; right: 0; bottom: calc(9vh + var(--sab)); display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-weight: 600; color: #fff;
  text-shadow: 0 1px 0.5rem rgba(6,16,32,0.9); animation: fadeUp .4s 1.2s both; }
.vs.plain { background: rgba(7,17,31,0.94); }
.vside .vhand { font: 600 0.72rem 'Barlow', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: rgba(6,14,28,0.7); padding: 0.1rem 0.6rem; border-radius: 99px; }
/* D2: a point shown again. Broadcast bars top and bottom, the word, and the whole screen is the skip button. */
.replay { position: fixed; inset: 0; z-index: 7; display: flex; flex-direction: column; justify-content: space-between; align-items: center; cursor: pointer; touch-action: none;
  background: linear-gradient(180deg, rgba(4,8,16,0.92) 0, rgba(4,8,16,0.92) 7%, transparent 7.2%, transparent 92.8%, rgba(4,8,16,0.92) 93%); animation: fadeUp .25s both; }
.replay b { margin-top: calc(1.1vh + var(--sat)); font: 700 1.25rem "Barlow Condensed", sans-serif; letter-spacing: 0.32em; color: var(--gold); }
.replay b::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--coral); margin-right: 0.6rem; animation: pulse 1.2s infinite; }
.replay span { margin-bottom: calc(1.4vh + var(--sab)); font: 600 0.8rem "Barlow", sans-serif; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
body.replaying #hud { opacity: 0; }
body.replaying #bgv, body.replaying #scrim, body.replaying #ui { opacity: 0 !important; pointer-events: none; }
body.replaying #ui > * { pointer-events: none; }
body.replaying #toasts { opacity: 0; }

/* ---- the club: your card, the ladder, badges (E1, E2) ---- */
.statrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; text-align: center; padding: 0.7rem 0.4rem; }
.stat b { display: block; font: 700 1.5rem "Barlow Condensed", sans-serif; color: var(--mint); line-height: 1.1; }
.stat small { font-size: 0.66rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; display: block; }
.coachrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.cb { text-align: center; opacity: 0.45; }
.cb.on { opacity: 1; }
.cb .face { width: 100%; aspect-ratio: 1; border-radius: 0.8rem; background: #12233d; overflow: hidden; border: 2px solid var(--line); }
.cb.on .face { border-color: var(--gold); }
.cb .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cb small { font-size: 0.68rem; color: var(--dim); display: block; margin-top: 0.15rem; }
.cb.on small { color: var(--gold); font-weight: 700; }
.courtdots { display: flex; gap: 0.35rem; }
.courtdots span { flex: 1; text-align: center; font: 700 0.95rem "Barlow Condensed", sans-serif; padding: 0.3rem 0; border-radius: 0.5rem; border: 1px solid var(--line); color: var(--dim); }
.courtdots span.on { background: #17805f; color: #fff; border-color: transparent; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: 0.45rem; }
.bdg { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.5rem; align-items: center; padding: 0.45rem 0.55rem; border-radius: 0.8rem; border: 1px solid var(--line); background: var(--glass); opacity: 0.55; }
.bdg.on { opacity: 1; border-color: var(--gold); }
.bdg .ic { grid-row: 1 / span 2; width: 1.9rem; height: 1.9rem; }
.bdg:not(.on) .ic { background: #c9d2de; box-shadow: none; }
.bdg:not(.on) .ic svg { stroke: #5b6470; }
.bdg b { font: 700 0.98rem "Barlow Condensed", sans-serif; line-height: 1.1; }
.bdg small { font-size: 0.68rem; color: var(--dim); line-height: 1.15; }
.h2h, .lrow { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.ladder { display: flex; flex-direction: column; gap: 0.5rem; }
.lrow .pos { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #12305a; display: grid; place-items: center; font: 700 0.9rem "Barlow Condensed", sans-serif; flex: none; }
.lrow:first-child .pos { background: var(--gold); color: #07111f; }
.lrow.me { color: var(--mint); }
.lrow b { font-family: "Barlow Condensed", sans-serif; font-size: 1.1rem; }
/* E6: the colour of the kit */
.kits { display: flex; flex-direction: column; gap: 0.3rem; }
.swatches { display: flex; gap: 0.35rem; }
.sw { flex: 1; appearance: none; min-height: max(2.4rem, 44px); border-radius: 0.7rem; border: 2px solid var(--line); background: var(--glass); color: var(--ink); font: 700 0.8rem "Barlow Condensed", sans-serif; cursor: pointer; padding: 0; }
.sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(99,245,194,0.5); }
.kitfig { display: contents; }
.kitcv { image-rendering: pixelated; }
.detail .fig .kitcv, .char .fig .kitcv { height: 100%; width: auto; max-width: 100%; }
.detail .fig { align-items: flex-end; }
.me .face .kitcv { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vfig .kitcv { height: 218%; width: auto; max-width: none; flex: none; }
/* the home screen's line about the real weather, and the offer to install */
.homeinfo { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.homeinfo .chip { font-size: 0.78rem; font-weight: 600; background: rgba(9,20,38,0.6); color: #dbe6f5; }
.chip.installer { appearance: none; cursor: pointer; color: var(--ink); min-height: max(2rem, 44px); }
@media (max-height: 700px) { .tile { min-height: 2.9rem; padding: 0.4rem 0.6rem; } .tile small { display: none; } }
/* (C2, at the source) the title card's passing ball and shine are clipped at the card's own sides */
.lockup { overflow-x: clip; }
/* the colour swatches never shrink below a thumb's width: on a narrow phone the row slides sideways */
.swatches { overflow-x: auto; scrollbar-width: none; padding: 3px; }
.sw { flex: 1 0 44px; min-width: 44px; }
@media (max-height: 620px) { .detail .fig, .detail .fig img, .detail .fig .kitcv { height: 6.5rem; } .detail { padding: 0.5rem 0.8rem; } }
/* a phone on its side: a screen with a list in it scrolls as a whole, so its last button can always be reached */
@media (orientation: landscape) and (max-height: 520px) {
  .screen.fit { overflow-y: auto; }
  .screen.fit > .scroll { flex: 0 0 auto; overflow: visible; }
  .detail .fig, .detail .fig img, .detail .fig .kitcv { height: 6.5rem; }
}
/* the character pickers (Who is playing?, Your player): the whole screen scrolls with every character on it, no inner frame;
   the button that saves stays pinned to the bottom so it can always be reached */
.screen.charpick > .chars { flex: none; }
.screen.charpick > .btn.primary { position: sticky; bottom: 0; z-index: 2; flex: none; box-shadow: 0 -0.6rem 1.4rem rgba(7,17,31,0.55), 0 0.5rem 1.5rem rgba(47,123,255,0.28); }
