/* Mise · player area styles. Prefix every rule with .v-player (the top-bar slot uses #focus-slot .pl-slot). Owned by the Player agent. */

/* ---------- Top bar slot ---------- */
#focus-slot .pl-slot { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
#focus-slot .pl-slot__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
#focus-slot .pl-slot__meter { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
#focus-slot .pl-slot__count { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
#focus-slot .pl-slot__count .num { color: var(--ink); font-size: 13.5px; }
#focus-slot .pl-slot__of { color: var(--muted); }

/* in-progress markers are teal; copper is for people only */
#focus-slot .steps__dot.is-active::after { background: var(--primary); }
.v-player .ring__dot { fill: var(--primary) !important; }

/* ---------- Shared bits ---------- */
.v-player { --pl-col: 760px; }
.v-player kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface); font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--ink-2); line-height: 1; }
.v-player .eyebrow { color: var(--muted); }

/* ---------- Intro ---------- */
.v-player.pl-intro { max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) 48px; }
.v-player .pl-intro__card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden; border-radius: 16px; min-height: 540px; }
.v-player .pl-intro__media { position: relative; margin: 0; min-height: 280px; }
.v-player .pl-intro__media .media { position: absolute; inset: 0; }
.v-player .pl-intro__reg { position: absolute; left: 16px; bottom: 16px; }
.v-player .pl-intro__reg .chip { background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v-player .pl-intro__body { display: flex; flex-direction: column; gap: 14px; padding: 36px 40px 32px; min-width: 0; }
.v-player .pl-intro__title { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.12; letter-spacing: -.022em; color: var(--ink); max-width: 20ch; }
.v-player .pl-intro__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.v-player .pl-intro__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.v-player .pl-intro__meta .num { color: var(--ink-2); }
.v-player .pl-intro__summary { font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.v-player .pl-intro__outcomes { margin-top: 4px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.v-player .pl-intro__k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.v-player .pl-intro__outcomes ul { display: grid; gap: 8px; }
.v-player .pl-intro__outcomes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.v-player .pl-intro__outcomes .ring { margin-top: 1px; }
.v-player .pl-intro__progress { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.v-player .pl-intro__cta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.v-player .pl-intro__save { margin-top: 2px; }
.v-player .pl-intro__rule { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.v-player .pl-intro__rule .icon { flex: none; margin-top: 1px; }
.v-player .pl-intro__save .tickline { font-size: 13px; }

/* ---------- Player frame ---------- */
.v-player.pl-play { display: flex; flex-direction: column; min-height: calc(100vh - 57px); }
.v-player .pl-stage { flex: 1; width: 100%; max-width: calc(var(--pl-col) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 56px; }
.v-player .pl-stage.is-entering .pl-step { animation: pl-in var(--d-slow) var(--ease-out) both; }
@keyframes pl-in { from { opacity: 0; transform: translateY(6px); } }
.v-player .pl-step { display: grid; gap: 20px; }
.v-player .pl-step__head { display: grid; gap: 8px; }
.v-player .pl-step__title { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.15; letter-spacing: -.022em; color: var(--ink); }
.v-player .pl-step__q { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.3; letter-spacing: -.018em; color: var(--ink); max-width: 36ch; }
.v-player .pl-step__title:focus, .v-player .pl-step__q:focus { box-shadow: none; }

/* lesson content */
.v-player .pl-lesson { display: grid; gap: 18px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.v-player .pl-lead { font-size: 17.5px; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.v-player .pl-p { max-width: 64ch; }
.v-player .pl-h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-top: 4px; margin-bottom: -6px; }
.v-player .pl-lesson b { color: var(--ink); font-weight: 600; }
.v-player .pl-bullets { display: grid; gap: 10px; max-width: 64ch; }
.v-player .pl-bullets li { position: relative; padding-left: 22px; }
.v-player .pl-bullets li::before { content: ''; position: absolute; left: 2px; top: calc(.8em - 4.5px); width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--primary); }
.v-player .pl-numbered { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.v-player .pl-numbered li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.v-player .pl-numbered li + li { border-top: 1px solid var(--line); }
.v-player .pl-numbered__n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--primary-line); color: var(--primary); font-size: 13px; }
.v-player .pl-numbered li > div { display: grid; gap: 2px; font-size: 15px; line-height: 1.45; }
.v-player .pl-numbered li > div span { color: var(--muted); }
.v-player .pl-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-card); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); font-size: 14.5px; line-height: 1.5; }
.v-player .pl-callout > .icon { color: var(--primary); margin-top: 2px; }
.v-player .pl-callout b { display: block; color: var(--ink); margin-bottom: 2px; }
.v-player .pl-callout p { color: var(--ink-2); }
.v-player .pl-callout--warn { background: var(--warn-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 28%, transparent); }
.v-player .pl-callout--warn > .icon { color: var(--warn); }
.v-player .pl-callout--danger { background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 28%, transparent); }
.v-player .pl-callout--danger > .icon { color: var(--danger); }
.v-player .pl-callout--say { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--line-strong); border-radius: 4px var(--r-card) var(--r-card) 4px; }
.v-player .pl-callout--say > .icon { color: var(--primary); }
.v-player .pl-callout--say p { font-size: 15.5px; color: var(--ink); }
.v-player .pl-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.v-player .pl-keys > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.v-player .pl-keys dd { margin: 0; font-size: 26px; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.v-player .pl-keys dt { font-size: 13px; color: var(--muted); line-height: 1.35; }
.v-player .pl-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v-player .pl-compare__col { padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.v-player .pl-compare__col--a { border-color: var(--line-strong); }
.v-player .pl-compare__k { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.v-player .pl-compare__col--a .pl-compare__k { color: var(--ink); }
.v-player .pl-compare__s { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.v-player .pl-compare .pl-bullets { gap: 8px; font-size: 14.5px; line-height: 1.45; }
.v-player .pl-compare .pl-bullets li::before { top: calc(.725em - 4.5px); }
.v-player .pl-14 { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.v-player .pl-14 li { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.v-player .pl-14__n { grid-row: span 2; font-size: 12px; color: var(--faint); padding-top: 3px; }
.v-player .pl-14 b { font-size: 14.5px; line-height: 1.3; }
.v-player .pl-14 span:last-child { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Multiple choice ---------- */
.v-player .pl-hint { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.v-player .pl-opts { display: grid; gap: 8px; }
.v-player .pl-opt {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px 12px 12px; text-align: left;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--inset-top);
  font-size: 15.5px; line-height: 1.4; color: var(--ink);
  transition: border-color var(--d-fast) var(--ease-out), background-color var(--d-base) var(--ease-out), opacity var(--d-base) var(--ease-out);
}
.v-player .pl-opt:hover { border-color: var(--ink-2); }
.v-player .pl-opt:focus-visible { border-radius: 10px; }
.v-player .pl-opt__key { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; transition: background-color var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out); }
.v-player .pl-opt__text { flex: 1; min-width: 0; }
.v-player .pl-opt__state { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; }
.v-player .pl-opt[aria-disabled="true"] { cursor: default; }
.v-player .pl-opt[aria-disabled="true"]:hover { border-color: var(--line-strong); }
.v-player .pl-opt.is-correct, .v-player .pl-opt.is-correct:hover { border-color: var(--success); background: var(--success-soft); }
.v-player .pl-opt.is-correct .pl-opt__key { background: var(--success); color: var(--on-fill); }
.v-player .pl-opt.is-correct .pl-opt__state { color: var(--success); }
.v-player .pl-opt.is-wrong, .v-player .pl-opt.is-wrong:hover { border-color: var(--danger); background: var(--danger-soft); }
.v-player .pl-opt.is-wrong .pl-opt__key { background: var(--danger); color: var(--on-fill); }
.v-player .pl-opt.is-wrong .pl-opt__state { color: var(--danger); }
.v-player .pl-opt.is-dim { opacity: .55; }
.v-player .pl-opt__why { margin: 6px 4px 2px 56px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); animation: pl-rise 280ms var(--ease-out) both; }
.v-player .pl-verdict { display: grid; gap: 4px; padding: 12px 16px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); animation: pl-rise 320ms var(--ease-out) both; }
.v-player .pl-verdict p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.v-player .pl-verdict .tickline { font-size: 14px; font-weight: 600; color: var(--ink); }
.v-player .pl-verdict .tickline__mark circle { stroke: var(--success); opacity: .7; }
.v-player .pl-verdict__x { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.v-player .pl-verdict__x .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--danger); color: var(--danger); stroke-width: 2; }

/* ---------- Open text ---------- */
.v-player .pl-context { font-size: 15px; color: var(--muted); margin-top: -8px; max-width: 62ch; }
.v-player .pl-editor { display: grid; gap: 14px; }
.v-player .pl-editor__ta { min-height: 168px; font-size: 16px; line-height: 1.6; padding: 14px 16px; border-radius: 10px; }
.v-player .pl-guide { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.v-player .pl-guide__bar { position: relative; width: 72px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; flex: none; }
.v-player .pl-guide__bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--faint); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform var(--d-slow) var(--ease-out), background-color var(--d-base) var(--ease-out); }
.v-player .pl-guide.is-good .pl-guide__bar i { background: var(--primary); }
.v-player .pl-guide__txt { flex: 1; min-width: 0; }
.v-player .pl-guide__n { font-size: 12.5px; color: var(--ink-2); }
.v-player .pl-guide__n span { color: var(--faint); }
.v-player .pl-editor__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.v-player .pl-editor__kbd { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.v-player .pl-editor__how { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.v-player .pl-editor__how .icon { color: var(--primary); }

/* retry hint */
.v-player .pl-retry { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn); }
.v-player .pl-retry__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-player .pl-retry__prev { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.v-player .pl-retry__k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-player .pl-retry__pin { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.v-player .pl-retry__pin .icon { color: var(--warn); margin-top: 2px; }
.v-player .pl-retry__pin b { color: var(--ink); }

/* ---------- The marking moment ---------- */
.v-player .pl-mark { overflow: hidden; animation: pl-rise 320ms var(--ease-out) both; }
@media (min-width: 1120px) { .v-player .pl-mark { margin-inline: -90px; } }
.v-player .pl-mark__head { display: flex; align-items: center; gap: 20px; padding: 22px 24px 20px; }
.v-player .pl-mark__status { display: grid; gap: 3px; min-width: 0; flex: 1; }
.v-player .pl-mark__label { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.v-player .pl-mark.is-marking .pl-mark__label { font-family: var(--font-ui); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.v-player .pl-mark.is-labelled .pl-mark__label { animation: pl-rise 320ms var(--ease-out) both; }
.v-player .pl-mark__sub { font-size: 13.5px; color: var(--muted); }
.v-player .pl-mark__sub .num { color: var(--ink-2); }
.v-player .pl-mark__prev { align-self: flex-start; }
.v-player .pl-mark.is-late .pl-mark__label { color: var(--warn-ink); }
.v-player .pl-fail__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent); }
.v-player .pl-mark.is-failed .pl-mark__label { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.v-player .pl-mark.is-failed .pl-mark__sub { max-width: 60ch; }
.v-player .pl-fail__answer { display: grid; gap: 6px; padding: 16px 24px 18px; background: var(--surface-2); border-top: 1px dashed var(--line-strong); }
.v-player .pl-mark__prev .num { color: var(--ink); }

/* score ring with orbiting dot */
.v-player .pl-ring { --ring: 96px; }
.v-player .pl-ring__arc { opacity: 0; transition: stroke-dasharray 700ms var(--ease-draw), opacity 120ms linear; }
.v-player .pl-mark.is-scored .pl-ring__arc, .v-player .pl-mark.is-final .pl-ring__arc { opacity: 1; }
.v-player .pl-orbit { transform-box: view-box; transform-origin: 50% 50%; animation: pl-orbit 1.4s linear infinite; transition: opacity var(--d-base) var(--ease-out); }
.v-player .pl-orbit circle { fill: var(--primary); }
.v-player .pl-mark.is-scored .pl-orbit, .v-player .pl-mark.is-final .pl-orbit { opacity: 0; animation: none; }
@keyframes pl-orbit { to { transform: rotate(360deg); } }
.v-player .pl-ring__num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; gap: 1px; }
.v-player .pl-ring__num b { font-size: 36px; line-height: 1; color: var(--ink); letter-spacing: -.03em; font-weight: 600; }
.v-player .pl-ring__num small { font-size: 13px; color: var(--muted); font-weight: 500; }

.v-player .pl-mark__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border-top: 1px dashed var(--line-strong); }
.v-player .pl-mark__answer { display: flex; flex-direction: column; gap: 8px; padding: 18px 24px 20px; background: var(--surface-2); border-right: 1px solid var(--line); }
.v-player .pl-mark__k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-player .pl-mark__text { margin: 0; font-size: 16px; line-height: 1.85; color: var(--ink); overflow-wrap: anywhere; }
.v-player .pl-ev { background: transparent; color: inherit; padding: 1px 1px; border-radius: 3px; text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; transition: background-color var(--d-base) var(--ease-out); }
.v-player .pl-ev--partly { text-decoration-style: dotted; text-decoration-color: var(--warn); text-decoration-thickness: 2.5px; }
.v-player .pl-ev.is-lit, .v-player .pl-ev:focus-visible { background: var(--hl-met); }
.v-player .pl-ev--partly.is-lit, .v-player .pl-ev--partly:focus-visible { background: var(--hl-partly); }
.v-player .pl-ev:focus-visible { box-shadow: var(--focus); border-radius: 3px; }
.v-player .pl-mark.is-revealing .pl-ev { animation: pl-ink 480ms var(--ease-out) both; }
@keyframes pl-ink { from { text-decoration-color: transparent; } }
.v-player .pl-ghost { display: inline-block; margin: 0 2px; padding: 0 8px; border-radius: 5px; border: 1px dashed color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; line-height: 22px; vertical-align: 1px; cursor: pointer; transition: background-color var(--d-base) var(--ease-out); }
.v-player .pl-ghost.is-lit { background: var(--danger-soft); }
.v-player .pl-sup { font-family: var(--font-display); font-size: 11px; font-weight: 600; line-height: 0; margin-left: 1px; vertical-align: super; color: var(--primary); text-decoration: none; display: inline-block; }
.v-player .pl-ev--partly .pl-sup { color: var(--warn-ink); }
.v-player .pl-ghost .pl-sup { color: var(--danger); }
.v-player .pl-legend { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.v-player .pl-legend__key { width: 18px; height: 0; border-bottom: 2px solid var(--primary); }
.v-player .pl-legend__key--partly { border-bottom: 2.5px dotted var(--warn); margin-left: 10px; }
.v-player .pl-legend__tip { margin-left: auto; }

/* rubric tally */
.v-player .pl-tally { display: grid; padding: 8px 14px 10px; align-content: start; }
.v-player .pl-crit { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 3px 12px; padding: 11px 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color var(--d-base) var(--ease-out); }
.v-player .pl-crit + .pl-crit::before { content: ''; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid var(--line); }
.v-player .pl-crit.is-lit, .v-player .pl-mark.is-final .pl-crit:hover { background: var(--surface-2); }
.v-player .pl-crit.is-lit::after { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--primary); }
.v-player .pl-crit--partly.is-lit::after { background: var(--warn); }
.v-player .pl-crit--notyet.is-lit::after { background: var(--danger); }
.v-player .pl-crit.is-lit + .pl-crit::before, .v-player .pl-mark.is-final .pl-crit:hover + .pl-crit::before { border-color: transparent; }
.v-player .pl-crit:focus-visible { border-radius: 8px; }
.v-player .pl-mark.is-marking:not(.is-resolving) .pl-crit, .v-player .pl-crit:not(.is-resolved) { cursor: default; }
.v-player .pl-crit__name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); display: flex; align-items: flex-start; gap: 10px; }
.v-player .pl-crit__n { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--line-strong); font-size: 11px; color: var(--muted); margin-top: -1px; }
.v-player .pl-crit--met .pl-crit__n { box-shadow: inset 0 0 0 1.25px var(--primary-line); color: var(--primary); }
.v-player .pl-crit__note { padding-left: 30px; }
.v-player .pl-crit:not(.is-resolved) .pl-crit__name { color: var(--ink-2); }
.v-player .pl-crit__res { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 84px; }
.v-player .pl-crit__pts { font-size: 17px; text-align: right; color: var(--ink); display: inline-flex; justify-content: flex-end; align-items: baseline; }
.v-player .pl-crit__max { font-size: 13px; color: var(--muted); }
.v-player .pl-crit__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.45; }
.v-player .pl-crit__note:empty { display: none; }
.v-player .pl-res--wait { display: inline-block; width: 74px; height: 24px; border-radius: var(--r-pill); }
.v-player .pl-pts-wait { display: inline-block; width: 12px; height: 6px; border-radius: 3px; margin-right: 3px; vertical-align: 3px; }
.v-player .pl-res { gap: 4px; padding-left: 6px; }
.v-player .pl-mk { width: 14px; height: 14px; flex: none; }
.v-player .pl-mk path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.v-player .pl-crit.is-resolved:not(.is-instant) .pl-res { animation: pl-pop 260ms var(--ease-out) both; }
.v-player .pl-crit.is-resolved:not(.is-instant) .pl-mk path { animation: pl-draw 300ms var(--ease-draw) 80ms both; }
.v-player .pl-crit.is-resolved:not(.is-instant) .pl-crit__note { animation: pl-fade 320ms var(--ease-out) 60ms both; }
.v-player .pl-mark.is-final:not(.is-revealing) .pl-crit .pl-res, .v-player .pl-mark.is-final:not(.is-revealing) .pl-mk path { animation: none; }
@keyframes pl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pl-pop { from { opacity: 0; transform: scale(.94); } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(6px); } }
.v-player .pl-gain { display: inline-grid; place-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--success-soft); color: var(--success); font-size: 12px; animation: pl-pop 320ms var(--ease-out) 200ms both; }

