html, body { margin: 0; height: 100%; background: #000; color: #eee; font: 14px/1.4 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#stage { position: fixed; inset: 0; padding: calc(38px + env(safe-area-inset-top, 0px)) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
#player, #stage iframe { width: 100%; height: 100%; border: 0; display: block; }
#about { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(15, 15, 15, .88); border-radius: 12px; padding: 10px 14px; transition: opacity .6s; max-width: 640px; }
#about a { color: #9cc4ff; }
body.started #about { opacity: 0; pointer-events: none; }
#note { position: fixed; left: 50%; transform: translateX(-50%); top: calc(46px + env(safe-area-inset-top, 0px)); background: rgba(15, 15, 15, .9); border-radius: 999px; padding: 8px 16px; pointer-events: none; }
#dbg { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); background: rgba(120, 0, 0, .85); color: #fff; font: 12px/1.3 ui-monospace, monospace; padding: 4px 8px; pointer-events: none; z-index: 9; }
#whatis { position: fixed; top: calc(3px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 5; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3a5f8f, #16263b 70%); color: #e8f1ff; border: 1px solid rgba(156, 196, 255, .65); border-radius: 50%; box-shadow: 0 0 0 0 rgba(156, 196, 255, .45), 0 2px 8px rgba(0, 0, 0, .5); font: 700 16px/1 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; }
#whatis::after { content: "What is this"; position: absolute; top: 50%; right: calc(100% + 10px); transform: translateY(-50%); white-space: nowrap; background: none; color: #e8f1ff; border: 0; padding: 0; text-shadow: 0 1px 3px #000, 0 0 8px #000; font: 500 13px/1.2 -apple-system, system-ui, sans-serif; opacity: .85; pointer-events: none; transition: opacity .15s; }
#whatis:hover::after, #whatis:focus-visible::after { content: attr(data-tip); opacity: 1; }
#whatis:hover, #whatis:focus-visible { border-color: #cfe2ff; transform: scale(1.08); box-shadow: 0 0 0 4px rgba(156, 196, 255, .2), 0 2px 8px rgba(0, 0, 0, .5); outline: none; }
body.started #whatis { opacity: .8; }
#explain { position: fixed; inset: 0; z-index: 8; background: rgba(0, 0, 0, .86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
#explain[hidden] { display: none; }
#explain .frame { width: min(960px, 100%); aspect-ratio: 16 / 9; max-width: 100%; }
#explain iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
#explain .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#explain a, #explain button { color: #eee; background: #1d2a3a; border: 1px solid #9cc4ff; border-radius: 999px; padding: 10px 16px; font: 600 14px/1 -apple-system, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
#versions { margin-top: 6px; font-size: 13px; color: #cfd3dc; }
#choices { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); background: rgba(12, 12, 14, .94); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 20; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
#choices[hidden] { display: none; }
#choices p { margin: 0 0 4px; color: #d8dbe3; font-size: 15px; line-height: 1.4; }
#choices button { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid #3a4152; background: #1d2230; color: #eef1f7; text-align: left; cursor: pointer; }
#choices button:hover, #choices button:focus-visible { background: #283047; border-color: #6d8ad8; outline: none; }
/* Choice room v2 (K tg:16445): the explainer's look. Dark ground, cards with a coloured edge, Opus amber, Sol cyan, notes violet. */
#choices.v2 { --bg: #0a0f15; --card: #121a24; --ivory: #f0ede6; --muted: #99a3b0; --o: #ffbd61; --s: #61dbf5; --n: #bda1ff; --fin: #f0ede6;
  top: calc(38px + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; right: 0; transform: none; width: auto; border-radius: 0; overflow-y: auto;
  background: rgba(10, 15, 21, .9); backdrop-filter: blur(3px); padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(56px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  gap: 14px; align-items: center; font-family: "Noto Sans", -apple-system, system-ui, sans-serif; color: var(--ivory); box-shadow: none; }
#choices.v2 > * { width: min(1080px, 100%); }
#choices.v2 h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8c949e; }
#choices.v2 h2::after { content: ""; display: block; width: 64px; height: 1px; margin-top: 8px; background: #8c949e; opacity: .6; }
#choices.v2 p { margin: 0; color: var(--ivory); font-size: clamp(16px, 2.2vw, 20px); line-height: 1.35; text-wrap: balance; }
#choices.v2 .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
#choices.v2 .card { --acc: var(--fin); position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ivory); border: 1.2px solid color-mix(in srgb, var(--acc) 38%, transparent); border-radius: 14px; font: inherit;
  transition: border-color .35s, box-shadow .35s, transform .35s, opacity .35s; opacity: .82; }
#choices.v2 .card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; background: var(--acc); border-radius: 0 2px 2px 0; z-index: 1; }
#choices.v2 .card.a-o { --acc: var(--o); } #choices.v2 .card.a-s { --acc: var(--s); } #choices.v2 .card.a-with { --acc: var(--n); } #choices.v2 .card.a-without { --acc: #8e9aab; }
#choices.v2 .card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; filter: saturate(.85) brightness(.82); transition: filter .35s; }
#choices.v2 .card .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px 18px; min-width: 0; }
#choices.v2 .card b { font-size: 16px; line-height: 1.25; font-weight: 700; }
#choices.v2 .card span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
#choices.v2 .card.lit, #choices.v2 .card:hover, #choices.v2 .card:focus-visible { opacity: 1; border-color: var(--acc); outline: none; }
#choices.v2 .card.lit img, #choices.v2 .card:hover img { filter: none; }
#choices.v2 .card.now { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--acc), 0 0 32px color-mix(in srgb, var(--acc) 35%, transparent); }
#choices.v2 .strip { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
#choices.v2 .dot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
#choices.v2 .dot i { width: 10px; height: 10px; border-radius: 50%; display: block; }
#choices.v2 .dot small { font-size: 10px; color: #7d8794; letter-spacing: .02em; }
#choices.v2 .dot.o i { background: var(--o); box-shadow: 0 0 8px color-mix(in srgb, var(--o) 60%, transparent); }
#choices.v2 .dot.s i { background: var(--s); box-shadow: 0 0 8px color-mix(in srgb, var(--s) 60%, transparent); }
#choices.v2 .dot.q i { border: 1.4px dashed #7d8794; width: 8px; height: 8px; }
#choices.v2 .dot.x i { background: #2a3340; }
#choices.v2 .notes { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--n); color: var(--n); }
#choices.v2 .notes.n { border-color: #8e9aab; color: #aab4c2; }
#choices.v2 .speaker { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: auto;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
#choices.v2 .speaker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
#choices.v2 .speaker.harmony { color: #f2a7c9; } #choices.v2 .speaker.joscha { color: #74e693; }
@media (max-width: 560px) {
  #choices.v2 .cards { grid-template-columns: 1fr; gap: 10px; }
  #choices.v2 .card { flex-direction: row; }
  #choices.v2 .card img { width: 38%; aspect-ratio: auto; min-height: 100%; }
  #choices.v2 .card .body { padding: 10px 12px; }
  #choices.v2 .card b { font-size: 15px; } #choices.v2 .card span { font-size: 12.5px; }
}
/* while a guide plays: cards in the lower part so the guide's map (top band of the video) stays visible */
#choices.v2.guiding { top: auto; max-height: min(64vh, calc(100vh - 38px - 30vw * 9 / 16)); background: linear-gradient(to bottom, rgba(10, 15, 21, 0), rgba(10, 15, 21, .93) 56px); padding-top: 60px; backdrop-filter: none; }
#choices.v2.guiding .cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-aspect-ratio: 1/1) { #choices.v2.guiding { max-height: calc(100vh - 38px - 56.25vw); } }
#choices.v2.guiding h2 { display: none; }
#choices.v2.guiding .cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
#choices.v2.guiding .card .body { padding: 9px 11px 11px 15px; }
#choices.v2.guiding .card span { font-size: 12.5px; }
/* Top bar (K tg:16453): a plain digital countdown far left, white on black, to the next pause or resume; the current
   segment's name beside it, replaced by a "soon" line in the last six seconds. */
#bar { position: fixed; top: env(safe-area-inset-top, 0px); left: max(12px, env(safe-area-inset-left, 0px)); right: calc(max(12px, env(safe-area-inset-right, 0px)) + 132px); height: 38px; z-index: 4;
  display: flex; align-items: center; gap: 12px; min-width: 0; pointer-events: none; }
