:root {
  --bg: #080c12;
  --panel: #0e141e;
  --panel2: #121b27;
  --line: #202c3a;
  --muted: #7e90a5;
  --text: #e9f0f7;
  --accent: #78f7d1;
  --violet: #b9a5ff;
  --amber: #ffc57c;
  font-family: Inter,"Segoe UI",system-ui,sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
  color-scheme: dark
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-width: 780px
}

button,input,select {
  font: inherit
}

button {
  cursor: pointer
}

button:disabled {
  opacity: .35;
  cursor: not-allowed
}

button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

button {
  border: 0;
  color: inherit
}

button,select {
  transition: background .16s,color .16s,border .16s,transform .16s
}

button:active:not(:disabled) {
  transform: translateY(1px)
}

[hidden] {
  display: none!important
}

.topbar {
  height: 92px;
  border-bottom: 1px solid #1c2632;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: linear-gradient(120deg,#111822,#080c12 70%)
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px
}

.brand h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1.3px;
  margin: 0 0 4px
}

.brand-dot {
  color: var(--accent)
}

.brand p {
  font-size: 9px;
  letter-spacing: 2px;
  margin: 0;
  color: #96a6b8
}

.brand p span {
  margin: 0 8px;
  color: #3c5366
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  transform: rotate(-12deg)
}

.brand-mark i {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 17px #78f7d118
}

.brand-mark i:nth-child(2) {
  background: var(--violet)
}

.brand-mark i:nth-child(3) {
  background: #ffbca2
}

.brand-mark i:nth-child(4) {
  background: #90caff
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 26px
}

.local-badge {
  color: #9aabba;
  font-size: 11px
}

.local-badge i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 7px
}

.quiet-button {
  border: 1px solid #2b3949;
  border-radius: 8px;
  padding: 10px 15px;
  background: #131b26;
  font-size: 12px
}

.quiet-button:hover {
  background: #1d2a39
}

.quiet-button span {
  color: var(--accent);
  margin-left: 12px
}

.layout {
  display: grid;
  grid-template-columns: 292px minmax(0,1fr);
  gap: 25px;
  padding: 24px;
  max-width: 2100px;
  margin: auto
}

.controls {
  background: #0e141d;
  border: 1px solid #202b38;
  border-radius: 15px;
  overflow: hidden;
  align-self: start
}

.control-block {
  padding: 23px;
  border-bottom: 1px solid #1d2936
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 8px
}

.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: #8c9bad
}

.small-tag {
  font-size: 8px;
  letter-spacing: 1px;
  padding: 4px 6px;
  background: #78f7d112;
  color: var(--accent);
  border: 1px solid #78f7d127;
  border-radius: 4px
}

.small-tag.dim {
  color: #8e9fb1;
  background: #1c2735;
  border-color: #283445
}

.population-block h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.65px;
  font-weight: 550;
  margin: 0 0 23px
}

.count-label {
  color: #b2bfce;
  font-size: 11px
}

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid #324052;
  border-radius: 9px;
  margin: 9px 0 10px;
  height: 52px;
  background: #080e16
}

.stepper button {
  width: 48px;
  height: 100%;
  background: transparent;
  color: #adbed0;
  font-size: 25px
}

.stepper button:hover {
  color: var(--accent);
  background: #78f7d10c
}

.stepper input {
  width: calc(100% - 96px);
  appearance: textfield;
  text-align: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 27px;
  font-weight: 600;
  outline: none
}

.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0
}

.presets {
  display: flex;
  gap: 6px
}

.presets button {
  flex: 1;
  background: #18212e;
  border: 1px solid #223044;
  border-radius: 5px;
  padding: 6px;
  color: #aab8c8;
  font-size: 11px
}

.presets button:hover {
  border-color: #5a7e85;
  color: var(--accent)
}

.muted {
  color: var(--muted)
}

.hint {
  font-size: 10px;
  line-height: 1.65;
  margin: 12px 0 17px
}

.primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  border-radius: 8px;
  padding: 13px 8px;
  background: var(--accent);
  color: #062820;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 3px 25px #78f7d110
}

.primary-button:hover {
  background: #acffe6;
  box-shadow: 0 3px 25px #78f7d125
}

.primary-button.running {
  background: #192b30;
  color: #b4f6e4;
  border: 1px solid #4f8278
}

.reset-button {
  width: 100%;
  padding: 13px 0 0;
  background: none;
  color: #8fa1b5;
  font-size: 11px
}

.reset-button:hover {
  color: #d0e5f4
}

.range-control {
  margin: 15px 0 0
}

.range-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b7c4d2;
  font-size: 11px;
  gap: 5px
}

.range-control output {
  color: #d5e2ee;
  font-size: 10px;
  font-variant-numeric: tabular-nums
}

