:root {
  --ink: #18222a;
  --navy: #2f526c;
  --navy-dark: #243e52;
  --paper: #e9e0c9;
  --paper-light: #f4edda;
  --orange: #c96925;
  --mustard: #d1a326;
  --red: #ad3d2b;
  --green: #497448;
  --line: #18222a;
  --shadow: 6px 6px 0 #18222a;
}

* { box-sizing: border-box; }

html { background: #9c8f76; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 34, 42, .055) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 5px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .045em;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }

.company-header {
  width: min(100%, 760px);
  min-height: 150px;
  margin: 0 auto;
  padding: 24px 22px 18px;
  display: grid;
  grid-template-columns: 52px 1fr 84px;
  align-items: center;
  gap: 18px;
  background: var(--paper-light);
  border: 3px solid var(--line);
  border-top: 0;
}

.back-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  text-decoration: none;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
}

.company-title .eyebrow { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .25em; }
.company-title h1 { margin: 0; font-size: clamp(29px, 7vw, 47px); line-height: .83; letter-spacing: -.045em; }
.company-title em { color: var(--orange); font-style: normal; }

.clock {
  width: 70px;
  aspect-ratio: 1;
  position: relative;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.clock::before, .clock::after { content: ""; position: absolute; left: 31px; bottom: 31px; width: 4px; background: var(--ink); transform-origin: 50% 100%; }
.clock::before { height: 22px; transform: rotate(25deg); }
.clock::after { height: 27px; transform: rotate(125deg); }
.clock span { position: absolute; inset: 6px; border: 1px dashed var(--ink); border-radius: 50%; }

.ticker {
  width: min(100%, 760px);
  height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 3px solid var(--line);
  border-top: 0;
  background: var(--mustard);
  font-size: 11px;
  letter-spacing: .13em;
}

.ticker-label { align-self: stretch; padding: 11px 13px; color: white; background: var(--red); }
#tickerText { padding: 0 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.game-shell { width: min(100%, 760px); margin: 0 auto; padding: 15px 14px 46px; background: rgba(244, 237, 218, .52); border-inline: 3px solid var(--line); }

.hud { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); border: 3px solid var(--line); box-shadow: var(--shadow); background: var(--paper-light); }
.hud > div { min-width: 0; padding: 12px 10px 11px; border-right: 2px solid var(--line); }
.hud > div:last-child { border-right: 0; }
.hud span, .hud small { display: block; font-size: 9px; letter-spacing: .11em; white-space: nowrap; }
.hud strong { display: block; margin: 4px 0 2px; font-size: clamp(17px, 3.4vw, 26px); letter-spacing: -.02em; white-space: nowrap; }
.hud-primary { color: var(--paper-light); background: var(--navy); }
.hud-primary strong { color: #fff; }
.hud-primary small.positive { color: #b8e09c; }
.hud-primary small.negative { color: #ffb09a; }

.panel { margin-top: 27px; border: 3px solid var(--line); background: var(--paper-light); box-shadow: var(--shadow); }
.panel-heading { min-height: 59px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--paper-light); background: var(--navy); border-bottom: 3px solid var(--line); }
.panel-heading > div:first-child { display: flex; align-items: center; gap: 11px; }
.panel-heading h2 { margin: 0; font-size: clamp(16px, 4vw, 23px); letter-spacing: .04em; }
.floor-number { padding: 7px 8px; color: var(--ink); background: var(--mustard); border: 2px solid var(--ink); font-size: 11px; }
.status-light { font-size: 9px; white-space: nowrap; }
.status-light i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border: 1px solid #0e191e; border-radius: 50%; background: #8bd66c; box-shadow: 0 0 7px #b8ff9b; }

.interview-grid { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 262px; border-bottom: 3px solid var(--line); }
.lab { min-height: 262px; position: relative; overflow: hidden; background: #c5b795; border-right: 3px solid var(--line); }
.height-marks { position: absolute; inset: 17px 0 46px 17px; border-left: 2px solid rgba(24,34,42,.6); }
.height-marks i { display: block; height: 25%; border-top: 1px solid rgba(24,34,42,.38); }
.height-marks i::after { content: ""; display: block; width: 9px; border-top: 1px solid rgba(24,34,42,.38); transform: translateY(9px); }
.candidate-stage { position: absolute; inset: 13px 68px 34px; display: flex; justify-content: center; align-items: flex-end; z-index: 2; }
.candidate-stage.testing-jiggle .person { animation: test-jiggle .55s linear 2; }
.candidate-stage.testing-poke .person { animation: test-poke .8s ease-in-out; }
.candidate-stage.testing-invert .person { animation: test-invert 1s ease-in-out; }
.candidate-stage.testing-spin .person { animation: test-spin 1s ease-in-out; }
.candidate-stage.testing-shock .person { animation: test-shock .75s steps(2) 2; filter: drop-shadow(0 0 8px #f6d838); }
.candidate-stage.failed .person { animation: candidate-fail .9s ease-in forwards; }
.apparatus { position: absolute; bottom: 32px; width: 51px; height: 143px; border: 3px solid var(--ink); background: var(--navy); z-index: 1; }
.apparatus::before { content: ""; position: absolute; top: 13px; left: 10px; width: 25px; height: 25px; border: 3px solid var(--ink); background: var(--mustard); }
.apparatus::after { content: ""; position: absolute; top: 56px; left: 14px; width: 17px; height: 5px; background: var(--ink); box-shadow: 0 19px 0 var(--ink), 0 38px 0 var(--ink); }
.apparatus-left { left: -12px; }
.apparatus-right { right: -12px; }
.lab-floor { position: absolute; bottom: 0; width: 100%; height: 35px; display: grid; place-items: center; color: var(--paper); background: var(--ink); font-size: 8px; letter-spacing: .18em; }
.lab-floor::before, .lab-floor::after { content: ""; position: absolute; top: -15px; left: 45%; width: 40px; border-top: 3px solid var(--red); transform: rotate(18deg); }
.lab-floor::after { transform: rotate(-18deg); }

.candidate-file { padding: 17px 15px; background: linear-gradient(90deg, transparent 28px, rgba(173,61,43,.18) 29px, transparent 30px), repeating-linear-gradient(0deg, transparent 0 24px, rgba(47,82,108,.12) 25px), #f1e9d3; }
.file-label { display: inline-block; padding: 4px 6px; color: white; background: var(--red); font-size: 8px; }
.candidate-name { margin: 12px 0 17px; font-size: clamp(17px, 4vw, 23px); line-height: 1; }
.candidate-stats { display: grid; gap: 10px; }
.candidate-stats div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dotted rgba(24,34,42,.45); }
.candidate-stats span { font-size: 8px; }
.candidate-stats strong { font-size: 12px; text-align: right; }
.candidate-message { min-height: 42px; margin: 19px 0 0; font: italic 600 11px/1.4 Georgia, serif; letter-spacing: 0; }

.test-controls { padding: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; border-bottom: 3px solid var(--line); }
.test-button { min-height: 61px; padding: 6px 3px; cursor: pointer; border: 2px solid var(--line); background: var(--paper); box-shadow: 2px 2px 0 var(--line); }
.test-button:hover:not(:disabled), .test-button:focus-visible:not(:disabled) { background: var(--mustard); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.test-button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.test-button .test-icon { display: block; font-size: 19px; line-height: 1; }
.test-button .test-name { display: block; margin: 4px 0 2px; font-size: 10px; }
.test-button small { display: block; font-size: 7px; color: #5b5550; }
.test-button:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.test-button.completed { color: var(--paper-light); background: var(--green); opacity: .72; }

.hiring-row { padding: 12px; display: flex; gap: 11px; align-items: center; }
.hiring-label { flex: 0 0 auto; font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); }
.role-buttons { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.role-buttons button { min-height: 47px; padding: 6px; cursor: pointer; border: 2px solid var(--line); background: var(--mustard); box-shadow: 2px 2px 0 var(--line); font-size: 9px; }
.role-buttons small { display: block; margin-top: 3px; font-size: 8px; }
.role-buttons button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.role-buttons .reject-button { color: var(--paper); background: var(--red); }

.scroll-note { height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--navy-dark); font-size: 9px; letter-spacing: .2em; }
.scroll-note b { font-size: 27px; animation: point-down 1.4s ease-in-out infinite; }

.department { margin-top: 0; margin-bottom: 39px; scroll-margin-top: 12px; }
.department-output { display: block !important; text-align: right; }
.department-output span { display: block; font-size: 8px; }
.department-output strong { display: block; margin-top: 3px; color: #fff; font-size: 15px; }
.department-floor { min-height: 235px; padding: 21px 13px 15px; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; justify-content: center; gap: 9px; position: relative; overflow: hidden; border-bottom: 3px solid var(--line); background-color: #b9ab8c; }
.department-floor::before { content: ""; position: absolute; inset: 0 0 53%; background: linear-gradient(90deg, rgba(24,34,42,.12) 2px, transparent 2px), linear-gradient(rgba(24,34,42,.12) 2px, transparent 2px); background-size: 42px 42px; }
.department-floor::after { content: ""; position: absolute; left: 0; right: 0; bottom: 46px; border-top: 3px solid var(--ink); box-shadow: 0 14px 0 rgba(24,34,42,.16), 0 28px 0 rgba(24,34,42,.16); }
.office-floor { background-color: #b5b99f; }
.management-floor { min-height: 214px; background-color: #af9c88; }
.empty-floor { margin: auto; align-self: center; z-index: 1; padding: 10px 14px; border: 2px dashed rgba(24,34,42,.55); font-size: 9px; }
.worker-slot { width: 92px; height: 150px; position: relative; display: flex; justify-content: center; align-items: flex-end; z-index: 2; }
.worker-slot.manager-slot { width: 151px; }
.worker-slot .machine { position: absolute; inset: auto 0 0; height: 70px; z-index: 2; }
.worker-slot .person { position: absolute; bottom: 38px; z-index: 3; }
.office-floor .person { bottom: 45px; }
.management-floor .person { bottom: 48px; }
.worker-slot .bubble { position: absolute; top: -3px; right: -5px; max-width: 86px; padding: 5px 6px; color: var(--paper-light); background: var(--ink); border: 2px solid var(--paper-light); box-shadow: 2px 2px 0 var(--ink); font-size: 7px; line-height: 1.2; z-index: 8; animation: bubble-in .2s ease-out; }
.worker-slot.on-break .person { transform: rotate(68deg) translate(9px, 11px); animation: none !important; }
.worker-slot.burnout .person { transform: rotate(87deg) translate(14px, 17px); animation: none !important; filter: grayscale(.7); }
.worker-slot.stressed .person { animation: worker-shake .3s linear infinite; }
.worker-slot.critical .person { animation: worker-shake .15s linear infinite; filter: saturate(1.35); }
.workload-relaxed .worker-slot .person { animation-duration: 1.65s; }
.workload-normal .worker-slot .person { animation-duration: .95s; }
.workload-push .worker-slot .person { animation-duration: .48s; }
.workload-crunch .worker-slot .person { animation-duration: .22s; }

.person { --skin: #d9a06e; --hair: #402b22; --eyes: #18222a; --shirt: #315773; --scale-x: 1; width: 58px; height: 135px; position: relative; transform: scaleX(var(--scale-x)); transform-origin: 50% 100%; animation: person-work .95s ease-in-out infinite; }
.part { position: absolute; display: block; overflow: visible; }
.head-parts { position: absolute; top: 5px; left: 5px; width: 48px; height: 52px; z-index: 4; }
.head-parts .face { inset: 4px 0 0; width: 48px; height: 48px; }
.head-parts .hair { top: 0; left: 0; width: 48px; height: 22px; z-index: 2; }
.head-parts .eyes { top: 26px; left: 0; width: 48px; height: 16px; z-index: 3; }
.part.torso { top: 53px; left: 2px; width: 54px; height: 64px; z-index: 3; }
.part.arm-svg { top: 57px; width: 14px; height: 58px; z-index: 2; transform-origin: 50% 4px; }
.part.arm-svg.left { left: 0; transform: rotate(9deg); }
.part.arm-svg.right { right: 0; transform: rotate(-24deg); animation: arm-work .6s ease-in-out infinite alternate; }
.part.leg-svg { top: 105px; width: 14px; height: 38px; z-index: 1; }
.part.leg-svg.left { left: 11px; }
.part.leg-svg.right { right: 11px; }
.part.tie { top: 59px; left: 23px; width: 12px; height: 37px; z-index: 5; }
.person .head { position: absolute; top: 11px; left: 9px; width: 40px; height: 39px; background: var(--skin); border: 3px solid var(--ink); border-radius: var(--head-radius, 0); z-index: 3; }
.person .head::before { content: ""; position: absolute; left: -3px; top: -8px; width: 40px; height: var(--hair-height, 10px); background: var(--hair); border: 3px solid var(--ink); border-bottom-width: 2px; border-radius: var(--hair-radius, 0); }
.person .head::after { content: ""; position: absolute; top: var(--eye-y, 13px); left: var(--eye-left, 8px); width: 5px; height: 5px; background: var(--eyes); box-shadow: var(--eye-gap, 16px) 0 0 var(--eyes); }
.person .body { position: absolute; left: 5px; top: 50px; width: 48px; height: 58px; background: var(--shirt); border: 3px solid var(--ink); z-index: 2; }
.person .body::after { content: ""; position: absolute; top: -3px; left: 12px; width: 16px; height: 14px; background: var(--collar, var(--paper-light)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.person .arm, .person .leg { position: absolute; width: 10px; border: 3px solid var(--ink); transform-origin: 50% 0; }
.person .arm { top: 53px; height: 53px; background: var(--shirt); z-index: 1; }
.person .arm.left { left: 0; transform: rotate(9deg); }
.person .arm.right { right: 0; transform: rotate(-24deg); animation: arm-work .6s ease-in-out infinite alternate; }
.person .leg { top: 104px; height: 31px; background: var(--pants, #303b42); }
.person .leg.left { left: 12px; }
.person .leg.right { right: 12px; }
.person.manager .body::before { content: ""; position: absolute; width: 6px; height: 31px; left: 18px; top: 4px; background: var(--mustard); }
.person.manager { animation-duration: 2.7s !important; }

.test-effect { position: absolute; z-index: 9; pointer-events: none; }
.shock-effect { width: 52px; height: 84px; top: 13px; left: calc(50% + 17px); animation: bubble-in .1s ease-out; }
.poke-effect { width: 125px; height: 28px; top: 91px; left: calc(50% + 12px); animation: poke-enter .45s ease-in-out alternate 2; }

.machine-base, .desk-base { position: absolute; left: 4px; right: 4px; bottom: 0; height: 44px; border: 3px solid var(--ink); background: var(--orange); z-index: 4; }
.machine-base::before { content: ""; position: absolute; width: 42px; height: 55px; bottom: 40px; right: 2px; background: url("assets/equipment/machine.svg") center/contain no-repeat; }
.machine-base.upgraded::after { content: ""; position: absolute; width: 88px; height: 16px; bottom: -3px; left: -2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, var(--mustard) 8px 16px); border: 3px solid var(--ink); }
.desk-base { height: 30px; background: var(--navy); }
.desk-base::before { content: ""; position: absolute; width: 43px; height: 54px; bottom: 26px; left: 6px; background: url("assets/equipment/computer.svg") center/contain no-repeat; }
.manager-slot .desk-base { height: 37px; background: #6c4128; }
.manager-slot .desk-base::before { left: auto; right: 8px; }
.manager-slot .desk-base::after { content: ""; position: absolute; width: 28px; height: 28px; left: 13px; top: -27px; border: 3px solid var(--ink); border-radius: 50% 50% 0 0; background: var(--orange); }

.department-status { min-height: 39px; padding: 8px 10px; display: grid; grid-template-columns: 1fr 120px 82px; align-items: center; gap: 9px; border-bottom: 2px solid var(--line); font-size: 8px; }
.department-status b { text-align: right; font-size: 8px; }
.stress-bar { height: 11px; border: 2px solid var(--line); background: var(--paper); }
.stress-bar i { display: block; width: 0; height: 100%; background: var(--green); transition: width .35s; }
.control-grid { padding: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { min-width: 0; margin: 0; padding: 8px; border: 2px solid var(--line); }
legend { padding: 0 5px; font-size: 8px; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented button { min-width: 0; min-height: 35px; padding: 5px 2px; cursor: pointer; border: 1px solid var(--line); border-right: 0; background: transparent; font-size: 7px; }
.segmented button:last-child { border-right: 1px solid var(--line); }
.segmented button.active { color: white; background: var(--navy); box-shadow: inset 0 -4px var(--mustard); }
.segmented button[data-value="crunch"].active, .segmented button[data-value="cheap"].active { background: var(--red); }
.single-control { grid-template-columns: 1fr 1.25fr; }
.memo { padding: 8px 10px; border: 2px dashed var(--line); background: #e0d2b3; }
.memo strong, .memo span { display: block; }
.memo strong { margin-bottom: 6px; color: var(--red); font-size: 8px; }
.memo span { font: italic 600 10px/1.35 Georgia, serif; letter-spacing: 0; }

.capital-panel { margin-top: 0; }
.capital-intro { margin: 0; padding: 11px 13px; border-bottom: 2px solid var(--line); font: italic 600 11px Georgia, serif; letter-spacing: 0; }
.form-code { padding: 5px; border: 1px solid currentColor; font-size: 8px; }
.upgrade-list { padding: 11px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.upgrade { min-height: 88px; padding: 9px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 5px 8px; border: 2px solid var(--line); background: var(--paper); }
.upgrade h3 { margin: 0; font-size: 11px; }
.upgrade .upgrade-dept { color: var(--orange); font-size: 7px; }
.upgrade p { grid-column: 1; margin: 0; font: 600 9px/1.3 Georgia, serif; letter-spacing: 0; }
.upgrade button { grid-column: 2; grid-row: 1 / 4; min-width: 83px; cursor: pointer; border: 2px solid var(--line); background: var(--mustard); box-shadow: 2px 2px 0 var(--line); font-size: 9px; }
.upgrade button:disabled { opacity: .4; box-shadow: none; cursor: not-allowed; }
.upgrade button.owned { color: white; background: var(--green); }

.records { margin-top: 30px; }
.record-grid { padding: 13px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.record-grid div { padding: 8px; border: 1px solid var(--line); }
.record-grid span, .record-grid strong { display: block; }
.record-grid span { min-height: 20px; font-size: 7px; }
.record-grid strong { font-size: 17px; }
.reset-button { margin: 0 13px 13px; padding: 8px 10px; border: 1px solid var(--red); color: var(--red); background: transparent; cursor: pointer; font-size: 8px; }

.toast-stack { position: fixed; right: max(13px, calc((100vw - 760px) / 2 + 13px)); bottom: 18px; width: min(280px, calc(100vw - 26px)); z-index: 30; pointer-events: none; }
.toast { margin-top: 8px; padding: 10px 12px; color: var(--paper-light); background: var(--ink); border: 2px solid var(--paper-light); box-shadow: 4px 4px 0 var(--orange); animation: toast-life 4s ease forwards; }
.toast strong, .toast span { display: block; }
.toast strong { margin-bottom: 3px; color: #f1c548; font-size: 10px; }
.toast span { font: 600 10px/1.35 Georgia, serif; letter-spacing: 0; }

footer { width: min(100%, 760px); margin: 0 auto; padding: 18px; display: flex; justify-content: space-between; color: var(--paper); background: var(--ink); font-size: 8px; }
footer a { color: var(--mustard); }

@keyframes person-work { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes arm-work { from { transform: rotate(-38deg); } to { transform: rotate(18deg); } }
@keyframes worker-shake { 0%,100% { translate: -1px 0; } 50% { translate: 2px -1px; } }
@keyframes test-jiggle { 0%,100% { translate: 0; } 20% { translate: -18px; } 40% { translate: 15px; } 60% { translate: -10px; } 80% { translate: 8px; } }
@keyframes test-poke { 0%,100% { transform: rotate(0); } 45%,65% { transform: rotate(-24deg) translateX(-8px); } }
@keyframes test-invert { 0%,100% { transform: rotate(0); } 35%,70% { transform: rotate(180deg); } }
@keyframes test-spin { to { transform: rotate(1080deg); } }
@keyframes test-shock { 0%,100% { translate: 0 0; } 35% { translate: -5px -25px; transform: rotate(-4deg); } 65% { translate: 5px -18px; transform: rotate(4deg); } }
@keyframes candidate-fail { 25% { transform: rotate(-12deg); } 100% { transform: rotate(88deg) translate(60px, 15px); opacity: .2; } }
@keyframes poke-enter { from { translate: 90px 0; } to { translate: 0; } }
@keyframes point-down { 50% { translate: 0 7px; } }
@keyframes bubble-in { from { scale: .4; opacity: 0; } }
@keyframes toast-life { 0% { translate: 35px 0; opacity: 0; } 8%,83% { translate: 0; opacity: 1; } 100% { translate: 0 12px; opacity: 0; } }

@media (max-width: 600px) {
  .company-header { grid-template-columns: 42px 1fr 54px; min-height: 124px; padding-inline: 14px; gap: 10px; }
  .back-link { width: 38px; height: 38px; }
  .clock { width: 50px; border-width: 4px; }
  .clock::before, .clock::after { left: 21px; bottom: 21px; }
  .clock::before { height: 15px; } .clock::after { height: 19px; }
  .game-shell { padding-inline: 8px; border-inline: 0; }
  .hud { grid-template-columns: 1.45fr 1fr; }
  .hud > div:nth-child(2) { border-right: 0; }
  .hud > div:nth-child(-n+2) { border-bottom: 2px solid var(--line); }
  .interview-grid { grid-template-columns: 1fr; }
  .lab { min-height: 245px; border-right: 0; border-bottom: 3px solid var(--line); }
  .candidate-file { min-height: 215px; }
  .candidate-stats strong { max-width: 58%; font-size: 10px; }
  .candidate-message { max-width: 100%; }
  .test-controls { grid-template-columns: repeat(3, 1fr); }
  .role-buttons { grid-template-columns: repeat(2, 1fr); }
  .hiring-label { display: none; }
  .department-status { grid-template-columns: 1fr 100px; }
  .department-status b { grid-column: 2; grid-row: 2; }
  .stress-bar { grid-column: 2; grid-row: 1; }
  .control-grid, .single-control { grid-template-columns: 1fr; }
  .upgrade-list { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
