@font-face {
  font-family: "IBM3270";
  src: url("fonts/3270-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_arabic_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_thai_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_vietnamese_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_korean_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_cjk_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF66-FF9D;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_simplified_chinese_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+3400-4DBF, U+4E00-9FFF, U+20000-2A6DF;
}

@font-face {
  font-family: "CMFallback";
  src: url("fonts/noto_traditional_chinese_subset.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+20000-2A6DF;
}

:root {
  --orange: #ff8000;
  --orange-hot: #ffae55;
  --orange-red: #e83820;
  --ink: #06080b;
  --ink-screen: #040506;
  --ink-window: #030405;
  --ink-chrome: #0a0c10;
  --ink-chrome-edge: rgba(255, 128, 0, 0.22);
  --phosphor: rgba(255, 140, 48, 0.35);
  --text-gradient: linear-gradient(180deg,
      var(--orange-hot) 0%,
      var(--orange) 40%,
      #ff6628 75%,
      var(--orange-red) 100%);
  --hazard-tile: 40px;
  --backdrop-fade-duration: 1.4s;
  --cursor-default: url("cursor-default.svg") 2.1 0, default;
  --cursor-text: url("cursor-text.svg") 11.2 11.2, text;
  --cursor-pointer: url("cursor-pointer.svg") 2.1 0, pointer;
  --cursor-forbidden: url("cursor-forbidden.svg") 11.2 11.2, not-allowed;
  --cursor-drag: url("cursor-drag.svg?v=2") 11.2 11.2, grabbing;
  --cursor-resize-ew: url("cursor-resize-ew.svg?v=2") 11.2 11.2, ew-resize;
  --cursor-resize-ns: url("cursor-resize-ns.svg?v=2") 11.2 11.2, ns-resize;
  --cursor-resize-nesw: url("cursor-resize-nesw.svg?v=2") 11.2 11.2, nesw-resize;
  --cursor-resize-nwse: url("cursor-resize-nwse.svg?v=2") 11.2 11.2, nwse-resize;
  --cursor-scroll: url("cursor-scroll.svg?v=1") 11.2 11.2, default;
  --cursor-scroll-h: url("cursor-scroll-h.svg?v=1") 11.2 11.2, default;
  --scrollbar-size: 8px;
  --scrollbar-gap: 6px;
  --scrollbar-track: rgba(4, 6, 9, 0.5);
  --scrollbar-thumb: rgba(255, 128, 0, 0.35);
  --scrollbar-thumb-hover: rgba(255, 128, 0, 0.55);
  --scrollbar-thumb-stripe: repeating-linear-gradient(-45deg,
      rgb(196, 98, 28) 0,
      rgb(196, 98, 28) 5px,
      rgb(132, 62, 14) 5px,
      rgb(132, 62, 14) 10px);
  --term-list-row-stripe: rgba(255, 128, 0, 0.05);
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: transparent;
  font-family: "IBM3270", "CMFallback", "IBM 3270", ui-monospace, monospace;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  cursor: var(--cursor-default);
}

button:not(:disabled),
a,
[role="button"]:not([aria-disabled="true"]),
.term-row:not(:disabled),
.term-title,
.worlds-entry,
.worlds-compose label {
  cursor: var(--cursor-pointer);
}

input:not([type]):not(:disabled),
input[type="text"]:not(:disabled),
input[type="number"]:not(:disabled),
input[type="search"]:not(:disabled),
input.settings-slider-value-input:not(:disabled),
textarea:not(:disabled) {
  cursor: var(--cursor-text);
}

input.settings-slider:not(:disabled) {
  cursor: var(--cursor-scroll-h);
}

button:disabled,
.term-row:disabled,
[role="button"][aria-disabled="true"] {
  cursor: var(--cursor-forbidden);
}

.term-row:disabled,
.term-row:disabled:hover,
.term-row:disabled:focus-visible {
  filter: saturate(0.22) brightness(0.92);
  opacity: 0.62;
  border-color: rgba(255, 128, 0, 0.14);
  background: rgba(4, 6, 9, 0.72);
  box-shadow: none;
  cursor: var(--cursor-forbidden);
  outline: none;
}

.term-row--primary:disabled,
.term-row--primary:disabled:hover,
.term-row--primary:disabled:focus-visible {
  filter: saturate(0.22) brightness(0.92);
  opacity: 0.62;
  border-color: rgba(255, 128, 0, 0.14);
  background: rgba(4, 6, 9, 0.72);
  box-shadow: none;
}

.term-row:disabled .term-row-label,
.term-row:disabled .term-row-prefix {
  color: rgba(255, 160, 96, 0.42);
  -webkit-text-fill-color: rgba(255, 160, 96, 0.42);
  background: none;
  filter: none;
}

.term-row-prefix,
.term-row-label,
.worlds-entry-index,
.worlds-entry-name,
.worlds-entry-seed,
.worlds-entry-ip {
  pointer-events: none;
}

.term-row-label,
.settings-tab,
.os-statusbar-segment,
.loading-text {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-window-title,
.term-title,
.term-line-heading {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

body ::selection {
  background: transparent;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

input::selection,
textarea::selection {
  background: rgba(255, 128, 0, 0.35);
}

.terminal-text {
  display: inline-block;
  background: var(--text-gradient);
  background-size: 100% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.95)) drop-shadow(0 0 12px rgba(255, 120, 40, 0.22));
}

.terminal-text--dim {
  display: inline-block;
  color: rgba(255, 128, 0, 0.55);
  -webkit-text-fill-color: rgba(255, 128, 0, 0.55);
  background: none;
  filter: none;
}

.menu-screen.menu-screen--unity-cursor,
.menu-screen.menu-screen--unity-cursor * {
  cursor: none !important;
}

html:has(.menu-screen.menu-screen--system-cursor) {
  --cursor-default: default;
  --cursor-text: text;
  --cursor-pointer: pointer;
  --cursor-forbidden: not-allowed;
  --cursor-drag: grabbing;
  --cursor-resize-ew: ew-resize;
  --cursor-resize-ns: ns-resize;
  --cursor-resize-nesw: nesw-resize;
  --cursor-resize-nwse: nwse-resize;
  --cursor-scroll: default;
  --cursor-scroll-h: ew-resize;
}

html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar,
html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-track,
html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-thumb,
html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-thumb:hover,
html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-thumb:active,
html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-corner {
  cursor: default !important;
}

html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-thumb:horizontal,
html:has(.menu-screen.menu-screen--system-cursor) *::-webkit-scrollbar-track:horizontal {
  cursor: ew-resize !important;
}

html:has(.menu-screen.menu-screen--system-cursor) .menu-screen .os-window--managed .os-window-body--terminal::-webkit-scrollbar-thumb:vertical,
html:has(.menu-screen.menu-screen--system-cursor) .menu-screen .settings-scroll::-webkit-scrollbar-thumb:vertical,
html:has(.menu-screen.menu-screen--system-cursor) .menu-screen .settings-tabs:not(.settings-tabs--toolbar)::-webkit-scrollbar-thumb:vertical,
html:has(.menu-screen.menu-screen--system-cursor) .menu-screen .worlds-column .worlds-list::-webkit-scrollbar-thumb:vertical {
  cursor: default !important;
}

html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--n,
html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--s {
  cursor: ns-resize !important;
}

html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--e,
html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--w {
  cursor: ew-resize !important;
}

html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--ne,
html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--sw {
  cursor: nwse-resize !important;
}

html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--nw,
html:has(.menu-screen.menu-screen--system-cursor) .os-wm-resize--se {
  cursor: nesw-resize !important;
}

.menu-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink-screen);
}

.menu-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid var(--ink-chrome-edge);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 -1px 0 rgba(0, 0, 0, 0.6),
    1px 0 0 rgba(0, 0, 0, 0.6),
    -1px 0 0 rgba(0, 0, 0, 0.6);
}