.v-player .pl-mark__summary { padding: 16px 24px 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.v-player .pl-mark__summary .pl-mark__k { color: var(--primary); }
.v-player .pl-mark__summary p:last-child { font-size: 15.5px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.v-player .pl-mark.is-revealing .pl-mark__summary { animation: pl-rise 360ms var(--ease-out) both; }
.v-player .pl-mark.is-revealing .pl-mark__tail { animation: pl-rise 360ms var(--ease-out) 140ms both; }
.v-player .pl-mark.is-revealing .pl-legend { animation: pl-fade 320ms var(--ease-out) both; }
.v-player .pl-prov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 11px 24px; background: var(--surface-2); border-top: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--muted); }
.v-player .pl-prov > .icon { color: var(--primary); }
.v-player .pl-prov .link { font-size: 12.5px; }
.v-player .pl-prov__ask { margin-left: auto; }
.v-player .pl-mark__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.v-player .pl-mark__actions .link { font-size: 14px; }

/* ---------- Footer ---------- */
.v-player .pl-foot {
  position: sticky; bottom: 0; z-index: 20; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.v-player .pl-foot__in { display: flex; align-items: center; gap: 12px; max-width: calc(var(--pl-col) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.v-player .pl-foot__next { margin-left: auto; min-width: 132px; }
.v-player .pl-foot__next[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.v-player .pl-foot__hint { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; }
.v-player .pl-foot__hint:empty { display: none; }
.v-player .pl-foot__hint:not(:empty) + .pl-foot__next { margin-left: 0; }
.v-player .pl-foot__hint.is-nudge { color: var(--ink); animation: pl-nudge 360ms var(--ease-out); }
@keyframes pl-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
/* the autosave pill, 22px */
.v-player .pl-save { height: 22px; min-height: 22px; padding: 0 9px 0 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; gap: 6px; white-space: nowrap; max-width: 100%; overflow: hidden; }
.v-player .pl-save .tickline { font-size: 12px; padding-bottom: 0; gap: 5px; }
.v-player .pl-save .tickline__mark { width: 14px; height: 14px; }
.v-player .pl-save .tickline__line { left: 19px; bottom: -1px; }
.v-player .pl-save .autosave__spin { width: 12px; height: 12px; }

/* ---------- Gates (paywall + verify) ---------- */
.v-player.pl-gate { max-width: 1040px; margin: 0 auto; padding: 32px var(--gutter) 48px; }
.v-player .pl-gate__card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 16px; }
.v-player .pl-gate__media { position: relative; margin: 0; min-height: 260px; }
.v-player .pl-gate__media .media { position: absolute; inset: 0; }
.v-player .pl-gate__media .media img { filter: var(--img-filter) saturate(.7); }
.v-player .pl-gate__lock { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-card); }
.v-player .pl-gate__body { display: flex; flex-direction: column; gap: 12px; padding: 34px 38px 30px; min-width: 0; }
.v-player .pl-gate__title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.v-player .pl-gate__lede { font-size: 15.5px; color: var(--ink-2); max-width: 54ch; }
.v-player .pl-gate__k { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-player .pl-gate__list { display: grid; gap: 9px; }
.v-player .pl-gate__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.v-player .pl-gate__list .ring { margin-top: 1px; }
.v-player .pl-gate__price { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.v-player .pl-gate__from { font-size: 13px; color: var(--muted); font-weight: 500; }
.v-player .pl-gate__amt { font-size: 34px; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.v-player .pl-gate__per { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
.v-player .pl-gate__per .muted { font-size: 12.5px; font-weight: 400; }
.v-player .pl-gate__cta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 6px; }
.v-player .pl-gate__lede .link, .v-player .pl-verify__free .link { display: inline; }
.v-player .pl-gate__note .tickline { font-size: 13.5px; color: var(--ink-2); }
.v-player .pl-verify { max-width: 560px; margin: 24px auto 0; padding: 32px 32px 28px; display: grid; gap: 12px; justify-items: start; border-radius: 16px; }
.v-player .pl-verify__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-line); margin-bottom: 4px; }
.v-player .pl-verify__free { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; font-size: 13.5px; color: var(--muted); }

/* ---------- Done ---------- */
.v-player.pl-done { max-width: 980px; margin: 0 auto; padding: 32px var(--gutter) 56px; display: grid; gap: 20px; }
.v-player .pl-done__hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px 36px; border-radius: 16px; }
.v-player .pl-done__ring { position: relative; display: grid; place-items: center; }
.v-player .pl-done__num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 44px; }
.v-player .pl-done__num .num { font-size: 46px; line-height: 1; color: var(--ink); letter-spacing: -.035em; }
.v-player .pl-done__num small { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.v-player .pl-done__copy { display: grid; gap: 10px; min-width: 0; }
.v-player .pl-done__title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.v-player .pl-done__tl .tickline { font-size: 13.5px; color: var(--ink-2); }
.v-player .pl-done__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.v-player .pl-done__facts > div { display: grid; gap: 4px; min-width: 0; }
.v-player .pl-done__facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v-player .pl-done__facts dd { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.v-player .pl-done__facts dd > .num, .v-player .pl-done__plus { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.v-player .pl-done__plus { color: var(--primary); }
.v-player .pl-done__of { font-size: 13px; color: var(--muted); }
.v-player .pl-done__of .num { color: var(--ink-2); }
.v-player .pl-done__gap { font-size: 14px; color: var(--ink-2); line-height: 1.4; align-self: center; padding-top: 4px; }
.v-player .pl-done__gap .num { color: var(--ink); }
.v-player .pl-done__rule { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.v-player .pl-done__rule .icon { margin-top: 1px; flex: none; }
.v-player .pl-done__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.v-player .pl-done__grid--one { grid-template-columns: minmax(0, 1fr); }
.v-player .pl-rec__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v-player .pl-rec__txt { display: grid; gap: 2px; flex: 1; min-width: 160px; }
.v-player .pl-rec__txt b { font-size: 14.5px; }
.v-player .pl-rec__txt span { font-size: 13px; color: var(--muted); }
.v-player .pl-rec__txt .num { color: var(--ink-2); }
.v-player .pl-rec__txt s { color: var(--faint); }
.v-player .pl-rec__tl .tickline { color: var(--ink-2); font-weight: 600; }
.v-player .pl-rec__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.v-player .pl-rec__note .icon { color: var(--primary); margin-top: 1px; }
.v-player .pl-done__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.v-player .pl-next__list { display: grid; gap: 10px; }
.v-player .pl-done__grid--one .pl-next__list { grid-template-columns: 1fr 1fr; }
.v-player .pl-next { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.v-player .pl-next__img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex: none; }
.v-player .pl-next__img .media { width: 100%; height: 100%; }
.v-player .pl-next__txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.v-player .pl-next__title { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.v-player .pl-next__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.v-player .pl-next__mins { display: inline-flex; align-items: center; gap: 4px; }
.v-player .pl-why { min-height: 22px; padding: 2px 8px; font-size: 12px; background: var(--surface-2); white-space: normal; }
.v-player .pl-next__chev { color: var(--faint); transition: transform var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out); }
.v-player .pl-next:hover .pl-next__chev { transform: translateX(2px); color: var(--ink); }
.v-player .pl-done__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (min-width: 981px) {
  .v-player.pl-intro, .v-player.pl-gate { min-height: calc(100vh - 57px); display: grid; align-content: center; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .v-player .pl-intro__card, .v-player .pl-gate__card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .v-player .pl-intro__media, .v-player .pl-gate__media { aspect-ratio: 16 / 7; min-height: 0; }
  .v-player .pl-done__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  #focus-slot .pl-slot { gap: 10px; }
  #focus-slot .pl-slot__title { font-size: 13.5px; }
  #focus-slot .pl-slot__meter { gap: 8px; }

  .v-player.pl-intro, .v-player.pl-gate, .v-player.pl-done { padding: 12px 12px 28px; }
  .v-player .pl-intro__media, .v-player .pl-gate__media { aspect-ratio: 16 / 9; }
  .v-player .pl-intro__body, .v-player .pl-gate__body { padding: 20px 18px 22px; gap: 12px; }
  .v-player .pl-intro__title { font-size: 26px; }
  .v-player .pl-gate__title { font-size: 24px; }
  .v-player .pl-intro__cta .btn--primary, .v-player .pl-gate__cta .btn--primary { width: 100%; min-height: 50px; }
  .v-player .pl-intro__cta .btn--quiet, .v-player .pl-gate__cta .btn--quiet { width: 100%; white-space: normal; text-align: center; line-height: 1.3; min-height: 44px; }

  .v-player.pl-play { min-height: calc(100vh - 57px); }
  .v-player .pl-stage { padding: 22px 16px 32px; }
  .v-player .pl-step { gap: 16px; }
  .v-player .pl-step__title { font-size: 26px; }
  .v-player .pl-step__q { font-size: 20px; }
  .v-player .pl-lead { font-size: 16.5px; }
  .v-player .pl-lesson { font-size: 15.5px; gap: 16px; }
  .v-player .pl-14 { grid-template-columns: 1fr 1fr; gap: 6px; }
  .v-player .pl-14 li { padding: 10px; grid-template-columns: 1fr; }
  .v-player .pl-14__n { grid-row: auto; padding: 0; }
  .v-player .pl-compare { grid-template-columns: minmax(0, 1fr); }
  .v-player .pl-keys { grid-template-columns: 1fr 1fr; }
  .v-player .pl-keys dd { font-size: 22px; }
  .v-player .pl-opt { min-height: 56px; font-size: 15px; }
  .v-player .pl-hint__kbd, .v-player .pl-editor__kbd { display: none; }
  .v-player .pl-editor__actions .btn { display: none; }
  .v-player .pl-editor__ta { min-height: 120px; field-sizing: content; max-height: 46vh; }
  .v-player.is-typing .pl-save { display: none; }
  .v-player .pl-opt__why { margin-left: 4px; }
  .v-player .pl-editor__how { margin-left: 0; }

  .v-player .pl-mark__head { padding: 16px 16px 14px; gap: 14px; flex-wrap: wrap; }
  .v-player .pl-ring { --ring: 76px; }
  .v-player .pl-ring svg { width: 76px; height: 76px; }
  .v-player .pl-ring__num { padding-top: 22px; }
  .v-player .pl-ring__num b { font-size: 28px; }
  .v-player .pl-mark__label { font-size: 22px; }
  .v-player .pl-mark__status { flex: 1 1 180px; }
  .v-player .pl-mark__prev { order: 3; }
  .v-player .pl-mark__body { grid-template-columns: minmax(0, 1fr); }
  .v-player .pl-mark__answer { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .v-player .pl-legend__tip { margin-left: 0; width: 100%; }
  .v-player .pl-tally { padding: 4px 6px 8px; }
  .v-player .pl-crit { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name name' 'res pts' 'note note'; padding: 12px 10px; gap: 6px 10px; }
  .v-player .pl-crit__name { grid-area: name; }
  .v-player .pl-crit__res { grid-area: res; justify-content: flex-start; min-width: 0; }
  .v-player .pl-crit__pts { grid-area: pts; }
  .v-player .pl-crit__note { grid-area: note; padding-left: 0; }
  .v-player .pl-crit__res { padding-left: 30px; }
  .v-player .pl-mark__summary { padding: 14px 16px 16px; }
  .v-player .pl-prov { padding: 11px 16px; }
  .v-player .pl-prov__ask { margin-left: 0; }
  .v-player .pl-mark__actions { padding: 14px 16px 16px; }
  .v-player .pl-mark__actions .btn { width: 100%; min-height: 46px; }
  .v-player .pl-ghost { line-height: 26px; padding: 0 10px; }

  .v-player .pl-foot__in { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .v-player .pl-foot__back { width: 48px; min-height: 48px; padding: 0; flex: none; }
  .v-player .pl-foot__back span { display: none; }
  .v-player .pl-foot__next { min-height: 48px; flex: 1; min-width: 0; margin-left: 0; }
  .v-player .pl-foot__hint { display: none; }
  .v-player .pl-save { flex: none; max-width: 42%; }

  .v-player .pl-done__hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; padding: 22px 18px; }
  .v-player .pl-done__ring .ring { width: 96px; height: 96px; }
  .v-player .pl-done__num { padding-top: 31px; }
  .v-player .pl-done__num .num { font-size: 34px; }
  .v-player .pl-done__num small { font-size: 14px; }
  .v-player .pl-done__actions { order: 1; }
  .v-player .pl-done__grid { order: 2; }
  .v-player .pl-done__copy { justify-items: center; }
  .v-player .pl-done__title { font-size: 24px; }
  .v-player .pl-done__facts { justify-content: center; gap: 14px 24px; }
  .v-player .pl-done__facts > div { justify-items: center; }
  .v-player .pl-done__facts dd { justify-content: center; }
  .v-player .pl-done__rule { text-align: left; }
  .v-player .pl-done__grid--one .pl-next__list { grid-template-columns: minmax(0, 1fr); }
  .v-player .pl-done__actions .btn { width: 100%; min-height: 48px; }
  .v-player .pl-verify { padding: 24px 18px 22px; margin-top: 8px; }
  .v-player .pl-verify .pl-gate__cta { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .v-player .pl-ring__arc { transition: opacity 150ms linear; }
  .v-player .pl-orbit { animation: none; opacity: 0; }
}
html[data-motion="reduced"] .v-player .pl-ring__arc { transition: opacity 150ms linear; }
html[data-motion="reduced"] .v-player .pl-orbit { animation: none; opacity: 0; }
html[data-motion="reduced"] .v-player .pl-guide__bar i { transition: none; }
