/* RepDeck — one warm dark world, phase color floods the player. */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("/fonts/instrument.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141210;
  --bg-2: #1b1815;
  --surface: #211d19;
  --surface-2: #2a2621;
  --line: #36312b;
  --line-2: #45403a;
  --ink: #f5efe7;
  --ink-2: #bfb4a6;
  --ink-3: #8a8073;
  --work: #ff5c33;
  --work-ink: #1a0e09;
  --rest: #36d6a7;
  --rest-ink: #06201a;
  --ready: #ffb42e;
  --ready-ink: #231600;
  --done: #9fc5ff;
  --phase: var(--work);
  --phase-ink: var(--work-ink);
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Bricolage", "Instrument", system-ui, sans-serif;
  --body: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--work);
  accent-color: var(--work);
  overscroll-behavior-y: none;
}
::selection { background: var(--work); color: var(--work-ink); }
:focus-visible { outline: 2px solid var(--phase); outline-offset: 3px; border-radius: 6px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; margin: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input { min-width: 0; }
input::placeholder { color: var(--ink-3); }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { min-height: 100dvh; display: flex; flex-direction: column; }
.page {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom));
  animation: page-in 420ms var(--ease-out) both;
}
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- type ---------- */
.wordmark { font-family: var(--display); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--ink); }
.wordmark .mark { width: 1.35em; height: 1.35em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
h2 { font-size: 1.5rem; }
p { margin: 0; }
.lede { color: var(--ink-2); font-size: 1.05rem; max-width: 34ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 48px; padding: 0 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 160ms var(--ease-out), background 160ms, border-color 160ms, opacity 160ms;
}
.btn:hover { background: var(--line); border-color: var(--line-2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--work); color: var(--work-ink); border-color: transparent; }
.btn-primary:hover { background: #ff7048; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-lg { height: 60px; padding: 0 2rem; font-size: 1.1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 999px; }
.btn-danger { color: #ff8a70; }
.btn-danger:hover { background: rgba(255, 92, 51, 0.12); color: #ffa08c; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.input {
  height: 48px; padding: 0 0.9rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: border-color 140ms, background 140ms;
}
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: var(--work); outline: none; background: var(--bg-2); }
.input-title { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; height: 60px; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { height: 34px; padding: 0 0.8rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); transition: background 140ms, color 140ms; }
.seg-4 { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.seg-4 button { height: 40px; padding: 0; }
.seg button[aria-pressed=true] { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.35); }

.step { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; height: 40px; }
.step button { width: 38px; height: 100%; display: grid; place-items: center; color: var(--ink-2); border-radius: 9px; transition: background 120ms, color 120ms; }
.step button:hover { background: var(--surface-2); color: var(--ink); }
.step button:active { background: var(--line); }
.step input { width: 3.2ch; text-align: center; background: transparent; border: 0; font-weight: 700; font-family: var(--display); font-size: 1.1rem; height: 100%; padding: 0; }
.step input:focus { outline: none; }
.step .unit { font-size: 0.8rem; color: var(--ink-3); padding-right: 0.5rem; margin-left: -0.15rem; }

/* ---------- home ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.topbar.tight { margin-bottom: 0; }
.row-actions { display: flex; gap: 0.25rem; }
.row-actions.center { justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.row-actions.center .btn-lg { height: 60px; }
.sprite { position: absolute; }
.hero { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.deck-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deck-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.deck-row .name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-align: left; color: var(--ink); line-height: 1.15; display: block; width: 100%; }
.deck-row .name:hover { color: var(--work); }
.deck-row .meta { color: var(--ink-2); font-size: 0.9rem; margin-top: 0.2rem; }
.deck-row .fmt { color: var(--ink); font-weight: 600; }
.deck-row .last { color: var(--rest); }
.deck-row-body { min-width: 0; }
.play-fab { width: 56px; height: 56px; border-radius: 999px; background: var(--work); color: var(--work-ink); display: grid; place-items: center; transition: transform 160ms var(--ease-out), background 160ms; box-shadow: 0 6px 16px -8px rgba(0,0,0,0.7); }
.play-fab:hover { background: #ff7048; transform: scale(1.05); }
.play-fab:active { transform: scale(0.95); }
.play-fab svg { width: 1.6rem; height: 1.6rem; margin-left: 2px; }

.starters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.starter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; width: 100%; text-align: left; padding: 0.95rem 0; border-bottom: 1px solid var(--line); transition: color 140ms; }
.starter b { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; display: block; line-height: 1.15; color: var(--ink); }
.starter:hover b { color: var(--work); }
.starter span { color: var(--ink-2); font-size: 0.9rem; }
.starter .go { color: var(--work); font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--work) 45%, transparent); transition: background 140ms, color 140ms; }
.starter:hover .go { background: var(--work); color: var(--work-ink); }
.section-title { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin: 2.25rem 0 0.75rem; }
.footnote { margin-top: 3rem; color: var(--ink-3); font-size: 0.85rem; max-width: 42ch; }
.footnote a { color: var(--ink-2); }

/* ---------- editor ---------- */
.editor { display: flex; flex-direction: column; gap: 1.5rem; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.card-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 0.75rem; padding: 0.85rem 0.85rem 0.85rem 0.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); animation: row-in 360ms var(--ease-out) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
.card-row .idx { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink-3); width: 1.6rem; height: 48px; display: grid; place-items: center; }
.card-row .name { background: transparent; border: 0; border-bottom: 1px solid transparent; border-radius: 0; height: 48px; padding: 0 0.25rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.card-row .name:hover { border-bottom-color: var(--line-2); }
.card-row .name:focus { border-bottom-color: var(--work); background: transparent; }
.card-row .controls { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.card-row .load { height: 40px; flex: 1 1 140px; font-size: 0.9rem; }
.card-row .controls .step { height: 40px; }
.card-row .rest-wrap { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-3); font-size: 0.85rem; }
.card-row .rest-wrap .step { height: 36px; }
.card-row .rest-wrap .step button { width: 32px; }
.card-row .tools { display: inline-flex; gap: 0.1rem; align-self: center; }
.card-row .tools .btn-icon { width: 36px; height: 36px; color: var(--ink-3); border: 0; background: transparent; }
.card-row .tools .btn-icon:hover { background: var(--surface-2); color: var(--ink); }
.card-row .tools .btn-icon:disabled { opacity: 0.3; }
.card-row.is-invalid { border-color: rgba(255, 92, 51, 0.5); }

.deck-settings { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.deck-settings .field { flex: 0 1 auto; }
.deck-settings .field.grow { flex: 1 1 240px; }
.deck-settings .hint { flex-basis: 100%; margin: -0.25rem 0 0; }
.deck-settings:empty { display: none; }
.add-card { justify-content: flex-start; height: 56px; border-style: dashed; background: transparent; color: var(--ink-2); }
.add-card:hover { color: var(--ink); background: var(--surface); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 0.75rem 20px calc(0.75rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 60%, transparent); pointer-events: none; }
.dock-inner { max-width: 600px; margin: 0 auto; display: flex; gap: 0.6rem; pointer-events: auto; }
.dock-inner .btn { flex: 1; min-width: 0; padding-left: 1rem; padding-right: 1rem; }

.summary-line { color: var(--ink-2); font-size: 0.95rem; }
.summary-line b { color: var(--ink); font-weight: 600; }

/* ---------- player ---------- */
.player {
  min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto;
  padding: max(14px, env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));
  max-width: 1080px; margin: 0 auto; width: 100%;
}
body[data-phase] { --phase-wash: color-mix(in oklab, var(--phase) 14%, var(--bg)); transition: background-color 700ms var(--ease-out); }
body[data-phase=work] { --phase: var(--work); --phase-ink: var(--work-ink); background-color: var(--phase-wash); }
body[data-phase=rest] { --phase: var(--rest); --phase-ink: var(--rest-ink); background-color: var(--phase-wash); }
body[data-phase=ready] { --phase: var(--ready); --phase-ink: var(--ready-ink); background-color: var(--phase-wash); }
body[data-phase=done] { --phase: var(--done); --phase-ink: #0a1a2c; background-color: var(--phase-wash); }
body[data-phase=paused] { --phase: var(--ink-3); --phase-ink: var(--ink); background-color: var(--bg); }

.p-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.p-top .title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-title { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 0.1rem; }
.p-top .round { color: var(--ink-2); font-size: 0.9rem; }

.progress { display: flex; gap: 3px; height: 6px; margin: 0.9rem 0 0; }
.progress i { flex: 1 1 0; height: 100%; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.progress i.rest { flex-grow: 0.4; }
.progress i.done { background: var(--phase); opacity: 0.55; }
.progress i.cur::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--fill, 0)); background: var(--phase); transition: transform 120ms linear; }

.p-body { display: grid; grid-template-rows: auto 1fr; gap: 1rem; min-height: 0; }
.p-body.is-finished { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.p-clock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem 0 0.5rem; }
.p-clock > div { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 100%; }
.p-side { min-height: 0; display: flex; flex-direction: column; }
.p-side-head { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 0.4rem; }
.phase-tag { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--phase); }
.card-name { font-size: clamp(1.6rem, 6.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; animation: deal 520ms var(--ease-out) both; }
@keyframes deal { from { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(10px); } }
.clock { font-family: var(--display); font-weight: 750; font-size: clamp(4.5rem, 24vw, 11rem); letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; color: var(--ink); margin: 0.35rem 0 0; will-change: transform; }
.clock.warn { color: var(--phase); animation: tick 480ms var(--ease-out); }
@keyframes tick { from { transform: scale(1.06); } }
.sub { color: var(--ink-2); font-size: 1.05rem; }
.sub b { color: var(--ink); }
.done-btn { margin-top: 0.6rem; height: 60px; padding: 0 2rem; max-width: 100%; background: var(--phase); color: var(--phase-ink); border: 0; font-size: 1.15rem; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.7); }
.done-btn:hover { background: color-mix(in oklab, var(--phase) 88%, white); }

