.kc-games{position:relative}
.kc-track,.kc-stage,.kc-world{display:block}
.kc-bar{display:none}
.kc-scene{position:relative;display:flex;flex-wrap:wrap;align-items:flex-end;gap:28px 56px;box-sizing:border-box;min-height:100svh;padding:78px var(--gutter) 48px;border-bottom:1px solid var(--rule);background:var(--paper);color:var(--ink)}
/* Wider than the column, a panel's paper runs on to both edges of the screen. */
@media (min-width:1441px){.kc-scene{box-shadow:0 0 0 100vmax var(--paper);clip-path:inset(0 -100vmax)}}
.kc-scene__text{flex:3 1 480px;display:flex;flex-direction:column;gap:20px}
.kc-scene__text h2{margin:0;font-size:clamp(34px, 4.4vw, 60px);line-height:1;font-weight:500;letter-spacing:-0.055em;text-wrap:balance}
.kc-scene__text p{margin:0;font-size:18px;line-height:26px;letter-spacing:-0.02em;color:var(--ink-2)}
.kc-scene__still{flex:1 1 200px;display:flex;align-items:flex-end;min-height:64px}
.kc-scene__piece{touch-action:pan-y}
.kc-scene .kc-facts{flex:1 1 100%;margin:0 calc(var(--gutter) * -1);border-bottom:0}
.kc-cue{display:flex;align-items:flex-end;gap:12px;margin-left:auto;color:var(--ink);text-decoration:none}
.kc-cue svg{display:block;flex:none}
@media (min-width:760px){.kc-cue svg{width:80px;height:96px}}
.kc-cue rect{animation-duration:2170ms;animation-timing-function:linear;animation-fill-mode:backwards}
.kc-cue rect[y="1"]{animation-delay:70ms}.kc-cue rect[y="2"]{animation-delay:140ms}.kc-cue rect[y="3"]{animation-delay:210ms}.kc-cue rect[y="4"]{animation-delay:280ms}.kc-cue rect[y="5"]{animation-delay:350ms}
.kc-cue:hover rect,.kc-cue:focus-visible rect,.kc-stage[data-resting="poortwachter"] .kc-cue:hover rect,.kc-stage[data-resting="poortwachter"] .kc-cue:focus-visible rect{animation-name:kc-paint,kc-paint-again}
@keyframes kc-paint{6%,79%{fill-opacity:1}to{fill-opacity:0}}
@keyframes kc-paint-again{6%,79%{fill-opacity:1}to{fill-opacity:0}}
@media (prefers-reduced-motion:reduce){.kc-cue rect{animation:none !important;fill-opacity:1 !important}}
.kc-frame{display:block;width:64px;height:64px;object-fit:none;object-position:0 0;image-rendering:pixelated}

/* The live stage, laid out from html.kc-live (set by js/flag.js) at first paint, so the page
   keeps its height when the scripts arrive. --screens is 12 (four rests of 2, three travels
   of 1, plus 1) until stage.js sets it from the data-rest values.
   On a screen 560px tall or less a scene does not fit the stage, so the live layout does not
   apply and the panels stack as they do without scripts; the inline transform stage.js keeps
   writing is overruled. */
@media not all and (max-height:560px){
  .kc-live .kc-track{height:calc(var(--screens, 12) * 100svh)}
  /* The stage spans the screen; the bar's buttons and a scene's words keep to the column, --bleed in from each edge. */
  .kc-live .kc-stage{--bar:44px;position:sticky;top:0;height:100svh;margin-inline:calc(-1 * var(--bleed));overflow:hidden;overflow:clip}
  .kc-live .kc-bar{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;align-items:stretch;box-sizing:border-box;height:var(--bar);padding-inline:var(--bleed);border-bottom:1px solid var(--rule);background:var(--paper);color:var(--ink);font-size:15px;line-height:18px;font-weight:600;letter-spacing:-.01em}
  .kc-live .kc-stage:not([data-active]) .kc-bar{visibility:hidden}
  .kc-bar > *{display:flex;align-items:center;padding:0 14px;border-right:1px solid var(--rule);white-space:nowrap}
  .kc-bar a{color:var(--ink);text-decoration:none}
  .kc-bar__step{justify-content:center;width:var(--bar);box-sizing:border-box;padding:0}
  .kc-bar svg{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:square}
  .kc-bar__home{gap:8px;border-right:0;border-left:1px solid var(--rule)}
  .kc-bar__skip{display:block;line-height:calc(var(--bar) - 1px)}
  @media (max-width:759px){.kc-bar > *{padding:0 8px}.kc-bar__home{justify-content:center;width:var(--bar);box-sizing:border-box;padding:0}.kc-bar__home span,.kc-bar__skip span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}}
  .kc-bar [data-kc="scene-name"]{display:block;flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--bar) - 1px);border-right:0}
  .kc-bar a[href="#end"]{border-right:0;border-left:1px solid var(--rule)}
  .kc-live .kc-world{display:grid;grid-template:repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));width:200%;height:200%}
  /* Placed as PATH in js/track.js places them: right, then down, then left. */
  .kc-live .kc-scene:nth-child(2){grid-area:1 / 2}
  .kc-live .kc-scene:nth-child(3){grid-area:2 / 2}
  .kc-live .kc-scene:nth-child(4){grid-area:2 / 1}
  .kc-live .kc-scene > .kc-tag{top:var(--bar);left:var(--bleed)}
  /* The cue is a painted arrow when the panels stack; only here does it start as outlines and paint on arrival. */
  .kc-live .kc-cue rect{fill-opacity:0;animation-fill-mode:both}
  .kc-live .kc-stage[data-resting="poortwachter"] .kc-cue rect{animation-name:kc-paint}
  .kc-live .kc-stage[data-resting="poortwachter"] .kc-cue:hover rect,.kc-live .kc-stage[data-resting="poortwachter"] .kc-cue:focus-visible rect{animation-name:kc-paint,kc-paint-again}
  /* A scene's content fits the stage. Each size runs from its value on a 667px-tall stage up to
     the canvas value on a 900px-tall one: x + (100svh - 667px) * (canvas - x) / 233. */
  /* Inside the stage a panel's shadow would cover its neighbours, and the stage itself spans the screen. */
  .kc-live .kc-scene{min-height:0;padding:calc(var(--bar) + clamp(30px, 30px + (100svh - 667px) * 48 / 233, 78px)) calc(var(--gutter) + var(--bleed)) clamp(20px, 20px + (100svh - 667px) * 28 / 233, 48px);row-gap:clamp(16px, 16px + (100svh - 667px) * 12 / 233, 28px);border-bottom:0;box-shadow:none;clip-path:none}
  .kc-live .kc-scene::after{content:none}
  .kc-live .kc-scene__text{gap:clamp(12px, 12px + (100svh - 667px) * 8 / 233, 20px)}
  .kc-live .kc-scene__text h2{font-size:clamp(28px, 28px + (100svh - 667px) * 32 / 233, clamp(34px, 4.4vw, 60px))}
  .kc-live .kc-scene__text p{font-size:clamp(16px, 16px + (100svh - 667px) * 2 / 233, 18px);line-height:calc(1em + 8px)}
  @media (max-width:759px){.kc-live .kc-scene .kc-fact{box-sizing:border-box;flex-basis:calc(50% - 1px);min-width:0}.kc-live .kc-scene .kc-fact dd{font-size:clamp(22px, 7vw, 28px)}}
}
@media (max-height:560px){.kc-live .kc-world{transform:none !important}}
