/* =========================================================
   Tennis Seed — Learn (interactive tutorials)
   Builds on ../../assets/css/main.css (tokens, nav, phone, app UI).
   ========================================================= */

/* ---------- Embed mode (in-app WebView: ?embed=1) ---------- */
html.embed .nav, html.embed .footer, html.embed .progress, html.embed .learn-cta, html.embed .crumbs, html.embed .skip-link { display: none !important; }
html.embed .l-hero { padding-top: 28px; }
html.embed body { background: var(--bg); }

/* ---------- Page hero ---------- */
.l-hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.l-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 45% at 50% 30%, var(--lime-a10), transparent 70%);
}
.l-hero h1 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  font-size: clamp(2.5rem, 7vw, 5.2rem); text-wrap: balance;
}
.l-hero h1 em { font-style: normal; color: var(--lime); }
.l-hero .lead { max-width: 640px; }
.l-hero.center .lead { margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.85rem; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--lime); }
.crumbs svg { width: 12px; height: 12px; transform: rotate(180deg); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.l-hero.center .meta-row { justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line-2);
}
.tag svg { width: 14px; height: 14px; }
.tag.lime { color: var(--lime); background: var(--lime-a10); box-shadow: inset 0 0 0 1px var(--lime-a35); }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-top: 14px; }
.l-sec { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.l-sec + .l-sec { padding-top: 0; }

/* ---------- Hub cards ---------- */
.tut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .tut-grid { grid-template-columns: 1fr; } }
.tut {
  --acc: var(--lime);
  position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.tut:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0,0,0,0.8); }
.tut::after { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 0%), color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%);
}
.tut:hover::after { opacity: 1; }
.tut .num { font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--acc); }
.tut h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.tut p { color: var(--muted); font-size: 0.97rem; }
.tut .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--acc); }
.tut .go svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.tut:hover .go svg { transform: translateX(5px); }
.tut .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tut .tags .tag { font-size: 0.72rem; padding: 4px 10px; }
.tut.soon { opacity: 0.55; pointer-events: none; }
.tut.soon .go { color: var(--dim); }