#clock { flex: none; font: 600 15px/1 ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; color: #fff; background: #000;
  padding: 5px 8px; border: 1px solid #2a2f38; border-radius: 6px; min-width: 7ch; text-align: center; letter-spacing: .02em; opacity: .55; transition: opacity .3s; }
#bar.live #clock { opacity: 1; }
#bar .txt { position: relative; flex: 1; min-width: 0; height: 18px; }
#nowline, #soon { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 13px/18px -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; transition: opacity .6s; }
#nowline { color: #8c949e; }
#nowline.off { opacity: 0; }
#soon { color: #fff; opacity: 0; }
#soon.on { opacity: 1; }
#feedtoggle { pointer-events: auto; flex: none; font: 600 11px/1 -apple-system, system-ui, sans-serif; color: #cfd3dc; background: #10151c; border: 1px solid #2a2f38; border-radius: 999px; padding: 5px 9px; cursor: pointer; }
#feedtoggle[aria-pressed="false"] { color: #7d8794; }
/* Reactions: scripted comments from the cast, each with its cartoon avatar and an AI label, top left over the video */
#feed { position: fixed; z-index: 6; top: calc(46px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); width: min(340px, 44vw);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
#feed[hidden] { display: none; }
#feed .rx { display: flex; gap: 9px; align-items: flex-start; background: rgba(10, 15, 21, .8); border: 1px solid color-mix(in srgb, var(--who) 30%, transparent); border-left: 3px solid var(--who);
  border-radius: 12px; padding: 7px 11px 8px 7px; color: #f0ede6; animation: rxin .45s ease-out; transition: opacity .9s, transform .9s; backdrop-filter: blur(2px); }
