:root {
  --navy: #1d3557; --gold: #ffc800; --gold-d: #e5a500; --green: #58cc02; --green-d: #46a302;
  --blue: #1cb0f6; --blue-d: #1899d6; --red: #ff4b4b; --red-d: #ea2b2b; --gray: #e5e5e5; --gray-d: #afafaf;
  --ink: #1f2937; --eagle-navy: #1e3a8a; --eagle-orange: #f97316; --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy); color: var(--ink); font-family: var(--font);
  user-select: none; -webkit-user-select: none; touch-action: manipulation; overscroll-behavior: none; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* Chunky Duolingo-style buttons */
.btn { border: 0; border-radius: 16px; min-height: 54px; padding: 10px 16px; font-size: 1.15rem; font-weight: 900;
  letter-spacing: .3px; color: #fff; background: var(--blue); box-shadow: 0 5px 0 var(--blue-d); text-transform: uppercase; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-d); }
.btn.green { background: var(--green); box-shadow: 0 5px 0 var(--green-d); }
.btn.green:active { box-shadow: 0 1px 0 var(--green-d); }
.btn.gold { background: var(--gold); color: #7a4a00; box-shadow: 0 5px 0 var(--gold-d); }
.btn.gold:active { box-shadow: 0 1px 0 var(--gold-d); }
.btn.ghost { background: #fff; color: var(--blue); box-shadow: 0 5px 0 var(--gray); border: 2px solid var(--gray); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--gray); }
.btn.wide { width: 100%; }
.iconbtn { background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.light .iconbtn { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--gray); }

/* ---------- Coach Bounce ---------- */
.coach { position: relative; flex: none; width: 100%; height: 100%; }
.coach svg { width: 100%; height: 100%; overflow: visible; display: block; }
.c-shadow { fill: rgba(0,0,0,.18); }
.c-ball { fill: url(#coachBall); stroke: #9a3412; stroke-width: 1.5; }
.c-seam { fill: none; stroke: #7c2d12; stroke-width: 1.8; opacity: .55; stroke-linecap: round; }
.c-cap { fill: #1cb0f6; stroke: #0b7ab0; stroke-width: 1.2; }
.c-brim { fill: #1899d6; stroke: #0b7ab0; stroke-width: 1.2; }
.c-capbtn { fill: #0b7ab0; }
.c-capstar { fill: #ffc800; }
.c-eye { fill: #fff; stroke: #7c2d12; stroke-width: 1; }
.c-pupil { fill: #111827; transition: transform .25s; }
.c-shine { fill: #fff; }
.c-brow { fill: none; stroke: #7c2d12; stroke-width: 2.6; stroke-linecap: round; transition: transform .25s; transform-box: fill-box; transform-origin: center; }
.c-cheek { fill: #fb7185; opacity: .45; }
.c-m { opacity: 0; }
.c-m-smile { fill: none; stroke: #7c2d12; stroke-width: 2.6; stroke-linecap: round; }
.c-m-open, .c-m-grin { fill: #7f1d1d; }
.c-tongue { fill: #fb7185; }
.c-m-oops { fill: none; stroke: #7c2d12; stroke-width: 2.4; stroke-linecap: round; }
.c-arm path { fill: none; stroke: #9a3412; stroke-width: 3.5; stroke-linecap: round; }
.c-glove { fill: #fff; stroke: #cbd5e1; stroke-width: 1; }
.c-shoe { fill: #fff; stroke: #cbd5e1; stroke-width: 1; }
.c-stripe { fill: none; stroke: #ff4b4b; stroke-width: 1.6; }
.c-arm .c-whistle { fill: #e2e8f0; stroke: #64748b; stroke-width: .8; }
.c-sweat { fill: #7dd3fc; opacity: 0; }
.c-arm, .c-eyes, .c-body { transform-box: view-box; }
.c-arm-l { transform-origin: 22px 66px; }
.c-arm-r { transform-origin: 78px 66px; }
.c-eyes { transform-origin: 50px 58px; transition: transform .08s; }
.coach.blink .c-eyes { transform: scaleY(.12); }
.c-body { transform-origin: 50px 104px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2.5px) scaleY(1.01); } }
/* moods */
.coach .c-m-smile { opacity: 1; }
.coach.mood-happy .c-m-smile, .coach.mood-cheer .c-m-smile, .coach.mood-oops .c-m-smile { opacity: 0; }
.coach.mood-happy .c-m-grin, .coach.mood-cheer .c-m-grin { opacity: 1; }
.coach.mood-oops .c-m-oops { opacity: 1; }
.coach.mood-happy .c-body { animation: hop .45s ease-out 2; }
.coach.mood-cheer .c-body { animation: hop .55s ease-out infinite; }
.coach.mood-cheer .c-arm-l { transform: rotate(118deg); }
.coach.mood-cheer .c-arm-r { transform: rotate(-118deg); }
.coach.mood-happy .c-arm-r { transform: rotate(-110deg); }
.coach.mood-happy .c-brow, .coach.mood-cheer .c-brow { transform: translateY(-2px); }
.coach.mood-oops .c-body { animation: none; transform: rotate(-7deg); }
.coach.mood-oops .c-sweat { opacity: 1; animation: sweat 1s ease-in infinite; }
.coach.mood-oops .c-brow-l { transform: rotate(-14deg); }
.coach.mood-oops .c-brow-r { transform: rotate(14deg); }
.coach.mood-think .c-pupil { transform: translate(-1.6px, -2.4px); }
.coach.mood-think .c-brow-l { transform: translateY(-3px); }
.coach.mood-idle .c-arm-r { animation: wave 5s ease-in-out infinite; }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-12px) scaleY(1.04); } 70% { transform: translateY(0) scaleY(.95); } }
@keyframes wave { 0%,70%,100% { transform: rotate(0); } 76%,88% { transform: rotate(-120deg); } 82%,94% { transform: rotate(-95deg); } }
@keyframes sweat { from { transform: translateY(0); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
/* talking: flap between the closed smile and an open mouth */
.coach.talking .c-m-grin, .coach.talking .c-m-oops { opacity: 0; }
.coach.talking .c-m-smile { animation: talkA .26s steps(1) infinite; }
.coach.talking .c-m-open { animation: talkB .26s steps(1) infinite; }
@keyframes talkA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes talkB { 0% { opacity: 0; } 50% { opacity: 1; } }

.bubble { position: relative; background: #fff; border: 2px solid var(--gray); border-radius: 18px; padding: 10px 14px;
  font-size: 1.2rem; line-height: 1.32; font-weight: 700; color: var(--ink); }
.bubble::before { content: ""; position: absolute; left: -11px; bottom: 18px; width: 18px; height: 18px; background: #fff;
  border-left: 2px solid var(--gray); border-bottom: 2px solid var(--gray); transform: rotate(45deg); border-radius: 0 0 0 4px; }
.bubble b { color: var(--blue-d); }
.bubble.hint { border-color: #fdba74; background: #fff7ed; }
.bubble.hint::before { border-color: #fdba74; background: #fff7ed; }
.bubble.hint b { color: #c2410c; }

/* ---------- Home: the lesson path ---------- */
#home { background: linear-gradient(#e0f2fe, #f8fafc 40%); overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 8px;
  background: #fff; border-bottom: 2px solid var(--gray); }
.topbar .logo { font-weight: 900; font-size: 1.2rem; flex: 1; color: var(--navy); white-space: nowrap; overflow: hidden; }
.topbar .logo span { color: var(--eagle-orange); }
@media (max-width: 430px) { .topbar .logo span { display: none; } }
@media (max-width: 350px) { .topbar .logo { display: none; } }
.me-btn { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--eagle-orange); background: #dbeafe; padding: 0; overflow: hidden; flex: none; }
.me-btn svg { width: 100%; height: 100%; display: block; }
.stat { font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; gap: 3px; }
.stat .ic { width: 26px; height: 26px; }
.iconbtn .ic { width: 26px; height: 26px; vertical-align: middle; }
.ic { display: inline-block; vertical-align: -0.2em; width: 1.2em; height: 1.2em; flex: none; }
.stat.fire { color: #ff9600; } .stat.xp { color: #e5a500; }
.stat.dim { filter: grayscale(1); opacity: .5; }
#pathScroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 30px; }
.hero { display: flex; align-items: flex-end; gap: 12px; padding: 16px 16px 4px; max-width: 520px; margin: 0 auto; }
.hero .coach { width: 104px; height: 116px; }
.hero .bubble { flex: 1; margin-bottom: 26px; }
.unit { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px auto 50px; max-width: 440px; width: calc(100% - 32px); background: var(--uc, var(--green)); color: #fff;
  border-radius: 16px; padding: 12px 16px; box-shadow: 0 5px 0 var(--ud, var(--green-d)); }
.unit-art { width: 54px; height: 54px; flex: none; background: rgba(255,255,255,.18); border-radius: 14px; padding: 4px; }
.unit-art svg { width: 100%; height: 100%; display: block; }
.unit h2 { margin: 0; font-size: 1.15rem; } .unit p { margin: 2px 0 0; opacity: .95; font-weight: 600; }
.path { position: relative; max-width: 440px; margin: 0 auto; padding: 18px 0 0; }
.node-row { display: flex; justify-content: center; height: 104px; position: relative; }
.node-row > .node { left: var(--x, 0); }
.node-row.small { height: 84px; }
.node { position: relative; border: 0; width: 76px; height: 70px; border-radius: 50%; font-size: 2rem;
  background: var(--green); box-shadow: 0 7px 0 var(--green-d); color: #fff; }
.node { background: var(--uc, var(--green)); box-shadow: 0 7px 0 var(--ud, var(--green-d)); }
.node .ic { width: 40px; height: 40px; vertical-align: middle; }
.node:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ud, var(--green-d)); }
.node.done { background: var(--gold); box-shadow: 0 7px 0 var(--gold-d); }
.node.done:active { box-shadow: 0 2px 0 var(--gold-d); }
.node.locked { background: var(--gray); box-shadow: 0 7px 0 var(--gray-d); filter: grayscale(1); }
.node.game { width: 62px; height: 58px; font-size: 1.7rem; background: #ce82ff; box-shadow: 0 6px 0 #a560e8; }
.node.game .ic { width: 34px; height: 34px; }
.node.bag { width: 66px; height: 58px; background: #fff; box-shadow: 0 6px 0 #cbd5e1; border: 2px solid #e2e8f0; }
.node.bag .ic { width: 44px; height: 44px; }
.node.bag.ready { animation: bagHop 1.6s ease-in-out infinite; }
.node.bag.locked .ic, .node.bag.claimed .ic { filter: grayscale(1); opacity: .45; }
.node.bag.claimed .ic { filter: none; opacity: .7; }
@keyframes bagHop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-9px) rotate(-5deg); } 80% { transform: translateY(0) rotate(4deg); } }
.node.game.locked { background: var(--gray); box-shadow: 0 6px 0 var(--gray-d); }
.node.trophy { background: #ff9600; box-shadow: 0 7px 0 #cd7900; }
.node .stars { position: absolute; left: 50%; bottom: -27px; transform: translateX(-50%); white-space: nowrap; display: flex; gap: 1px; }
.node .stars .ic { width: 20px; height: 20px; }
.node.game .stars .ic { width: 26px; height: 26px; }
.node.locked .ic { width: 34px; height: 34px; }
.node.current::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 5px solid var(--uc, var(--green)); opacity: .35; animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.1); opacity: .4; } }
.start-tip { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--green);
  font-weight: 900; font-size: .95rem; border: 2px solid var(--gray); border-radius: 12px; padding: 4px 10px; white-space: nowrap; animation: tip 1.2s ease-in-out infinite; }
@keyframes tip { 50% { transform: translate(-50%, -4px); } }
.home-foot { max-width: 440px; margin: 26px auto 0; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.linkbtn { background: none; border: 0; color: #64748b; text-decoration: underline; font-size: 1rem; }

/* lesson start sheet */
.sheet-wrap { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; z-index: 20; }
.sheet { width: 100%; background: #fff; border-radius: 24px 24px 0 0; padding: 20px 18px max(20px, env(safe-area-inset-bottom));
  animation: up .25s ease-out; max-width: 560px; margin: 0 auto; }
@keyframes up { from { transform: translateY(100%); } }
.sheet h2 { margin: 0 0 4px; font-size: 1.5rem; } .sheet p { margin: 0 0 16px; font-size: 1.1rem; color: #475569; font-weight: 600; }
.sheet .row { display: flex; gap: 10px; }
.sheet .row .btn { flex: 1; }

/* ---------- Lesson ---------- */
#game { background: var(--navy); }
.lesson-top { display: flex; align-items: center; gap: 10px; padding: max(8px, env(safe-area-inset-top)) 12px 6px; color: #fff; }
.bar { flex: 1; height: 16px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .4s ease;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), inset 0 4px 0 rgba(255,255,255,.25); }
.lesson-top .pill { background: rgba(255,255,255,.15); border-radius: 999px; padding: 4px 10px; font-weight: 900; white-space: nowrap; }
.lesson-top .title { color: #fff; font-weight: 900; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#courtWrap { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 6px; position: relative; }
#court { width: 100%; height: 100%; max-width: 640px; display: block; touch-action: none; }
#panel { background: #fff; border-radius: 24px 24px 0 0; padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; position: relative; transition: background .2s; }
#panel.right { background: #d7ffb8; } #panel.wrong { background: #ffdfe0; }
.talkrow { display: flex; align-items: flex-end; gap: 12px; min-height: 96px; }
.talkrow .coach { width: 78px; height: 88px; }
.talkrow .bubble { flex: 1; margin-bottom: 14px; }
#buttons { display: flex; gap: 10px; flex-wrap: wrap; }
#buttons .btn { flex: 1 1 40%; font-size: 1.05rem; text-transform: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
#buttons .btn .ic { width: 28px; height: 28px; background: #fff; border-radius: 8px; padding: 2px; }
.lesson-top .pill .ic, .mini-hud .pill .ic { width: 22px; height: 22px; margin-right: 4px; vertical-align: -5px; }
.shake { animation: shake .35s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.praise { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); background: var(--green); color: #fff;
  font-weight: 900; font-size: 1.15rem; padding: 6px 16px; border-radius: 999px; box-shadow: 0 4px 0 var(--green-d);
  white-space: nowrap; animation: praise 1.1s ease-out forwards; pointer-events: none; z-index: 3; }
.praise.combo { background: #ff9600; box-shadow: 0 4px 0 #cd7900; font-size: 1.3rem; }
@keyframes praise { 0% { transform: translate(-50%, 12px) scale(.6); opacity: 0; } 18% { transform: translate(-50%, 0) scale(1.12); opacity: 1; }
  30% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -16px); opacity: 0; } }
@media (orientation: landscape) and (max-height: 560px) {
  #main { flex-direction: row; }
  #courtWrap { align-items: center; }
  #panel { width: 46%; border-radius: 24px 0 0 0; justify-content: center; }
  .talkrow .bubble { font-size: 1.05rem; }
}

/* SVG court bits */
.zone { fill: rgba(255,255,255,.01); cursor: pointer; }
.zone.glow { stroke: var(--gold); stroke-width: .8; stroke-dasharray: 2 1.4; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -6.8; } }
.spot { fill: rgba(255,255,255,.18); stroke: #fff; stroke-width: .5; stroke-dasharray: 1.2 1; }
.spot.decoy { opacity: .28; }
.spotlabel { font-size: 2.6px; fill: #fff; font-weight: 800; paint-order: stroke; stroke: rgba(29,53,87,.6); stroke-width: .6; }
.ptext { font-size: 4.2px; font-weight: 900; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.zz { text-anchor: middle; pointer-events: none; font-weight: 900; fill: #fff; stroke: #1e3a8a; stroke-width: .35; paint-order: stroke; font-family: var(--font); }
.fx { font-size: 6px; font-weight: 900; text-anchor: middle; fill: var(--gold); stroke: #7c2d12; stroke-width: .5; paint-order: stroke;
  pointer-events: none; animation: floatUp 1.3s ease-out forwards; transform-box: fill-box; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0) scale(.8); } 20% { transform: translateY(-1px) scale(1.15); } to { opacity: 0; transform: translateY(-10px) scale(1); } }
.pulse { fill: none; stroke: var(--gold); stroke-width: .9; animation: pulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .5; } }
.qmark { font-size: 6px; font-weight: 900; fill: var(--gold); text-anchor: middle; dominant-baseline: central; stroke: #1d3557; stroke-width: .4; paint-order: stroke; pointer-events: none; }

/* ---------- Lesson complete and rewards ---------- */
.celebrate { background: #fff; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.celebrate .coach { width: 150px; height: 168px; }
.celebrate h2 { margin: 0; font-size: 2rem; color: #ff9600; }
.celebrate p { margin: 0; font-size: 1.15rem; color: #475569; font-weight: 700; max-width: 420px; }
.actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin-top: 10px; }
.gift { animation: gift 1s ease-in-out infinite; }
@keyframes gift { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.1); } }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 420px; }
.pick-grid .btn { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-transform: none; }
.pick-grid .btn span { font-size: 2rem; }
.confetti { position: fixed; top: -40px; border-radius: 2px; animation: fall linear forwards; pointer-events: none; z-index: 50; }
.confetti.ball .ic { width: 26px; height: 26px; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------- Mini games ---------- */
#mini { background: #0f172a; }
#miniCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.mini-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 12px 6px; pointer-events: none; z-index: 2; }
.mini-hud .iconbtn { pointer-events: auto; }
.mini-hud .pill { background: rgba(0,0,0,.45); color: #fff; font-weight: 900; font-size: 1.25rem; border-radius: 999px; padding: 5px 14px; }
.mini-hud .spacer { flex: 1; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; z-index: 3; }
.overlay.dim { background: rgba(15,23,42,.72); }
.overlay .panel { background: #fff; border-radius: 24px; padding: 18px; width: 100%; max-width: 420px; display: flex;
  flex-direction: column; align-items: center; gap: 10px; }
.overlay .panel h2 { margin: 0; font-size: 1.7rem; color: #a560e8; }
.overlay .panel p { margin: 0; font-size: 1.1rem; color: #475569; font-weight: 700; }
.overlay .panel .coach { width: 110px; height: 124px; }
.howto { margin: 2px 0; }
.banner { font-size: 4.6rem; font-weight: 900; color: #fff; -webkit-text-stroke: 3px #1f2937; paint-order: stroke fill;
  text-shadow: 0 6px 0 #1f2937; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.banner.go { color: var(--gold); } .banner.finish { color: var(--red); }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.medal { animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.medal .ic { width: 84px; height: 84px; }
.result-score { font-size: 2.4rem; font-weight: 900; color: var(--ink); }
.result-best { font-size: 1rem; color: #64748b; font-weight: 800; }
.tiers { display: flex; gap: 14px; font-weight: 800; color: #64748b; font-size: .95rem; }
.tiers span { display: flex; align-items: center; gap: 2px; }
.tiers .ic { width: 26px; height: 26px; }
.result-best .ic { width: 20px; height: 20px; }

/* ---------- Coach notes ---------- */
#notes { background: rgba(15,23,42,.7); align-items: center; justify-content: center; padding: 16px; z-index: 30; }
#notes .card2 { background: #fff; border-radius: 18px; padding: 18px; max-width: 560px; max-height: 100%; overflow-y: auto; font-size: 1rem; line-height: 1.45; user-select: text; -webkit-user-select: text; }
#notes h2 { margin-top: 0; }
#notes table { border-collapse: collapse; width: 100%; font-size: .95rem; }
#notes td, #notes th { border: 1px solid #cbd5e1; padding: 6px; vertical-align: top; text-align: left; }
#notes label { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 12px 0; }
#notes input[type=checkbox] { width: 24px; height: 24px; }

/* ---------- Basketball cards ---------- */
/* Every size inside a card is in em, so one font-size scales the whole card. */
.cardsbtn { border: 0; background: none; padding: 0; color: #2563eb; font-family: inherit; position: relative; }
.cardsbtn.has-new::after { content: ""; position: absolute; right: -6px; top: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff; }
.pcard { position: relative; width: 13em; height: 18.4em; border-radius: 1.1em; padding: .55em; overflow: hidden;
  display: flex; flex-direction: column; border: .45em solid var(--rc); background: radial-gradient(circle at 50% 38%, #fff 0, var(--rbg) 70%);
  box-shadow: 0 .35em 0 rgba(0,0,0,.25); color: var(--ink); text-align: left; }
.r-common { --rc: #94a3b8; --rbg: #cbd5e1; --rd: #475569; }
.r-rare { --rc: #1cb0f6; --rbg: #bae6fd; --rd: #0369a1; }
.r-epic { --rc: #a855f7; --rbg: #e9d5ff; --rd: #6b21a8; }
.r-legendary { --rc: #f59e0b; --rbg: #fde68a; --rd: #92400e; }
.pcard.r-legendary { border-image: linear-gradient(135deg, #fde047, #f59e0b, #fff7ae, #d97706) 1; border-radius: .3em; }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: .95em; color: var(--rd); }
.pc-num { background: var(--rc); color: #fff; border-radius: 999px; padding: .05em .55em; }
.pc-rar { color: var(--rc); letter-spacing: .05em; text-shadow: 0 .06em 0 rgba(0,0,0,.25); }
.pc-art { flex: 1; min-height: 0; display: flex; justify-content: center; }
.pc-art svg { height: 100%; width: auto; overflow: visible; }
.pc-plate { background: var(--rc); color: #fff; border-radius: .7em; padding: .35em .5em; text-align: center; }
.pc-name { font-weight: 900; font-size: 1.15em; line-height: 1.1; white-space: nowrap; }
.pc-plate .pc-name.long { font-size: .98em; letter-spacing: -.01em; }
.pc-nick { font-weight: 700; font-size: .85em; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard.locked .pc-art svg { filter: brightness(0); opacity: .22; }
.pcard.locked { background: var(--rbg); }
.pcard.back { gap: .35em; background: #fff; }
.pcard.back .pc-name { color: var(--rd); text-align: center; }
.pc-rarlabel { text-align: center; font-weight: 900; font-size: .75em; color: #fff; background: var(--rc); border-radius: 999px; align-self: center; padding: .05em .7em; text-transform: uppercase; letter-spacing: .06em; }
.pc-move { background: var(--rbg); border-radius: .6em; padding: .3em .5em; font-weight: 900; font-size: .95em; color: var(--rd); }
.pc-move span, .pc-tip span { display: block; font-size: .72em; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.pc-stat { display: grid; grid-template-columns: 4.6em 1fr 1.6em; align-items: center; gap: .35em; font-size: .82em; font-weight: 800; }
.pc-stat i { height: .7em; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.pc-stat b { display: block; height: 100%; background: var(--rc); border-radius: 999px; }
.pc-stat em { font-style: normal; text-align: right; color: var(--rd); }
.pc-tip { margin-top: auto; background: #fff7ed; border: .12em solid #fdba74; border-radius: .6em; padding: .35em .5em; font-size: .8em; font-weight: 700; line-height: 1.25; }
.pc-tip span { color: #c2410c; }
/* holo shine on rare and better */
.shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.7) 45%, transparent 60%);
  background-size: 250% 100%; animation: shine 3.2s ease-in-out infinite; mix-blend-mode: overlay; }
.r-legendary .shine { background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.85) 40%, rgba(253,224,71,.6) 50%, transparent 65%);
  background-size: 250% 100%; animation-duration: 2.2s; mix-blend-mode: normal; opacity: .55; }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.cover { background: repeating-linear-gradient(45deg, #1d3557 0 1em, #23406a 1em 2em); border-color: var(--gold); align-items: center; justify-content: center; color: #fff; text-align: center; }
.cv-ball .ic { width: 5em; height: 5em; }
.cv-text { font-weight: 900; font-size: 1.5em; line-height: 1.05; color: var(--gold); letter-spacing: .05em; }
/* flipping */
.flip { perspective: 60em; width: 13em; height: 18.4em; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.fb { transform: rotateY(180deg); }

/* pack screen */
.packscreen { background: radial-gradient(circle at 50% 30%, #3b2a7a, #1d3557 70%); color: #fff; justify-content: flex-start;
  padding-top: max(18px, env(safe-area-inset-top)); overflow-y: auto; }
.packscreen .coach { width: 90px; height: 100px; }
#packBody { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
#packBody h2 { color: var(--gold); font-size: 1.7rem; }
#packBody p { color: #e2e8f0; min-height: 1.4em; }
.pack-wrap { padding: 10px; }
.foil { border: 0; width: 170px; height: 236px; border-radius: 16px; position: relative; overflow: hidden; color: #7a4a00; font-family: inherit;
  background: linear-gradient(135deg, #fde047, #f59e0b 40%, #fff7ae 55%, #d97706); box-shadow: 0 8px 0 #b45309, 0 0 40px rgba(253,224,71,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; animation: packBob 1.4s ease-in-out infinite; }
.foil-top { position: absolute; top: 0; left: 0; right: 0; height: 22px; background: repeating-linear-gradient(90deg, #b45309 0 8px, #d97706 8px 16px); }
.foil-ball .ic { width: 70px; height: 70px; }
.foil-text { font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.foil small { font-size: .85rem; }
/* Swipe to rip: --rip is how far the finger has gone (0 to 1), --dir which way. */
.foil { touch-action: none; cursor: grab; --rip: 0; --dir: 1; overflow: visible; }
.foil-top { z-index: 2; height: 30px; transform-origin: calc(50% + var(--dir) * 50%) 100%;
  transform: translateY(calc(var(--rip) * -10px)) rotate(calc(var(--dir) * var(--rip) * -9deg)); border-radius: 16px 16px 0 0; }
.foil.springback .foil-top { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.tear { position: absolute; bottom: -3px; height: 6px; width: calc(var(--rip) * 100%);
  left: calc((1 - var(--dir)) / 2 * (1 - var(--rip)) * 100%);
  background: repeating-linear-gradient(135deg, #fff 0 3px, transparent 3px 6px); }
.foil.dragging, .foil.rip, .foil.unzip { animation: none; }
.foil.wiggle { animation: shake .35s; }
.foil.rip .foil-top { transition: transform .45s ease-in, opacity .45s; opacity: 0;
  transform: translate(calc(var(--dir) * 160px), -110px) rotate(calc(var(--dir) * 35deg)); }
.foil.rip > :not(.foil-top) { animation: packDrop .5s ease-in .2s forwards; }
.foil.rip { background: none; box-shadow: none; }
.foil.rip::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(135deg, #fde047, #f59e0b 40%, #fff7ae 55%, #d97706);
  box-shadow: 0 8px 0 #b45309; animation: packDrop .5s ease-in .2s forwards; }
@keyframes packDrop { to { transform: translateY(70px) scale(.85); opacity: 0; } }
/* the finger dot that shows how to swipe */
.swipe-hint { position: absolute; top: 4px; left: 12%; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 3px 8px rgba(0,0,0,.3); z-index: 3; pointer-events: none; animation: swipeHint 1.8s ease-in-out infinite; }
@keyframes swipeHint { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(110px); opacity: 1; } 85%, 100% { transform: translateX(110px); opacity: 0; } }
.foil.dragging .swipe-hint, .foil.rip .swipe-hint, .foil.unzip .swipe-hint { display: none; }
/* the gym bag's zipper */
.zip-track { position: absolute; left: 34px; right: 34px; top: 58px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); }
.zip-pull { position: absolute; top: -7px; left: calc(var(--rip) * 100% - 8px); width: 16px; height: 20px; border-radius: 4px;
  background: #ffc800; border: 2px solid #1e293b; }
.foil.bagpack .swipe-hint { top: 48px; left: 22%; }
@keyframes swipeHintBag { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(90px); opacity: 1; } 85%, 100% { opacity: 0; } }
.foil.bagpack .swipe-hint { animation-name: swipeHintBag; }
@keyframes packBob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes rip { 30% { transform: scale(1.15) rotate(4deg); } to { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.pack-row { display: flex; gap: 12px; justify-content: center; width: 100%;
  font-size: min(12px, calc((100vw - 40px - (var(--n) - 1) * 12px) / var(--n) / 13.6), calc((100vh - 330px) / 18.6)); }
.pack-slot { position: relative; display: flex; flex-direction: column; align-items: center; animation: deal .45s cubic-bezier(.2,1.4,.4,1) backwards; }
@keyframes deal { from { transform: translateY(60px) scale(.4); opacity: 0; } }
.flip.on.r-rare .fb, .flip.on.r-epic .fb { animation: glow 1.2s ease-out; border-radius: 1.1em; }
.flip.on.r-legendary .fb { animation: glowGold 1.6s ease-out 2; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9); } 100% { box-shadow: 0 0 2.5em 1em rgba(255,255,255,0); } }
@keyframes glowGold { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,1); } 100% { box-shadow: 0 0 4em 1.5em rgba(253,224,71,0); } }
.pack-tag { position: absolute; top: -10px; right: -8px; font-weight: 900; font-size: 13px; padding: 3px 9px; border-radius: 999px;
  opacity: 0; transform: scale(.4); transition: .3s cubic-bezier(.2,1.6,.4,1) .35s; z-index: 2; pointer-events: none; white-space: nowrap; }
.pack-tag.show { opacity: 1; transform: scale(1); }
.pack-tag.new { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-d); }
.pack-tag.dup { background: var(--gold); color: #7a4a00; box-shadow: 0 3px 0 var(--gold-d); }
.pack-done { margin-top: 4px; }

/* binder */
#binder { background: #f1f5f9; }
#binder .lesson-top { background: var(--navy); }
#binderScroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 12px max(24px, env(safe-area-inset-bottom)); }
#binderGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; margin: 0 auto;
  font-size: min(10px, calc((min(100vw, 560px) - 24px - 24px) / 3 / 13.2)); }
.binder-slot { border: 0; background: none; padding: 0; position: relative; justify-self: center; font: inherit; font-size: 1em; }
.binder-slot .pack-tag { font-size: 11px; top: -6px; right: -4px; transition: none; }
.binder-foot { text-align: center; color: #64748b; font-weight: 700; max-width: 420px; margin: 18px auto 0; }
.sheet-wrap.center { align-items: center; justify-content: center; }
.card-view { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; width: 100%; max-width: 360px;
  font-size: min(18px, calc((100vw - 60px) / 13.6), calc((100vh - 180px) / 18.6)); }
.card-view p { color: #fff; font-weight: 800; margin: 6px 0 0; font-size: 16px; }
.card-view .btn { font-size: 1.15rem; }

/* glyph badges: a lesson or game icon on its colored circle */
.glyph-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--eagle-orange); vertical-align: middle; margin-right: 10px; flex: none; }
.glyph-badge.game { background: #ce82ff; box-shadow: 0 4px 0 #a560e8; }
.glyph-badge .ic { width: 28px; height: 28px; }
.glyph-badge.big { width: 96px; height: 90px; margin: 0; }
.glyph-badge.big .ic { width: 62px; height: 62px; }
.howto .glyph-badge { width: 64px; height: 60px; margin: 0; }
.howto .glyph-badge .ic { width: 42px; height: 42px; }
.pick-grid .glyph-badge { margin: 0 0 4px; }
.sheet-title { display: flex; align-items: center; }
.sheet h2 .ic { width: 34px; height: 34px; margin-right: 8px; }
.pc-tip span .ic { width: 1.3em; height: 1.3em; vertical-align: -.3em; }
h2 .ic.inline { width: 1.2em; height: 1.2em; }
.btn.red { background: var(--red); box-shadow: 0 5px 0 var(--red-d); }
.btn.red:active { box-shadow: 0 1px 0 var(--red-d); }
.credit { background: #fff7ed; border: 2px solid #fdba74; border-radius: 12px; padding: 10px 12px; font-weight: 700; }

/* ---------- Path characters ---------- */
.buddy { position: absolute; top: -6px; left: 50%; width: 92px; height: 102px; margin-left: -46px; transform: translateX(var(--bx));
  border: 0; background: none; padding: 0; }
.buddy svg { width: 100%; height: 100%; overflow: visible; }
.buddy > svg { animation: buddyBob 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes buddyBob { 50% { transform: translateY(-2px) scaleY(1.015); } }
.buddy.b-dribble .pl-ball { animation: dribbleBall .55s ease-in infinite alternate; }
@keyframes dribbleBall { to { transform: translateY(7px); } }
.buddy.b-wave .pl-wave, .buddy.b-eagle .eg-wing-l { animation: buddyWave 2.4s ease-in-out infinite; transform-box: view-box; }
.buddy.b-wave .pl-wave { transform-origin: 69px 76px; }
.buddy.b-eagle .eg-wing-l { transform-origin: 33px 70px; }
@keyframes buddyWave { 0%, 55%, 100% { transform: rotate(0); } 65%, 85% { transform: rotate(-14deg); } 75%, 95% { transform: rotate(8deg); } }
.buddy.b-shoot .pl-ball { animation: shootBall 2.8s ease-in-out infinite; }
@keyframes shootBall { 0%, 60%, 100% { transform: translateY(0); } 72% { transform: translateY(-14px); } 84% { transform: translateY(0); } }
.buddy.b-whistle .pl-whistle { animation: whistle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes whistle { 0%, 70%, 100% { transform: scale(1); } 75%, 85% { transform: scale(1.35); } }
.buddy.b-pass .pl-ball { animation: passBall 2.2s ease-in-out infinite; }
@keyframes passBall { 0%, 50%, 100% { transform: translateX(0); } 70% { transform: translateX(8px); } }
.buddy.cheer > svg, .buddy.hop > svg { animation: buddyCheer .5s ease-out 4; }
.buddy.hop > svg { animation-iteration-count: 2; }
@keyframes buddyCheer { 40% { transform: translateY(-14px) scaleY(1.05); } 70% { transform: translateY(0) scaleY(.94); } }
.buddy-say { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--eagle-navy);
  border: 2px solid var(--eagle-orange); border-radius: 12px; padding: 2px 8px; font-weight: 900; font-size: .85rem; white-space: nowrap;
  animation: sayPop 4s ease-out forwards; }
@keyframes sayPop { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Daily Skills Challenges ---------- */
.daily { max-width: 440px; width: calc(100% - 32px); margin: 6px auto 0; background: #fff; border: 2px solid var(--gray); border-radius: 16px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.daily-h { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; font-weight: 900; color: var(--eagle-navy); font-size: 1rem; text-align: left; }
.daily-h .ic { width: 34px; height: 34px; }
.daily-h span { flex: 1; } .daily-h b { color: var(--eagle-orange); }
.daily-row { display: grid; grid-template-columns: 30px 1fr 64px 40px; align-items: center; gap: 8px; border: 0; background: #f8fafc;
  border-radius: 10px; padding: 5px 8px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink); text-align: left; }
.daily-row .ic { width: 28px; height: 28px; }
.dr-bar { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.dr-bar i { display: block; height: 100%; background: var(--eagle-orange); border-radius: 999px; transition: width .6s; }
.daily-row.done .dr-bar i { background: var(--green); }
.daily-row.done .dr-text { color: #64748b; }
.dr-n { font-weight: 900; color: #64748b; font-size: .85rem; text-align: right; }
#stepBody .daily { width: 100%; margin-top: 4px; }

/* ---------- Reward steps ---------- */
#step { overflow-y: auto; justify-content: flex-start; padding-top: max(24px, env(safe-area-inset-top)); }
#stepBody { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 440px; }
.big-stars { display: flex; gap: 6px; align-items: flex-end; }
.big-star .ic { width: 78px; height: 78px; }
.big-star:nth-child(2) .ic { width: 96px; height: 96px; }
.big-star { animation: starIn .5s cubic-bezier(.2,1.6,.4,1) backwards; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.pill-acc { display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--green-d); background: #ecfccb; border-radius: 999px; padding: 6px 14px; }
.pill-acc .ic { width: 26px; height: 26px; }
.big-xp { display: flex; align-items: center; gap: 8px; font-size: 3.4rem; font-weight: 900; color: #e5a500; }
.big-xp .ic { width: 64px; height: 64px; }
.xp-parts { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.xp-parts div { display: flex; justify-content: space-between; align-items: center; background: #fffbeb; border-radius: 10px; padding: 6px 12px; font-weight: 800; color: #92400e; }
.xp-parts .ic { width: 22px; height: 22px; }
.streak-flame { position: relative; }
.streak-flame .ic { width: 120px; height: 120px; animation: flick 1.2s ease-in-out infinite; }
.streak-flame b { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 2rem; color: #fff; -webkit-text-stroke: 2px #9a3412; paint-order: stroke fill; }
@keyframes flick { 50% { transform: scale(1.06, .96); } }
.week { display: flex; gap: 6px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 900; color: #94a3b8; font-size: .85rem; }
.wk i { width: 38px; height: 38px; border-radius: 50%; background: #f1f5f9; border: 2px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; }
.wk.played i, .wk.rest i { border: 0; background: none; }
.wk i .ic { width: 38px; height: 38px; }
.wk.today span { color: var(--eagle-orange); }
.wk.today i { box-shadow: 0 0 0 3px #fed7aa; }
.passes { display: flex; align-items: center; gap: 4px; font-weight: 800; color: #0369a1; }
.passes .ic { width: 34px; height: 34px; }
.pass-note .ic { width: 28px; height: 28px; vertical-align: middle; }
.celebrate p.small { font-size: .95rem; color: #64748b; }
/* Coach Bounce on fire for a streak milestone */
#stepCoach { position: relative; }
#stepCoach .coach { position: relative; z-index: 1; }
.fire-behind { position: absolute; left: -22%; right: -22%; top: -38%; bottom: -4%; z-index: 0; animation: fire .3s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.fire-behind .ic { width: 100%; height: 100%; }
#stepCoach.on-fire .c-ball { fill: #ffb547; }
@keyframes fire { from { transform: scale(1, 1) rotate(-1.5deg); } to { transform: scale(1.06, 1.12) rotate(1.5deg); } }

/* gym bag pack */
.foil.bagpack { background: none; box-shadow: none; width: 200px; height: 170px; animation: packBob 1.4s ease-in-out infinite; }
.foil.bagpack .ic { width: 200px; height: 170px; }
.foil.unzip { animation: unzip .45s ease-in forwards; }
@keyframes unzip { 40% { transform: scale(1.12, .9); } to { transform: scale(.4) translateY(40px); opacity: 0; } }

/* ---------- Players ---------- */
#players, #maker { background: #f1f5f9; }
#players .lesson-top, #maker .lesson-top { background: var(--eagle-navy); }
.scrollbody { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 440px; }
.player-tile { border: 3px solid var(--gray); background: #fff; border-radius: 18px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center;
  font: inherit; font-weight: 900; color: var(--eagle-navy); font-size: 1.05rem; box-shadow: 0 4px 0 var(--gray); }
.player-tile.current { border-color: var(--eagle-orange); box-shadow: 0 4px 0 #fdba74; }
.pt-art { width: 84px; height: 92px; display: flex; align-items: center; justify-content: center; }
.pt-art svg { width: 100%; height: 100%; overflow: visible; }
.player-tile.add .ic { width: 60px; height: 60px; }
.privacy { color: #64748b; font-weight: 700; text-align: center; max-width: 380px; margin: 0; }
#players .actions, #maker .actions { margin-top: 0; }
.maker-preview { width: 150px; height: 165px; }
.maker-preview svg { width: 100%; height: 100%; overflow: visible; }
.maker-row { width: 100%; max-width: 440px; }
.maker-row h3 { margin: 0 0 6px; color: var(--eagle-navy); font-size: 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gray); padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--eagle-orange); }
.hairpick { width: 52px; height: 52px; border-radius: 14px; border: 3px solid var(--gray); background: #fff; padding: 2px; }
.hairpick svg { width: 100%; height: 100%; }
.hairpick.on, .jerseypick.on { border-color: var(--eagle-orange); }
.jerseypick { display: flex; align-items: center; gap: 6px; border: 3px solid var(--gray); background: #fff; border-radius: 14px; padding: 6px 10px; font: inherit; font-weight: 800; }
.jerseypick i { width: 22px; height: 26px; border-radius: 6px 6px 3px 3px; border: 3px solid; }
.numbtn { min-width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--eagle-navy); color: #fff; font: inherit; font-weight: 900; font-size: 1.1rem; box-shadow: 0 4px 0 #172554; }
.numshow { min-width: 64px; text-align: center; font-size: 2rem; font-weight: 900; color: var(--eagle-navy); }
/* A scrolling area inside a column layout must be allowed to shrink, or it grows
   past the screen instead of scrolling (found on iPhone: the player maker's Done
   button was out of reach). */
#pathScroll, #binderScroll, .scrollbody { min-height: 0; -webkit-overflow-scrolling: touch; }
.sheet h2 .glyph-badge .ic { width: 28px; height: 28px; margin: 0; }
/* Keep the lesson panel one steady height (room for 5 lines from Coach and one row
   of buttons), so the court never slides up and down between questions. On iPhone
   a sliding court could leave a ghost copy of its top behind for a moment. The
   court also gets its own drawing layer, so even a move repaints cleanly. */
.talkrow { min-height: calc(5 * 1.2rem * 1.32 + 38px); }
#buttons { min-height: 59px; }
#court { transform: translateZ(0); }
@media (orientation: landscape) and (max-height: 560px) {
  .talkrow { min-height: 0; }
  #buttons { min-height: 0; }
}
@media (max-width: 380px) and (orientation: portrait) {
  #panel .bubble { font-size: 1.08rem; }
  .talkrow { min-height: calc(5 * 1.08rem * 1.32 + 38px); }
}
