.worlds-page { position: relative; isolation: isolate; }
.worlds-thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; }
.worlds-thread path { fill: none; stroke: url(#thread-colour); stroke-width: 1.25; stroke-dasharray: 1000; stroke-dashoffset: 1000; stroke-linecap: round; }
.worlds-thread circle { fill: #dfcdeb; }
.worlds {
  position: relative;
  --live: #bce6cc;
  --branch: #cfb3ed;
  --surface-deep: #2b2732;
  background: linear-gradient(180deg, var(--surface), var(--surface-deep) 55%, var(--studio));
  padding: clamp(42px,5.5vw,88px) 0 clamp(56px,7vw,105px);
}
.worlds-frame { max-width: 1270px; }
.worlds-intro h2 { font-size: clamp(53px,6.1vw,91px); font-weight: 425; letter-spacing: -.071em; line-height: 1.05; }
.worlds-intro em { color: #e1ceee; font-family: var(--font-accent); font-size: 1.02em; font-weight: 400; letter-spacing: -.055em; }
.score { position: relative; margin-top: clamp(20px,2.8vw,38px); border-block: 1px solid #514a58; background: radial-gradient(ellipse at 42% 73%, #373040 0, #2e2935 50%, #2b2732 88%); }
.score-symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.score-bar, .score-key, .score-key > span, .score-play { display: flex; align-items: center; }
.score-bar { justify-content: space-between; gap: 12px; min-height: 54px; padding: 11px 0 7px; }
.score-key { gap: 20px; color: #d1c8d6; font-size: 12px; }
.score-key > span { gap: 7px; }
.score-key > span::before { content: ""; width: 19px; height: 2px; border-radius: 1px; background: #b5d9c2; }
.score-key > span + span::before { background: var(--branch); }
.score-play { min-width: 76px; min-height: 32px; padding: 4px 11px; justify-content: center; gap: 7px; color: #d6cedb; border: 1px solid #62586a; border-radius: 20px; font-size: 12px; }
.score-play:hover { background: #403847; }
.score-play i { display: block; width: 8px; height: 9px; border-inline: 2px solid currentColor; }
.score-play[data-mode="play"] i { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 7px solid currentColor; }
.score-play[data-mode="replay"] i { width: auto; height: auto; border: 0; font-style: normal; }
.score-play[data-mode="replay"] i::before { content: "↻"; font-size: 16px; line-height: 1; }

.score-map { position: relative; display: grid; gap: 14px; isolation: isolate; }
.score-track { --axis: 98px; --drop: 133px; --size: 43px; position: relative; min-width: 0; height: 310px; isolation: isolate; }
.score-preview-space { min-height: 270px; }
.score-track:not([data-measured])::before { content: ""; position: absolute; z-index: -1; inset: var(--axis) 0 auto; border-top: 2px solid #93ad9c; }
.score-track:not([data-measured])::after { content: ""; position: absolute; z-index: -1; top: var(--axis); height: var(--drop); left: 12%; right: 25%; border: 1.5px solid #a18cb0; border-top: 0; border-radius: 0 0 55px 55px; }
.score-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; fill: none; stroke-linecap: round; }
.score-spine { stroke: #8ba395; stroke-width: 2.4; }
.score-rehearsal-guide { stroke: #76697f; stroke-width: 1.5; stroke-dasharray: 1 5; }
.score-rehearsal-ink, .score-live-ink { stroke-dasharray: 1000; }
.score-rehearsal-ink { stroke: var(--branch); stroke-width: 2.1; stroke-dashoffset: var(--branch-offset,0); }
.score-live-ink { stroke: var(--live); stroke-width: 3; stroke-dashoffset: var(--live-offset,0); }
.score-join-edge { fill: var(--surface-deep); stroke: #82988b; stroke-width: 1.2; }
.score-head { fill: #f3e1ff; stroke: #8d78a1; stroke-width: 1; }
.score[data-applied] .score-rehearsal-ink { stroke: #a28ab1; }
.score[data-applied] .score-join-edge { fill: var(--live); stroke: var(--live); }

.score-node { --y: calc(var(--axis) + var(--drop)); top: var(--y); left: var(--x); transform: translate(-50%,-50%); position: absolute; width: var(--size); height: var(--size); text-align: center; }
.score-in { --x: 12%; --y: var(--axis); }
.score-bot { --x: 23.5%; --size: 68px; height: 43px; }
.score-messages { --x: 37.5%; --size: 76px; height: 42px; }
.score-reviewer { --x: 50.5%; --size: 50px; }
.score-owner { --x: 63%; --size: 50px; --y: calc(var(--axis) + var(--drop) * .70); }
.score-end { --size: 37px; --y: var(--axis); }
.score-mail-end { --x: 84%; }
.score-chat-end { --x: 95%; }
.score-node::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; transform: translate(-50%,-50%); background: #594e61; border: 1px solid #8b7895; border-radius: 50%; }
.score-in::before, .score-end::before { background: #4d5752; border-color: #82998b; }
.score-pin { display: grid; position: relative; width: 100%; height: 100%; place-items: center; }
.score-pin svg, .score-token svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.score-spark, .score-dock, .score-draft, .score-token > span { border-radius: 50%; box-shadow: 0 0 0 3px #302a36; }
.score-spark { background: radial-gradient(circle at 33% 22%, #6a527b, #493b55); border: 1px solid #9f85b1; color: #efddfc; }
.score-spark svg { fill: #e5cff4; stroke-width: .45; }
.score-pair { display: flex; align-items: center; justify-content: center; gap: 4px; }
.score-draft, .score-token { width: 35px; height: 35px; }
.score-draft { flex: none; display: grid; place-items: center; border: 1px dashed #927da0; color: #b39cbe; background: #382f3e; }
.score-photo { display: block; position: absolute; inset: 0; border-radius: 50%; background: #5c5261 url("./media/handoff-portraits.webp") 50% 50% / 300% 100% no-repeat; box-shadow: 0 0 0 3px #302935, 0 0 0 4px #a98eb8; }
.score-alex { background-position: 0% 50%; box-shadow: 0 0 0 3px #302935, 0 0 0 4px #97bba6; }
.score-mia { background-position: 50% 50%; }
.score-june { background-position: 100% 50%; }
.score-stamp { display: grid; place-items: center; position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border: 2px solid #302935; border-radius: 50%; background: #cdb5df; color: #3b2e47; }
.score-chat-mark { background: #b8ddc6; color: #254633; }
.score-stamp svg { width: 13px; height: 13px; stroke-width: 1.9; }
.score-person[data-checked] .before-check, .score-person:not([data-checked]) .after-check { display: none; }
.score-person[data-checked] .score-stamp { color: #254432; background: #b6d9c3; }
.score-dock { background: #b6dfc5; color: #294537; border: 1px solid #c3e9d0; }
.score-label { display: grid; gap: 3px; position: absolute; top: calc(100% + 11px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 167px; line-height: 1.33; }
.score-label strong { font-weight: 550; font-size: 14px; letter-spacing: -.018em; }
.score-label b, .score-label small { font-size: 12px; color: #c8bdd0; font-weight: 420; letter-spacing: 0; }
.score-label b { margin-left: 3px; }
.score-person[data-checked] .score-label small { color: #c8ddcd; }
.score-end .score-label small, .score-in .score-label small { color: #b7d0bf; }
.score-in .score-label { top: auto; bottom: calc(100% + 9px); }
.score-junction { position: absolute; width: 1px; height: 1px; top: var(--axis); left: 72%; }
.score-apply { position: absolute; top: calc(var(--axis) - 35px); left: 72%; transform: translateX(-50%); color: var(--live); white-space: nowrap; font-size: 12px; opacity: 0; }
.score[data-applied] .score-apply { opacity: 1; }
.score-unsent { position: absolute; left: 86%; top: calc(var(--axis) - 29px); transform: translateX(-50%); color: #c0d0c6; white-space: nowrap; font-size: 12px; }
.score-token { position: absolute; z-index: 3; left: 0; top: 0; margin: -17.5px 0 0 -17.5px; pointer-events: none; }
.score-token > span { display: grid; place-items: center; width: 100%; height: 100%; color: #3e2f49; background: #d9c3e9; border: 1px solid #ead7f5; }
.score-token[data-live] > span { color: #284333; background: #bce4cb; border-color: #d4f3dc; }
.score:not([data-enhanced]) .score-token { display: none; }
.score[data-enhanced] .score-dock { box-shadow: 0 0 0 4px #302d35, 0 0 0 5px #8aaa96; }
.score[data-enhanced] .score-dock svg { visibility: hidden; }
.score-node[data-level="future"] :is(.score-pin,.score-label) { opacity: 0; }
.score-node[data-level="enter"] .score-pin, .score-token[data-enter] > span, .score-person[data-beat="review"][data-checked] .score-stamp, .score-person[data-beat="release"][data-checked] .score-stamp { animation: score-pop .65s cubic-bezier(.18,.74,.26,1) both; }
.score-node[data-level="enter"] .score-label > *, .score[data-phase="applied"] .score-apply { animation: score-caption .6s ease-out both; }
.score[data-paused] :is(.score-pin,.score-token > span,.score-stamp,.score-label > *,.score-apply) { animation-play-state: paused; }
@keyframes score-pop { 0% {opacity: .05; scale: .52;} 62% {opacity: 1; scale: 1.09;} 100% {opacity: 1; scale: 1;} }
@keyframes score-caption { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 820px) {
  .worlds-thread { display: none; }
  .worlds { padding-block: 40px 60px; }
  .worlds-intro h2 { font-size: clamp(50px,8vw,70px); }
  .score { margin-top: 17px; }
  .score-bar { min-height: 45px; }
  .score-key { font-size: 11px; gap: 14px; }
  .score-play { min-width: 65px; min-height: 30px; }
  .score-track { --size: 35px; height: 490px; --axis-x: 10%; --other-x: 27%; }
  .score-track:not([data-measured])::before { inset: 0 auto 0 var(--axis-x); border: none; border-left: 2px solid #93ad9c; }
  .score-track:not([data-measured])::after { left: var(--axis-x); right: auto; inset-block: 12% 33%; width: calc(var(--other-x) - var(--axis-x)); height: auto; border: 1.5px solid #a18cb0; border-left: 0; border-radius: 0 25px 25px 0; }
  .score-node { --x: var(--other-x); }
  .score-in, .score-end { --x: var(--axis-x); }
  .score-in { --y: 13%; }
  .score-bot { --y: 25%; --size: 55px; height: 35px; }
  .score-messages { --y: 36%; --size: 65px; height: 32px; }
  .score-reviewer { --y: 48%; --size: 39px; }
  .score-owner { --x: 23%; --y: 60%; --size: 39px; }
  .score-junction { left: var(--axis-x); top: 69%; }
  .score-apply { left: calc(var(--axis-x) + 17px); top: 69%; transform: translateY(-50%); }
  .score-mail-end { --y: 80%; }
  .score-chat-end { --y: 92%; }
  .score-end { --size: 31px; }
  .score-label, .score-in .score-label { inset: 50% auto auto calc(100% + 15px); text-align: left; transform: translateY(-50%); max-width: min(54vw,260px); gap: 1px; }
  .score-label strong { font-size: 13px; }
  .score-label b, .score-label small { font-size: 12px; }
  .score-stamp { width: 19px; height: 19px; }
  .score-stamp svg { width: 12px; height: 12px; }
  .score-unsent { left: calc(var(--axis-x) + 17px); top: 81.5%; transform: translateY(-50%); }
  .score-draft, .score-token { width: 30px; height: 30px; }
  .score-token { margin: -15px 0 0 -15px; }
  .score-pair { gap: 5px; }
}

@media (min-width: 560px) and (max-width: 820px) {
  .score-map { grid-template-columns: minmax(0, 1fr) 279px; gap: 24px; }
  .score-preview-space { min-height: 0; }
}

@media (max-width: 559px) {
  .score-map { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
  .score-track { --axis-x: 78px; --other-x: 104px; }
  .score-preview-space { min-height: 0; }
  .score-owner { --x: var(--other-x); }
  .score-node .score-label {
    inset: 50% auto auto calc(50% - var(--x) + 28px);
    transform: translate(-50%, -50%); width: 56px; max-width: 56px; text-align: right;
    line-height: 1.2;
  }
  .score-node .score-label strong { font-size: 12px; white-space: normal; }
  .score-node .score-label b { font-size: 10.5px; margin-left: 0; }
  .score-node .score-label small { font-size: 11px; white-space: normal; }
  .score-apply { left: 4px; top: 69%; font-size: 10.5px; }
  .score-unsent { left: 4px; font-size: 10.5px; }
  .score-peek { max-width: calc(100% - 146px); }
}

@media (max-width: 359px) {
  .score-map { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .score-track { --axis-x: 68px; --other-x: 92px; }
  .score-node .score-label { left: calc(50% - var(--x) + 25px); width: 50px; max-width: 50px; }
  .score-node .score-label strong { font-size: 11px; }
  .score-node .score-label small { font-size: 10.5px; }
  .score-peek { max-width: calc(100% - 132px); }
}

/* Node hit areas keep the original timeline geometry. */
.score-target { position: relative; padding: 0; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.score-target:disabled { color: inherit; cursor: default; opacity: 1; }
.score-target:enabled { cursor: pointer; }
.score-node[data-level="future"] { pointer-events: none; }
.score-target:focus-visible { outline: 2px solid #f1deff; outline-offset: 5px; border-radius: 50%; }
.score-node { --light-rgb: 215 184 236; }
.score-in, .score-end { --light-rgb: 175 221 194; }
.score-target::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid rgb(var(--light-rgb) / .72);
  box-shadow: 0 0 6px 1px rgb(var(--light-rgb) / .32), inset 0 0 5px rgb(var(--light-rgb) / .23), 0 0 16px 3px rgb(var(--light-rgb) / .17);
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.score-target[data-lit]::after {
  opacity: calc(.27 + var(--breath, 0) * .63);
  transform: scale(calc(1 + var(--breath, 0) * .31));
  transition: none;
}
.score-target[aria-expanded="true"]:not([data-lit])::after { opacity: .5; transform: scale(1.05); }
.score[data-paused] .score-target[data-lit]::after {
  opacity: .29;
  transform: scale(1);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.score-tandem { display: flex; justify-content: center; align-items: center; width: 100%; }
.score-tandem .score-photo, .score-tandem .score-spark { width: 60%; aspect-ratio: 1; height: auto; border-radius: 50%; flex: none; }
.score-tandem .score-photo { position: relative; inset: auto; box-shadow: 0 0 0 2px #302935, 0 0 0 3px #a98eb8; }
.score-tandem .score-spark { display: grid; place-items: center; position: relative; margin-left: -16%; margin-top: 12%; width: 51%; box-shadow: 0 0 0 2px #302935; }
.score-tandem .score-spark svg { width: 67%; height: 67%; fill: #e5cff4; stroke-width: .45; }
.score-team-label strong, .score-team-label small { white-space: nowrap; }

.score-peek {
  --peek-tail: 42px;
  box-sizing: border-box; position: absolute; z-index: 5; left: 0; top: 0;
  width: min(221px, calc(100% - 12px)); text-align: left;
  pointer-events: none; isolation: isolate;
}
.score-peek[data-mode="inspect"] { pointer-events: auto; }
.score-peek[data-mode="inspect"]::after { content: ""; position: absolute; pointer-events: auto; }
.score-peek[data-mode="inspect"][data-side="above"]::after { top: 100%; left: calc(var(--peek-tail) - 11px); width: 22px; height: 10px; }
.score-peek[data-mode="inspect"][data-side="below"]::after { bottom: 100%; left: calc(var(--peek-tail) - 11px); width: 22px; height: 10px; }
.score-peek[data-mode="inspect"][data-side="right"]::after { right: 100%; top: calc(var(--peek-tail) - 11px); height: 22px; width: 10px; }
.score-peek[data-mode="inspect"][data-side="left"]::after { left: 100%; top: calc(var(--peek-tail) - 11px); height: 22px; width: 10px; }
.peek-card {
  position: relative; padding: 9px 11px 10px; border: 1px solid #716477; border-radius: 10px;
  background: #3a333f; color: #f1ebf0; box-shadow: 0 7px 20px -8px #100d17a8;
}
.score-peek[data-side="above"] .peek-card::before,
.score-peek[data-side="below"] .peek-card::before,
.score-peek[data-side="right"] .peek-card::before,
.score-peek[data-side="left"] .peek-card::before { content: ""; position: absolute; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
.score-peek[data-side="above"] .peek-card::before { left: calc(var(--peek-tail) - 4px); bottom: -5px; border-right: 1px solid #716477; border-bottom: 1px solid #716477; }
.score-peek[data-side="below"] .peek-card::before { left: calc(var(--peek-tail) - 4px); top: -5px; border-left: 1px solid #716477; border-top: 1px solid #716477; }
.score-peek[data-side="right"] .peek-card::before { top: calc(var(--peek-tail) - 4px); left: -5px; border-left: 1px solid #716477; border-bottom: 1px solid #716477; }
.score-peek[data-side="left"] .peek-card::before { top: calc(var(--peek-tail) - 4px); right: -5px; border-right: 1px solid #716477; border-top: 1px solid #716477; }
.peek-head { display: flex; align-items: center; gap: 5px; margin: 0 0 7px; min-height: 16px; color: #dfd3e6; }
.peek-head > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.peek-channel { font-size: 11px; line-height: 1.3; font-weight: 575; }
.peek-at { margin-left: auto; color: #c6bbcf; font-size: 10px; font-variant-numeric: tabular-nums; }
.peek-badge { display: inline-block; border: 1px solid #927da4; background: #46374f; color: #eedaff; border-radius: 8px; padding: 1px 6px; font-size: 10px; font-weight: 520; line-height: 1.4; white-space: nowrap; }
.peek-head .peek-badge { margin-left: auto; }
.chat-line .peek-badge { margin-inline-start: 2px; vertical-align: 1px; }
.peek-content p, .peek-content b { margin: 0; }
.peek-content { font-size: 13px; line-height: 1.43; letter-spacing: -.015em; overflow-wrap: anywhere; }
.score-peek[data-skin="chat"] { width: min(250px, calc(100% - 12px)); }
.score-peek[data-skin="chat"] .peek-card { background: #29322f; }
.score-peek[data-skin="chat"] .peek-head { color: #c8e6d3; margin-bottom: 5px; }
.chat-thread { display: flex; flex-direction: column; gap: 4px; }
.chat-break { align-self: center; padding: 1px 7px; border-radius: 5px; color: #cbd6d0; background: #35403b; font-size: 9.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.chat-line { max-width: 88%; padding: 5px 8px; color: #f0f4ee; font-size: 12.5px; line-height: 1.38; }
.chat-in { align-self: flex-start; background: #404744; border-radius: 2px 8px 8px 8px; }
.chat-out { align-self: flex-end; background: #385744; border-radius: 8px 2px 8px 8px; }
.chat-continuation { display: contents; }
.chat-clock, .chat-receipt { display: inline-block; margin-left: 2px; font-size: 9.5px; font-variant-numeric: tabular-nums; color: #ced9d0; }
.chat-receipt svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }
.peek-content .peek-copy { margin-top: 3px; }

.score-peek[data-skin="mail"] { width: min(304px, calc(100% - 12px)); }
.score-peek[data-skin="mail"] .peek-card {
  --mail-inset: 16px;
  padding: 10px var(--mail-inset) 0;
  border-radius: 11px;
  background: #38353e;
  box-shadow: 0 9px 25px -10px #17121ec9;
}
.score-peek[data-skin="mail"] .peek-head { gap: 6px; margin-bottom: 8px; }
.score-peek[data-skin="mail"] .peek-channel { color: #d7cbdc; }
.mail-subject {
  color: #f3ece3;
  font: 400 20px/1.13 "Iowan Old Style", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: normal;
}
.peek-content .mail-byline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 8px;
  color: #e1dbe2;
  font-size: 11.5px;
}
.mail-byline .score-photo { position: static; flex: none; width: 20px; height: 20px; margin-right: 2px; box-shadow: none; }
.mail-byline strong { font-weight: 560; }
.mail-byline > span:not(.score-photo), .mail-signature { color: #cec4d1; }
.mail-letter { border-top: 1px solid #5d5661; padding-top: 8px; font-size: 13px; line-height: 1.47; color: #e9e3e7; }
.mail-letter p + p { margin-top: 5px; }
.mail-letter .mail-signature { margin-top: 7px; font-size: 12px; line-height: 1.35; }
.mail-enclosure {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin: 9px calc(-1 * var(--mail-inset)) 0;
  padding: 7px var(--mail-inset);
  border-top: 1px solid #554f59;
  border-radius: 0 0 10px 10px;
  background: #403c45;
  color: #ece5e9;
  font-size: 11.5px;
  font-weight: 520;
}
.mail-file-cover {
  position: relative;
  flex: none;
  width: 15px;
  height: 19px;
  border-radius: 1px;
  background: #d6cdbd;
  clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%);
}
.mail-file-cover::after { content: ""; position: absolute; inset: 7px 3px auto; height: 4px; border-block: 1px solid #8d8679; }
.peek-turn b { display: block; color: #d8c2e8; font-weight: 550; font-size: 11px; }
.peek-turn + .peek-turn { margin-top: 5px; }
.score-peek[data-skin="colleague"], .score-peek[data-skin="staff"] { width: min(197px, calc(100% - 12px)); }
.score-still { margin: 10px 0; color: #cfc6d5; font-size: 13px; line-height: 1.5; }
.score-peek[data-visible] .peek-card { animation: peek-in 340ms cubic-bezier(.19,.78,.21,1) both; }
@keyframes peek-in { from { opacity: 0; translate: 0 4px; scale: .97; } to { opacity: 1; translate: none; scale: 1; } }
@media (max-width: 820px) {
  .score-peek { width: min(205px, calc(100% - 12px)); }
  .score-peek[data-skin="chat"] { width: min(229px, calc(100% - 12px)); }
  .score-peek[data-skin="colleague"], .score-peek[data-skin="staff"] { width: min(187px, calc(100% - 12px)); }
  .score-peek .peek-card { padding: 8px 10px; }
  .score-peek[data-skin="mail"] { width: min(279px, calc(100% - 12px)); }
  .score-peek[data-skin="mail"] .peek-card { --mail-inset: 13px; }
  .score-team-label { left: calc(100% + 10px); }
  .score-target[data-start]::before { content: ""; position: absolute; inset: -5px -2px; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .score *, .score *::after { animation: none !important; }
  .score-target::after { content: none; }
}