input[type=range] {
  width: 100%;
  height: 18px;
  accent-color: var(--accent);
  margin: 7px 0 0;
  cursor: pointer;
  appearance: none;
  background: none
}

input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg,#78f7d1 0%,#78f7d1 var(--fill,50%),#2c3949 var(--fill,50%),#2c3949 100%)
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: #d9fff3;
  border: 2px solid #78f7d1;
  border-radius: 50%;
  margin-top: -3.5px;
  box-shadow: 0 0 0 3px #78f7d10a
}

input[type=range]::-moz-range-track {
  background: #2c3949;
  height: 3px
}

input[type=range]::-moz-range-thumb {
  background: var(--accent);
  width: 9px;
  height: 9px;
  border: 0
}

.advanced {
  margin-top: 14px;
  border-top: 1px solid #202c39;
  padding-top: 12px
}

.advanced summary {
  cursor: pointer;
  color: #8396aa;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  list-style: none
}

.advanced summary::-webkit-details-marker {
  display: none
}

.advanced[open] summary {
  color: #c4d7e9
}

.advanced[open] summary span {
  transform: rotate(45deg)
}

.select-label {
  display: block;
  font-size: 11px;
  color: #aebfce;
  margin: 13px 0 7px
}

select {
  width: 100%;
  background: #17212e;
  border: 1px solid #2a394a;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #dce7f2;
  outline: none
}

.formula-tag {
  font-family: "Cambria Math",serif;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap
}

.micro {
  color: #6f8299;
  font-size: 9px;
  margin: 5px 0 0;
  line-height: 1.6
}

.micro strong {
  color: #badfda;
  font-weight: 500;
  font-variant-numeric: tabular-nums
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  color: #acbdcf;
  font-size: 11px
}

.toggle-row input {
  appearance: none;
  width: 28px;
  height: 16px;
  border-radius: 10px;
  background: #2d3949;
  position: relative;
  cursor: pointer;
  transition: background .2s
}

.toggle-row input:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #91a0b0;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all .2s
}

.toggle-row input:checked {
  background: #2d7868
}

.toggle-row input:checked:after {
  background: #abffe7;
  left: 15px
}

.text-button {
  background: transparent;
  color: #83a1b5;
  font-size: 10px;
  padding: 0
}

.text-button:hover {
  color: var(--accent)
}

.sidebar-footer {
  font-size: 9px;
  letter-spacing: .25px;
  padding: 19px 18px;
  color: #6e849b;
  display: flex;
  align-items: center;
  gap: 8px
}

.tiny-logo {
  font-size: 16px;
  color: #8aacc0
}

.workspace {
  min-width: 0
}

.metrics-strip {
  display: grid;
  grid-template-columns: 1.04fr 1.02fr .85fr;
  gap: 14px;
  margin-bottom: 17px
}

.metric {
  border: 1px solid #233040;
  border-radius: 11px;
  min-height: 105px;
  padding: 17px 19px;
  background: linear-gradient(140deg,#151e2a,#101721)
}

.metric>div:not(.progress-track) {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 10px 0 0
}

.metric strong {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -.75px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.status-chip {
  background: #293748;
  border-radius: 4px;
  color: #99aec6;
  font-size: 9px;
  padding: 4px 6px;
  white-space: nowrap
}

.status-chip.good {
  background: #78f7d113;
  color: var(--accent)
}

.metric-caption {
  color: #8497ad;
  font-size: 10px;
  line-height: 1.4
}

.metric canvas {
  width: 100%;
  height: 22px;
  display: block;
  margin-top: 5px
}

.progress-track {
  margin: 14px 0 6px;
  height: 3px;
  background: #283443;
  border-radius: 3px;
  overflow: hidden
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--violet);
  transition: width .35s
}

.runtime-metric>p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #768da5;
  margin: 14px 0 3px
}

.arena {
  position: relative;
  border: 1px solid #263544;
  border-radius: 15px;
  overflow: hidden;
  background: #0b1119;
  box-shadow: inset 0 0 70px #02050b,0 14px 55px #00000025;
  height: clamp(470px,calc(100vh - 330px),830px);
  min-height: 470px
}

#worldCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none
}

.arena-top {
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  pointer-events: none
}

.arena-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.55px;
  color: #8ea1b9;
  display: flex;
  align-items: center;
  gap: 9px
}

.arena-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #688299;
  box-shadow: 0 0 0 4px #68829910
}

.arena-label i.running {
  background: var(--accent);
  box-shadow: 0 0 0 4px #78f7d113
}

.arena-dimensions {
  font-family: monospace;
  font-size: 9px;
  color: #6e839a
}

.arena-dimensions span {
  font: 8px "Segoe UI",sans-serif;
  letter-spacing: 1px;
  color: #415b73;
  margin-left: 7px
}

.arena-bottom {
  position: absolute;
  bottom: 19px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none
}

