:root {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --navy: #101a26;
  --paper: #fffbea;
  --red: #f34235;
  --cyan: #72fff0;
  --muted: #a3afba;
  --yellow: #eaff74;
  font-family: Arial, Helvetica, sans-serif;
  background: #0a1018;
  color: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, #253448 0, #101925 60%, #090e15 100%);
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
[hidden] {
  display: none !important;
}
.broadcast {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 42px 12px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  margin-bottom: 20px;
}
.wordmark {
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.logo {
  font:
    bold italic 53px Impact,
    'Arial Narrow',
    sans-serif;
  letter-spacing: -6px;
  background: var(--red);
  padding: 0 12px 5px 7px;
  transform: skew(-7deg);
  line-height: 1;
}
.logo span {
  color: #111923;
}
.station {
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1.2;
}
.station b {
  font-size: 18px;
  letter-spacing: 2.2px;
}
.programme {
  font:
    12px 'Courier New',
    monospace;
  letter-spacing: 1px;
  color: #bdc8d1;
}
.programme em {
  font-style: normal;
  color: var(--yellow);
  display: block;
  margin-top: 5px;
}
.masthead nav {
  display: flex;
  gap: 24px;
}
.nav-button {
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 14px 0;
}
.nav-button span {
  color: var(--cyan);
  margin-left: 6px;
}
.television {
  border: 1px solid #758496;
  box-shadow: 0 24px 80px #0008;
  position: relative;
}
.picture {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #607b7d;
  isolation: isolate;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none !important;
}
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #0000 0, #0000 3px, #0000000a 4px);
  z-index: 4;
}
.live-bug {
  position: absolute;
  left: 2.5%;
  top: 4%;
  display: flex;
  gap: 7px;
  align-items: center;
  background: var(--red);
  padding: 7px 9px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 #101a26;
  z-index: 5;
}
.live-bug > span {
  height: 7px;
  width: 7px;
  background: #fff;
  border-radius: 50%;
}
.live-bug b {
  background: var(--paper);
  color: #111923;
  font-size: 11px;
  padding: 8px 11px;
  margin: -7px -9px -7px 2px;
}
.title-screen {
  position: absolute;
  inset: 0 40% 0 0;
  padding: 8% 0 4% 4.5%;
  background: linear-gradient(90deg, #101a26f5, #101a26ed 80%, #101a2600);
  z-index: 6;
}
.episode-label {
  display: inline-block;
  font:
    11px 'Courier New',
    monospace;
  letter-spacing: 1.8px;
  background: var(--red);
  padding: 7px 9px;
  transform: rotate(-2deg);
}
h1 {
  font:
    clamp(38px, 6.5vw, 92px)/0.88 Impact,
    'Arial Narrow',
    sans-serif;
  font-stretch: condensed;
  letter-spacing: -1.5px;
  margin: 20px 0 17px;
  text-shadow: 4px 4px 0 #0006;
}
h1 span {
  color: var(--yellow);
  font-size: 0.72em;
  letter-spacing: -1px;
}
.source-link {
  display: block;
  width: fit-content;
  color: var(--cyan);
  font-size: 12px;
  padding: 8px 0;
  margin-bottom: 12px;
  text-underline-offset: 3px;
}
.title-copy {
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.45;
  color: #cbd3d4;
  margin: 0 0 22px;
}
.primary {
  background: var(--yellow);
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 var(--paper);
  color: var(--navy);
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  min-height: 50px;
}
.primary span {
  margin-left: 26px;
}
.primary:hover:not(:disabled) {
  background: var(--cyan);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--paper);
}
.primary:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--paper);
}
.start-note {
  font-size: 11px;
  letter-spacing: 1px;
  color: #b8c3cf;
  margin: 12px 0 4px;
}
.title-instructions {
  display: flex;
  gap: 23px;
  font:
    11px 'Courier New',
    monospace;
  color: #c7d1d9;
  align-items: center;
}
.title-instructions span {
  display: flex;
  gap: 8px;
  align-items: center;
}
kbd {
  font:
    11px 'Courier New',
    monospace;
  white-space: nowrap;
  padding: 5px 7px;
  background: #243140;
  border: 1px solid #607283;
  border-bottom-width: 3px;
  border-radius: 3px;
  color: #e7f0f6;
}
.character-tag {
  position: absolute;
  right: 3%;
  bottom: 7%;
  transform: rotate(-2deg);
  max-width: 43%;
  box-shadow: 4px 4px 0 #111827;
  z-index: 3;
}
.character-tag strong {
  display: block;
  background: var(--red);
  padding: 10px 16px;
  font:
    clamp(15px, 2vw, 27px) Impact,
    sans-serif;
  letter-spacing: 1px;
}
.character-tag span {
  display: block;
  background: var(--paper);
  padding: 8px 16px;
  color: var(--navy);
  font-size: 11px;
}
.ticker {
  height: 43px;
  background: var(--paper);
  color: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 3px solid var(--navy);
}
.ticker > b {
  height: 100%;
  display: grid;
  place-content: center;
  background: var(--red);
  color: var(--paper);
  font: bold 15px Arial;
  letter-spacing: 1px;
  padding: 0 21px;
  flex-shrink: 0;
}
.ticker > div {
  overflow: hidden;
  flex: 1;
}
.ticker > div > span {
  display: block;
  white-space: nowrap;
  font:
    bold 12px 'Courier New',
    monospace;
  letter-spacing: 0.5px;
  padding-left: 20px;
  animation: ticker 28s linear infinite;
}
.channel-mark {
  font: bold italic 32px Impact;
  background: #142438;
  color: var(--paper);
  padding: 0 17px;
  height: 100%;
}
.console-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0 17px;
  gap: 18px;
}
.console-strip > div {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}
.key-hint {
  font-size: 11px;
  color: #bac5cf;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.5px;
}
.edition {
  font:
    11px 'Courier New',
    monospace;
  letter-spacing: 1px;
  color: #8c9baa;
  white-space: nowrap;
}
.fineprint {
  font-size: 11px;
  color: #7e8e9d;
  margin: 0;
  border-top: 1px solid #304050;
  padding-top: 12px;
  line-height: 1.7;
}
.fineprint button {
  border: 0;
  background: none;
  color: #afc0cc;
  font-size: 11px;
  text-decoration: underline;
}
.fineprint #status {
  float: right;
  color: var(--yellow);
}
.hud {
  position: absolute;
  top: 4%;
  left: 2.5%;
  right: 2.5%;
  z-index: 5;
  display: flex;
  align-items: start;
  gap: 20px;
}
.picture:has(.hud:not([hidden])) .live-bug {
  top: auto;
  bottom: 3%;
  transform: scale(0.85);
  transform-origin: left bottom;
}
.reporter-hud {
  background: var(--navy);
  padding: 11px 14px;
  border-left: 4px solid var(--cyan);
  width: 210px;
  flex-shrink: 0;
}
.reporter-hud > span {
  font-size: 10px;
  letter-spacing: 1px;
}
#health {
  font-size: 25px;
  letter-spacing: 4px;
  color: var(--cyan);
  white-space: nowrap;
}
.boss-hud {
  margin-left: auto;
  background: #101a26e8;
  padding: 12px 16px;
  min-width: 35%;
  max-width: 50%;
}
.boss-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 1px;
}
.composure-track {
  height: 12px;
  background: #3c4b5c;
  margin: 8px 0 5px;
}
.composure-track > div {
  height: 100%;
  width: 100%;
  background: var(--red);
  transition: width 0.15s;
}
.boss-sub {
  font:
    9px 'Courier New',
    monospace;
  letter-spacing: 1px;
  color: #c5d0da;
}
.pause-button {
  background: var(--paper);
  color: var(--navy);
  border: 0;
  font-weight: bold;
  padding: 11px 13px;
  font-size: 18px;
}
.caption-stack {
  position: absolute;
  bottom: 3%;
  left: 22%;
  right: 22%;
  display: grid;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}
