
  /* Layout: a fixed HUD frame over a pixel-rendered black hole; five scroll stations fall toward it. */
  :root
  {
    --bg: #161616;
    --ink: #ebe5d8;
    --muted: #9b958a;
    --faint: #5b5750;
    --gold: #c9a45c;
    --gold-hi: #f0d08e;
    --gold-dim: rgba(201, 164, 92, 0.35);
    --line: rgba(235, 229, 216, 0.14);
    --display: "Doto", "Courier New", monospace;
    --pixel: "Silkscreen", "Courier New", monospace;
    --mono: "Martian Mono", "Courier New", monospace;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --pad: max(16px, env(safe-area-inset-left, 0px));
    color-scheme: dark;
  }

  *
  {
    box-sizing: border-box;
  }

  html
  {
    background: var(--bg);
    overflow-x: hidden;
  }

  body
  {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  ::selection
  {
    background: var(--gold);
    color: var(--bg);
  }

  /* ---------- Sky ---------- */

  #sky
  {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }

  .fallback
  {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: none;
    background:
      radial-gradient(circle at 50% 55%, #000 0 9vmin, rgba(201, 164, 92, 0.9) 9.6vmin, rgba(201, 164, 92, 0.15) 14vmin, transparent 30vmin),
      var(--bg);
  }

  .no-gl .fallback
  {
    display: block;
  }

  .scan
  {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.22) 3px);
    mix-blend-mode: multiply;
  }

  /* ---------- HUD ---------- */

  .hud
  {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-left: var(--pad);
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    font-family: var(--pixel);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .hud.top
  {
    top: 0;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
  }

  .hud.bottom
  {
    bottom: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    color: var(--faint);
  }

  .brand
  {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .brand svg
  {
    width: 13px;
    height: 16px;
    filter: drop-shadow(0 0 4px rgba(201, 164, 92, 0.35));
  }

  .brand svg .b
  {
    fill: var(--gold);
  }

  .brand svg .d
  {
    fill: var(--gold);
    opacity: 0.45;
  }

  .brand svg .e
  {
    fill: var(--gold-hi);
  }

  .brand svg .r
  {
    fill: var(--gold);
    opacity: 0.6;
  }

  .burst .brand svg path
  {
    fill: #f4faff;
  }

  .status
  {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
  }

  .status i
  {
    width: 7px;
    height: 7px;
    background: var(--gold);
    animation: blink 1s steps(1) infinite;
  }

  @keyframes blink
  {
    0%
    {
      opacity: 1;
    }

    50%
    {
      opacity: 0;
    }
  }

  .hud .mid
  {
    color: var(--faint);
  }

  .tele
  {
    display: flex;
    gap: 22px;
    font-variant-numeric: tabular-nums;
  }

  .tele b
  {
    font-weight: 400;
    color: var(--gold);
  }

  .corner
  {
    position: fixed;
    width: 18px;
    height: 18px;
    z-index: 5;
    pointer-events: none;
    border-color: var(--gold-dim);
    border-style: solid;
    border-width: 0;
  }

  .corner.tl
  {
    top: calc(52px + env(safe-area-inset-top, 0px));
    left: var(--pad);
    border-top-width: 2px;
    border-left-width: 2px;
  }

  .corner.tr
  {
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    border-top-width: 2px;
    border-right-width: 2px;
  }

  .corner.bl
  {
    bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    left: var(--pad);
    border-bottom-width: 2px;
    border-left-width: 2px;
  }

  .corner.br
  {
    bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    border-bottom-width: 2px;
    border-right-width: 2px;
  }

  .gauge
  {
    position: fixed;
    right: calc(max(16px, env(safe-area-inset-right, 0px)) + 6px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .gauge span
  {
    width: 8px;
    height: 3px;
    background: rgba(235, 229, 216, 0.16);
  }

  .gauge span.on
  {
    background: var(--gold);
  }

  /* ---------- Stations ---------- */

  main
  {
    position: relative;
    z-index: 2;
  }

  section
  {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
    padding-block: 80px;
  }

  .hero
  {
    justify-content: flex-start;
    padding-top: 20vh;
  }

  .tag
  {
    font-family: var(--pixel);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 26px 0;
    display: inline-flex;
    gap: 12px;
    align-items: center;
  }

  .tag::before
  {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gold);
  }

  h1, h2
  {
    font-family: var(--display);
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
    text-shadow: 0 0 2px #000, 0 0 10px rgba(0, 0, 0, 0.95), 0 0 34px rgba(0, 0, 0, 0.9);
  }

  h1
  {
    font-size: clamp(36px, 6.6vw, 96px);
    line-height: 1.02;
    max-width: 14ch;
  }

  h2
  {
    font-size: clamp(30px, 5vw, 72px);
    line-height: 1.05;
    max-width: 16ch;
  }

  h1 em, h2 em
  {
    font-style: normal;
    color: var(--gold);
    text-shadow: 0 0 18px rgba(201, 164, 92, 0.45), 0 0 2px rgba(0, 0, 0, 0.9);
  }

  .sub
  {
    margin: 26px 0 0 0;
    max-width: 52ch;
    padding: 10px 16px;
    background: rgba(22, 22, 22, 0.78);
    border-left: 2px solid var(--gold);
    color: #c9c3b6;
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.75;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95);
  }

  .cue
  {
    margin-top: 9vh;
    font-family: var(--pixel);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .cue b
  {
    font-weight: 400;
    color: var(--gold);
    animation: drop 1.4s steps(4) infinite;
  }

  @keyframes drop
  {
    0%
    {
      transform: translateY(0);
      opacity: 1;
    }

    100%
    {
      transform: translateY(16px);
      opacity: 0.1;
    }
  }

  .reveal
  {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms steps(6), transform 700ms steps(6);
  }

  .in .reveal
  {
    opacity: 1;
    transform: none;
  }

  .in .reveal.d1
  {
    transition-delay: 120ms;
  }

  .in .reveal.d2
  {
    transition-delay: 300ms;
  }

  .glitch
  {
    position: relative;
    display: inline-block;
  }

  .glitch::before, .glitch::after
  {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }

  .in .glitch::before
  {
    color: var(--gold-hi);
    animation: gl1 3.2s steps(2) 1.1s infinite;
  }

  .in .glitch::after
  {
    color: #7fb2c9;
    animation: gl2 3.2s steps(2) 1.1s infinite;
  }

  @keyframes gl1
  {
    0%, 8%, 100%
    {
      opacity: 0;
      transform: none;
      clip-path: inset(0 0 0 0);
    }

    2%
    {
      opacity: 0.85;
      transform: translate(-5px, 1px);
      clip-path: inset(10% 0 55% 0);
    }

    5%
    {
      opacity: 0.85;
      transform: translate(4px, -2px);
      clip-path: inset(60% 0 8% 0);
    }
  }

  @keyframes gl2
  {
    0%, 9%, 100%
    {
      opacity: 0;
      transform: none;
      clip-path: inset(0 0 0 0);
    }

    3%
    {
      opacity: 0.7;
      transform: translate(5px, 0);
      clip-path: inset(40% 0 30% 0);
    }

    6%
    {
      opacity: 0.7;
      transform: translate(-4px, 2px);
      clip-path: inset(5% 0 70% 0);
    }
  }

  .contact
  {
    margin-top: 34px;
    font-family: var(--pixel);
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .contact a
  {
    color: var(--gold);
    text-decoration: none;
    background: rgba(22, 22, 22, 0.78);
    padding: 8px 14px;
    border: 2px solid var(--gold-dim);
    display: inline-block;
  }

  .contact a:hover,
  .contact a:focus-visible
  {
    background: var(--gold);
    color: var(--bg);
    outline: none;
  }

  .motto
  {
    margin-top: 28px;
    padding: 6px 12px;
    background: rgba(22, 22, 22, 0.78);
    font-family: var(--pixel);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .abyss
  {
    position: relative;
    min-height: 130vh;
    justify-content: flex-end;
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  /* The singularity lights the cipher from underneath. --sing runs 0 to 1 at the bottom of the page. */
  .abyss::before
  {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: min(820px, 100%);
    height: 260px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 78%, rgba(255, 238, 205, 0.26), rgba(201, 164, 92, 0.12) 42%, transparent 72%);
    opacity: var(--sing, 0);
    pointer-events: none;
    z-index: -1;
  }

  .cipher
  {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: rgba(235, 229, 216, calc(0.1 + var(--sing, 0) * 0.3));
    text-shadow: 0 2px 14px rgba(255, 226, 170, calc(var(--sing, 0) * 0.5));
    max-width: 640px;
    line-height: 1.9;
    word-break: break-all;
    cursor: default;
    transition: color 1.2s steps(6), text-shadow 1.2s steps(6);
  }

  .cipher:hover
  {
    color: rgba(201, 164, 92, 0.6);
    text-shadow: 0 0 10px rgba(201, 164, 92, 0.35);
  }

  .cipher.solved
  {
    word-break: normal;
    font-family: var(--pixel);
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .notice + .cue
  {
    margin-top: 5vh;
  }

  .credit
  {
    margin: 8px 0 0 0;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: rgba(155, 149, 138, calc(0.45 + var(--sing, 0) * 0.4));
  }

  .cicada
  {
    margin-top: 14px;
    padding: 4px;
    width: 30px;
    height: 30px;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 400ms steps(4), transform 400ms steps(4);
  }

  .cicada[hidden]
  {
    display: none;
  }

  .cicada:hover,
  .cicada:focus-visible
  {
    opacity: 1;
    transform: translateY(-2px);
    outline: none;
  }

  .cicada svg,
  .egg-card svg
  {
    width: 100%;
    height: 100%;
    display: block;
  }

  .cicada .w,
  .egg-card .w
  {
    fill: rgba(201, 164, 92, 0.45);
  }

  .cicada .b,
  .egg-card .b
  {
    fill: var(--gold);
  }

  .cicada .e,
  .egg-card .e
  {
    fill: var(--gold-hi);
  }

  .egg
  {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 10, 0.82);
  }

  .egg[hidden]
  {
    display: none;
  }

  .egg-card
  {
    max-width: 360px;
    padding: 28px 26px 22px;
    border: 2px solid var(--gold-dim);
    background: #121212;
    text-align: center;
    font-family: var(--pixel);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: egg-in 500ms steps(5);
  }

  .egg-card svg
  {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
  }

  @keyframes egg-in
  {
    0%
    {
      opacity: 0;
      transform: scale(0.94);
    }

    100%
    {
      opacity: 1;
      transform: none;
    }
  }

  .egg-k
  {
    margin: 0;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.3em;
  }

  .egg-t
  {
    margin: 14px 0 20px 0;
    font-size: 10px;
    line-height: 1.9;
    color: var(--muted);
  }

  .egg-go
  {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 11px;
    text-decoration: none;
  }

  .egg-go:hover,
  .egg-go:focus-visible
  {
    background: var(--gold);
    color: var(--bg);
    outline: none;
  }

  .egg-x
  {
    display: block;
    margin: 16px auto 0 auto;
    background: none;
    border: 0;
    color: var(--faint);
    font-family: var(--pixel);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .notice
  {
    margin: 16px 0 0 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 52ch;
    padding: 7px 12px;
    background: rgba(22, 22, 22, 0.78);
    border: 1px solid var(--gold-dim);
    font-family: var(--pixel);
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: left;
  }

  .notice i
  {
    flex: none;
    width: 6px;
    height: 6px;
    background: var(--gold);
    animation: blink 1s steps(1) infinite;
  }

  .copy
  {
    margin-top: 22px;
    font-family: var(--pixel);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--faint);
    text-transform: uppercase;
  }

  /* ---------- Breach (v6): the frame gets hacked as you fall ---------- */

  .fx
  {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .tears
  {
    position: fixed;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  .tears i
  {
    position: absolute;
    display: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 18%, rgba(214, 240, 255, 0.95) 64%, transparent);
    box-shadow: 0 0 10px 2px rgba(225, 242, 255, 0.75), 0 0 28px 4px rgba(200, 230, 255, 0.35);
  }

  .burst .tears i
  {
    display: block;
  }

  .hud
  {
    text-shadow: 0 0 calc(var(--g, 0) * 10px) rgba(240, 248, 255, calc(var(--g, 0) * 0.85));
  }

  .breach .hud,
  .breach .tag,
  .breach .motto
  {
    color: color-mix(in srgb, currentColor calc(100% - var(--g, 0) * 55%), #f4faff);
  }

  .breach h1,
  .breach h2
  {
    text-shadow: 0 0 2px #000, 0 0 10px rgba(0, 0, 0, 0.95), 0 0 34px rgba(0, 0, 0, 0.9), 0 0 calc(var(--g, 0) * 16px) rgba(236, 246, 255, calc(var(--g, 0) * 0.6));
  }

  .breach .corner
  {
    border-color: color-mix(in srgb, rgba(201, 164, 92, 0.35) calc(100% - var(--g, 0) * 100%), #f4faff);
  }

  .burst section.vis
  {
    filter: url(#tear);
    transform: translate3d(var(--jx, 0), var(--jy, 0), 0) skewX(var(--sk, 0deg));
  }

  /* ---------- v6.1: countdown, deeper breach, phone-strength glitch, ember ---------- */

  .cd
  {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .blocks
  {
    position: fixed;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    mix-blend-mode: difference;
  }

  .blocks b
  {
    position: absolute;
    display: none;
    opacity: 0;
    background: #f4faff;
  }

  .burst .blocks b
  {
    display: block;
  }

  .burst.deep section.vis
  {
    clip-path: inset(var(--c1, 0%) 0 var(--c2, 0%) 0);
  }

  .burst.deep section.vis h2
  {
    transform: translate3d(calc(var(--jx, 0px) * -1.8), 0, 0);
    text-shadow: calc(var(--jx, 0px) * 0.35) 0 0 rgba(240, 208, 142, 0.85), calc(var(--jx, 0px) * -0.35) 0 0 rgba(244, 250, 255, 0.85);
  }

  .deep .in .sub,
  .deep .in .tag
  {
    animation: sigdrop 1.7s steps(1) infinite;
  }

  @keyframes sigdrop
  {
    0%, 41%, 46%, 77%, 81%, 100%
    {
      opacity: 1;
    }

    43%
    {
      opacity: 0.2;
    }

    79%
    {
      opacity: 0.55;
    }
  }

  /* ---------- v6.2: the reveal ---------- */

  .rise[hidden]
  {
    display: none;
  }

  /* Stage mode: the field is cleared. Stars, the frame, the logo, a blinking status, then the chair. */

  #space
  {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }

  .stage,
  .set,
  .hint
  {
    display: none;
  }

  .risen #space
  {
    display: block;
  }

  .risen .fallback,
  .risen .abyss::before
  {
    display: none;
  }

  body.risen
  {
    background: #000;
  }

  /* The black hole is back in stage mode. It starts dark so the intro can bring it up. */
  .risen #sky
  {
    opacity: 0;
  }

  /* The instrument readouts stay in stage mode, greyed back so the stage leads. The T+ clock keeps its color. */
  .risen .gauge,
  .risen .hud .mid,
  .risen .hud.bottom .tele:first-child,
  .risen .hud.bottom .hide-sm
  {
    filter: grayscale(1);
    opacity: 0.5;
  }

  .risen main > section:not(.abyss)
  {
    visibility: hidden;
  }

  #clock
  {
    display: inline-block;
    transition: color 300ms steps(3), text-shadow 300ms steps(3);
  }

  #clock.two
  {
    color: var(--gold-hi);
    text-shadow: 0 0 8px rgba(240, 208, 142, 0.8);
  }

  #clock.twotwo,
  #clock.prime
  {
    color: #fff6e0;
    text-shadow: 0 0 10px rgba(255, 246, 224, 0.95), 0 0 22px rgba(240, 208, 142, 0.7);
    animation: twitch 0.4s steps(2) infinite;
  }

  @keyframes twitch
  {
    0%, 100%
    {
      transform: translateX(0);
    }

    50%
    {
      transform: translateX(1px);
    }
  }

  /* A five-by-five pixel cicada drawn with shadows. It shows at prime seconds. */
  .brood
  {
    display: inline-block;
    width: 2px;
    height: 2px;
    margin: 0 20px 8px 0;
    vertical-align: middle;
    color: var(--gold-hi);
    background: currentColor;
    opacity: 0;
    box-shadow: 8px 0 0 currentColor, 2px 2px 0 currentColor, 6px 2px 0 currentColor, 0 4px 0 currentColor, 2px 4px 0 currentColor, 4px 4px 0 currentColor, 6px 4px 0 currentColor, 8px 4px 0 currentColor, 2px 6px 0 currentColor, 4px 6px 0 currentColor, 6px 6px 0 currentColor, 4px 8px 0 currentColor;
  }

  .brood.on,
  .swarm .brood
  {
    opacity: 1;
  }

  .risen .hint
  {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    text-align: center;
    font-family: var(--pixel);
    font-size: 12px;
    color: var(--gold);
    opacity: calc(1 - var(--scr, 0) * 8);
    pointer-events: none;
    animation: hintblink 1.4s steps(1) infinite;
  }

  @keyframes hintblink
  {
    0%, 59%
    {
      visibility: visible;
    }

    60%, 100%
    {
      visibility: hidden;
    }
  }

  .risen .abyss
  {
    min-height: 100vh;
  }

  .risen .set
  {
    display: block;
    position: relative;
    /* The stage runs the full width of the window, so nothing on it is cut off at an edge inside the page.
       Its height sets the scale, and is never more than the window can show together with the cipher under it. */
    width: 100vw;
    flex: none;
    height: max(150px, min(575px, 60vw, calc(100vh - 215px)));
    height: max(150px, min(575px, 60vw, calc(100svh - 215px)));
    margin-bottom: 10px;
  }

  /* The log: a title and plain typed lines over the first view. It belongs to the page, so it scrolls away as the
     fall begins. One typeface throughout: the label and the message are set in the same face and size. */
  .log
  {
    display: none;
  }

  .risen .log
  {
    display: block;
    position: absolute;
    top: 15vh;
    left: 50%;
    width: min(88vw, 660px);
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-shadow: 0 0 10px #000, 0 0 3px #000;
  }

  .log p
  {
    margin: 0 0 7px;
  }

  .log .who
  {
    margin-right: 0.7em;
    font: inherit;
    color: var(--gold);
  }

  /* the title: who this is about, set apart from the messages under it */
  .log .over
  {
    margin: 0 0 2px;
    font-size: 0.72em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .log .head
  {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 164, 92, 0.45);
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.45;
  }

  .log .mail
  {
    margin-top: 16px;
  }

  .log a
  {
    pointer-events: auto;
    color: var(--gold-hi);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .log a:hover,
  .log a:focus-visible
  {
    color: var(--ink);
    outline: none;
  }

  .log .caret
  {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.15em;
    background: var(--gold);
    animation: blink 1s steps(1) infinite;
  }

  /* a short window: start higher and set tighter, so the last line stays clear of the black hole */
  @media (max-height: 620px)
  {
    .risen .log
    {
      top: 10vh;
      font-size: 12px;
      line-height: 1.5;
    }

    .log p
    {
      margin-bottom: 3px;
    }

    .log .head
    {
      margin-bottom: 8px;
      padding-bottom: 6px;
    }

    .log .mail
    {
      margin-top: 8px;
    }
  }

  .log .sr
  {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  #stagecv,
  #wallcv,
  #frontcv
  {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }

  .chair
  {
    position: absolute;
    left: 50%;
    bottom: 8%;
    height: 56%;
    aspect-ratio: 11 / 20;
    transform: translateX(-50%);
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .chair:focus-visible
  {
    outline: 1px solid var(--gold);
    outline-offset: 2px;
  }

  /* One voice for every word on the frame in stage mode: the pixel face, one size, one tracking. */
  .risen .hud,
  .risen .cipher,
  .risen .cipher.solved,
  .risen .copy,
  .egg-t,
  .egg-go,
  .egg-x
  {
    font-family: var(--pixel);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  /* The cipher sits tight under the stage: small, close-set, wide lines. */
  .risen .cipher,
  .risen .cipher.solved
  {
    font-size: 8px;
    letter-spacing: 0.04em;
    word-spacing: -0.15em;
    line-height: 1.45;
    max-width: min(94vw, 900px);
  }

  .risen .status i
  {
    animation-duration: 2.6s;
  }

  .ember
  {
    margin-top: 10px;
    padding: 4px;
    width: 30px;
    height: 30px;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0.3;
  }

  .ember[hidden]
  {
    display: none;
  }

  .ember.lit,
  .ember:hover,
  .ember:focus-visible
  {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(240, 208, 142, 0.9));
  }

  .ember svg
  {
    display: block;
    width: 100%;
    height: 100%;
  }

  .emb .f1
  {
    fill: var(--gold);
  }

  .emb .f2
  {
    fill: var(--gold-hi);
  }

  .emb .f3
  {
    fill: #fff6e0;
  }

  .egg-cd
  {
    margin: 0 0 18px 0;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold-hi);
  }

  .burst .hud
  {
    transform: translate3d(calc(var(--jx, 0px) * -0.6), 0, 0);
  }

  .burst .corner
  {
    border-color: #f4faff;
    box-shadow: 0 0 10px rgba(240, 248, 255, 0.8);
  }

  .burst .scan
  {
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0.4) 2px);
  }

  .burst .gauge span.on
  {
    background: #f4faff;
    box-shadow: 0 0 6px rgba(240, 248, 255, 0.9);
  }

  @media (max-width: 720px)
  {
    .hud .mid,
    .tele .hide-sm
    {
      display: none;
    }

    .gauge
    {
      display: none;
    }

    .burst .hud.top .status
    {
      color: #f4faff;
    }

    .burst .tears i
    {
      box-shadow: 0 0 14px 4px rgba(225, 242, 255, 0.85), 0 0 34px 8px rgba(200, 230, 255, 0.4);
    }

    .risen .set
    {
      height: max(150px, min(120vw, calc(100vh - 235px)));
      height: max(150px, min(120vw, calc(100svh - 235px)));
    }

    .chair
    {
      height: 50%;
    }

    .risen .log
    {
      top: 9vh;
      font-size: 12px;
      line-height: 1.6;
    }

    .log p
    {
      margin-bottom: 5px;
    }

    .log .head
    {
      margin-bottom: 10px;
      padding-bottom: 8px;
    }

    .log .mail
    {
      margin-top: 10px;
    }
  }

  @media (prefers-reduced-motion: reduce)
  {
    .status i, .cue b, .in .glitch::before, .in .glitch::after, .notice i, .egg-card
    {
      animation: none;
    }

    .reveal
    {
      transition: none;
    }

    .tears,
    .blocks
    {
      display: none;
    }

    .deep .in .sub,
    .deep .in .tag
    {
      animation: none;
    }

    .risen .hint,
    #clock.twotwo,
    #clock.prime
    {
      animation: none;
    }
  }

  /* a narrow and short window at once (a phone set to large text): the log gets as compact as it can stay readable */
  @media (max-width: 720px) and (max-height: 620px)
  {
    .risen .log
    {
      top: 8vh;
      font-size: 11px;
      line-height: 1.4;
    }

    .log p
    {
      margin-bottom: 2px;
    }

    .log .head
    {
      margin-bottom: 6px;
      padding-bottom: 5px;
    }

    .log .mail
    {
      margin-top: 6px;
    }
  }