.screen-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #000000;
}

.screen-backdrop::before {
  content: "";
  position: absolute;
  left: -7%;
  top: -7%;
  width: 114%;
  height: 114%;
  background: var(--menu-background-image, url("background.png")) center center / cover no-repeat;
  opacity: 0;
  transform: translate3d(2%, 0%, 0);
  animation:
    backdrop-fade-in var(--backdrop-fade-duration) ease-out forwards,
    backdrop-pan 56s linear var(--backdrop-fade-duration) infinite backwards;
  will-change: transform, opacity;
}

@keyframes backdrop-fade-in {
  from {
    opacity: 0;
    transform: translate3d(2%, 0%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(2%, 0%, 0);
  }
}

@keyframes backdrop-pan {
  0% {
    transform: translate3d(2%, 0%, 0);
  }

  6.25% {
    transform: translate3d(1.848%, 0.765%, 0);
  }

  12.5% {
    transform: translate3d(1.414%, 1.414%, 0);
  }

  18.75% {
    transform: translate3d(0.765%, 1.848%, 0);
  }

  25% {
    transform: translate3d(0%, 2%, 0);
  }

  31.25% {
    transform: translate3d(-0.765%, 1.848%, 0);
  }

  37.5% {
    transform: translate3d(-1.414%, 1.414%, 0);
  }

  43.75% {
    transform: translate3d(-1.848%, 0.765%, 0);
  }

  50% {
    transform: translate3d(-2%, 0%, 0);
  }

  56.25% {
    transform: translate3d(-1.848%, -0.765%, 0);
  }

  62.5% {
    transform: translate3d(-1.414%, -1.414%, 0);
  }

  68.75% {
    transform: translate3d(-0.765%, -1.848%, 0);
  }

  75% {
    transform: translate3d(0%, -2%, 0);
  }

  81.25% {
    transform: translate3d(0.765%, -1.848%, 0);
  }

  87.5% {
    transform: translate3d(1.414%, -1.414%, 0);
  }

  93.75% {
    transform: translate3d(1.848%, -0.765%, 0);
  }

  100% {
    transform: translate3d(2%, 0%, 0);
  }
}

.screen-hazard {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 44%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.06) 32%,
      rgba(0, 0, 0, 0.35) 58%,
      rgba(0, 0, 0, 0.85) 82%,
      rgba(0, 0, 0, 1) 100%);
  mask-image: radial-gradient(ellipse 82% 72% at 50% 44%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.06) 32%,
      rgba(0, 0, 0, 0.35) 58%,
      rgba(0, 0, 0, 0.85) 82%,
      rgba(0, 0, 0, 1) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.screen-hazard-track {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% + var(--hazard-tile));
  height: calc(100% + var(--hazard-tile));
  background-image: url("hazard-tile.png");
  background-repeat: repeat;
  background-size: var(--hazard-tile) var(--hazard-tile);
  animation: stripe-scroll 5s linear infinite;
  will-change: transform;
  opacity: 0.92;
}