#feed .rx.out { opacity: 0; transform: translateY(-6px); }
#feed .rx img { width: 36px; height: 36px; border-radius: 50%; flex: none; background: #0a0f15; }
#feed .rx div { min-width: 0; }
#feed .rx b { font: 700 12.5px/1.2 "Noto Sans", -apple-system, system-ui, sans-serif; color: var(--who); }
#feed .rx small { margin-left: 6px; font: 500 10.5px/1.2 -apple-system, system-ui, sans-serif; color: #8c949e; }
#feed .rx p { margin: 2px 0 0; font: 400 13px/1.35 "Noto Sans", -apple-system, system-ui, sans-serif; }
@keyframes rxin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
#choices.v2 .speaker.av img { width: 28px; height: 28px; border-radius: 50%; }
#choices.v2 .speaker.av::before { display: none; }
@media (max-width: 560px) {
  #bar { right: calc(max(12px, env(safe-area-inset-right, 0px)) + 44px); gap: 8px; }
  #clock { font-size: 14px; padding: 4px 6px; }
  #feedtoggle { display: none; }
  #whatis::after { display: none; }   /* the "What is this" label collides with the bar text at phone width; the ? button keeps its aria-label */
  #feed { width: calc(100vw - 24px); }
  #feed .rx:nth-last-child(n+3) { display: none; }
  #feed .rx p { font-size: 12.5px; }
}
/* In-page Back (K tg:16468): left of the clock in the top bar */
#back { pointer-events: auto; flex: none; font: 600 12px/1 -apple-system, system-ui, sans-serif; color: #e8f1ff; background: #10151c; border: 1px solid #3a4a60; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
#back:disabled { opacity: .35; cursor: default; }
#back:not(:disabled):hover, #back:focus-visible { border-color: #9cc4ff; outline: none; }
/* The weave map (K tg:16469): a transit map on the original's time scale, under the player, pushing the page up rather than covering it.
   Lane 0 is the original; each pause room drops from its moment and runs its own length on its own lane. */