.toolbox {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #111c29ed;
  backdrop-filter: blur(16px);
  border: 1px solid #354454;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 4px 18px #0005;
  pointer-events: auto
}

.tool {
  background: transparent;
  color: #8299b0;
  border-radius: 6px;
  height: 35px;
  padding: 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 7px
}

.tool span {
  font-size: 10px
}

.tool:hover {
  background: #283a4a;
  color: #d4f3f0
}

.tool.active {
  background: #294740;
  color: #a2ffe1
}

.tool-divider {
  height: 22px;
  width: 1px;
  background: #334351;
  margin: 0 5px
}

.brush-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #7890a7;
  padding: 0 4px
}

.brush-label input {
  width: 40px;
  margin: 0
}

.brush-label output {
  color: #b2c1d0;
  font-size: 10px;
  width: 8px
}

.icon-only {
  padding: 0 7px
}

.canvas-hint {
  font-size: 9px;
  color: #8096ad;
  text-align: right;
  background: #0b1119aa;
  padding: 6px;
  border-radius: 4px;
  max-width: 200px;
  line-height: 1.4
}

.bottom-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 16px
}

.inspector,.event-panel {
  border: 1px solid #233141;
  border-radius: 11px;
  background: #101721;
  padding: 16px 18px;
  min-width: 0;
  height: 157px
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 7px
}

.swatch {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--accent)
}

.inspector-header strong {
  font-size: 11px
}

.inspector-header span:last-of-type {
  font-size: 8px;
  color: #7489a2;
  margin-left: 3px
}

.inspector-header button {
  margin-left: auto;
  color: #ba9ba1;
  background: none;
  font-size: 9px;
  padding: 0;
  white-space: nowrap
}

#priorityBars {
  width: 100%;
  height: 46px;
  margin: 13px 0 10px;
  display: block
}

.inspector-adjust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8096b0;
  font-size: 9px
}

.inspector-adjust input {
  flex: 1;
  width: 35px;
  margin: 0
}

.inspector-adjust output {
  color: #cadce9;
  width: 26px
}

.inspector-adjust button {
  font-size: 9px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #263749;
  color: #c5dbe5;
  white-space: nowrap
}

.event-panel .section-heading {
  margin-bottom: 12px
}

.event-log {
  height: 94px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #304257 transparent
}

.event {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 10px;
  line-height: 1.4;
  color: #a2b6ca
}

.event time {
  font-family: monospace;
  color: #506b84;
  font-size: 9px;
  white-space: nowrap
}

.event em {
  font-style: normal;
  color: var(--accent)
}

.science-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  color: #647b94;
  font-size: 9px;
  line-height: 1.5
}

.science-footnote>span:first-child {
  color: #9ab9b1;
  white-space: nowrap;
  display: flex;
  gap: 7px;
  align-items: center
}

.science-footnote i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%
}

.science-footnote b {
  font-weight: 400;
  margin: 0 6px;
  color: #465a70
}

.science-footnote>span:last-child {
  white-space: nowrap
}

.empty-state {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none
}

.empty-state>span {
  font-size: 22px;
  font-weight: 500;
  color: #acc0d0
}

.empty-state p {
  font-size: 12px;
  color: #6b8298
}

.obstacle-notice {
  position: absolute;
  bottom: 79px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 85%;
  font-size: 11px;
  color: #edcda2;
  background: #30271eea;
  border: 1px solid #735634;
  border-radius: 7px;
  padding: 11px 16px;
  text-align: center;
  pointer-events: none
}

.celebration {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 216, 77, 0.14), transparent 30%),
    radial-gradient(ellipse at center, rgba(11, 19, 37, 0.82), transparent 72%);
  pointer-events: none
}

