@font-face {
  font-family: Golos;
  src: url(./fonts/golos.woff2) format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Oswald;
  src: url(./fonts/oswald.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #19221e;
  --muted: #59645d;
  --paper: #f5f5ee;
  --line: #cfd3c8;
  --lime: #d5f36a;
  --dark: #1b2420;
  --display: Oswald, 'Arial Narrow', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Golos, Arial, sans-serif;
  font-size: 15px;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #568a28;
  outline-offset: 3px;
}
i[data-icon] {
  display: inline-flex;
  font-style: normal;
  align-items: center;
  justify-content: center;
}
svg {
  flex: none;
}
.mast {
  background: var(--dark);
  color: #f4f6ec;
  border-bottom: 3px solid #303b33;
}
.mast-inner,
main,
footer {
  width: min(1420px, calc(100% - clamp(40px, 8vw, 144px)));
  margin: auto;
}
.mast-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font: italic 750 28px/1 Arial, sans-serif;
  letter-spacing: -1.7px;
}
.brand svg {
  color: var(--lime);
  width: 34px;
  height: 34px;
}
nav,
.tools,
.hud-actions,
.filters,
.row {
  display: flex;
  align-items: center;
}
nav {
  gap: 26px;
  height: 100%;
}
nav button {
  align-self: stretch;
  color: #bfc6be;
  font-weight: 550;
  font-size: 13px;
  padding: 1px 2px 0;
  position: relative;
}
nav button[aria-current='page'] {
  color: white;
}
nav button[aria-current='page']:after {
  content: '';
  height: 3px;
  background: var(--lime);
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
}
.tools {
  margin-left: auto;
  gap: 8px;
}
.tool,
.hud-actions button,
.plain-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
}
.tool {
  border: 1px solid #505a52;
  color: #e3e8db;
}
.tool:hover {
  background: #394539;
}
.page-heading,
.section-heading,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.page-heading {
  margin: 31px 0 24px;
}
.eyebrow,
.scene-kicker,
.badge,
.label,
.card-meta,
footer,
.subhead {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5c675b;
}
.accent-line {
  display: inline-block;
  width: 21px;
  height: 3px;
  background: #6b8e36;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
.scene-caption h2,
.section-heading h2,
.panel-head h2,
.card-name,
.overlay-title,
.large-number {
  font-family: var(--display);
  font-weight: 550;
}
h1 {
  font-size: clamp(36px, 4.35vw, 64px);
  letter-spacing: -1.9px;
  line-height: 1.14;
  margin-top: 5px;
}
h1 span {
  color: #83a43a;
}
.secondary,
.start,
.solid,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  min-height: 43px;
  padding: 10px 17px;
  line-height: 1.25;
}
.secondary,
.outline {
  border: 1px solid #b9c1b4;
  background: #f5f6ef;
}
.secondary:hover,
.outline:hover {
  background: #e5eadb;
}
.secondary svg {
  width: 17px;
}
#arena {
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark);
  position: relative;
  border: 1px solid #27322a;
  isolation: isolate;
}
.stage {
  width: 100%;
  height: clamp(340px, 32vw, 475px);
  position: relative;
  background: #9aada1;
  overflow: hidden;
  isolation: isolate;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.stage:after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 28, 0.08),
    transparent 15%,
    transparent 65%,
    rgba(12, 22, 20, 0.17)
  );
  z-index: 0;
}
.hud-top,
.scene-caption,
#live-hud,
#event,
.play-overlay {
  position: absolute;
  z-index: 1;
}
.hud-top {
  left: 22px;
  right: 22px;
  top: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #202a26e8;
  color: white;
  border: 1px solid #edf2de35;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 1px;
}
.badge b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.hud-actions {
  gap: 6px;
  pointer-events: auto;
}
.hud-actions button {
  height: 33px;
  min-width: 34px;
  width: auto;
  padding: 0 8px;
  background: #21302cbe;
  color: white;
  border: 1px solid #ffffff4d;
  font: 600 13px var(--mono);
}
.hud-actions svg {
  width: 16px;
}
.hud-actions button:hover {
  background: #202e29;
}
#arena:not(.active) .in-play {
  display: none;
}
.scene-caption {
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 54px 26px 23px;
  color: white;
  background: linear-gradient(transparent, #10221fa8 67%, #10221fcf);
  pointer-events: none;
}
.scene-caption h2 {
  font-size: clamp(31px, 3.2vw, 47px);
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 5px 0 7px;
  text-shadow: 0 1px 3px #132b2a80;
}
.scene-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #f1f6d8;
}
.scene-kicker b {
  font: 600 10px/1 var(--mono);
  color: var(--ink);
  background: var(--lime);
  padding: 4px 6px;
  border-radius: 2px;
}
.kicker-line {
  width: 38px;
  height: 1px;
  background: #dce5cd8c;
}
.scene-place {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #e2e6d9;
}
.scene-place svg {
  width: 13px;
  height: 13px;
}
.scene-place b {
  color: var(--lime);
}
.start,
.solid {
  background: var(--lime);
  color: #202820;
  border: 1px solid #c5e75a;
}
.start {
  pointer-events: auto;
  min-height: 47px;
  padding: 12px 21px;
  font-size: 14px;
}
.start:hover,
.solid:hover {
  background: #e5ff8f;
}
.start svg {
  width: 15px;
}
.controls {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: #1d2823;
}
.control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid #4a554b;
  background: #303b33;
  color: #eff2e6;
  border-radius: 5px;
  font-weight: 550;
  font-size: 12px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.control svg {
  color: #d3e7a6;
  width: 21px;
}
.control kbd,
.key {
  font: 600 10px/1 var(--mono);
  color: #d3dbce;
  background: #252f27;
  padding: 4px 5px;
  min-width: 17px;
  border: 1px solid #596759;
  border-radius: 3px;
  text-align: center;
}
.control.active {
  background: var(--lime);
  border-color: #e7ff9b;
  color: #162216;
}
.control.active svg {
  color: #243b23;
}
.control.active kbd {
  background: #c5df6c;
  color: #2b3a16;
}
.controls.mirrored {
  direction: rtl;
}
.controls.mirrored button {
  direction: ltr;
}
.controls.big .control {
  min-height: 67px;
}
.under-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 1px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.under-stage > span,
.under-stage button,
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.under-stage svg {
  width: 16px;
  height: 16px;
}
.under-stage button,
.text-btn {
  font-weight: 650;
  white-space: nowrap;
  font-size: 12px;
}
.under-stage button:hover,
.text-btn:hover {
  text-decoration: underline;
}
.section-heading {
  margin: 23px 0 14px;
}
.section-heading h2 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
.text-btn svg {
  width: 16px;
}
.teasers,
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  min-width: 0;
  text-align: left;
  padding: 0;
  background: #f8f9f2;
  border: 1px solid #cbd1c4;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: transform 0.16s, border-color 0.16s;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: #829278;
}
.tile canvas {
  display: block;
  background: #c9c9aa;
}
.thumb {
  width: 36%;
  min-height: 97px;
  position: relative;
  overflow: hidden;
}
.thumb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tile-info {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}
.card-meta {
  font-size: 8px;
  letter-spacing: 1px;
  color: #586553;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-name {
  font-size: 22px;
  letter-spacing: -0.4px;
  line-height: 1.18;
}
.tile .go {
  align-self: center;
  margin-right: 12px;
}
.tile .go svg {
  width: 15px;
}
.tile-num {
  position: absolute;
  top: 7px;
  left: 7px;
  color: white;
  font: 600 9px var(--mono);
  padding: 3px 5px;
  background: #1d2925bb;
  border-radius: 2px;
}
.course-grid {
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
}
.course-grid .tile {
  display: block;
}
.course-grid .thumb {
  width: 100%;
  height: 135px;
  display: block;
}
.course-grid .tile-info {
  padding: 14px 16px 17px;
}
.course-grid .go {
  position: absolute;
  right: 4px;
  bottom: 20px;
}
.filters {
  gap: 7px;
  flex-wrap: wrap;
  margin: 2px 0 21px;
}
.filters button {
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 12px;
}
.filters button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
#live-hud {
  left: 23px;
  top: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a2722d4;
  color: white;
  border: 1px solid #ffffff35;
  border-radius: 4px;
  padding: 6px 9px;
  font: 600 15px var(--mono);
}
#live-hud small {
  font-size: 8px;
  color: #d7e3cc;
}
#live-hud em {
  width: 1px;
  height: 14px;
  background: #94a58d;
}
#event {
  left: 50%;
  top: 17%;
  transform: translateX(-50%);
  font: 550 23px var(--display);
  color: white;
  text-shadow: 0 2px 5px #203121;
  pointer-events: none;
}
.play-overlay {
  inset: 0;
  background: #14201b88;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
  padding: 15px;
}
.overlay-box {
  background: #1e2a24f5;
  border: 1px solid #657564;
  border-radius: 8px;
  padding: 23px 30px;
  box-shadow: 0 9px 40px #08100850;
}
.overlay-title {
  font-size: 33px;
  margin: 4px 0;
}
.overlay-box p {
  color: #d0dbca;
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 15px;
}
.overlay-box .row {
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.overlay-box .label {
  color: var(--lime);
}
.overlay-box button {
  min-height: 39px;
}
.outline.on-dark {
  background: #334439;
  color: white;
  border-color: #6a776a;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 35px auto 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1px;
  color: #737e71;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: bold italic 13px Arial;
  letter-spacing: -0.5px;
  color: #455642;
}
.foot-brand svg {
  width: 16px;
}
footer b {
  margin: 0 5px;
  font-weight: 400;
  color: #98a491;
}
dialog {
  padding: 0;
  border: 1px solid #a4afa1;
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  width: min(520px, calc(100% - 26px));
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 25px 100px #111b1a40;
}
dialog::backdrop {
  background: #14201c99;
  backdrop-filter: blur(3px);
}
.panel-head {
  padding: 22px 25px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 30px;
  margin-top: 3px;
}
.plain-icon {
  border: 1px solid var(--line);
  background: #f1f4ea;
}
.plain-icon:hover {
  background: #e1e8d7;
}
#panel-content {
  padding: 19px 25px 23px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.setting-row input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #578127;
  cursor: pointer;
}
.setting-row select,
.field input,
.field select {
  border: 1px solid #acb6a5;
  border-radius: 4px;
  padding: 8px 9px;
  background: #fffef8;
  color: var(--ink);
}
.subhead {
  color: #66765a;
  margin: 17px 0 7px;
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  outline: 1px solid var(--line);
}
.swatch[aria-pressed='true'] {
  outline: 2px solid var(--ink);
}
.copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.guide-line {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  font-size: 13px;
}
.guide-line svg {
  color: #526e30;
}
.guide-line small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}
.key {
  color: #37472e;
  background: #e5ebdd;
  border-color: #bcc6b5;
}
#toast {
  position: fixed;
  z-index: 12;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 6px;
  box-shadow: 0 8px 25px #15201740;
  padding: 12px 18px;
  font-size: 13px;
  max-width: 90vw;
}
#replay-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  background: var(--dark);
  padding: 10px 15px;
  font: 12px var(--mono);
}
#replay-dock input {
  flex: 1;
  min-width: 20px;
  accent-color: var(--lime);
}
#replay-dock button {
  padding: 5px;
  color: var(--lime);
  display: inline-flex;
}
#replay-dock svg {
  width: 19px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat,