:root { --lane-h: 7px; }
body.hasmap #stage { padding-bottom: calc(var(--map-h, 44px) + env(safe-area-inset-bottom, 0px)); }
#map { --lanes: 2; --tip-h: 24px; position: fixed; z-index: 4; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--tip-h) + 10px + (var(--lanes) + 1) * var(--lane-h)); opacity: 0; transform: translateY(-10px); transition: opacity .9s ease-out, transform .9s ease-out; }
#map.in { opacity: 1; transform: none; }
#map .rail { position: absolute; left: 0; right: 0; top: calc(var(--tip-h) + 6px); height: 1px; background: rgba(240, 237, 230, .14); }
#map .br { position: absolute; top: calc(var(--tip-h) + 2px + var(--lane) * var(--lane-h)); height: var(--lane-h); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; --c: #f0ede6; }
#map .br.o { --c: #ffbd61; } #map .br.s { --c: #61dbf5; } #map .br.h { --c: #bda1ff; }
#map .br i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: var(--c); opacity: .55; border-radius: 1px; transition: opacity .2s, height .2s; }
#map .br.nn i { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
#map .br.room i::before, #map .br.room i::after { content: ""; position: absolute; top: -3px; width: 2px; height: 8px; background: var(--c); }   /* end caps */
#map .br.room i::before { left: 0; } #map .br.room i::after { right: 0; }
#map .br.room::before { content: ""; position: absolute; left: 0; bottom: 50%; width: 1px; height: calc(var(--lane) * var(--lane-h) - 1px); background: var(--c); opacity: .35; }   /* the drop from the original */
#map .br.orig i { height: 2px; background: #f0ede6; opacity: .35; }
#map .br:hover i, #map .br:focus-visible i, #map .br.pick i { opacity: 1; height: 3px; }
#map .br.on i { opacity: 1; height: 3px; box-shadow: 0 0 6px var(--c); }
#map .br:focus-visible { outline: 1px dotted #9cc4ff; outline-offset: 1px; }
#map .head { position: absolute; top: calc(var(--tip-h) + var(--lane, 0) * var(--lane-h)); width: 2px; height: calc(var(--lane-h) + 4px); margin-left: -1px; background: #fff; box-shadow: 0 0 6px #fff; pointer-events: none; transition: left .2s linear; }
#map .head[hidden] { display: none; }
#map .tip { position: absolute; top: 0; left: 0; right: 0; height: var(--tip-h); display: flex; gap: 8px; align-items: center; min-width: 0;
  font: 500 12px/1.2 -apple-system, system-ui, sans-serif; color: #f0ede6; }   /* its own reserved row in the map band, so it never covers the player (Joscha QA) */