@keyframes stripe-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(var(--hazard-tile) * -1), calc(var(--hazard-tile) * -1), 0);
  }
}

.screen-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.2) 0,
      rgba(0, 0, 0, 0.2) 1px,
      transparent 1px,
      transparent 3px);
}

.screen-phosphor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, var(--phosphor) 0%, transparent 70%);
  opacity: 0.35;
}

.screen-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.45) 100%);
}

.menu-page {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 0;
}

.menu-page[hidden] {
  display: none !important;
}

.os-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.os-statusbar {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  padding: 6px clamp(12px, 2vmin, 20px);
  background: var(--ink-chrome);
  border-bottom: 1px solid var(--ink-chrome-edge);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.os-statusbar--bottom {
  border-bottom: none;
  border-top: 1px solid var(--ink-chrome-edge);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.os-statusbar-segment {
  font-size: clamp(0.7rem, 1.4vmin, 0.82rem);
  letter-spacing: 0.04em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
}

.os-statusbar-segment--right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.os-statusbar .os-clock {
  display: inline-flex;
  align-items: center;
}

.os-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2.5vmin, 24px);
  gap: clamp(10px, 1.8vmin, 18px);
}

.os-workspace--menu {
  justify-content: flex-end;
}

.os-workspace--connect,
.os-workspace--settings,
.os-workspace--credits {
  overflow: hidden;
}