.instruction,
.subtitle {
  text-align: center;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
  padding: 9px 12px;
  z-index: 5;
  font: bold clamp(12px, 1.4vw, 20px) Arial;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #08111ccb;
  backdrop-filter: blur(5px);
  z-index: 10;
}
.overlay-card {
  text-align: center;
  background: var(--navy);
  border: 1px solid #738294;
  box-shadow: 8px 8px 0 #0007;
  padding: 35px 40px;
  max-width: 80%;
}
.eyebrow {
  font:
    11px 'Courier New',
    monospace;
  letter-spacing: 2px;
  color: var(--cyan);
}
.overlay-card h2 {
  font:
    clamp(35px, 5vw, 66px)/1 Impact,
    sans-serif;
  margin: 15px 0;
}
.overlay-card p {
  color: #c5d0da;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}
.text-button {
  display: block;
  margin: 22px auto 0;
  background: none;
  border: 0;
  color: #b8c5d2;
  text-decoration: underline;
  font-size: 12px;
}
.phase-card {
  position: absolute;
  inset: 25% 10% auto;
  text-align: center;
  background: var(--navy);
  padding: 28px 25px;
  transform: rotate(-2deg);
  border-top: 8px solid var(--red);
  box-shadow: 10px 10px 0 #0007;
  z-index: 7;
}
.phase-card > span {
  font:
    12px 'Courier New',
    monospace;
  letter-spacing: 3px;
  color: var(--cyan);
}
.phase-card h2 {
  font:
    clamp(25px, 5vw, 70px)/1 Impact,
    sans-serif;
  color: var(--yellow);
  margin: 12px 0;
}
.phase-card p {
  font-size: 15px;
  margin: 0;
}
.feedback {
  position: absolute;
  left: 33%;
  top: 32%;
  font:
    italic 40px Impact,
    sans-serif;
  transform: rotate(-8deg);
  color: var(--cyan);
  text-shadow: 3px 3px 0 var(--navy);
  pointer-events: none;
  z-index: 6;
  opacity: 0;
}
.feedback.pop {
  animation: feedback 0.7s ease-out;
}
dialog {
  border: 1px solid #687e91;
  box-shadow: 10px 10px 0 #0007;
  background: var(--navy);
  color: var(--paper);
  max-width: min(530px, 90vw);
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.dialog-heading h2 {
  font:
    29px Impact,
    sans-serif;
  letter-spacing: 1px;
  margin: 0 0 20px;
}
.dialog-heading button {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 24px;
  align-self: start;
}
#dialog-content {
  font-size: 16px;
  line-height: 1.6;
}
#dialog-content p {
  margin: 12px 0;
}
#dialog-content a {
  color: var(--cyan);
}
#dialog-content label {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
}
input[type='range'] {
  accent-color: var(--cyan);
  width: 180px;
}
input[type='checkbox'] {
  accent-color: var(--cyan);
  width: 22px;
  height: 22px;
}
.help-cyan {
  color: var(--cyan);
  font-weight: bold;
}
.reduced .scanlines {
  display: none;
}
.reduced .ticker > div > span {
  animation: none;
}
.reduced .feedback.pop {
  animation: none;
  opacity: 0;
}
@keyframes ticker {
  0%,
  12% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-42%);
  }
}
@keyframes feedback {
  0% {
    opacity: 1;
    translate: 0 12px;
    scale: 0.8;
  }
  20% {
    opacity: 1;
    scale: 1.15;
  }
  100% {
    opacity: 0;
    translate: 0 -30px;
    scale: 1;
  }
}
@media (min-width: 1500px) {
  .broadcast {
    padding-top: 40px;
  }
}
@media (max-width: 1050px) {
  .broadcast {
    padding: 16px 22px;
  }
  .programme {
    display: none;
  }
  .title-screen {
    padding-top: 10%;
    right: 35%;
  }
  .title-copy {
    margin-bottom: 15px;
  }
  .title-instructions,
  .edition {
    display: none;
  }
  .start-note {
    margin-bottom: 0;
  }
  .boss-hud {
    min-width: 40%;
  }
  .console-strip > div {
    gap: 15px;
  }
}
@media (max-width: 700px) {
  .broadcast {
    padding: 10px;
  }
  .masthead {
    margin-bottom: 12px;
    min-height: 45px;
  }
  .station {
    display: none;
  }
  .logo {
    font-size: 40px;
  }
  .masthead nav {
    gap: 17px;
  }
  .nav-button {
    font-size: 10px;
  }
  .title-screen {
    padding-top: 11%;
    right: 30%;
  }
  .episode-label {
    font-size: 8px;
    padding: 4px;
  }
  .title-screen h1 {
    font-size: 8vw;
    margin: 12px 0;
  }
  .title-copy {
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .primary {
    min-height: 35px;
    font-size: 11px;
    padding: 9px 12px;
  }
  .start-note {
    font-size: 9px;
    margin-top: 8px;
  }
  .live-bug {
    font-size: 9px;
    padding: 4px;
  }
  .live-bug b {
    font-size: 8px;
    padding: 5px;
    margin: -4px -4px -4px 0;
  }
  .character-tag span {
    display: none;
  }
  .character-tag strong {
    font-size: 14px;
    padding: 7px;
  }
  .ticker {
    height: 32px;
  }
  .ticker > b {
    font-size: 11px;
    padding: 0 10px;
  }
  .ticker > div > span {
    font-size: 10px;
  }
  .console-strip {
    padding: 16px 0;
  }
  .key-hint {
    font-size: 9px;
  }
  kbd {
    font-size: 9px;
    padding: 3px;
  }
  .fineprint {
    font-size: 10px;
  }
  .hud {
    gap: 8px;
  }
  .reporter-hud {
    width: 120px;
    padding: 6px 8px;
  }
  .reporter-hud > span {
    font-size: 7px;
  }
  #health {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .boss-hud {
    padding: 7px 8px;
    max-width: 52%;
    min-width: 45%;
  }
  .boss-heading {
    font-size: 7px;
    gap: 5px;
  }
  .boss-sub {
    font-size: 6px;
  }
  .composure-track {
    height: 6px;
    margin: 5px 0;
  }
  .pause-button {
    font-size: 12px;
    padding: 8px;
  }
  .caption-stack {
    left: 15%;
    right: 15%;
  }
  .phase-card {
    padding: 15px;
  }
  .phase-card p {
    font-size: 11px;
  }
  .overlay-card {
    padding: 16px 20px;
  }
  .overlay-card p {
    font-size: 12px;
  }
  .overlay-card h2 {
    font-size: 30px;
  }
  .overlay-card .text-button {
    margin-top: 15px;
  }
  .feedback {
    font-size: 24px;
  }
  .fineprint #status {
    float: none;
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker > div > span {
    animation: none;
  }
  .scanlines {
    display: none;
  }
}
/* Translucent thumb controls stay clear of the central captions. */
.touch-controls {
  display: none;
  position: fixed;
}
.rotate-prompt {
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  background: radial-gradient(ellipse at top, #253448, var(--navy) 70%);
}
.rotate-prompt:focus {
  outline: none;
}
.rotate-prompt .rotate-brand {
  font:
    48px/0.95 Impact,
    'Arial Narrow',
    sans-serif;
  color: var(--paper);
  margin: 0 0 16px;
}
.rotate-brand span {
  color: var(--yellow);
  font-size: 0.7em;
}
.rotate-phone {
  display: grid;
  place-items: center;
  width: 68px;
  height: 110px;
  border: 4px solid var(--cyan);
  border-radius: 12px;
  transform: rotate(25deg);
  color: var(--cyan);
  font-size: 48px;
}
.rotate-prompt h2 {
  font:
    32px/1.05 Impact,
    'Arial Narrow',
    sans-serif;
  margin: 12px 0 0;
}
.rotate-prompt p {
  color: #cbd3d4;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.rotate-prompt .rotate-note {
  color: var(--muted);
  font-size: 13px;
}
.touch-layout .console-strip {
  display: none;
}
.touch-layout .title-instructions {
  display: none;
}
.touch-layout.controls-active .touch-controls {
  display: block;
}
.touch-controls .move-control,
.touch-controls .deflect-control {
  position: fixed;
  z-index: 12;
  bottom: max(8px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  width: 96px;
}
.touch-controls #joystick,
.touch-controls #deflect {
  opacity: 0.55;
  transition: opacity 0.1s;
}
.touch-controls #joystick:active,
.touch-controls #deflect:active {
  opacity: 1;
}
.move-control {
  left: max(8px, env(safe-area-inset-left));
}
.deflect-control {
  right: max(8px, env(safe-area-inset-right));
}
.touch-controls span {
  font: bold 10px Arial;
  letter-spacing: 0.7px;
  color: var(--cyan);
}
.move-control > span,
.deflect-control > span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 28px;
  background: var(--navy);
  text-align: center;
}
#joystick {
  width: 88px;
  height: 88px;
  border: 2px solid #607283;
  border-radius: 50%;
  background: #101a2699;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#stick {
  display: block;
  width: 40px;
  height: 40px;
  background: var(--cyan);
  border: 4px solid #fffbea;
  border-radius: 50%;
  box-shadow: 0 4px 0 #0005;
  pointer-events: none;
}
#deflect {
  width: 88px;
  height: 88px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background: #101a2699;
  color: var(--cyan);
  font-size: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 5px 0 #0009;
}
#deflect strong {
  font-size: 12px;
  margin-top: 4px;
}
#deflect.ready {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 24px #72fff070;
}
#deflect.pressed {
  transform: translateY(3px);
  box-shadow: none;
}
#deflect:disabled {
  cursor: default;
  opacity: 0.4;
}
.touch-layout.in-game {
  overscroll-behavior: none;
}
.touch-layout .nav-button {
  min-height: 44px;
}
.touch-layout .pause-button {
  min-height: 44px;
  min-width: 44px;
}
@media (orientation: landscape) {
  .touch-layout .broadcast {
    padding: max(4px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    max-width: none;
  }
  .touch-layout .masthead {
    height: 44px;
    min-height: 44px;
    margin: 0 0 4px;
    gap: 10px;
  }
  .touch-layout .logo {
    font-size: 30px;
  }
  .touch-layout .station,
  .touch-layout .programme,
  .touch-layout .fineprint,
  .touch-layout .ticker {
    display: none;
  }
  .touch-layout .television {
    width: min(
      100%,
      calc((100dvh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9)
    );
    margin: auto;
  }
  .touch-layout.in-game {
    overflow: hidden;
  }
  .touch-layout.in-game .broadcast {
    position: fixed;
    inset: 0;
    height: 100dvh;
    padding: calc(48px + env(safe-area-inset-top)) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
    display: grid;
    place-items: center;
  }
  .touch-layout.in-game .masthead {
    display: none;
  }
  .touch-layout.in-game .television {
    width: min(
      calc(100dvw - env(safe-area-inset-left) - env(safe-area-inset-right)),
      calc((100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 1200 / 460)
    );
    border: 0;
    box-shadow: none;
  }
  .touch-layout.in-game .picture {
    aspect-ratio: 1200 / 460;
  }
  .touch-layout .title-screen {
    padding: 4% 0 2% 4%;
    right: 34%;
  }
  .touch-layout .title-screen h1 {
    font-size: clamp(28px, 9dvh, 60px);
    margin: 10px 0;
  }
  .touch-layout .title-copy {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .touch-layout .source-link {
    min-height: 44px;
    padding: 12px 0;
    margin: 0;
  }
  .touch-layout .start-note:empty {
    display: none;
  }
  .touch-layout .episode-label {
    font-size: 9px;
  }
  .touch-layout .primary {
    min-height: 44px;
    font-size: 12px;
    padding: 10px 14px;
  }
  .touch-layout .start-note {
    font-size: 10px;
    margin: 9px 0;
  }
  .touch-layout .character-tag span {
    display: none;
  }
  .touch-layout .hud {
    position: fixed;
    gap: 6px;
    top: env(safe-area-inset-top);
    left: env(safe-area-inset-left);
    right: env(safe-area-inset-right);
    height: 48px;
    align-items: center;
    padding: 2px 8px;
    background: var(--navy);
  }
  .touch-layout .reporter-hud {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    max-width: 44%;
    padding: 0 8px;
  }
  .touch-layout .reporter-hud > span {
    display: none;
  }
  .touch-layout #charge-meter {
    margin-top: 0;
  }
  .touch-layout #health {
    flex-shrink: 0;
    font-size: 17px;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  .touch-layout .boss-hud {
    padding: 6px 8px;
    min-width: 0;
    max-width: 45%;
  }
  .touch-layout .boss-heading {
    font-size: 12px;
    gap: 8px;
    letter-spacing: 0;
  }
  .touch-layout #composure {
    white-space: nowrap;
  }
  .touch-layout .boss-sub {
    display: none;
  }
  .touch-layout .composure-track {
    height: 6px;
    margin: 5px 0 0;
  }
  .touch-layout .caption-stack {
    left: 8px;
    right: 8px;
    top: 2px;
    bottom: auto;
  }
  .touch-layout .instruction,
  .touch-layout .subtitle {
    font-size: clamp(13px, 1.53vw, 14px);
    line-height: 1.2;
    letter-spacing: 0;
    padding: 3px 8px;
    border-bottom-width: 2px;
  }
  .touch-layout.in-game .live-bug {
    display: none;
  }
  .touch-layout .overlay-card {
    padding: 12px 18px;
    max-width: 95%;
    max-height: calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;
  }
  .touch-layout .overlay-card h2 {
    font-size: 25px;
    margin: 8px 0;
  }
  .touch-layout .overlay-card p {
    font-size: 12px;
    margin: 8px 0;
    line-height: 1.3;
  }
  .touch-layout .overlay-card .text-button {
    margin-top: 10px;
    min-height: 30px;
  }
  .touch-layout .phase-card {
    inset: 20% 4% auto;
    padding: 15px;
  }
  .touch-layout .phase-card h2 {
    font-size: 28px;
  }
  .touch-layout .phase-card p {
    font-size: 12px;
  }
  .touch-layout .feedback {
    font-size: 24px;
  }
  .touch-layout dialog {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .touch-layout .scanlines {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 340px) {
  .touch-layout:not(.in-game) .television {
    width: 100%;
  }
  .touch-layout:not(.in-game) .picture {
    aspect-ratio: auto;
    height: calc(100dvh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .touch-layout:not(.in-game) canvas {
    object-fit: cover;
  }
  .touch-layout .title-screen {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    column-gap: 12px;
    padding-top: 2%;
  }
  .touch-layout .episode-label,
  .touch-layout .title-screen h1,
  .touch-layout .title-copy,
  .touch-layout .start-note {
    grid-column: 1 / -1;
  }
  .touch-layout .episode-label {
    justify-self: start;
  }
  .touch-layout .title-screen h1 {
    margin: 8px 0;
  }
  .touch-layout .source-link {
    grid-column: 2;
    grid-row: 4;
    align-self: center;
  }
  .touch-layout .title-screen .primary {
    grid-column: 1;
    grid-row: 4;
  }
}

.clip-collection {
  margin-top: 24px;
  border-top: 2px solid #101a26;
  padding-top: 12px;
}
.clip-collection h3 {
  font:
    800 16px Arial,
    sans-serif;
}
.clip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #101a2630;
}
.clip-row p {
  margin: 5px 0;
}
.clip-row a {
  font-size: 11px;
}
.clip-row button {
  flex-shrink: 0;
  min-width: 64px;
  min-height: 44px;
  color: #101a26;
  background: #72fff0;
  border: 2px solid #101a26;
  font-weight: 800;
  cursor: pointer;
}
.clip-locked {
  opacity: 0.7;
}

#charge-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: normal;
}
#charge-pips {
  white-space: nowrap;
  flex-shrink: 0;
}
#charge-hint {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pause-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pause-actions .nav-button {
  min-height: 44px;
  font-size: 12px;
  padding: 6px 10px;
}
#deflect.charged {
  border-color: #eaff74;
  box-shadow: 0 0 18px #eaff7466;
}

.charge-cue {
  position: absolute;
  z-index: 8;
  width: max-content;
  max-width: 240px;
  padding: 10px 14px;
  border: 2px solid var(--yellow);
  background: var(--navy);
  color: var(--yellow);
  font:
    bold 14px/1.3 Arial,
    sans-serif;
  text-align: center;
  pointer-events: none;
  box-shadow:
    0 3px 0 #0008,
    0 0 16px #ffd34d55;
}
.charge-cue progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 7px;
  accent-color: var(--yellow);
}
.charge-cue.pulse,
#charge-meter.pulse,
#deflect.pulse {
  animation: charge-pulse 0.6s ease-in-out 2;
}
@keyframes charge-pulse {
  50% {
    transform: scale(1.06);
  }
}
.reduced .charge-cue,
.reduced #charge-meter,
.reduced #deflect {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .charge-cue.pulse,
  #charge-meter.pulse,
  #deflect.pulse {
    animation: none;
  }
}

.charge-cue-title {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.charge-countdown {
  display: block;
  font-size: 26px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.charge-cue.ready {
  background: var(--yellow);
  color: var(--navy);
}
#charge-meter.available {
  color: var(--yellow);
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  box-shadow: 0 0 16px #ffd34d55;
}