/* card previews */
.prev { position: relative; height: 150px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-bottom: 6px; }
.prev-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; height: 100%; }
.prev-track span { border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.05em; }
.prev-track span:nth-child(1) { background: #3a4220; color: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(200,238,68,0.45); }
.prev-track span:nth-child(2) { background: #283656; color: #79a2f7; box-shadow: inset 0 0 0 1.5px rgba(91,141,239,0.55); }
.prev-track span:nth-child(3) { grid-column: 1 / -1; background: #4a321a; color: var(--orange); box-shadow: inset 0 0 0 1.5px rgba(245,158,11,0.5); }
.prev-finger {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; left: 22%; top: 30%;
  background: rgba(255,255,255,0.85); box-shadow: 0 0 0 6px rgba(255,255,255,0.18);
  animation: finger 4.5s var(--ease-out) infinite;
}
@keyframes finger {
  0%, 8% { transform: translate(0, 0) scale(1); }
  14% { transform: translate(0, 0) scale(0.75); }
  20%, 40% { transform: translate(190%, 0) scale(1); }
  46% { transform: translate(190%, 0) scale(0.75); }
  52%, 72% { transform: translate(110%, 150%) scale(1); }
  78% { transform: translate(110%, 150%) scale(0.75); }
  100% { transform: translate(0, 0) scale(1); }
}
.prev-doubles { display: flex; align-items: center; justify-content: center; gap: 22px; height: 100%; }
.prev-doubles .team { display: grid; gap: 8px; }
.prev-doubles .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.prev-doubles .team.us .av { color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime-a35); }
.prev-doubles .team.us .av:nth-child(2) { animation: hitPulse 3s infinite 1.5s; }
.prev-doubles .team.us .av:nth-child(1) { animation: hitPulse 3s infinite; }
@keyframes hitPulse { 0%, 30%, 100% { background: var(--card-2); } 10% { background: var(--lime-a35); } }
.prev-doubles .vs { font-family: var(--f-display); color: var(--dim); font-weight: 700; }
.prev-ai { padding: 16px; display: grid; gap: 8px; align-content: center; height: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; color: var(--muted); }
.prev-ai .ln { white-space: nowrap; overflow: hidden; width: 0; animation: typeLn 6s steps(30) infinite; }
.prev-ai .ln:nth-child(2) { animation-delay: 0.6s; } .prev-ai .ln:nth-child(3) { animation-delay: 1.2s; } .prev-ai .ln:nth-child(4) { animation-delay: 1.8s; color: var(--lime); }
.prev-ai b { color: var(--blue); font-weight: 500; }
@keyframes typeLn { 0% { width: 0; } 25%, 85% { width: 100%; } 100% { width: 100%; opacity: 0; } }
.prev-age { display: flex; align-items: flex-end; gap: 10px; padding: 18px 22px; height: 100%; }
.prev-age i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--lime), var(--lime-2)); opacity: 0.85; animation: grow 4s var(--ease-out) infinite alternate; transform-origin: bottom; }
.prev-age i:nth-child(1) { height: 35%; } .prev-age i:nth-child(2) { height: 55%; animation-delay: 0.3s; } .prev-age i:nth-child(3) { height: 75%; animation-delay: 0.6s; background: linear-gradient(180deg, var(--blue), #4371d0); } .prev-age i:nth-child(4) { height: 95%; animation-delay: 0.9s; background: linear-gradient(180deg, var(--orange), #d48508); }
@keyframes grow { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* ---------- Guided tracker lesson ---------- */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: start; }
.lesson-rail { padding-top: 8px; }
.lesson-rail h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.lesson-rail > p { color: var(--muted); margin-top: 10px; }
.rail { margin-top: 26px; display: grid; gap: 4px; counter-reset: rail; }
.rail li {
  counter-increment: rail;
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
  padding: 6px 12px; border-radius: 14px; color: var(--dim); font-size: 0.92rem;
  transition: background 0.3s, color 0.3s;
}
.rail li::before {
  content: counter(rail); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 0.8rem;
  background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.rail li b { display: block; font-weight: 600; color: inherit; line-height: 1.35; padding-top: 4px; }
.rail li .why { display: none; color: var(--muted); font-size: 0.86rem; margin-top: 6px; line-height: 1.5; }
.rail li.on { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.rail li.on::before { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 4px var(--lime-a20); }
.rail li.on .why { display: block; animation: logIn 0.5s var(--ease-out); }
.rail li.done { color: var(--muted); }
.rail li.done::before { content: "✓"; background: var(--lime-a10); color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-a35); }

.stage { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; align-items: center; gap: 18px; --dw: max(220px, min(clamp(250px, 22vw, 300px), calc((100vh - var(--nav-h) - 190px) / 2.25))); }
html.embed .stage { top: 12px; }
.stage .phone { --w: var(--dw); }
.coach {
  position: relative; width: calc(var(--dw) + 70px); max-width: calc(100vw - 2 * var(--gutter));
  padding: 14px 16px 14px; border-radius: 18px;
  background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(0,0,0,0.8);
  min-height: 92px;
}
.coach::after { /* tail */
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--card-2); transform: rotate(45deg); box-shadow: 1px 1px 0 0 var(--line-2);
}
.coach-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.coach-step { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--lime); }
.coach-bar { flex: 1; max-width: 120px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.coach-bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 4px; transition: width 0.6s var(--ease-out); }
.coach-say { font-size: 0.95rem; line-height: 1.45; }
.coach-say b { color: var(--lime); font-weight: 700; }
.coach-say .k { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,0.08); font-weight: 700; font-size: 0.85em; letter-spacing: 0.03em; }
.coach-hint { color: var(--orange); font-size: 0.84rem; margin-top: 6px; display: none; }
.coach.wrong { animation: shake 0.45s; }
.coach.wrong .coach-hint { display: block; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.coach-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.coach-actions:empty { display: none; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
  background: var(--lime); color: var(--ink); transition: transform 0.2s var(--ease-spring), box-shadow 0.3s;
}
.btn-sm:hover { box-shadow: 0 8px 24px -8px var(--lime-a35); transform: translateY(-1px); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-sm.ghost { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.link-sm { font-size: 0.8rem; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.link-sm:hover { color: var(--text); }

/* coach-mark on the target control */
.cm { position: relative; z-index: 3; animation: cmPulse 1.6s ease-in-out infinite !important; }
@keyframes cmPulse { 0%, 100% { box-shadow: 0 0 0 2px var(--lime), 0 0 0 6px rgba(200,238,68,0.25); } 50% { box-shadow: 0 0 0 2px var(--lime), 0 0 0 12px rgba(200,238,68,0); } }
.cm::after {
  content: ""; position: absolute; right: 10%; bottom: 8%; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: rgba(255,255,255,0.9); box-shadow: 0 0 0 0.45em rgba(255,255,255,0.2);
  animation: tapDot 1.6s ease-in-out infinite; pointer-events: none;
}
@keyframes tapDot { 0%, 100% { transform: scale(1); opacity: 0.9; } 45% { transform: scale(0.7); opacity: 1; } }
.nope { animation: nope 0.4s; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* dim everything but the target while a step waits on a tap */
.app.guided .pad > *:not(.cm):not(.back):not(:has(.cm)), .app.guided .cnt-row > *:not(.cm), .app.guided .ovl-opts > button:not(.cm), .app.guided .dlg-opts > *:not(.cm) { opacity: 0.45; }
.app.guided .app-top .circ:not(.cm) { opacity: 0.4; }

/* --- Tracker additions on top of main.css .app --- */
.app .pad .tap.who { font-size: 0.78em; }
.app .ovl { /* bottom sheet, like the app's ContextOverlayWidget */
  --acc: #5b8def;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; cursor: pointer;
  padding: 1.1em 1.1em 1.3em; text-align: center;
  border-radius: 1.5em 1.5em 0 0; background: #252528;
  border-top: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  animation: sheetUp 0.4s var(--ease-out);
}
.app .ovl::before { /* gradient scrim */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2em; pointer-events: none;
  background: linear-gradient(180deg, rgba(28,28,31,0), rgba(28,28,31,0.96));
}
.app .ovl h5 { font-size: 0.95em; font-weight: 800; letter-spacing: 0.06em; color: var(--acc); }
.app .ovl p { font-size: 0.68em; color: #9a9aa3; margin-top: 0.25em; }
.app .ovl-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45em 0.55em; margin-top: 0.9em; }
.app .ovl-opts button {
  padding: 0.6em 1.15em; border-radius: 2em; font-size: 0.74em; font-weight: 600; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent);
  transition: transform 0.15s, background 0.2s;
}
.app .ovl-opts button:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); }
.app .ovl-opts button:active { transform: scale(0.95); }
.app .ovl-time { height: 3px; border-radius: 3px; background: #1f1f22; margin-top: 1em; overflow: hidden; }
.app .ovl-time i { display: block; height: 100%; background: color-mix(in srgb, var(--acc) 50%, transparent); transform-origin: left; animation: ovlTime var(--t, 3.5s) linear forwards; }
.app .ovl.hold .ovl-time i { animation-play-state: paused; }
.app .ovl small { display: block; font-size: 0.55em; color: #6b6b72; margin-top: 0.5em; }
@keyframes ovlIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes ovlTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.app .dlg { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); animation: fadeIn 0.3s; padding: 8%; }
@keyframes fadeIn { from { opacity: 0; } }
.app .dlg-card { width: 100%; padding: 1.2em; border-radius: 1.1em; background: #252528; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); text-align: center; animation: ovlIn 0.4s var(--ease-spring); }
.app .dlg-card h5 { font-size: 0.95em; font-weight: 700; }
.app .dlg-card p { font-size: 0.65em; color: #9a9aa3; margin-top: 0.3em; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.app .dlg-opts { display: grid; gap: 0.5em; margin-top: 1em; }
.app .dlg-opts button { padding: 0.85em; border-radius: 0.8em; font-weight: 700; font-size: 0.8em; background: #3a4220; color: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(200,238,68,0.45); }
.app .dlg-opts button.blue { background: #283656; color: #79a2f7; box-shadow: inset 0 0 0 1.5px rgba(91,141,239,0.55); }

.app .score .row .mem { font-size: 0.6em; color: #8fb0f5; font-weight: 600; margin-left: 0.4em; }
.app .score .nm b.dbl { font-size: 0.85em; }

/* rally shot counter (optional, feeds rally-length stats) */
.app .cnt-row { grid-column: 1 / -1; display: grid; grid-template-columns: 0.3fr 1fr; gap: 0.6em; }
.app .cnt-minus { border-radius: 0.9em; background: #252528; color: #9a9aa3; font-size: 1.6em; font-weight: 300; }
.app .cnt-minus:disabled { opacity: 0.35; }
.app .cnt { border-radius: 0.9em; background: #252528; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em; transition: transform 0.12s; }
.app .cnt:active { transform: scale(0.97); }
.app .cnt b { font-size: 2.3em; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.app .cnt small { font-size: 0.55em; letter-spacing: 0.12em; color: #8b8b92; font-weight: 700; }

/* completion */
.done-card {
  position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; text-align: center;
  padding: 10%; background: rgba(15,15,17,0.94); backdrop-filter: blur(4px); border-radius: inherit;
  animation: fadeIn 0.5s;
}
.done-card .tro { width: 3.4em; height: 3.4em; margin: 0 auto 0.8em; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); animation: pop 0.7s var(--ease-spring); }
.done-card .tro svg { width: 1.7em; height: 1.7em; }
.done-card h4 { font-family: var(--f-display); font-size: 1.4em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.done-card p { color: #9a9aa3; font-size: 0.78em; margin-top: 0.5em; line-height: 1.45; }
.done-card .row { display: grid; gap: 0.5em; margin-top: 1.2em; }
.done-card button, .done-card a { padding: 0.8em 1em; border-radius: 0.8em; font-weight: 700; font-size: 0.8em; }
.done-card .pri { background: var(--lime); color: var(--ink); }
.done-card .sec { background: #2c2c31; color: #eee; }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 9; }
.confetti i { position: absolute; top: -10px; width: 7px; height: 11px; border-radius: 2px; animation: fall var(--dur, 1.8s) var(--ease-out) forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 120vh) rotate(var(--rot, 540deg)); opacity: 0.2; } }

@media (max-width: 960px) {
  .lesson { grid-template-columns: 1fr; }
  .lesson-rail { order: 2; }
  .stage { position: relative; top: 0; order: 1; --dw: min(74vw, 300px); }
}

/* ---------- Setup screen (doubles) ---------- */
.setup { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; padding: 13% 6% 5%; background: #1c1c1f; font-size: calc(var(--w) * 0.04); color: #fff; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.setup.gone { transform: translateX(-30%); opacity: 0; pointer-events: none; }
.setup h4 { font-size: 1.15em; font-weight: 700; margin: 0.4em 0 1em; }
.setup label { display: block; font-size: 0.62em; letter-spacing: 0.12em; text-transform: uppercase; color: #8b8b92; font-weight: 700; margin: 0.9em 0 0.45em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 0.25em; border-radius: 0.8em; background: #252528; position: relative; }
.seg::before { content: ""; position: absolute; top: 0.25em; bottom: 0.25em; left: 0.25em; width: calc(50% - 0.25em); border-radius: 0.6em; background: #3a4220; box-shadow: inset 0 0 0 1.5px rgba(200,238,68,0.45); transition: transform 0.4s var(--ease-spring); }
.seg.r::before { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; padding: 0.65em; font-size: 0.8em; font-weight: 700; color: #9a9aa3; transition: color 0.3s; border-radius: 0.6em; }
.seg button.on { color: var(--lime); }
.fld { position: relative; padding: 0.75em 0.9em; border-radius: 0.7em; background: #252528; font-size: 0.85em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); min-height: 2.6em; }
.fld .ph { color: #6b6b72; }
.fld .caret { display: inline-block; width: 1.5px; height: 1em; background: var(--lime); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sugg { margin-top: 0.4em; border-radius: 0.7em; background: #2a2a2e; overflow: hidden; animation: ovlIn 0.3s var(--ease-out); }
.sugg button { display: flex; align-items: center; gap: 0.6em; width: 100%; padding: 0.7em 0.9em; font-size: 0.8em; text-align: left; }
.sugg button + button { border-top: 1px solid rgba(255,255,255,0.05); }
.sugg .av { width: 1.7em; height: 1.7em; border-radius: 50%; background: #3a4220; color: var(--lime); display: grid; place-items: center; font-size: 0.75em; font-weight: 700; }
.reveal-h { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.reveal-h > div { overflow: hidden; }
.reveal-h.open { grid-template-rows: 1fr; }
.setup .start { margin-top: auto; padding: 0.95em; border-radius: 0.9em; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 0.85em; letter-spacing: 0.04em; }
.setup .start:disabled { opacity: 0.35; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }

/* ---------- Concept cards / callouts ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; } }
.card { padding: clamp(20px, 2.6vw, 28px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-a10); color: var(--lime); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card .ic.blue { background: rgba(91,141,239,0.12); color: var(--blue); }
.card .ic.orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.card .ic.red { background: rgba(248,113,113,0.12); color: var(--red); }
.card h3 { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.card ul { display: grid; gap: 8px; margin-top: 12px; }
.card li { display: flex; gap: 10px; color: var(--muted); font-size: 0.93rem; }
.card li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--lime); margin-top: 2px; }
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--lime-a10); box-shadow: inset 0 0 0 1px var(--lime-a20); color: var(--text); font-size: 0.95rem;
}
.callout svg { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; margin-top: 1px; }
.callout.blue { background: rgba(91,141,239,0.08); box-shadow: inset 0 0 0 1px rgba(91,141,239,0.25); }
.callout.blue svg { color: var(--blue); }
.callout p + p { margin-top: 6px; }
.callout b { color: var(--lime); }
.callout.blue b { color: #8fb0f5; }

/* outcome legend */
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .legend { grid-template-columns: 1fr; } }
.lg { padding: 18px; border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lg .chip-o { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 8px; margin-bottom: 10px; }
.lg .chip-o.l { background: #3a4220; color: var(--lime); }
.lg .chip-o.o { background: #4a321a; color: var(--orange); }
.lg .chip-o.r { background: #4a2326; color: #f37a7a; }
.lg h4 { font-weight: 700; font-size: 1rem; }
.lg p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.lg .eg { color: var(--dim); font-size: 0.84rem; margin-top: 8px; font-style: italic; }

/* ---------- Next / CTA ---------- */
.next-tut { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--card) 0%, #1b2010 100%); box-shadow: inset 0 0 0 1px var(--lime-a20); }
.next-tut small { color: var(--lime); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.next-tut h3 { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.025em; margin-top: 4px; }
.next-tut .pill-btn svg { width: 16px; height: 16px; }
.learn-cta { text-align: center; padding: clamp(60px, 9vw, 110px) 0; }
.learn-cta .store-row { justify-content: center; margin-top: 28px; }

/* ---------- AI tutorial ---------- */
.flow3 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .flow3 { grid-template-columns: 1fr; } .flow3 .stage { order: -1; } }

.ms { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 13% 5% 4%; background: #1c1c1f; color: #fff; font-size: calc(var(--w) * 0.04); font-family: -apple-system, "SF Pro Text", var(--f-body); }
.ms-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8em; }
.ms-top b { font-size: 0.95em; }
.ms-top .circ { width: 2.2em; height: 2.2em; border-radius: 50%; background: #2a2a2e; display: grid; place-items: center; color: #ddd; font-weight: 800; letter-spacing: 0.05em; }
.ms-top .circ svg { width: 1.1em; height: 1.1em; }
.ms-res { background: #252528; border-radius: 0.9em; padding: 0.9em; text-align: center; }
.ms-res .w { color: var(--lime); font-weight: 800; font-size: 0.65em; letter-spacing: 0.16em; }
.ms-res .s { font-family: var(--f-display); font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.1em; }
.ms-res small { color: #8b8b92; font-size: 0.65em; }
.ms-rows { display: grid; gap: 0.7em; margin-top: 1em; }
.ms-row { font-size: 0.7em; color: #aaa; }
.ms-row .bars { display: flex; gap: 3px; margin-top: 0.4em; height: 0.55em; }
.ms-row .bars i { border-radius: 3px; background: var(--lime); }
.ms-row .bars i + i { background: #3a3a40; }
.ms-menu { position: absolute; right: 5%; top: 21%; z-index: 4; width: 62%; border-radius: 0.9em; background: #2a2a2e; box-shadow: 0 20px 40px rgba(0,0,0,0.6); overflow: hidden; transform-origin: top right; animation: menuIn 0.3s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: scale(0.85); } }
.ms-menu button { display: flex; align-items: center; gap: 0.6em; width: 100%; padding: 0.85em 1em; font-size: 0.78em; text-align: left; }
.ms-menu button + button { border-top: 1px solid rgba(255,255,255,0.06); }
.ms-menu svg { width: 1.2em; height: 1.2em; color: #aaa; }
.ms-menu .pro { margin-left: auto; font-size: 0.7em; font-weight: 800; padding: 0.15em 0.5em; border-radius: 0.4em; background: var(--lime); color: var(--ink); }
.share-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 1.1em 1em 1.6em; border-radius: 1.2em 1.2em 0 0; background: #2a2a2e; box-shadow: 0 -20px 50px rgba(0,0,0,0.6); animation: sheetUp 0.45s var(--ease-out); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.share-sheet .file { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.9em; border-bottom: 1px solid rgba(255,255,255,0.07); }
.share-sheet .file .fi { width: 2.4em; height: 2.8em; border-radius: 0.4em; background: #3a3a40; display: grid; place-items: center; font-size: 0.55em; font-weight: 800; color: var(--lime); }
.share-sheet .file b { font-size: 0.72em; display: block; word-break: break-all; }
.share-sheet .file small { font-size: 0.62em; color: #8b8b92; }
.share-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5em; margin-top: 0.9em; }
.share-apps button { display: grid; justify-items: center; gap: 0.35em; font-size: 0.58em; color: #ccc; border-radius: 0.8em; padding: 0.3em 0; }
.share-apps .ai { width: 3.2em; height: 3.2em; border-radius: 0.9em; display: grid; place-items: center; background: #3a3a40; }
.share-apps .ai svg { width: 1.6em; height: 1.6em; }
.share-apps button:nth-child(1) .ai { background: #283656; color: #8fb0f5; }
.share-apps button:nth-child(2) .ai { background: #3a4220; color: var(--lime); }
.share-apps button:nth-child(3) .ai { background: #4a321a; color: var(--orange); }
.saved-toast { position: absolute; left: 8%; right: 8%; top: 40%; z-index: 7; padding: 1em; border-radius: 1em; text-align: center; background: #2c3a14; color: var(--lime); font-weight: 700; font-size: 0.8em; box-shadow: inset 0 0 0 1px var(--lime-a35), 0 20px 40px rgba(0,0,0,0.5); animation: ovlIn 0.4s var(--ease-spring); }
.saved-toast svg { width: 1.8em; height: 1.8em; margin: 0 auto 0.4em; }

/* chat mock */
.chat { border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.chat-head .dots { display: flex; gap: 6px; }
.chat-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.chat-body { padding: 20px; display: grid; gap: 14px; min-height: 360px; align-content: start; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.msg.in { opacity: 1; transform: none; }
.msg.me { justify-self: end; background: #283656; border-bottom-right-radius: 5px; }
.msg.ai { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.msg .att { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,0.25); margin-bottom: 8px; font-size: 0.82rem; }
.msg .att .fi { width: 28px; height: 34px; border-radius: 5px; background: #3a3a40; display: grid; place-items: center; font-size: 0.55rem; font-weight: 800; color: var(--lime); }
.msg.ai b { color: var(--lime); }
.msg.ai ul { margin-top: 8px; display: grid; gap: 6px; }
.msg.ai li { padding-left: 16px; position: relative; color: var(--muted); }
.msg.ai li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-replay { display: flex; justify-content: flex-end; padding: 0 20px 18px; }

/* JSON explorer */
.jx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .jx { grid-template-columns: 1fr; } }
.code {
  border-radius: var(--r-lg); background: #0c0c0e; box-shadow: inset 0 0 0 1px var(--line);
  padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.75;
  overflow-x: auto; white-space: pre; color: #8b8b95; max-height: 560px; overflow-y: auto;
}
.code .key { color: #8fb0f5; cursor: pointer; border-radius: 4px; padding: 1px 2px; margin: -1px -2px; transition: background 0.2s, color 0.2s; }
.code .key:hover, .code .key.on { background: var(--lime-a20); color: var(--lime); }
.code .str { color: #d6e9a0; }
.code .num { color: var(--orange); }
.code .com { color: #555560; font-style: italic; }
.jx-panel { position: sticky; top: calc(var(--nav-h) + 20px); }
.jx-card { padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: 220px; }
.jx-card .k { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; color: var(--lime); background: var(--lime-a10); padding: 3px 9px; border-radius: 7px; }
.jx-card h4 { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 14px; }
.jx-card p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.jx-card .vals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.jx-card .vals span { font-family: ui-monospace, Menlo, monospace; font-size: 0.76rem; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); color: var(--text); }
.jx-card.swap { animation: logIn 0.4s var(--ease-out); }
.jx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jx-chips button { font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); transition: all 0.2s; }
.jx-chips button:hover, .jx-chips button.on { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-a35); background: var(--lime-a10); }

/* prompt builder */
.pb { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .pb { grid-template-columns: 1fr; } }
.pb-ctrl { padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 22px; }
.pb-ctrl h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-spring);
}
.chips button:hover { color: var(--text); }
.chips button[aria-pressed="true"] { color: var(--ink); background: var(--lime); box-shadow: none; }
.chips button:active { transform: scale(0.95); }
.pb-out { border-radius: var(--r-lg); background: #0c0c0e; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pb-out-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--dim); }
.pb-text { padding: 18px 20px; font-size: 0.92rem; line-height: 1.65; white-space: pre-wrap; color: var(--text); min-height: 320px; }
.pb-text .hl { color: var(--lime); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--lime); color: var(--ink); transition: transform 0.2s var(--ease-spring); }
.copy-btn:active { transform: scale(0.94); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.ok { background: var(--text); }

/* question library */
.qlib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .qlib { grid-template-columns: 1fr; } }
.qcat { padding: 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.qcat h3 { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.qcat h3 svg { width: 20px; height: 20px; color: var(--lime); }
.qcat ul { display: grid; gap: 8px; margin-top: 14px; }
.q { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); font-size: 0.9rem; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; text-align: left; width: 100%; }
.q:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.q svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; opacity: 0.5; }
.q.ok { color: var(--lime); }
.q.ok svg { opacity: 1; }

/* steps strip */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: st; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-row { grid-template-columns: 1fr; } }
.steps-row a, .steps-row div { counter-increment: st; display: block; padding: 18px; border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, transform 0.3s var(--ease-out); }
.steps-row a:hover { box-shadow: inset 0 0 0 1px var(--lime-a35); transform: translateY(-2px); }
.steps-row a::before, .steps-row div::before { content: "0" counter(st); display: block; font-family: var(--f-display); font-weight: 700; color: var(--lime); font-size: 0.8rem; letter-spacing: 0.14em; margin-bottom: 8px; }
.steps-row b { display: block; font-size: 1rem; }
.steps-row span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Age guide ---------- */
.age-pick { position: relative; display: inline-grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); margin-top: 30px; }
.age-pick .ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 16px; background: var(--lime); transition: transform 0.55s var(--ease-spring), background 0.4s; box-shadow: 0 10px 30px -10px var(--lime-a35); }
.age-pick button { position: relative; z-index: 1; padding: 12px clamp(14px, 3vw, 30px); font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.35rem); letter-spacing: -0.02em; color: var(--muted); transition: color 0.3s; }
.age-pick button small { display: block; font-family: var(--f-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.75; }
.age-pick button[aria-selected="true"] { color: var(--ink); }
.sticky-pick { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.sticky-pick .age-pick { pointer-events: auto; margin-top: 0; backdrop-filter: blur(14px); background: rgba(20,20,22,0.85); }
html.embed .sticky-pick { top: 10px; }

.age-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 900px) { .age-hero { grid-template-columns: 1fr; } }
.age-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.age-card .big { font-family: var(--f-display); font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--acc, var(--lime)); transition: color 0.4s; }
.age-card .theme { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 12px; }
.age-card p { color: var(--muted); margin-top: 12px; }
.age-card .quote { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; color: var(--muted); }
.age-card .quote b { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.fade-swap-in { animation: logIn 0.5s var(--ease-out); }

.lists3 { display: grid; gap: 12px; }
.li-box { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,0.025); box-shadow: inset 0 0 0 1px var(--line); }
.li-box h4 { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.li-box h4 svg { width: 16px; height: 16px; }
.li-box.cel h4 { color: var(--lime); } .li-box.wat h4 { color: var(--blue); } .li-box.ign h4 { color: var(--dim); }
.li-box ul { display: grid; gap: 6px; margin-top: 10px; }
.li-box li { color: var(--muted); font-size: 0.93rem; padding-left: 16px; position: relative; }
.li-box li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.li-box.ign li { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.15); }

.meter { display: grid; gap: 10px; }
.mrow { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 74px; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow 0.3s; }
.mrow:hover, .mrow.open { box-shadow: inset 0 0 0 1px var(--line-2); }
.mrow .nm { font-weight: 600; font-size: 0.95rem; }
.mrow .nm small { display: block; color: var(--dim); font-weight: 500; font-size: 0.78rem; }
.mrow .track { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.05); overflow: hidden; }
.mrow .track i { display: block; height: 100%; border-radius: 10px; width: 0; background: var(--c, var(--lime)); transition: width 0.9s var(--ease-out), background 0.4s; }
.mrow .lvl { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; color: var(--c, var(--lime)); transition: color 0.4s; }
.mrow .more { grid-column: 1 / -1; display: none; color: var(--muted); font-size: 0.9rem; padding-top: 4px; }
.mrow.open .more { display: block; animation: logIn 0.4s var(--ease-out); }
@media (max-width: 620px) { .mrow { grid-template-columns: minmax(0, 1fr) auto; } .mrow .track { grid-column: 1 / -1; grid-row: 2; } }
.mrow .nm { min-width: 0; overflow-wrap: anywhere; }
.mrow .lvl { white-space: nowrap; }

.heat { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 0.88rem; }
.heat-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.heat th { font-family: var(--f-display); font-weight: 700; color: var(--muted); padding: 8px; text-align: center; cursor: pointer; border-radius: 10px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.heat th.on { color: var(--ink); background: var(--lime); }
.heat th:first-child { text-align: left; cursor: default; }
.heat td { padding: 10px 8px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; transition: outline-color 0.3s; outline: 2px solid transparent; outline-offset: -2px; }
.heat td:first-child { text-align: left; font-weight: 600; font-size: 0.88rem; letter-spacing: 0; color: var(--text); white-space: nowrap; }
.heat td.l0 { background: rgba(255,255,255,0.03); color: var(--dim); }
.heat td.l1 { background: rgba(91,141,239,0.14); color: #8fb0f5; }
.heat td.l2 { background: rgba(200,238,68,0.16); color: var(--lime); }
.heat td.l3 { background: var(--lime); color: var(--ink); }
.heat td.col-on { outline-color: rgba(255,255,255,0.35); }

.zone { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.zone-bar { position: relative; height: 54px; border-radius: 14px; overflow: hidden; display: flex; margin-top: 26px; }
.zone-bar > span { height: 100%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transition: flex 0.6s var(--ease-out); }
.zone-bar .a { background: linear-gradient(90deg, rgba(248,113,113,0.85), rgba(248,113,113,0.6)); color: #2b0f10; }
.zone-bar .n { background: linear-gradient(90deg, rgba(91,141,239,0.75), rgba(91,141,239,0.55)); color: #0d1730; }
.zone-bar .d { background: linear-gradient(90deg, rgba(245,158,11,0.75), rgba(245,158,11,0.6)); color: #2a1a02; }
.zone-scale { position: relative; height: 34px; margin-top: 18px; }
.zone-scale .band { position: absolute; top: 12px; height: 10px; left: 30%; width: 25%; border-radius: 10px; background: var(--lime-a35); box-shadow: inset 0 0 0 1px var(--lime); }
.zone-scale .base { position: absolute; top: 15px; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.zone-scale .pin { position: absolute; top: 2px; width: 4px; height: 30px; margin-left: -2px; border-radius: 4px; background: var(--text); transition: left 0.5s var(--ease-out); box-shadow: 0 0 12px rgba(255,255,255,0.5); }
.zone-scale small { position: absolute; top: 34px; font-size: 0.72rem; color: var(--dim); transform: translateX(-50%); }
.zone input[type=range] { width: 100%; margin-top: 30px; accent-color: var(--lime); }
.zone-msg { margin-top: 18px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.zone-msg i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--lime)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--lime)) 25%, transparent); flex-shrink: 0; }
.zone-msg span { color: var(--muted); font-weight: 400; }

.talk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .talk { grid-template-columns: 1fr; } }
.talk .card { position: relative; }
.talk .card h3 { display: flex; align-items: center; gap: 10px; }
.talk .say { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--text); margin-top: 12px; line-height: 1.35; letter-spacing: -0.01em; }
.talk .say::before { content: "“"; color: var(--lime); }
.talk .say::after { content: "”"; color: var(--lime); }
.talk .card.no .say { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(248,113,113,0.6); }
.talk .card.no .say::before, .talk .card.no .say::after { color: var(--red); }

.disclaimer { color: var(--dim); font-size: 0.86rem; max-width: 760px; margin: 28px auto 0; text-align: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cm, .cm::after, .prev-finger, .prev-ai .ln, .prev-age i, .prev-doubles .av, .confetti i { animation: none !important; }
  .prev-ai .ln { width: 100%; }
  .cm { box-shadow: 0 0 0 2px var(--lime) !important; }
}

/* tap-hint dot sits on the corner of small overlay chips so the label stays readable */
.app .ovl-opts .cm::after { right: -0.45em; bottom: -0.45em; width: 1.15em; height: 1.15em; }

/* ---------- Live sharing (tutorial 05) ---------- */
.app-top .rt { display: flex; align-items: center; gap: 0.45em; }
.app .live-pill { display: inline-flex; align-items: center; gap: 0.45em; height: 2.2em; padding: 0 0.85em; border-radius: 99px; background: rgba(226,101,93,0.12); box-shadow: inset 0 0 0 1px rgba(226,101,93,0.28); color: #ef6b62; font-weight: 700; font-size: 0.78em; letter-spacing: 0.08em; }
.app .live-pill i { width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; animation: recBlink 1s ease-in-out infinite alternate; }
.app.guided .app-top .live-pill:not(.cm) { opacity: 0.4; }
.app .shs { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; background: rgba(0,0,0,0.5); animation: fadeIn 0.25s; }
.app .shs.out { animation: fadeOut 0.26s forwards; pointer-events: none; }
.app .shs-card { width: 100%; padding: 0.6em 1.3em 0.4em; border-radius: 1.5em 1.5em 0 0; background: #2a2a2c; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); animation: sheetUp 0.42s var(--ease-out); cursor: default; }
.app .shs.out .shs-card { animation: sheetDown 0.26s forwards; }
.app .shs-handle { display: block; width: 2.6em; height: 0.28em; border-radius: 9px; background: #5a5a5f; margin: 0 auto 0.9em; }
.app .shs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9em; }
.app .shs-top b { font-family: var(--f-display); font-size: 1.15em; letter-spacing: -0.01em; }
.app .shs-x { width: 2em; height: 2em; display: grid; place-items: center; border-radius: 50%; color: #aaa; }
.app .shs-x svg { width: 1.05em; height: 1.05em; }
.app .shs-qr { position: relative; width: 58%; margin: 0 auto; aspect-ratio: 1; padding: 7%; border-radius: 0.9em; background: #1e1e20; color: #f2f2f2; overflow: hidden; }
.app .shs-qr svg { width: 100%; height: 100%; display: block; }
.app .shs-qr .scan-line { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(180deg, transparent, rgba(200,238,68,0.22), transparent); animation: scanY 2.6s ease-in-out infinite; }
@keyframes scanY { 0%, 100% { transform: translateY(-20%); } 50% { transform: translateY(470%); } }
.app .shs-url { text-align: center; font-size: 0.72em; color: #8b8b92; margin: 0.9em 0 1em; word-break: break-all; }
.app .shs-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.app .sb { display: flex; align-items: center; justify-content: center; gap: 0.45em; padding: 0.8em 0.4em; border-radius: 0.8em; font-weight: 700; font-size: 0.82em; }
.app .sb svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.app .sb.ghost { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); color: #fff; }
.app .sb.lime { background: var(--lime); color: #0a0a0b; }
.app .shs-stop { display: block; width: calc(100% + 2.6em); margin: 1em -1.3em 0; padding: 0.95em; border-top: 1px solid rgba(255,255,255,0.08); color: #ef6b62; font-weight: 700; font-size: 0.86em; }
.app.guided .shs-card button:not(.cm) { opacity: 0.5; }
.app .dlg.shc { z-index: 8; }
.app .dlg.shc h5 { font-weight: 600; font-size: 0.9em; line-height: 1.35; }
.app .dlg-opts.row { grid-template-columns: 1fr 1fr; }
.app .dlg-opts button.ghost { background: rgba(255,255,255,0.06); color: #ccc; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.app .dlg-opts button.red { background: rgba(226,101,93,0.14); color: #ef6b62; box-shadow: inset 0 0 0 1.5px rgba(226,101,93,0.5); }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }

/* two phones: yours + the spectator's */
.stage.duo { --dw: max(210px, min(clamp(230px, 19vw, 280px), calc((100vh - var(--nav-h) - 190px) / 2.25))); }
.duo-row { display: flex; align-items: flex-end; gap: clamp(14px, 2.4vw, 34px); position: relative; }
.duo-row figure { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.duo-row figcaption { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.duo-row figcaption svg { width: 14px; height: 14px; }
.duo-row .phone.sp-phone { --w: calc(var(--dw) * 0.86); }
.stage.duo .coach { width: calc(var(--dw) * 1.86 + 60px); max-width: 100%; }
.duo-beam { position: absolute; left: calc(var(--dw) - 6px); width: calc(clamp(14px, 2.4vw, 34px) + 12px); top: 46%; height: 10px; pointer-events: none; }
.duo-beam i { position: absolute; top: 2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); opacity: 0; }
.duo-beam.go i { animation: beamGo 0.7s var(--ease-out) forwards; }
.duo-beam.go i:nth-child(2) { animation-delay: 0.1s; }
.duo-beam.go i:nth-child(3) { animation-delay: 0.2s; }
@keyframes beamGo { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(clamp(14px, 2.4vw, 34px) + 6px)); } }

/* spectator screen */
.sp { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 13% 5% 4%; background: #0a0a0b; color: #fff; font-family: -apple-system, "SF Pro Text", var(--f-body); font-size: calc(var(--w) * 0.046); user-select: none; -webkit-user-select: none; }
.sp .app-notch { position: absolute; top: 2.2%; left: 50%; width: 32%; height: 3.6%; margin-left: -16%; background: #000; border-radius: 99px; z-index: 2; }
.sp-status { position: absolute; top: 2.6%; left: 9%; right: 9%; display: flex; justify-content: space-between; font-size: 0.8em; font-weight: 600; }
.sp .app-home { margin-top: auto; }
.sp-view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sp[data-state="idle"], .sp[data-state="msg"] { background: radial-gradient(120% 70% at 30% 0%, #2a3a52, #12141a 60%, #0a0a0b); }
.sp-lock { display: flex; flex-direction: column; align-items: center; padding-top: 10%; flex: 1; }
.sp-clock { font-family: var(--f-display); font-weight: 700; font-size: 3.2em; letter-spacing: -0.03em; line-height: 1; }
.sp-who { margin-top: 0.4em; font-size: 0.8em; color: rgba(255,255,255,0.7); }
.sp-wait { margin-top: auto; margin-bottom: 18%; font-size: 0.72em; color: rgba(255,255,255,0.45); text-align: center; }
.sp-note { margin-top: 20%; width: 100%; display: grid; grid-template-columns: 2em 1fr; gap: 0.6em; align-items: start; padding: 0.7em; border-radius: 1em; background: rgba(40,40,46,0.82); backdrop-filter: blur(10px); text-align: left; color: #fff; animation: noteIn 0.55s var(--ease-spring); }
@keyframes noteIn { from { transform: translateY(-40%) scale(0.92); opacity: 0; } }
.sp-app { width: 2em; height: 2em; border-radius: 0.55em; background: #34c759; display: grid; place-items: center; }
.sp-app svg { width: 1.15em; height: 1.15em; color: #fff; }
.sp-nb { display: flex; flex-direction: column; gap: 0.2em; min-width: 0; }
.sp-nh { display: flex; justify-content: space-between; font-size: 0.78em; }
.sp-nh em { font-style: normal; color: rgba(255,255,255,0.5); }
.sp-nt { font-size: 0.76em; color: rgba(255,255,255,0.85); line-height: 1.3; }
.sp-link { display: flex; align-items: center; gap: 0.5em; margin-top: 0.3em; padding: 0.45em 0.55em; border-radius: 0.6em; background: rgba(0,0,0,0.35); min-width: 0; }
.sp-link .lv-ball { width: 1.3em; height: 1.3em; }
.sp-link > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 0.72em; }
.sp-link small { color: #7fb0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-bar { display: flex; align-items: center; justify-content: center; gap: 0.35em; margin: 0 -1% 0.6em; padding: 0.45em; border-radius: 0.6em; background: #1a1a1d; color: #9a9aa3; font-size: 0.66em; }
.sp-bar svg { width: 0.95em; height: 0.95em; }
.sp-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.6em; padding: 0 6%; }
.sp-center p { font-size: 0.72em; color: #9a9aa3; line-height: 1.4; }
.sp-center h5 { font-size: 0.95em; font-weight: 700; line-height: 1.25; }
.sp-spin { width: 1.8em; height: 1.8em; border-radius: 50%; border: 0.18em solid #2a2a2e; border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sp-ball-lg { width: 2.4em; height: 2.4em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #eaff8a, #b9df2c 60%, #8fb01a); opacity: 0.8; }
.sp-cta { display: inline-block; margin-top: 0.4em; padding: 0.6em 1em; border-radius: 99px; background: var(--lime); color: #0a0a0b; font-weight: 700; font-size: 0.68em; }
.sp-body { display: flex; flex-direction: column; gap: 0.55em; flex: 1; min-height: 0; animation: fadeIn 0.4s; }
.sp-brand { display: flex; align-items: center; gap: 0.45em; font-size: 0.7em; color: #9a9aa3; }
.sp-brand b { color: #fff; }
.sp-brand .lv-ball { width: 1.2em; height: 1.2em; }
.sp-title { font-family: var(--f-display); font-size: 1.12em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 0.15em; }
.sp-title span { color: var(--dim); font-weight: 600; font-size: 0.8em; }
.sp-meta { font-size: 0.66em; color: #8b8b92; margin-top: -0.35em; }
.sp-board { display: grid; grid-template-columns: minmax(0, 1fr) 2em 2.6em; align-items: center; row-gap: 0.25em; padding: 0.5em 0.7em; border-radius: 0.8em; background: #141416; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sp-board > span:nth-child(-n+3) { font-size: 0.56em; letter-spacing: 0.1em; color: var(--dim); text-align: center; text-transform: uppercase; }
.sp-nm { display: flex; align-items: center; gap: 0.45em; font-weight: 600; font-size: 0.86em; min-width: 0; padding: 0.35em 0; }
.sp-nm > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-srv { width: 0.5em; height: 0.5em; border-radius: 50%; flex-shrink: 0; transition: background 0.3s; }
.sp-srv.on { background: var(--lime); box-shadow: 0 0 6px var(--lime-a35); }
.sp-g, .sp-p { text-align: center; font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 0.4em; }
.sp-g { color: var(--dim); font-size: 1em; }
.sp-p { font-size: 1.15em; }
.sp-p.ahead { color: var(--lime); }
.sp-g.flash, .sp-p.flash { animation: lvFlash 1.2s var(--ease-out); }
.sp-last { padding: 0.55em 0.7em; border-radius: 0.8em; background: #141416; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); display: none; }
.sp-last.show { display: block; animation: fadeIn 0.35s; }
.sp-last small { display: block; font-size: 0.54em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 0.35em; }
.sp-lw { font-weight: 700; font-size: 0.76em; display: flex; gap: 0.4em; align-items: center; }
.sp-lw .ck { color: var(--lime); }
.sp-ld { font-size: 0.66em; color: #b5b5bc; margin-top: 0.2em; }
.sp-lt { font-size: 0.58em; color: var(--dim); margin-top: 0.2em; }
.sp-live { display: flex; align-items: center; gap: 0.45em; font-size: 0.64em; color: #9a9aa3; }
.sp-live i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--red); animation: recBlink 1.4s infinite; }
.sp-foot { margin-top: auto; text-align: center; padding-top: 0.5em; border-top: 1px solid rgba(255,255,255,0.06); }
.sp-foot p { font-size: 0.58em; color: var(--dim); }
.sp-foot .sp-cta { margin-top: 0.5em; }
.sp.ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--lime); opacity: 0; animation: spPing 0.9s var(--ease-out); pointer-events: none; }
@keyframes spPing { 20% { opacity: 0.7; } 100% { opacity: 0; } }
.sp .cm { border-radius: 1em; }

@media (max-width: 960px) {
  .stage.duo { --dw: min(50vw, 270px); }
  .stage.duo .coach { width: 100%; max-width: calc(var(--dw) * 1.86 + 60px); }
}
@media (max-width: 520px) {
  .stage.duo { --dw: calc((100vw - 2 * var(--gutter) - 14px) / 2); }
  .duo-row { gap: 12px; }
  .duo-beam { width: 24px; }
  .duo-row figcaption { font-size: 0.62rem; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
  .app .live-pill i, .sp-live i, .app .shs-qr .scan-line, .sp-spin, .duo-beam i, .sp.ping::after { animation: none !important; }
}
/* hub preview: live score */
.prev-live { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.pl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(226,101,93,0.12); box-shadow: inset 0 0 0 1px rgba(226,101,93,0.3); color: #ef6b62; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; }
.pl-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: recBlink 1s infinite alternate; }
.pl-beam { position: relative; width: 46px; height: 6px; }
.pl-beam i { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: plBeam 2.4s var(--ease-out) infinite; opacity: 0; }
.pl-beam i:nth-child(2) { animation-delay: 0.15s; } .pl-beam i:nth-child(3) { animation-delay: 0.3s; }
@keyframes plBeam { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 45%, 100% { opacity: 0; transform: translateX(40px); } }
.pl-board { padding: 8px 12px; border-radius: 12px; background: #141416; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 4px; min-width: 140px; }
.pl-board div { display: grid; grid-template-columns: 1fr 22px 28px; font-size: 0.8rem; font-weight: 600; align-items: center; }
.pl-board b { text-align: center; font-family: var(--f-display); color: var(--dim); }
.pl-board b.pl-pt { color: var(--ink); border-radius: 6px; animation: plFlash 2.4s infinite; }
@keyframes plFlash { 0%, 40% { background: transparent; color: var(--text); } 50% { background: var(--lime); color: var(--ink); } 80%, 100% { background: transparent; color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .pl-beam i, .pl-badge i, .pl-board b.pl-pt { animation: none !important; } .pl-board b.pl-pt { color: var(--text); } }

/* ---------- Tutorial dropdown (nav), mobile list, footer list ---------- */
.nav-links { align-items: center; }
.tut-menu { position: relative; }
.tut-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s;
}
.tut-switch:hover, .tut-menu.open .tut-switch { color: var(--text); background: rgba(255,255,255,0.05); }
.tut-switch.active { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tut-switch b { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--lime); }
.tut-switch .chev { width: 12px; height: 12px; transform: rotate(-90deg); opacity: 0.7; transition: transform 0.3s var(--ease-out); }
.tut-menu.open .tut-switch .chev { transform: rotate(90deg); }
.tut-list {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 120;
  min-width: 280px; padding: 6px; border-radius: 16px;
  background: rgba(22,22,25,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -12px rgba(0,0,0,0.8);
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top left;
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.25s;
}
.tut-menu.open .tut-list { opacity: 1; visibility: visible; transform: none; }
.tut-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 0.9rem; color: var(--muted); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tut-list a b, .menu-tuts a b { width: 20px; flex-shrink: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--dim); }
.tut-list a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.tut-list a[aria-current] { color: var(--text); background: var(--lime-a10); }
.tut-list a[aria-current] b { color: var(--lime); }
.menu-tuts { list-style: none; display: grid; gap: 2px; margin: 10px 0 14px; opacity: 0; transition: opacity 0.5s 0.15s; }
.menu-open .menu-tuts { opacity: 1; }
.menu-tuts a { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); transition: color 0.2s; }
.menu-tuts a:hover, .menu-tuts a[aria-current] { color: var(--text); }
.menu-tuts a[aria-current] b { color: var(--lime); }
@media (min-width: 701px) {
  .footer .foot-grid { grid-template-columns: 1.4fr 2fr 1fr; }
  .foot-tuts ul { display: block; columns: 2; column-gap: 24px; }
  .foot-tuts li { break-inside: avoid; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tut-list, .tut-switch .chev, .menu-tuts { transition: none; } }


/* ---------- Hub previews: tutorials 06–11 (scoped to their .prev-* root) ---------- */
/* voice-memos */
.prev-memo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.prev-memo .pm-mic { position: relative; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(248,113,113,0.18); color: var(--red); box-shadow: inset 0 0 0 1.5px rgba(248,113,113,0.6); }
.prev-memo .pm-mic svg { width: 22px; height: 22px; }
.prev-memo .pm-mic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(248,113,113,0.35); animation: pmRing 1.6s ease-out infinite; }
@keyframes pmRing { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.prev-memo .pm-card { flex: 1; max-width: 230px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: #1c1c1f; box-shadow: inset 0 0 0 1px var(--line-2); }
.prev-memo .pm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prev-memo .pm-rec { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.prev-memo .pm-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: recBlink 1s infinite alternate; }
.prev-memo .pm-chip { padding: 2px 7px; border-radius: 6px; background: var(--lime-a10); color: var(--lime); font-size: 0.66rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prev-memo .pm-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 8px; }
.prev-memo .pm-wave i { flex: 1; height: 100%; border-radius: 3px; background: var(--lime); transform-origin: center; transform: scaleY(0.3); animation: pmWave 1.1s ease-in-out infinite alternate; }
.prev-memo .pm-wave i:nth-child(3n) { animation-delay: -0.35s; }
.prev-memo .pm-wave i:nth-child(3n+1) { animation-delay: -0.7s; }
.prev-memo .pm-wave i:nth-child(4n) { animation-duration: 0.8s; }
.prev-memo .pm-wave i:nth-child(5n) { animation-duration: 1.4s; }
@keyframes pmWave { from { transform: scaleY(0.18); } to { transform: scaleY(0.95); } }
@media (prefers-reduced-motion: reduce) { .prev-memo .pm-mic::after, .prev-memo .pm-rec i, .prev-memo .pm-wave i { animation: none !important; }
.prev-memo .pm-wave i:nth-child(odd) { transform: scaleY(0.7); }
.prev-memo .pm-wave i:nth-child(even) { transform: scaleY(0.4); }
.prev-memo .pm-wave i:nth-child(3n) { transform: scaleY(0.9); } }
/* match-timeline */
.prev-tl { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.prev-tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #404040; }
.prev-tl .ptl-roll { position: relative; animation: ptlRoll 18s linear infinite; }
.prev-tl .ptl-half { display: grid; gap: 6px; padding: 0 12% 6px; }
.prev-tl .ptl-h { display: flex; align-items: center; justify-content: space-between; height: 17px; margin: 4px 0 1px; padding: 0 9px; border-radius: 5px; background: #2a2a2a; box-shadow: inset 0 0 0 1px #404040; }
.prev-tl .ptl-h i { width: 24px; height: 4px; border-radius: 4px; background: #5a5a5a; }
.prev-tl .ptl-h i:nth-child(2) { width: 52px; }
.prev-tl .ptl-r { display: grid; grid-template-columns: 1fr 13px 1fr; gap: 10px; align-items: center; height: 16px; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #b3b3b3; }
.prev-tl .ptl-r > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prev-tl .ptl-r > span:first-child { justify-content: flex-end; }
.prev-tl .ptl-r.p > span:first-child b, .prev-tl .ptl-r.p > span:first-child em { color: #c9f637; }
.prev-tl .ptl-r b { font-weight: 700; }
.prev-tl .ptl-r u { height: 4px; border-radius: 4px; background: #4a4a4a; flex-shrink: 1; }
.prev-tl .ptl-r em { width: 26px; height: 6px; border-radius: 6px; background: currentColor; }
.prev-tl .ptl-r i { width: 13px; height: 13px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px #808080; }
.prev-tl .ptl-r.p i { background: radial-gradient(circle, #c9f637 0 3.2px, var(--bg-2) 3.7px); box-shadow: inset 0 0 0 1.5px #c9f637; }
.prev-tl .ptl-r i.am { box-shadow: inset 0 0 0 2.6px #ffc107; }
.prev-tl .ptl-r i.rd { box-shadow: inset 0 0 0 2.6px #f87171; }
.prev-tl .ptl-pill { justify-self: center; padding: 1px 12px; border-radius: 99px; background: #c9f637; color: #121212; font-size: 0.64rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes ptlRoll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .prev-tl .ptl-roll { animation: none !important; transform: translateY(-112px); } }
/* coach-meeting */
.prev-coach { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 14px; }
.prev-coach .pc-paper { position: relative; width: 156px; padding: 11px 12px 5px; border-radius: 8px; background: #fbfbf7; overflow: hidden; box-shadow: 0 16px 34px -14px rgba(0,0,0,0.8); }
.prev-coach .pc-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--lime); }
.prev-coach .pc-h { display: block; width: 62%; height: 7px; margin: 2px 0 6px; border-radius: 3px; background: #1a1a1c; }
.prev-coach .pc-row { display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: center; padding: 2px 0; border-top: 1px solid rgba(0,0,0,0.07); }
.prev-coach .pc-row b { font-size: 0.56rem; font-weight: 700; color: #1a1a1c; font-variant-numeric: tabular-nums; }
.prev-coach .pc-row i { display: block; height: 5px; border-radius: 3px; background: var(--c); transform-origin: left; transform: scaleX(0); animation: pcFill 6s var(--ease-out) infinite; animation-delay: var(--dl); }
@keyframes pcFill { 0%, 4% { transform: scaleX(0); opacity: 1; } 14%, 84% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
.prev-coach .pc-clock { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.prev-coach .pc-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.prev-coach .pc-clock circle { fill: none; stroke-width: 3.5; }
.prev-coach .pc-clock .bg { stroke: rgba(255,255,255,0.08); }
.prev-coach .pc-clock .arc { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: pcArc 6s linear infinite; }
@keyframes pcArc { 0% { stroke-dashoffset: 100; } 90%, 100% { stroke-dashoffset: 0; } }
.prev-coach .pc-clock b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { .prev-coach .pc-row i, .prev-coach .pc-clock .arc { animation: none !important; }
.prev-coach .pc-row i { transform: none; }
.prev-coach .pc-clock .arc { stroke-dashoffset: 0; } }
/* know-your-opponent */
.prev-opp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 16px; }
.prev-opp .po-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--card-2); box-shadow: inset 0 0 0 1.5px rgba(91,141,239,0.45); font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: #8fb0f5; }
.prev-opp .po-av::before { content: "R"; }
.prev-opp .po-side { display: grid; gap: 12px; }
.prev-opp .po-rec { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.prev-opp .po-rec .w { color: var(--lime); }
.prev-opp .po-rec .l { color: var(--red); }
.prev-opp .po-rec i { width: 1px; height: 26px; background: var(--line-2); }
.prev-opp .po-row { display: flex; gap: 6px; }
.prev-opp .po-row i { width: 14px; height: 22px; border-radius: 4px; background: rgba(255,255,255,0.06); animation: poLit 6s var(--ease-out) infinite; }
.prev-opp .po-row i.w { --c: var(--lime); }
.prev-opp .po-row i.l { --c: var(--red); }
.prev-opp .po-row i:nth-child(2) { animation-delay: 0.35s; }
.prev-opp .po-row i:nth-child(3) { animation-delay: 0.7s; }
.prev-opp .po-row i:nth-child(4) { animation-delay: 1.05s; }
.prev-opp .po-row i:nth-child(5) { animation-delay: 1.4s; }
.prev-opp .po-row i.q { background: transparent; box-shadow: inset 0 0 0 1.5px var(--blue); animation: poNext 6s ease-in-out infinite 1.75s; }
@keyframes poLit { 0%, 4% { background: rgba(255,255,255,0.06); } 10%, 88% { background: var(--c); } 100% { background: rgba(255,255,255,0.06); } }
@keyframes poNext { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--blue); background: transparent; } 10%, 70% { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 12px rgba(91,141,239,0.55); background: rgba(91,141,239,0.18); } }
@media (prefers-reduced-motion: reduce) { .prev-opp .po-row i, .prev-opp .po-row i.q { animation: none !important; }
.prev-opp .po-row i.w, .prev-opp .po-row i.l { background: var(--c); } }
/* progress */
.prev-prog { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px 16px; }
.prev-prog > svg { position: absolute; inset: 12px 16px; width: calc(100% - 32px); height: calc(100% - 24px); overflow: visible; }
.prev-prog .pp-car { stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 6 5; }
.prev-prog .pp-dots circle { fill: #a0a0aa; stroke: var(--bg-2); stroke-width: 2; opacity: 0; animation: ppDot 6s var(--ease-out) infinite; }
.prev-prog .pp-dots circle.lo { fill: var(--orange); }
.prev-prog .pp-dots circle:nth-child(2) { animation-delay: 0.12s; }
.prev-prog .pp-dots circle:nth-child(3) { animation-delay: 0.24s; }
.prev-prog .pp-dots circle:nth-child(4) { animation-delay: 0.36s; }
.prev-prog .pp-dots circle:nth-child(5) { animation-delay: 0.48s; }
.prev-prog .pp-dots circle:nth-child(6) { animation-delay: 0.6s; }
.prev-prog .pp-dots circle:nth-child(7) { animation-delay: 0.72s; }
.prev-prog .pp-dots circle:nth-child(8) { animation-delay: 0.84s; }
.prev-prog .pp-dots circle:nth-child(9) { animation-delay: 0.96s; }
.prev-prog .pp-dots circle:nth-child(10) { animation-delay: 1.08s; }
.prev-prog .pp-dots circle:nth-child(11) { animation-delay: 1.2s; }
.prev-prog .pp-dots circle:nth-child(12) { animation-delay: 1.32s; }
.prev-prog .pp-line { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ppLine 6s var(--ease-out) infinite; }
.prev-prog .pp-pb { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 5px var(--lime-a20); transform: scale(0); animation: ppPb 6s var(--ease-spring) infinite; }
.prev-prog .pp-pb svg { width: 16px; height: 16px; }
@keyframes ppDot { 0% { opacity: 0; transform: translateY(6px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ppLine { 0%, 22% { stroke-dashoffset: 100; } 55%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ppPb { 0%, 58% { transform: scale(0); } 66%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) { .prev-prog .pp-dots circle, .prev-prog .pp-line, .prev-prog .pp-pb { animation: none !important; }
.prev-prog .pp-dots circle { opacity: 1; }
.prev-prog .pp-line { stroke-dashoffset: 0; }
.prev-prog .pp-pb { transform: none; } }
/* under-pressure */
.prev-pres { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.prev-pres .pp-board { padding: 8px 12px; border-radius: 12px; background: #141416; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 4px; min-width: 128px; }
.prev-pres .pp-board div { display: grid; grid-template-columns: 10px 1fr 30px; gap: 6px; align-items: center; font-size: 0.8rem; font-weight: 600; }
.prev-pres .pp-board i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3f; }
.prev-pres .pp-board i.pp-srv { background: var(--blue); }
.prev-pres .pp-board b { text-align: center; font-family: var(--f-display); color: var(--dim); border-radius: 6px; }
.prev-pres .pp-board b.pp-bp { color: var(--ink); animation: ppFlash 4s infinite; }
@keyframes ppFlash { 0%, 12% { background: transparent; color: var(--text); } 20%, 60% { background: var(--orange); color: var(--ink); } 70%, 100% { background: transparent; color: var(--text); } }
.prev-pres .pp-bars { display: grid; gap: 10px; width: 112px; }
.prev-pres .pp-bars span { display: grid; grid-template-columns: 1fr 30px; gap: 6px; align-items: center; }
.prev-pres .pp-bars span::before { content: ""; grid-column: 1; grid-row: 1; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.prev-pres .pp-bars i { grid-column: 1; grid-row: 1; height: 8px; border-radius: 8px; transform-origin: left; animation: ppGrow 4s var(--ease-out) infinite; }
.prev-pres .pp-bars i.pp-a { width: 50%; background: var(--lime); }
.prev-pres .pp-bars i.pp-b { width: 51%; background: var(--blue); animation-delay: 0.15s; }
.prev-pres .pp-bars em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
@keyframes ppGrow { 0%, 15% { transform: scaleX(0.2); } 45%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .prev-pres .pp-board b.pp-bp, .prev-pres .pp-bars i { animation: none !important; }
.prev-pres .pp-board b.pp-bp { background: var(--orange); color: var(--ink); } }

/* An odd last card (11 tutorials) spans both columns instead of sitting alone. */
@media (min-width: 821px) { .tut-grid > .tut:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Hub: glossary banner (below the tutorials grid). Everything is scoped under .gl-banner; keyframes are prefixed glBn. ---------- */
.gl-banner {
  position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 36px); align-items: center;
  margin-top: 18px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, var(--card) 0%, #1b2010 100%); box-shadow: inset 0 0 0 1px var(--lime-a20);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.gl-banner:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--lime-a35), 0 30px 60px -30px rgba(0,0,0,0.8); }
.gl-banner .gl-bn-prev { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.gl-banner .gl-bn-court { position: absolute; inset: 0; width: 100%; height: 100%; }
.gl-banner .gl-bn-ball { position: absolute; left: 14%; top: 62%; width: 10px; height: 10px; margin: -5px 0 0 -5px; animation: glBnX 2.8s ease-in-out infinite alternate; }
.gl-banner .gl-bn-ball i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #f2ff7a; box-shadow: 0 0 0 1px #7d8c16; animation: glBnY 1.4s cubic-bezier(0.3, 0, 0.7, 1) infinite; }
@keyframes glBnX { from { left: 14%; } to { left: 86%; } }
@keyframes glBnY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-24px) scale(1.15); } }
.gl-banner .gl-bn-words { position: absolute; left: 5%; right: 5%; top: 12%; height: 2.2em; perspective: 400px; }
.gl-banner .gl-bn-words span {
  position: absolute; inset: 0; width: fit-content; height: fit-content; margin: auto; padding: 5px 14px; border-radius: 999px; opacity: 0;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(0.95rem, 1.6vw, 1.12rem); letter-spacing: -0.01em; white-space: nowrap;
  color: var(--ink); background: var(--lime); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.8);
  animation: glBnWord 10s var(--ease-out) infinite;
}
.gl-banner .gl-bn-words span:nth-child(2) { animation-delay: 2s; }
.gl-banner .gl-bn-words span:nth-child(3) { animation-delay: 4s; }
.gl-banner .gl-bn-words span:nth-child(4) { animation-delay: 6s; }
.gl-banner .gl-bn-words span:nth-child(5) { animation-delay: 8s; }
@keyframes glBnWord {
  0% { opacity: 0; transform: translateY(45%) rotateX(-70deg); }
  4%, 17% { opacity: 1; transform: none; }
  21%, 100% { opacity: 0; transform: translateY(-45%) rotateX(70deg); }
}
.gl-banner .gl-bn-num { font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.gl-banner h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-top: 8px; }
.gl-banner p { color: var(--muted); font-size: 0.97rem; margin-top: 8px; max-width: 520px; }
.gl-banner .gl-bn-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--lime); white-space: nowrap; }
.gl-banner .gl-bn-go svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.gl-banner:hover .gl-bn-go svg { transform: translateX(5px); }
@media (max-width: 900px) {
  .gl-banner { grid-template-columns: minmax(0, 1fr); }
  .gl-banner .gl-bn-prev { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-banner .gl-bn-ball, .gl-banner .gl-bn-ball i, .gl-banner .gl-bn-words span { animation: none; }
  .gl-banner .gl-bn-words span:first-child { opacity: 1; transform: none; }
  .gl-banner, .gl-banner .gl-bn-go svg { transition: none; }
}

/* Hub card preview: tutorial 00 "How tennis scoring works" — a scoreboard rolling 0 → 15 → 30 → 40 → deuce → AD → game. */
.prev-score { position: relative; display: grid; place-items: center; height: 100%; padding: 14px 16px; }
.prev-score .psc-board { position: relative; width: min(100%, 300px); padding: 3px 12px; border-radius: 14px; background: #1d1d20; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); font-variant-numeric: tabular-nums; }
.prev-score .psc-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 2.1rem 3.5rem; gap: 10px; align-items: center; padding: 8px 0; }
.prev-score .psc-row + .psc-row { border-top: 1px solid rgba(255,255,255,0.06); }
.prev-score .psc-ball { width: 10px; height: 10px; border-radius: 50%; }
.prev-score .psc-ball { background: radial-gradient(circle at 35% 30%, #f3ff9c, #d4f13d 55%, #a9c51f); box-shadow: 0 0 0 3px rgba(212,241,61,0.18); animation: pscSrv 9s ease infinite; }
.prev-score .r .psc-ball { animation-name: pscSrvR; }
.prev-score .psc-nm { font-weight: 650; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prev-score .p .psc-nm { color: var(--lime); }
.prev-score .r .psc-nm { color: #8fb0f5; }
.prev-score .psc-cell { --h: 1.9rem; display: block; height: var(--h); overflow: hidden; border-radius: 8px; background: #28282c; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; line-height: var(--h); color: #d6d6dc; }
.prev-score .psc-cell.big { --h: 2.3rem; font-size: 1.35rem; font-weight: 800; color: #fff; background: #2d2d32; }
.prev-score .p .psc-cell.big { color: var(--lime); }
.prev-score .r .psc-cell.big { color: #8fb0f5; }
.prev-score .psc-col { display: block; animation: pscRoll 9s var(--ease-out) infinite; }
.prev-score .psc-col i { display: block; height: var(--h); font-style: normal; }
.prev-score .psc-g { animation: pscWin 9s ease infinite; }
.prev-score .psc-tag { position: absolute; top: -11px; right: 12px; z-index: 1; padding: 3px 9px; border-radius: 7px; font-style: normal; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: #2a1f0c; box-shadow: inset 0 0 0 1px rgba(245,158,11,0.45); color: var(--orange); opacity: 0; animation: pscTag 9s ease infinite; }
@keyframes pscRoll {
  0%, 8% { transform: translateY(0); }
  11.1%, 19.1% { transform: translateY(calc(var(--h) * -1)); }
  22.2%, 30.2% { transform: translateY(calc(var(--h) * -2)); }
  33.3%, 41.3% { transform: translateY(calc(var(--h) * -3)); }
  44.4%, 52.4% { transform: translateY(calc(var(--h) * -4)); }
  55.6%, 63.6% { transform: translateY(calc(var(--h) * -5)); }
  66.7%, 74.7% { transform: translateY(calc(var(--h) * -6)); }
  77.8%, 85.8% { transform: translateY(calc(var(--h) * -7)); }
  88.9%, 100% { transform: translateY(calc(var(--h) * -8)); }
}
@keyframes pscWin { 0%, 86% { background: #28282c; color: #d6d6dc; } 89%, 97% { background: var(--lime); color: var(--ink); } 100% { background: #28282c; color: #d6d6dc; } }
@keyframes pscSrv { 0%, 86% { opacity: 1; } 89%, 100% { opacity: 0; } }
@keyframes pscSrvR { 0%, 86% { opacity: 0; } 89%, 100% { opacity: 1; } }
@keyframes pscTag { 0%, 65% { opacity: 0; transform: translateY(4px); } 68%, 76% { opacity: 1; transform: none; } 79%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .prev-score .psc-col { animation: none; transform: translateY(calc(var(--h) * -6)); }
  .prev-score .psc-g, .prev-score .psc-ball { animation: none; }
  .prev-score .r .psc-ball { opacity: 0; }
  .prev-score .psc-tag { animation: none; opacity: 1; }
}