.os-window {
  --wm-border: rgba(118, 112, 104, 0.34);
  --wm-border-inset: rgba(118, 112, 104, 0.07);
  --wm-chrome-edge: rgba(118, 112, 104, 0.22);
  --wm-control-edge: rgba(118, 112, 104, 0.28);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--wm-border);
  background: var(--ink-window);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px var(--wm-border-inset);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.os-window.os-window--focused,
.term-overlay.is-open>.os-window {
  --wm-border: rgba(255, 128, 0, 0.32);
  --wm-border-inset: rgba(255, 128, 0, 0.06);
  --wm-chrome-edge: rgba(255, 128, 0, 0.2);
  --wm-control-edge: rgba(255, 128, 0, 0.35);
}

.os-window-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 0 0 10px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.98) 0%, rgba(8, 10, 13, 0.98) 100%);
  border-bottom: 1px solid var(--wm-chrome-edge);
  transition: border-color 0.14s ease;
}

.os-window-controls {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
  align-self: stretch;
}

.os-window-dot:not(.os-window-control) {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(118, 112, 104, 0.32);
  background: rgba(4, 6, 9, 0.9);
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.os-window.os-window--focused .os-window-dot:not(.os-window-control),
.term-overlay.is-open>.os-window .os-window-dot:not(.os-window-control) {
  border-color: rgba(255, 128, 0, 0.35);
}

.os-window-dot--active:not(.os-window-control) {
  background: rgba(118, 112, 104, 0.42);
  border-color: rgba(118, 112, 104, 0.48);
  box-shadow: none;
}

.os-window.os-window--focused .os-window-dot--active:not(.os-window-control),
.term-overlay.is-open>.os-window .os-window-dot--active:not(.os-window-control) {
  background: rgba(255, 128, 0, 0.45);
  border-color: rgba(255, 128, 0, 0.65);
  box-shadow: 0 0 6px rgba(255, 128, 0, 0.35);
}

.os-window-title {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  margin: 0;
  padding: 6px 12px 6px 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.6rem, 2.2cqw, 0.8rem);
  letter-spacing: 0.04em;
  text-transform: none;
}

.os-window-title-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.os-window-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-window-chrome--drag {
  cursor: var(--cursor-drag);
  touch-action: none;
  user-select: none;
}

.os-window-title--drag {
  cursor: var(--cursor-drag);
  touch-action: none;
  user-select: none;
}

.os-window-body--terminal {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.6vmin, 16px);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 100, 40, 0.04) 0%, transparent 55%),
    var(--ink-screen);
}

.term-line {
  font-size: clamp(0.72rem, 1.45vmin, 0.88rem);
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin-bottom: 4px;
}

.term-line-heading {
  font-size: clamp(1rem, 2vmin, 1.25rem);
  letter-spacing: 0.12em;
  margin: 6px 0 8px;
}

