/* VELOCITY — the screens around a run: the title, character creation,
 * the ending.
 */

/* ============ main menu ============ */
.menu-screen {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: 6vh 0 4vh 9vw; max-width: 760px;
  overflow-y: auto; scrollbar-width: none;
}
.menu-screen::-webkit-scrollbar { display: none; }
.menu-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(120, 200, 255, 0.018) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }
.wordmark {
  display: flex; margin: 0 0 0 -4px;
  font: 700 calc(104px * var(--text-scale))/0.92 var(--font-display);
  letter-spacing: 0.08em;
  user-select: none;
}
.wm-ch {
  display: inline-block;
  background: linear-gradient(180deg, #FFFFFF 20%, #BFF7EE 60%, #5FD8E8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(47, 227, 203, 0.28));
  animation: wm-in 900ms var(--ease-out) calc(220ms + var(--i) * 55ms) backwards;
}
@keyframes wm-in { from { opacity: 0; transform: translateY(40px) scaleY(1.3); filter: blur(10px) drop-shadow(0 0 22px rgba(47, 227, 203, 0)); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 22px rgba(47, 227, 203, 0.28)); } }
.menu-items { margin-top: 5.5vh; display: flex; flex-direction: column; gap: 4px; width: min(470px, 86vw); }
.menu-item {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 14px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
  animation: mi-in 700ms var(--ease-out) calc(900ms + var(--i) * 70ms) backwards;
}
@keyframes mi-in { from { opacity: 0; transform: translateX(-26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.menu-item::before { /* the glowing edge that marks where you are */
  content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  transform: scaleY(0); transition: transform 260ms var(--ease-out);
}
.mi-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: all 220ms var(--ease-out); }
.mi-label { font: 600 calc(19px * var(--text-scale))/1.2 var(--font-display); white-space: nowrap; letter-spacing: -0.005em; }
.mi-lead { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); min-width: 20px; opacity: 0.6; }
.mi-detail { font: 500 calc(11.5px * var(--text-scale))/1 var(--font-mono); color: var(--text-3); white-space: nowrap; }
.menu-item:hover, .menu-item.focused {
  background: linear-gradient(90deg, rgba(47, 227, 203, 0.12), rgba(47, 227, 203, 0.02) 70%, transparent);
  border-color: rgba(47, 227, 203, 0.25);
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.menu-item:hover::before, .menu-item.focused::before { transform: scaleY(1); }
.menu-item:hover .mi-ico, .menu-item.focused .mi-ico { color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }
.menu-item:hover .mi-detail, .menu-item.focused .mi-detail { color: var(--teal-ink); }
.menu-patch { margin-top: 5vh; max-width: 470px; color: var(--amber-ink); animation: fade-in 900ms var(--ease-out) 1500ms backwards; }

/* ============ chargen ============ */
.chargen { max-width: 1160px; margin: 0 auto; padding: 6vh var(--page-margin) 28px; height: 100%; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; }
.chargen::-webkit-scrollbar { display: none; }
.cg-head { margin-bottom: 26px; animation: rise-in 600ms var(--ease-out) backwards; }
.cg-step { display: flex; align-items: center; gap: 12px; color: var(--teal-ink); letter-spacing: 0.24em; }
.cg-dots { display: inline-flex; gap: 5px; }
.cg-dot { width: 22px; height: 3px; border-radius: 2px; background: var(--track); }
.cg-dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.cg-title { font: 700 calc(42px * var(--text-scale))/1.08 var(--font-display); letter-spacing: -0.025em; margin-top: 10px; color: #fff; }
.cg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
/* a phone keeps the first year in view (the file sits below the form there) */
.cg-sum { display: none; flex-basis: 100%; align-items: center; gap: 12px; color: var(--text-2); font-size: calc(12px * var(--text-scale)); }
.cg-sum > span { display: inline-flex; align-items: center; gap: 4px; }
.cg-sum .h-energy { color: var(--c-energy-ink); }
.cg-sum .h-money { color: var(--c-money-ink); }
.cg-back { gap: 6px; }
.cg-begin { gap: 12px; padding: 16px 28px; font-size: calc(16px * var(--text-scale)); border-radius: 14px; }

.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.profile-card {
  --pcol: var(--teal);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 34, 53, 0.9), rgba(10, 17, 28, 0.94));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-panel);
  padding: 22px 24px 20px;
  cursor: pointer;
  transition: border-color 240ms var(--ease-out), transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
  animation: pc-in 800ms var(--ease-out) calc(140ms + var(--i) * 110ms) backwards;
}
@keyframes pc-in { from { opacity: 0; transform: translateY(40px) rotateX(10deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.profile-card::before { /* the profile's light, pooled at the top */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 70% at 50% -10%, color-mix(in srgb, var(--pcol) 22%, transparent), transparent 60%);
  opacity: 0.8; transition: opacity 300ms var(--ease-out);
}
.profile-card::after { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--pcol), transparent); box-shadow: 0 0 14px var(--pcol); }
.profile-card > * { position: relative; }
.profile-card.p-0 { --pcol: var(--teal); }
.profile-card.p-1 { --pcol: var(--c-energy); }
.profile-card.p-2 { --pcol: var(--c-tech); }
/* the challenges, by starting age: a life with a history (people rose, body mint, money gold) */
.profile-card.ch-0 { --pcol: var(--c-people); }
.profile-card.ch-1 { --pcol: var(--c-body); }
.profile-card.ch-2 { --pcol: var(--c-money); }
.profile-card.is-challenge { animation-delay: calc(480ms + var(--i) * 110ms); }
.cg-section { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 34px 0 14px; animation: rise-in 600ms var(--ease-out) 380ms backwards; }
.cg-section-title { font: 700 calc(22px * var(--text-scale))/1.2 var(--font-display); letter-spacing: -0.01em; color: #fff; }
.profile-brief { display: flex; flex-direction: column; margin: 6px 0 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pcol) 8%, rgba(4, 9, 16, 0.5)); border: 1px solid color-mix(in srgb, var(--pcol) 30%, transparent); }
.pb-text { font: 550 calc(13.5px * var(--text-scale))/1.45 var(--font-sans); color: var(--text); }
.profile-carry { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-carry .cond-chip { cursor: inherit; }
.profile-carry .cond-chip:hover { transform: none; }
.profile-card:hover, .profile-card.focused {
  border-color: color-mix(in srgb, var(--pcol) 60%, transparent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift), 0 0 44px color-mix(in srgb, var(--pcol) 20%, transparent);
}
.profile-card:hover::before, .profile-card.focused::before { opacity: 1; }
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.profile-ringbox { position: relative; width: 84px; height: 84px; flex: none; display: grid; place-items: center; }
.profile-ringbox .age-ring { position: absolute; inset: 0; }
.age-ring .ar-track { fill: none; stroke: var(--track); stroke-width: 5; }
.age-ring .ar-fill { fill: none; stroke: var(--pcol); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--pcol)); transition: stroke-dasharray 600ms var(--ease-out); }
.age-ring .ar-tick { stroke: var(--text-4); stroke-width: 1.2; }
.profile-age { font: 700 calc(30px * var(--text-scale))/1 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.profile-name { font: 700 calc(22px * var(--text-scale))/1.2 var(--font-display); margin-bottom: 10px; color: #fff; letter-spacing: -0.01em; }
.profile-top .profile-name { margin-bottom: 0; }
.profile-bio { font: 400 calc(14px * var(--text-scale))/1.6 var(--font-sans); color: var(--text-2); margin-bottom: 8px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: auto 0 0; padding-top: 14px; }
.pstat { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(4, 9, 16, 0.45); border: 1px solid var(--line-soft); }
.pstat .caps { font-size: calc(8.5px * var(--text-scale)); }
.pstat .mono-s { font-size: calc(13px * var(--text-scale)); color: #fff; }

.cg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.cg-form:not(.enter) .cg-head { animation: none; } /* a change redraws the form: only its entry rises in */
.cg-form.enter .cg-fields { animation: rise-in 520ms var(--ease-out) backwards; }
.cg-form.enter .cg-readout { animation: rise-in 620ms var(--ease-out) 120ms backwards; }
.cg-fields { background: linear-gradient(180deg, rgba(21, 32, 50, 0.7), rgba(12, 19, 31, 0.7)); border: 1px solid var(--line); border-radius: 18px; padding: 8px 22px; }
.cg-fields .field:last-child { border-bottom: none; }
.cg-fields .field { grid-template-columns: minmax(0, 1fr) minmax(110px, 170px) auto; }
.cg-readout {
  position: sticky; top: 0;
  background: linear-gradient(180deg, rgba(22, 34, 53, 0.92), rgba(10, 17, 28, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  padding: 16px 18px 16px;
  overflow: hidden;
}
.cg-readout::after { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); }
.rd-head { margin-bottom: 4px; }
.rd-title { color: var(--teal-ink); }
.rd-body { height: 230px; margin: 4px -6px 6px; position: relative; }
.rd-body .anat { width: 100%; height: 100%; }
.rd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.rd-l { font: 450 calc(12.5px * var(--text-scale))/1.5 var(--font-sans); color: var(--text-2); white-space: nowrap; }
.rd-row .mono-s { text-align: right; color: #fff; }
.rd-rule { border: none; border-top: 1px solid var(--line-soft); margin: 7px 0; }
.rd-meter { height: 5px; border-radius: 3px; background: var(--track); margin: 3px 0 2px; overflow: hidden; }
.rd-meter-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FF7A2E, #FFC08A); box-shadow: 0 0 8px rgba(255, 148, 70, 0.6); transition: width 420ms var(--ease-out); }
/* a challenge's history in the form: what you carry, and an age that is fixed */
.field-carry { align-items: start; }
.field-carry .carry-chips { grid-column: 2 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.field-carry .cond-chip { cursor: help; }
.organ-chip .ico { flex: none; color: var(--c-body-ink); }
.val-fixed { justify-self: end; font: 600 calc(14px * var(--text-scale))/1.3 var(--font-mono); color: #fff; min-width: 84px; text-align: center; padding: 6px 0; border-radius: 8px; border: 1px dashed var(--line); }
/* the habits you already have: toggles (a habit's tone is its identity; teal marks the chosen) */
.field-habits .habit-togs { grid-column: 2 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* the variations: more toggles than the row has room for, so a row of their own */
.field-mods .habit-togs { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
.habit-tog { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font: 550 calc(12px * var(--text-scale))/1 var(--font-sans); cursor: pointer; transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.habit-tog:hover, .habit-tog.focused { border-color: var(--line-strong); color: var(--text); }
.habit-tog .ht-box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: #032621; }
.habit-tog.on { color: #fff; background: rgba(47, 227, 203, 0.1); border-color: rgba(47, 227, 203, 0.45); }
.habit-tog.on .ht-box { background: var(--accent); border-color: var(--accent); }
.habit-tog.fixed { cursor: not-allowed; }
.habit-tog.fixed.on { background: rgba(255, 148, 70, 0.1); border-color: rgba(255, 148, 70, 0.45); }
.habit-tog.fixed.on .ht-box { background: var(--orange); border-color: var(--orange); }

/* ============ run summary: the ending scene ============ */
.summary-scene {
  --sc-ground: 3, 6, 11;
  --sc-ink: #EEF4FA;
  --sc-t4: #B8C6D6;
  --sc-t5: #8496AB;
  --sc-line: rgba(200, 225, 255, 0.14);
  --sc-red: var(--danger-ink);
  --fam: var(--amber);
  background: #02050A;
}
.summary-scene.fam-biological { --fam: #5BE8A8; }
.summary-scene.fam-substrate { --fam: #B9A2FF; }
.summary-scene.fam-preservation { --fam: #86BFFF; }
.summary-scene.fam-failure { --fam: #FF9A7A; }
.summary-backdrop { position: absolute; inset: 0; overflow: hidden; }
.summary-art {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  filter: saturate(0.85) contrast(1.05) brightness(0.9);
  animation: sum-art 2400ms var(--ease-out) backwards, sum-drift 60s linear 2400ms infinite alternate;
}
.summary-backdrop::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 34%, transparent 50%, rgba(2, 5, 10, 0.6) 100%), linear-gradient(180deg, rgba(2, 5, 10, 0.3), transparent 30%); }
.summary-backdrop::after { content: ''; position: absolute; inset: 0; z-index: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.07; mix-blend-mode: overlay; }
.summary { position: relative; z-index: 1; height: 100%; overflow-y: auto; scrollbar-width: none; }
.summary::-webkit-scrollbar { display: none; }
.summary-hero { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.summary-band { background: linear-gradient(180deg, rgba(var(--sc-ground), 0) 0%, rgba(var(--sc-ground), 0.62) 42%, rgba(var(--sc-ground), 0.94) 100%); padding-top: 140px; }
.summary-band-inner { max-width: 1020px; margin: 0 auto; padding: 0 var(--page-margin); }
/* the family's accent over the title */
.summary-rule { display: block; width: 34px; height: 2px; border-radius: 2px; background: var(--fam); box-shadow: 0 0 10px var(--fam); animation: sum-rise 1100ms var(--ease-out) 500ms backwards; }
.summary-title { font: 700 clamp(38px, 6vw, 76px)/1.02 var(--font-display); color: #fff; letter-spacing: -0.03em; text-wrap: balance; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); margin: 12px 0 6px; animation: sum-title 1600ms var(--ease-out) 650ms backwards; }
@keyframes sum-title { from { opacity: 0; transform: translateY(20px); letter-spacing: 0.06em; filter: blur(12px); } to { opacity: 1; transform: none; letter-spacing: -0.03em; filter: none; } }
.summary-cue { text-align: center; padding: 16px 0 12px; font-size: 14px; color: rgba(238, 244, 250, 0.5); animation: sum-bob 2.4s ease-in-out 2s infinite backwards; }
.summary-body { background: rgba(var(--sc-ground), 0.94); border-top: 1px solid var(--sc-line); }
@supports (backdrop-filter: blur(1px)) { .summary-body { background: rgba(var(--sc-ground), 0.78); backdrop-filter: blur(20px) saturate(0.9); } }
.summary-body-inner { max-width: 1020px; margin: 0 auto; padding: 6px var(--page-margin) 30px; }
.summary-scene .t1, .summary-scene .t2, .summary-scene .t3 { color: var(--sc-ink); }
.summary-scene .t3 { font-size: calc(17px * var(--text-scale)); line-height: 1.72; }
.summary-scene .t4, .summary-scene .caps { color: var(--sc-t4); }
.summary-scene .t5 { color: var(--sc-t5); }
.summary-scene .mono-s { color: #fff; }
.summary-scene .summary-epi { color: var(--sc-t4); }
.summary-scene .btn { background: rgba(238, 244, 250, 0.06); border-color: rgba(238, 244, 250, 0.3); color: var(--sc-ink); box-shadow: none; }
.summary-scene .btn:hover { background: rgba(238, 244, 250, 0.12); border-color: var(--fam); box-shadow: 0 0 22px color-mix(in srgb, var(--fam) 25%, transparent); }
.summary-scene .btn.focused { border-color: var(--fam); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fam) 30%, transparent); }
.summary-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; margin-top: 38px; }
.summary-cols > div > p { animation: rise-in 800ms var(--ease-out) backwards; }
.summary-ledger { align-self: start; border: 1px solid var(--sc-line); border-radius: 18px; background: linear-gradient(180deg, rgba(20, 30, 46, 0.6), rgba(6, 11, 19, 0.6)); padding: 18px 20px; box-shadow: var(--shadow-panel); }
.summary-ledger > .caps:first-child { color: var(--fam); }
.summary-stat { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sc-line); padding: 7px 0; }
.summary-ledger svg line, .summary-ledger svg polyline { stroke: color-mix(in srgb, var(--fam) 70%, #fff); }
.summary-ledger { --spark: var(--fam); }
.summary-ledger .spark-end { fill: #fff; }
/* the life, as a ruler from the first age to the last */
.life-ruler { position: relative; height: 34px; margin: 12px 2px 0; cursor: default; }
.life-track { position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 2px; background: var(--track); }
.life-lived { position: absolute; top: 14px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(47, 227, 203, 0.25), var(--accent)); box-shadow: 0 0 8px rgba(47, 227, 203, 0.5); }
.life-start { position: absolute; top: 11px; width: 1px; height: 9px; background: var(--teal-ink); opacity: 0.7; }
.life-mark { position: absolute; top: 8px; width: 3px; height: 15px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px rgba(127, 243, 226, 0.9); }
.life-age { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); font: 700 calc(10px * var(--text-scale))/1 var(--font-mono); color: #fff; padding: 1px 3px; }
.life-tick { position: absolute; top: 19px; width: 1px; height: 3px; background: var(--line-strong); }
.life-tick.major { height: 5px; }
.life-tick-l { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: 500 calc(9px * var(--text-scale))/1 var(--font-mono); color: var(--text-4); }
.sum-ruler { margin: 4px 2px 16px; }
.sum-ruler .life-track { background: rgba(238, 244, 250, 0.14); }
.sum-ruler .life-lived { background: linear-gradient(90deg, color-mix(in srgb, var(--fam) 30%, transparent), var(--fam)); box-shadow: 0 0 10px var(--fam); }
.sum-ruler .life-start { background: var(--fam); }
.sum-ruler .life-mark { background: #fff; box-shadow: 0 0 10px var(--fam); }
.sum-ruler .life-age { color: #fff; }
.sum-ruler .life-tick { background: rgba(238, 244, 250, 0.3); }
.sum-ruler .life-tick-l { color: var(--sc-t5); }
@keyframes sum-art { from { opacity: 0; transform: scale(1.08); filter: saturate(0.3) brightness(0.3) blur(6px); } to { opacity: 1; transform: none; filter: saturate(0.85) contrast(1.05) brightness(0.9); } }
@keyframes sum-drift { from { transform: none; } to { transform: scale(1.07) translate(-1%, -1%); } }
@keyframes sum-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sum-bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 0.9; } }
body.reduce-motion .summary-art { animation: none; }

@media (max-width: 1280px) and (min-width: 1024px) {
  .wordmark { font-size: calc(84px * var(--text-scale)); }
  .menu-screen { padding-left: 6vw; }
}

/* the ending's life chart: organ age against real age */
.life-chart { margin-top: 34px; padding: 18px 20px 12px; border: 1px solid var(--sc-line); border-radius: 18px; background: linear-gradient(180deg, rgba(20, 30, 46, 0.6), rgba(6, 11, 19, 0.6)); animation: rise-in 900ms var(--ease-out) backwards; }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.lc-head .caps { color: var(--fam); }
.lc-verdict { font: 600 calc(14px * var(--text-scale))/1.3 var(--font-display); }
.lc-verdict.young { color: #6FF0B8; }
.lc-verdict.old { color: #FFCB6B; }
.lc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lc-grid { stroke: rgba(200, 225, 255, 0.08); }
.lc-ax { font: 500 11px var(--font-mono); fill: var(--sc-t5); }
.lc-real { fill: none; stroke: rgba(238, 244, 250, 0.45); stroke-width: 1.5; stroke-dasharray: 5 5; }
.lc-organ { fill: none; stroke: var(--fam); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--fam)); stroke-dasharray: 1; stroke-dashoffset: 1; animation: lc-draw 2400ms var(--ease-out) 600ms forwards; }
@keyframes lc-draw { to { stroke-dashoffset: 0; } }
.lc-band { opacity: 0; animation: fade-in 1200ms var(--ease-out) 2000ms forwards; }
.lc-young { fill: rgba(61, 220, 151, 0.18); }
.lc-old { fill: rgba(245, 181, 68, 0.18); }
.lc-end { fill: #fff; stroke: var(--fam); stroke-width: 3; opacity: 0; animation: pop-in 500ms var(--ease-spring) 2900ms forwards; }
.lc-lab { font: 600 12px var(--font-sans); fill: var(--sc-t4); }
.lc-lab-o { fill: var(--fam); }
body.reduce-motion .lc-organ { stroke-dashoffset: 0; }

/* the ending's record: the turns you took */
.summary-turn { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 3px 0; }
.summary-turn b { font-weight: 650; color: inherit; }