.celebration::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(circle at 18% 22%, #ffd84d 0 2px, transparent 3px),
    radial-gradient(circle at 30% 68%, #78f7d1 0 2px, transparent 3px),
    radial-gradient(circle at 75% 26%, #b9a5ff 0 2px, transparent 3px),
    radial-gradient(circle at 82% 66%, #ffbca2 0 2px, transparent 3px),
    radial-gradient(circle at 60% 16%, #ffd84d 0 2px, transparent 3px),
    radial-gradient(circle at 12% 55%, #90caff 0 2px, transparent 3px),
    radial-gradient(circle at 90% 44%, #78f7d1 0 2px, transparent 3px);
  animation: celebrationSparkle 2.4s ease-in-out infinite
}

.celebration-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  color: #fff1a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 0 18px rgba(255, 216, 77, .55)
}

.celebration h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(64px,8vw,120px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -4px;
  color: #ffd84d;
  text-shadow:
    0 0 12px rgba(255, 216, 77, .65),
    0 0 38px rgba(255, 197, 124, .4),
    5px 5px 0 #8a6500;
  animation: celebratePulse 1.3s ease-in-out infinite
}

.celebration p {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  color: #e5f3f8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px
}

.celebration button {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  margin-top: 12px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 216, 77, .55);
  border-radius: 7px;
  background: rgba(34, 31, 18, .88);
  color: #ffe88b;
  font-size: 11px;
  box-shadow:
    0 0 18px rgba(255, 216, 77, .12),
    inset 0 0 12px rgba(255, 216, 77, .05)
}

.celebration button:hover {
  background: #ffd84d;
  color: #211900;
  border-color: #ffd84d
}

@keyframes celebratePulse {
  0%,100% {
    transform: scale(1);
    filter: brightness(1)
  }
  50% {
    transform: scale(1.035);
    filter: brightness(1.15)
  }
}

@keyframes celebrationSparkle {
  0%,100% {
    opacity: .4;
    transform: scale(1)
  }
  50% {
    opacity: .8;
    transform: scale(1.025)
  }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  z-index: 50;
  border: 1px solid #41566b;
  background: #1b2938f5;
  box-shadow: 0 10px 40px #0005;
  padding: 13px 21px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #d5e8f5
}

dialog {
  width: min(650px,90vw);
  padding: 29px;
  border: 1px solid #3b5268;
  border-radius: 15px;
  background: #111b27;
  color: #c0d0e0;
  box-shadow: 0 25px 140px #000a;
  max-height: 87vh;
  overflow: auto
}

dialog::backdrop {
  background: #030911b8;
  backdrop-filter: blur(5px)
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.dialog-top button {
  background: transparent;
  color: #aac5d7;
  font-size: 25px;
  padding: 0 3px
}

.dialog-top .eyebrow {
  color: var(--accent)
}

dialog h2 {
  font-size: 26px;
  color: #ecf5fb;
  letter-spacing: -.6px;
  margin: 18px 0
}

dialog h3 {
  font-size: 15px;
  color: #d5e9f6;
  margin-top: 25px
}

dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #a6bbcf
}

.equation-card {
  padding: 21px;
  border: 1px solid #2e675e;
  background: #78f7d10a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.equation-card small,.equation-pair small {
  letter-spacing: 1.5px;
  font-size: 8px;
  color: var(--accent)
}

.equation-card strong {
  font-size: 27px;
  font-family: "Cambria Math",serif;
  font-weight: 400;
  color: #d9fff2
}

.equation-card span,.equation-pair span {
  font-size: 10px;
  color: #8eb5ac
}

.equation-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 23px 0
}

.equation-pair p {
  font-family: "Cambria Math",serif;
  font-size: 18px;
  margin: 8px 0;
  color: #d1dff5
}

.proof-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid #2f4054;
  padding-top: 18px;
  margin-top: 22px;
  font-size: 10px;
  color: #7794af
}

.proof-stats b {
  display: block;
  color: #c2ece0;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums
}

@media(min-width:1500px) {
  .layout {
    grid-template-columns: 320px minmax(0,1fr);
    gap: 28px;
    padding: 27px 32px
  }
  .control-block {
    padding: 24px
  }
  .arena {
    height: clamp(560px,calc(100vh - 350px),930px)
  }
}

@media(max-width:1080px) {
  .layout {
    grid-template-columns: 280px minmax(0,1fr);
    gap: 15px;
    padding: 17px
  }
  .control-block {
    padding: 17px
  }
  .metric {
    padding: 13px 12px
  }
  .metric strong {
    font-size: 21px
  }
  .metric .metric-caption {
    font-size: 9px
  }
  .metrics-strip {
    gap: 8px
  }
  .canvas-hint {
    display: none
  }
  .inspector-header span:last-of-type {
    display: none
  }
  .bottom-strip {
    gap: 10px;
    grid-template-columns: 1fr
  }
  .event-panel {
    height: 130px
  }
  .event-log {
    height: 73px
  }
  .arena {
    height: 560px
  }
  .science-footnote>span:nth-child(2) {
    max-width: 220px
  }
  .topbar {
    padding: 0 23px
  }
  .tool span {
    display: none
  }
  .brush-label {
    font-size: 8px
  }
  .top-actions {
    gap: 12px
  }
}

@media(prefers-reduced-motion:reduce) {
  .celebration h2,
  .celebration::before {
    animation: none
  }
  * {
    scroll-behavior: auto!important
  }
}

/* Keep the arena visible while tuning the full control set. */.controls {
  max-height: calc(100vh - 142px);
  overflow-y: auto;
  position: sticky;
  top: 18px;
  scrollbar-width: thin;
  scrollbar-color: #2d4256 transparent
}

.arena {
  height: clamp(440px,calc(100vh - 412px),820px);
  min-height: 440px
}

@media(max-width:1080px) {
  .arena {
    height: 490px
  }
  .controls {
    max-height: calc(100vh - 130px)
  }
}