.term-prompt {
  font-size: clamp(0.72rem, 1.4vmin, 0.86rem);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.term-prompt-path {
  color: rgba(255, 160, 80, 0.75);
  -webkit-text-fill-color: rgba(255, 160, 80, 0.75);
}

.term-boot {
  width: auto;
  max-width: 100%;
  font-size: clamp(0.75rem, 1.6vmin, 0.9rem);
  letter-spacing: 0.12em;
  opacity: 0.7;
  flex-shrink: 0;
}

.term-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.os-window--actions .term-menu {
  gap: 6px;
}

.os-window--actions .term-row {
  padding: 0.48em 0.7em;
}

.term-menu--inline {
  width: min(320px, 100%);
}

.term-menu-spacer {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.term-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0.55em 0.75em;
  border: 1px solid rgba(255, 128, 0, 0.35);
  background: rgba(4, 6, 9, 0.85);
  font: inherit;
  text-align: left;
  appearance: none;
  transition: background-color 0.1s ease, border-color 0.1s ease;
}

.settings-scroll>.settings-row.settings-row--choice:nth-child(even),
.settings-scroll>.settings-row.settings-row--slider:nth-child(even),
.settings-scroll>.settings-row.settings-row--toggle:nth-child(even),
.settings-scroll>.settings-row.settings-row--action:nth-child(even),
.worlds-list>li:nth-child(even)>.worlds-entry {
  background-color: var(--term-list-row-stripe);
}

.term-row:hover,
.term-row:focus-visible {
  background: rgba(12, 14, 18, 0.95);
  border-color: rgba(255, 128, 0, 0.7);
  outline: none;
}

.term-row--primary {
  border-color: rgba(255, 128, 0, 0.55);
  background: rgba(10, 8, 5, 0.9);
  box-shadow: inset 0 0 16px rgba(255, 90, 40, 0.06);
}

.term-row-prefix {
  min-width: 2.2em;
  font-size: 0.95em;
  letter-spacing: 0.05em;
}

.term-row-label {
  font-size: clamp(1rem, 2.4vmin, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: none;
}

.menu-screen.terminal-animations-off .os-window--opening .os-window-chrome,
.menu-screen.terminal-animations-off .os-window--opening .os-window-chrome--drag,
.menu-screen.terminal-animations-off .os-window--opening-body-only .os-window-chrome,
.menu-screen.terminal-animations-off .os-window--opening-body-only .os-window-chrome--drag {
  animation: none !important;
  transform: none;
  overflow: visible;
}

.menu-screen.terminal-animations-off,
.menu-screen.terminal-animations-off *,
.menu-screen.terminal-animations-off *::before,
.menu-screen.terminal-animations-off *::after {
  transition: none !important;
  transition-duration: 0s !important;
}

.menu-screen.terminal-animations-off:not(.menu-background-animation-off) .screen-backdrop::before {
  animation:
    backdrop-fade-in var(--backdrop-fade-duration) ease-out forwards,
    backdrop-pan 56s linear var(--backdrop-fade-duration) infinite backwards !important;
}

.menu-screen.terminal-animations-off:not(.menu-background-animation-off) .screen-hazard-track {
  animation: stripe-scroll 5s linear infinite !important;
}

.menu-screen.menu-background-animation-off .screen-backdrop::before {
  opacity: 1;
  transform: translate3d(2%, 0%, 0);
  animation: backdrop-fade-in var(--backdrop-fade-duration) ease-out forwards;
}

.menu-screen.menu-background-animation-off .screen-hazard-track {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {

  .screen-hazard-track {
    animation: none;
  }

  .screen-backdrop::before {
    opacity: 1;
    transform: translate3d(2%, 0%, 0);
    animation: backdrop-fade-in 0.35s ease-out forwards;
  }
}

#device.menu-defer-animations .screen-backdrop::before {
  animation: none;
  opacity: 0;
}

#device.menu-defer-animations .screen-hazard-track {
  animation: none;
}

.menu-mode--game.menu-screen {
  background: transparent;
}

.menu-mode--game .screen-backdrop {
  background-color: transparent;
}

.menu-mode--game .screen-backdrop::before {
  display: none;
  opacity: 0;
  transform: none;
  animation: none;
  background: none;
}

.menu-mode--game .screen-vignette {
  background:
    radial-gradient(ellipse 85% 75% at 50% 50%,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.06) 25%,
      rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.65) 100%);
}