.next-up { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--ink-2); font-size: 0.95rem; padding: 0.5rem 0 1rem; min-height: 2.6rem; }
.next-up b { color: var(--ink); font-weight: 600; }

.p-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-top: 0.75rem; }
.p-controls .side { display: flex; gap: 0.4rem; }
.p-controls .side.r { justify-content: flex-end; }
.p-controls .btn-icon { width: 52px; height: 52px; background: var(--surface); border-color: var(--line); }
.big-toggle { width: 84px; height: 84px; border-radius: 999px; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform 160ms var(--ease-out), background 160ms; box-shadow: 0 12px 30px -14px rgba(0,0,0,0.8); }
.big-toggle svg { width: 2.2rem; height: 2.2rem; }
.big-toggle:hover { transform: scale(1.04); }
.big-toggle:active { transform: scale(0.95); }

.finish { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 0; }
.finish .clock { font-size: clamp(3.5rem, 18vw, 7rem); }
.finish .score-big { letter-spacing: -0.03em; }
.finish .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1rem; }

/* ---------- shared deck preview ---------- */
.preview-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.preview-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.preview-list li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7); animation: toast-in 320ms var(--ease-out) both; z-index: 10; max-width: calc(100% - 40px); text-align: center; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (min-width: 860px) {
  .p-body { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr; align-items: center; gap: 2.5rem; }
  .p-clock { padding: 0; }
  .p-side { max-height: 70dvh; }
  .moves.live { overflow: auto; }
  .clock { font-size: clamp(6rem, 12vw, 11rem); }
}
@media (max-width: 420px) {
  .card-row { grid-template-columns: 1fr auto; padding-left: 0.85rem; }
  .card-row .idx { display: none; }
  .card-row .controls { grid-column: 1 / -1; }
  .card-row .tools .btn-icon { width: 32px; height: 32px; }
  .p-controls .btn-icon { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- v2: blocks, selects, chips, paste ---------- */
.block { display: flex; flex-direction: column; gap: 0.75rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.block-head h2 { font-size: 1.15rem; }
.small-btn { height: 36px; padding: 0 0.7rem; font-size: 0.875rem; }
.hint { color: var(--ink-3); font-size: 0.875rem; line-height: 1.45; max-width: 60ch; }
.is-off { opacity: 0.4; }
.select { height: 40px; padding: 0 2rem 0 0.75rem; border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfb4a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 1rem; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.9rem; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select:hover { border-color: var(--line-2); }
.select:focus { border-color: var(--work); outline: none; }
.scheme-tag { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--work); letter-spacing: 0.02em; padding: 0 0.25rem; }
.input.scheme { height: 40px; width: 9ch; font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
.chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.1rem 0 0.4rem; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; font-weight: 600; transition: background 120ms, color 120ms, border-color 120ms; }
.chip:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.chip:active { background: var(--work); color: var(--work-ink); border-color: transparent; }
.paste { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.textarea { height: auto; padding: 0.7rem 0.9rem; resize: vertical; line-height: 1.45; font-family: var(--body); }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.results li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.results li span:first-child { font-weight: 600; }

/* ---------- v2: movement list ---------- */
.moves { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.moves li { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); transition: color 200ms, background 200ms; }
.mv-idx { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink-3); }
.mv-name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.2; min-width: 0; }
.mv-load { display: block; font-family: var(--body); font-weight: 500; font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0; }
.mv-amt { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink-2); white-space: nowrap; }
.moves.live li { padding: 0.65rem 0.6rem; margin: 0 -0.6rem; border-radius: 10px; border-bottom-color: transparent; }
.moves.live { border-top: 0; }
.moves.live li + li { border-top: 1px solid var(--line); }
.moves.live li.cur { background: color-mix(in oklab, var(--phase) 22%, var(--bg)); color: var(--ink); border-top-color: transparent; }
.moves.live li.cur + li { border-top-color: transparent; }
.moves.live li.cur .mv-idx, .moves.live li.cur .mv-amt { color: var(--phase); }
.moves.live li.cur .mv-name { font-size: 1.2rem; }
.moves.live li.up .mv-idx, .moves.live li.up .mv-amt { color: var(--phase); }
.moves.live li.done { color: var(--ink-3); }
.moves.live li.done .mv-name, .moves.live li.done .mv-amt, .moves.live li.done .mv-load { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--ink-3) 60%, transparent); }
.moves.live li.done .mv-idx { color: var(--phase); }
.player[data-fmt=amrap] .moves.live li.cur, .player[data-fmt=fortime] .moves.live li.cur { cursor: pointer; }
.player[data-fmt=amrap] .moves.live li.cur:hover, .player[data-fmt=fortime] .moves.live li.cur:hover { background: color-mix(in oklab, var(--phase) 30%, var(--bg)); }

/* ---------- v2: overview + scores ---------- */
.fmt-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 0.75rem; border-radius: 999px; background: color-mix(in oklab, var(--work) 18%, var(--bg)); color: var(--work); font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; white-space: nowrap; }
.fmt-badge.small { height: 22px; padding: 0 0.55rem; font-size: 0.72rem; }
.ov-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.ov-head h1 { font-size: clamp(2rem, 8vw, 3rem); }
.notes { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem 1.25rem; margin: 1.5rem 0 1rem; }
.facts div { display: flex; flex-direction: column; gap: 0.15rem; }
.facts dt { font-size: 0.78rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.score { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.35rem; }
.score b { color: var(--ink); }
.splits { list-style: none; margin: 0.75rem 0 0; padding: 0; width: 100%; max-width: 320px; border-top: 1px solid var(--line); }
.splits li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.splits .num { font-family: var(--display); font-weight: 700; }