#map .tip .hint { color: #6f7884; font-size: 11px; }
#map .tip .what { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#map .tip [hidden] { display: none; }
#map .tip button { flex: none; font: 700 12px/1 -apple-system, system-ui, sans-serif; color: #0a0f15; background: #9cc4ff; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
#map .tip button[hidden] { display: none; }
body.hasmap #choices.v2 { bottom: calc(var(--map-h, 44px) + env(safe-area-inset-bottom, 0px)); }
body.hasmap #choices.v2 .speaker { bottom: calc(var(--map-h, 44px) + 10px + env(safe-area-inset-bottom, 0px)); }
body.hasmap #about { bottom: calc(var(--map-h, 44px) + 8px + env(safe-area-inset-bottom, 0px)); }
/* Stop the clock: the room stays frozen and the echo points at the ? button. */
#stage { transition: filter .8s; }
/* Keep the paused room picture unchanged behind the invitation (K tg:16625). */
body.ix #feed, body.ix #bar .txt { opacity: .25; }
body.ix #whatis { z-index: 12; opacity: 1; border-color: #fff; animation: ixpulse 1.4s ease-in-out infinite; }
@keyframes ixpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .6); } 50% { box-shadow: 0 0 0 14px rgba(255, 209, 102, 0); } }
#stopclock { position: fixed; inset: 0; z-index: 11; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 16px 80px; }
#stopclock > * { pointer-events: auto; }
#stopclock .who { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
#stopclock .who img { width: min(46vh, 52vw, 380px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px #ffd166, 0 0 60px rgba(255, 209, 102, .35); animation: ixin .6s ease-out; }
#stopclock .who b { font: 700 18px/1.2 "Noto Sans", -apple-system, system-ui, sans-serif; color: #ffd166; }
#stopclock .who small { display: block; font: 500 12.5px/1.3 -apple-system, system-ui, sans-serif; color: #c9ced6; }
#stopclock .line { margin: 0; max-width: 46ch; min-height: 2.8em; text-align: center; font: 500 clamp(16px, 2.4vw, 21px)/1.4 "Noto Sans", -apple-system, system-ui, sans-serif; color: #fff; text-shadow: 0 1px 4px #000; text-wrap: balance; }
#stopclock .row { display: flex; gap: 10px; }
#stopclock .row button { font: 600 13px/1 -apple-system, system-ui, sans-serif; color: #eee; background: #1d2a3a; border: 1px solid #9cc4ff; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
#stopclock .row button[hidden] { display: none; }
#stopclock .hand { position: fixed; line-height: 1; pointer-events: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .7)); animation: ixhand 1.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes ixin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ixhand { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@media (max-width: 560px) { :root { --lane-h: 8px; } #stopclock .who img { width: min(40vh, 62vw); } }
/* K's own cartoon pointing at the ? button (K tg:16471): the picture does the pointing, the words sit low and to the left */
#stopclock.pt { justify-content: flex-end; align-items: flex-start; padding: 60px max(16px, env(safe-area-inset-right, 0px)) calc(var(--map-h, 44px) + 28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
#stopclock.pt .who img { display: none; } /* The pointing cutout is the single portrait. */
#stopclock.pt.pointing .who img { opacity: 0; transform: scale(.85); }
#stopclock.pt .who, #stopclock.pt .line, #stopclock.pt .row { position: relative; z-index: 2; }
#stopclock.pt .who { align-items: flex-start; text-align: left; }
#stopclock.pt .line { text-align: left; max-width: min(46ch, 60vw); background: rgba(10, 15, 21, .78); border-left: 3px solid #ffd166; border-radius: 8px; padding: 8px 12px; }
#stopclock .kpt { position: fixed; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .7)); }
#stopclock.pointing .kpt { opacity: 1; animation: ixin .6s ease-out; }
#stopclock { transition: opacity .6s; }
#stopclock.leaving { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { #stopclock.pt .line { max-width: 100%; } }
#map .br::before, #map .br i::before, #map .br i::after { pointer-events: none; }   /* decorative drop-lines and end caps never take a tap meant for the branch below (Joscha QA) */
/* Map v2, the bus map (K tg:16491): one red bar for the original (YouTube's progress bar, filled to where the original has
   played), an insert line with an arrow at every pause, and the rooms sprouting from it as stacked branches. */
#map .rail, #map .br.orig, #map .br.room::before { display: none; }
#map .br.red { height: calc(var(--lane-h) + 2px); top: calc(var(--tip-h) + 1px); --c: #ff2e4d; }
#map .br.red i { height: 4px; background: rgba(240, 237, 230, .22); opacity: 1; border-radius: 2px; }
#map .br.red .fill { position: absolute; left: 0; top: 50%; height: 4px; transform: translateY(-50%); background: #ff0033; border-radius: 2px; pointer-events: none; box-shadow: 0 0 6px rgba(255, 0, 51, .55); }
#map .br.red:hover i, #map .br.red:focus-visible i, #map .br.red.pick i { height: 5px; background: rgba(240, 237, 230, .32); }
#map .ins { position: absolute; top: calc(var(--tip-h) + 1px); width: 1.5px; margin-left: -.75px; height: calc((var(--n) + 1) * var(--lane-h) + 2px); background: #f0ede6; opacity: .55; pointer-events: none; }
#map .ins::before { content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%); border: 5px solid transparent; border-top: 6px solid #f0ede6; border-bottom: 0; }
#map { transform: translateY(-36px); }   /* slides down from the player into place on load */
#map.in { transform: none; }
#map .br.room i { height: 3px; opacity: .8; }
#map .br.room:hover i, #map .br.room.pick i, #map .br.room.on i { height: 4px; opacity: 1; }
/* Plain navigation (K tg:16509): one row under the player (Back · Now · Next · Chapters), a chips row for the other
   rooms at this pause, and a Chapters list. The row pushes the player up (--map-h), so it never covers YouTube's controls.
   Dots: orange = an Anthropic model, blue = another company, ivory = the original; the name is always written beside it. */