.daily-card,
.empty,
.journal-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbf5;
  padding: 18px;
}
.large-number {
  display: block;
  font-size: 37px;
}
.stat small,
.note {
  color: var(--muted);
  font-size: 12px;
}
.daily-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  background: #e6eddb;
}
.daily-card h3 {
  font: 550 23px var(--display);
  margin: 3px 0;
}
.daily-card p {
  font-size: 13px;
  line-height: 1.6;
}
.empty {
  text-align: center;
  padding: 30px;
  line-height: 1.8;
}
.empty svg {
  color: #688348;
}
.journal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 7px 0;
}
.journal-row strong {
  flex: 1;
}
.journal-row small {
  color: var(--muted);
}
.journal-row .plain-icon {
  width: 33px;
  height: 33px;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  margin: 9px 0;
  flex: 1;
}
.form-pair {
  display: flex;
  gap: 10px;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
}
.editor-canvas {
  background: #d8e3d5;
  width: 100%;
  height: 155px;
  border-radius: 5px;
  touch-action: none;
  display: block;
}
.panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 17px;
  flex-wrap: wrap;
}
#arena:fullscreen,
#arena.fullscreen {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background: var(--dark);
}
#arena.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 8;
}
#arena:fullscreen .stage,
#arena.fullscreen .stage {
  height: auto;
  flex: 1;
  min-height: 0;
}
#arena:fullscreen .controls,
#arena.fullscreen .controls {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
@media (min-width: 1550px) {
  .mast-inner {
    height: 75px;
  }
  .page-heading {
    margin: 37px 0 28px;
  }
  .stage {
    height: 475px;
  }
}
@media (max-width: 850px) {
  .mast-inner,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .mast-inner {
    gap: 35px;
  }
  nav {
    gap: 19px;
  }
  .control {
    gap: 6px;
    font-size: 11px;
  }
  .control svg {
    width: 17px;
  }
  .teasers {
    gap: 8px;
  }
  .teasers .tile {
    display: block;
  }
  .teasers .thumb {
    width: 100%;
    height: 85px;
    min-height: 0;
    display: block;
  }
  .teasers .go {
    display: none;
  }
  .teasers .tile-info {
    padding: 10px;
  }
  .teasers .card-name {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .mast-inner,
  main,
  footer {
    width: calc(100% - 24px);
  }
  .mast-inner {
    height: 56px;
    gap: 14px;
  }
  .brand {
    font-size: 21px;
    gap: 4px;
  }
  .brand svg {
    width: 23px;
    height: 26px;
  }
  nav {
    gap: 10px;
  }
  nav button {
    font-size: 11px;
    padding: 0;
  }
  .tool {
    width: 31px;
    height: 31px;
  }
  .tools {
    gap: 4px;
  }
  .tool svg {
    width: 16px;
  }
  .page-heading {
    margin: 21px 0 16px;
    gap: 8px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .accent-line {
    width: 15px;
    height: 2px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.1px;
    margin-top: 5px;
  }
  .page-heading > .secondary {
    padding: 8px;
    min-height: 36px;
    font-size: 11px;
    gap: 5px;
  }
  .page-heading > .secondary svg {
    width: 14px;
  }
  .stage {
    height: clamp(320px, 49dvh, 450px);
  }
  .hud-top {
    left: 11px;
    right: 11px;
    top: 11px;
  }
  .badge {
    font-size: 8px;
    padding: 6px;
    gap: 6px;
  }
  .hud-actions {
    gap: 4px;
  }
  .hud-actions button {
    height: 31px;
    min-width: 31px;
    padding: 0 6px;
  }
  .scene-caption {
    padding: 40px 14px 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .scene-caption h2 {
    font-size: 31px;
    margin: 4px 0;
  }
  .scene-place {
    font-size: 10px;
  }
  .scene-kicker {
    font-size: 8px;
  }
  .start {
    min-height: 39px;
    padding: 9px 15px;
    font-size: 12px;
  }
  .controls {
    padding: 6px;
    gap: 3px;
  }
  .control {
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    gap: 4px;
    font-size: clamp(8px, 2.45vw, 11px);
    padding: 3px 0;
  }
  .control svg {
    width: 18px;
    height: 18px;
  }
  .control kbd {
    display: none;
  }
  .under-stage {
    align-items: center;
    padding: 10px 0;
    font-size: 11px;
    gap: 6px;
  }
  .under-stage > span {
    gap: 4px;
  }
  .under-stage button {
    font-size: 11px;
    gap: 4px;
  }
  .under-stage button svg:first-child {
    display: none;
  }
  .section-heading {
    margin: 18px 0 10px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teasers .tile:nth-child(n + 3) {
    display: none;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .course-grid .thumb {
    height: 95px;
  }
  .course-grid .tile-info {
    padding: 10px;
  }
  .course-grid .go {
    display: none;
  }
  .card-name {
    font-size: 19px;
  }
  .card-meta {
    font-size: 7px;
  }
  .filters {
    gap: 4px;
  }
  .filters button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .summary-grid {
    gap: 6px;
  }
  .stat {
    padding: 11px;
  }
  .large-number {
    font-size: 29px;
  }
  .overlay-box {
    padding: 17px;
    max-width: 310px;
  }
  #live-hud {
    left: 11px;
    top: 47px;
  }
  .panel-head {
    padding: 18px 16px 12px;
  }
  #panel-content {
    padding: 14px 16px 18px;
  }
  footer {
    margin-top: 22px;
  }
}
@media (max-width: 382px) {
  .mast-inner {
    gap: 9px;
  }
  nav {
    gap: 7px;
  }
  nav button {
    font-size: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .tools {
    gap: 2px;
  }
  .page-heading > .secondary span {
    display: none;
  }
  .page-heading > .secondary {
    width: 36px;
  }
  .controls {
    padding: 4px;
  }
  .under-stage > span > svg {
    display: none;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .mast-inner {
    height: 44px;
  }
  .page-heading {
    margin: 8px 0;
  }
  .page-heading .eyebrow {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  .stage {
    height: 62dvh;
    min-height: 165px;
  }
  .scene-caption {
    padding: 20px 12px 10px;
  }
  .scene-caption h2 {
    font-size: 25px;
  }
  .control {
    min-height: 42px;
  }
  .hud-top {
    top: 9px;
  }
  .controls.big .control {
    min-height: 47px;
  }
  .start {
    min-height: 37px;
  }
  .scene-caption {
    flex-direction: row;
    align-items: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.order-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.order-list .outline {
  padding: 6px 9px;
  font-size: 11px;
  min-height: 32px;
}
.under-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.under-actions button + button {
  border-left: 1px solid var(--line);
  padding-left: 13px;
}
@media (max-width: 600px) {
  .mast-inner {
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    gap: 9px;
  }
  nav button {
    white-space: nowrap;
  }
  .page-heading > .secondary {
    width: 37px;
    min-width: 37px;
    padding: 6px;
  }
  .page-heading > .secondary span {
    display: none;
  }
  .page-heading > .secondary svg {
    width: 18px;
  }
  .page-heading h1 {
    font-size: clamp(28px, 8.15vw, 42px);
  }
  .under-actions {
    gap: 1px;
  }
  .under-actions button + button {
    padding-left: 6px;
  }
  .under-stage > span {
    max-width: 52%;
  }
}
@media (max-width: 410px) {
  nav button[data-page='atlas'] {
    font-size: 0;
  }
  nav button[data-page='atlas']:before {
    content: 'Атлас';
    font-size: 11px;
  }
  .under-actions button {
    font-size: 10px;
  }
  .under-actions > button:first-child svg {
    display: none;
  }
}
#motion-cue {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 16px;
  background: #23342be3;
  color: #f1f6de;
  font: 550 11px Golos, sans-serif;
  padding: 6px 10px;
  border: 1px solid #b4c6a644;
  border-radius: 3px;
  pointer-events: none;
}
@media (max-width: 600px) {
  #motion-cue {
    left: 11px;
    bottom: 11px;
  }
}
#rback,
#rfwd {
  font: 22px/1 var(--mono);
  min-width: 30px;
  justify-content: center;
  border: 1px solid #526250;
  border-radius: 4px;
}
@media (max-width: 600px) {
  #replay-dock {
    gap: 5px;
    padding: 7px;
    font-size: 10px;
  }
  #replay-dock button {
    padding: 4px;
  }
  #rback,
  #rfwd {
    min-width: 25px;
  }
}
@media (max-width: 365px) {
  .mast-inner {
    gap: 8px;
  }
  .brand {
    font-size: 18px;
  }
  .tools #sound {
    display: none;
  }
  nav {
    gap: 8px;
  }
}
.controls.pose-controls {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .pose-controls .control {
    font-size: clamp(8px, 2vw, 10px);
  }
}
@media (max-width: 380px) {
  .controls.pose-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pose-controls .control {
    min-height: 39px;
    flex-direction: row;
    gap: 4px;
  }
}