#plain { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; background: #0a0f15; border-top: 1px solid #1c2531;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.3 "Noto Sans", -apple-system, system-ui, sans-serif; color: #f0ede6; }
#plain .row { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
#plain button { font: 600 14px/1.2 -apple-system, system-ui, sans-serif; color: #e8f1ff; background: #121a24; border: 1px solid #2c3a4d; border-radius: 10px; min-height: 44px; padding: 0 14px; cursor: pointer; }
#plain button:hover, #plain button:focus-visible { border-color: #9cc4ff; outline: none; }
#plain #back:disabled { opacity: .35; cursor: default; border-color: #2c3a4d; }
#plain .k { font: 700 10.5px/1 -apple-system, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8c949e; }
#plain .now, #plain .next { min-width: 0; display: grid; align-content: center; gap: 3px; background: #10161f; border-radius: 10px; padding: 5px 10px; min-height: 44px; box-sizing: border-box; }
#plain .now { grid-template-columns: minmax(0, 1fr) auto; }
#plain .now .k, #plain .now .t, #plain .now .prog { grid-column: 1 / -1; }
#plain .now .k { grid-column: 1; }
#plain .now .left { grid-column: 2; grid-row: 1; font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace; color: #cfd3dc; font-variant-numeric: tabular-nums; }
#plain .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
#plain .next .t { font-weight: 500; color: #cfd3dc; }
#plain .next .in { color: #8c949e; font-variant-numeric: tabular-nums; }
#plain .prog { display: block; height: 3px; background: rgba(240, 237, 230, .14); border-radius: 2px; overflow: hidden; }
#plain .prog i { display: block; height: 100%; width: 0; background: #f0ede6; }
#plain .next { grid-template-columns: minmax(0, 1fr) auto; }
#plain .next .k { grid-column: 1; }
#plain .next .t { grid-column: 1; }
#plain .next .chg { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 0 10px; font-size: 12.5px; align-self: center; }
#plain .next .chg[hidden] { display: none; }
#plain .dot, #chapters .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; flex: none; }
.dot.anthropic { background: #ff9a3d; } .dot.other { background: #4da3ff; } .dot.house { background: #bda1ff; } .dot.orig { background: transparent; box-shadow: inset 0 0 0 2px #f0ede6; }
#plain .also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
#plain .also .k { white-space: nowrap; flex: none; }
#plain .also[hidden] { display: none; }
#plain .also .chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
#plain .also .chip { min-height: 44px; border-radius: 999px; font-weight: 500; text-align: left; max-width: 100%; }
#chapters { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .62); display: flex; justify-content: flex-end; }
#chapters[hidden] { display: none; }
#chapters .panel { width: min(440px, 100%); height: 100%; overflow-y: auto; background: #0a0f15; border-left: 1px solid #1c2531; box-sizing: border-box;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
  font: 500 14px/1.35 "Noto Sans", -apple-system, system-ui, sans-serif; color: #f0ede6; }
#chapters .hd { display: flex; align-items: center; justify-content: space-between; margin: -14px 0 10px; padding: 14px 0 8px; position: sticky; top: -14px; background: #0a0f15; z-index: 1; }
#chapters .hd b { font-size: 17px; }
#chapters button { font: inherit; color: #e8f1ff; background: #121a24; border: 1px solid #2c3a4d; border-radius: 10px; min-height: 44px; padding: 0 14px; cursor: pointer; }
#chapters button:hover, #chapters button:focus-visible { border-color: #9cc4ff; outline: none; }
#chapters .x { min-width: 44px; padding: 0; font-size: 16px; }
#chapters .pref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 14px; border-bottom: 1px solid #1c2531; margin-bottom: 8px; }
#chapters .pref > span:first-child { color: #cfd3dc; width: 100%; }
#chapters .opts { display: flex; flex-wrap: wrap; gap: 8px; }
#chapters .opts button[aria-pressed="true"] { background: #e8f1ff; color: #0a0f15; border-color: #e8f1ff; }
#chapters .list, #chapters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#chapters ul { padding-left: 18px; border-left: 1px solid #2c3a4d; margin-left: 6px; }
#chapters .ph { color: #8c949e; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; padding: 8px 0 4px; }
#chapters .ch { width: 100%; display: flex; align-items: center; gap: 0; text-align: left; padding: 8px 12px; }
#chapters .ch .t { flex: 1; min-width: 0; }
#chapters .ch small { color: #8c949e; margin-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#chapters .cur > .ch { border-color: #f0ede6; background: #1a2533; }
#chapters .cur > .ch .t::after { content: "  · playing"; color: #8c949e; font-size: 12px; }
@media (max-width: 560px) {
  #plain .row { grid-template-columns: 1fr 1fr; grid-template-areas: "now now" "next next" "back chap"; gap: 6px; }
  #plain .now { grid-area: now; } #plain .next { grid-area: next; } #plain #back { grid-area: back; } #plain .chap { grid-area: chap; }
  #chapters { align-items: flex-end; }
  #chapters .panel { width: 100%; height: auto; max-height: 82vh; border-left: 0; border-top: 1px solid #1c2531; border-radius: 14px 14px 0 0; }
}
#chapters .key { width: 100%; color: #8c949e; font-size: 12px; } #chapters .key .dot { margin: 0 5px 0 10px; } #chapters .key .dot:first-child { margin-left: 0; }
#plain #back { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; } #plain #back small { font: 500 11px/1.1 -apple-system, system-ui, sans-serif; color: #8c949e; max-width: 14ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { #plain #back small { max-width: 100%; } }
#plain .pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
#plain .pick[hidden] { display: none; }
#plain .pick .k { white-space: nowrap; flex: none; }
#plain .pick .chips { display: flex; flex-wrap: wrap; gap: 8px; }
#plain .pick .chip { min-height: 44px; border-radius: 999px; font-weight: 500; }
#plain .pick .chip[aria-pressed="true"] { background: #e8f1ff; color: #0a0f15; border-color: #e8f1ff; }
#chapters .note { width: 100%; color: #cfd3dc; font-size: 12.5px; }
#chapters .pn { display: block; color: #8c949e; font-size: 12px; padding: 0 0 6px; }
@media (max-width: 560px) { body.hasmap:not(.plain) #about { top: calc(46px + env(safe-area-inset-top, 0px)); bottom: auto; } }
/* Portrait (phones, tablets upright): the player keeps a 16:9 box and the row sits right under it, instead of YouTube
   letterboxing the video in a tall box with black bands (and its own "AI" disclosure chip floating in the band). */
@media (max-aspect-ratio: 1/1) {
  body.plain #stage { bottom: auto; height: calc(38px + env(safe-area-inset-top, 0px) + 56.25vw); padding-bottom: 0; box-sizing: border-box; }
  body.plain #plain { bottom: auto; top: calc(38px + env(safe-area-inset-top, 0px) + 56.25vw); border-top: 0; padding-bottom: 10px; }
  body.plain #about {
    --intro-top: calc(38px + env(safe-area-inset-top, 0px) + 56.25vw + var(--map-h, 44px) + 8px);
    top: var(--intro-top); bottom: auto;
    max-height: max(44px, calc(100dvh - var(--intro-top) - 12px - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto; box-sizing: border-box;
  }
  body.plain #stopclock.pt { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
