:root {
  color-scheme: dark;
  --bg: #0c0f10;
  --surface: #151a1c;
  --surface-2: #1b2224;
  --surface-3: #222b2d;
  --line: #354044;
  --line-soft: #293235;
  --ink: #f4f7f6;
  --muted: #9eabad;
  --cyan: #35d8c3;
  --cyan-deep: #0d786c;
  --amber: #ffbd3f;
  --red: #ff4d6d;
  --red-deep: #7d1830;
  --green: #7ee081;
  --purple: #a98cff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

button:hover:not(:disabled) {
  border-color: #637276;
  background: var(--surface-3);
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 189, 63, 0.82);
  outline-offset: 2px;
}

.decoderApp {
  min-height: 100vh;
}

.gameHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 15, 16, 0.92);
}

.brandBlock {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 250px;
}

.brandMark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 45%, var(--cyan) 45% 55%, transparent 55%),
    linear-gradient(transparent 45%, var(--amber) 45% 55%, transparent 55%);
  box-shadow: 0 0 22px rgba(53, 216, 195, 0.18);
  transform: rotate(45deg);
}

.brandMark::after {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.75);
  content: "";
}

.brandBlock h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.brandBlock p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 112px));
  gap: 8px;
}

.hudItem {
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
  text-align: center;
}

.hudItem span,
.eyebrow,
.sectionHeading > span,
.resultKicker {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hudItem strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.timerHud.warning strong {
  color: var(--amber);
}

.timerHud.danger strong,
.syndromeHud strong {
  color: var(--red);
}

.gameLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 16px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px;
}

.arena,
.controlRail {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.arena {
  min-width: 0;
  overflow: hidden;
}

.missionBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.missionBar h2 {
  margin: 4px 0 0;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--cyan);
}

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

.lessonDot {
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 2px;
  background: #354044;
}

.lessonDot.current {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 216, 195, 0.45);
}

.lessonDot.complete {
  background: var(--green);
}

.lessonMessage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #121719;
}

.lessonMessage p {
  margin: 0;
  color: #d5dcdd;
  font-size: 0.92rem;
  line-height: 1.55;
}

.lessonMessage strong {
  max-width: 470px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 189, 63, 0.35);
  border-left: 4px solid var(--amber);
  border-radius: 5px;
  background: rgba(255, 189, 63, 0.07);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lessonMessage strong::before {
  content: "MISSION";
  display: block;
  margin-bottom: 3px;
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 900;
}

.canvasWrap {
  position: relative;
  padding: 12px;
  background: #0e1213;
}

#decoderCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid #303a3d;
  border-radius: 6px;
  background: #0f1416;
  cursor: crosshair;
  touch-action: manipulation;
}

.canvasToast {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 250px;
  padding: 14px 22px;
  border: 1px solid rgba(53, 216, 195, 0.7);
  border-radius: 7px;
  background: rgba(12, 20, 20, 0.92);
  box-shadow: 0 0 34px rgba(53, 216, 195, 0.22);
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.levelCountdown {
  position: absolute;
  inset: 8px;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 5px;
  background: rgba(8, 13, 15, 0.82);
  backdrop-filter: blur(3px);
}

.levelCountdown span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.levelCountdown small {
  max-width: min(620px, calc(100vw - 48px));
  color: #d5e5e3;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.levelCountdown strong {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(7rem, 18vw, 13rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(53, 216, 195, 0.55);
}

.levelCountdown strong.pop {
  animation: countdownPop 780ms ease-out both;
}

@keyframes countdownPop {
  0% { opacity: 0; transform: scale(1.35); }
  20% { opacity: 1; }
  100% { opacity: 0.78; transform: scale(0.88); }
}

.lessonAdvance {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 210px;
  padding: 14px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  background: rgba(12, 24, 25, 0.94);
  box-shadow: 0 0 32px rgba(53, 216, 195, 0.22);
  transform: translate(-50%, -50%);
  animation: lessonAdvanceIn 320ms ease-out both;
}

.lessonAdvance span {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
}

.lessonAdvance button {
  width: 100%;
  min-height: 46px;
  padding: 0 24px;
}

.commitChoice {
  position: absolute;
  inset: 12px;
  z-index: 7;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(8, 13, 15, 0.76);
  backdrop-filter: blur(2px);
}

.commitChoicePanel {
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 28px));
  padding: 17px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  background: #101b1c;
  box-shadow: 0 0 36px rgba(53, 216, 195, 0.25);
  text-align: center;
  animation: commitChoiceIn 250ms ease-out both;
}

.commitChoicePanel > span {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
}

.commitChoicePanel > strong { font-size: 1rem; }

.commitChoicePanel > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.commitChoicePanel button { min-height: 46px; }

@keyframes commitChoiceIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gameOverOverlay {
  position: absolute;
  inset: 12px;
  z-index: 8;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 77, 109, 0.65);
  border-radius: 5px;
  background: rgba(10, 12, 14, 0.9);
  box-shadow: inset 0 0 100px rgba(255, 77, 109, 0.12);
  text-align: center;
}

.gameOverOverlay > span {
  color: var(--red);
  font-size: 1rem;
  font-weight: 950;
}

.gameOverOverlay > small {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.gameOverOverlay > strong {
  color: #fff;
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(255, 77, 109, 0.4);
}

.achievementLevel {
  display: grid;
  gap: 3px;
  min-width: min(360px, calc(100vw - 64px));
  margin-top: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.achievementLevel span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.achievementLevel strong {
  color: var(--amber);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.gameOverOverlay button {
  min-width: 210px;
  min-height: 46px;
  margin-top: 18px;
}

@keyframes lessonAdvanceIn {
  from { opacity: 0; transform: translate(-50%, -42%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.canvasToast.error {
  border-color: rgba(255, 77, 109, 0.75);
  box-shadow: 0 0 34px rgba(255, 77, 109, 0.2);
  color: var(--red);
}

.arenaControls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}

.chainCounter {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chainCounter span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.chainCounter strong {
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

.chainCounter strong span {
  color: var(--ink);
  font-size: inherit;
}

.editActions,
.resultActions,
.twoButtons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.editActions { justify-self: end; }

.primaryButton {
  border-color: #2b9f91;
  background: var(--cyan);
  color: #071311;
}

.primaryButton:hover:not(:disabled) {
  border-color: #70eee0;
  background: #63e2d2;
}

.commitButton {
  min-height: 46px;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(53, 216, 195, 0.18);
  animation: commitReady 900ms ease-out both;
}

@keyframes commitReady {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resultPanel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #111718;
}

.resultPanel.success {
  box-shadow: inset 4px 0 0 var(--green);
}

.resultPanel.failure {
  box-shadow: inset 4px 0 0 var(--red);
}

.resultKicker {
  color: var(--green);
}

.resultPanel.failure .resultKicker {
  color: var(--red);
}

.resultCopy h3 {
  margin: 3px 0 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.resultCopy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.resultCopy .scoreBreakdown {
  color: var(--cyan);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.scoreStrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--line-soft);
}

.scoreStrip > div {
  min-width: 70px;
  padding: 8px 10px;
  background: var(--surface-2);
  text-align: center;
}

.scoreStrip span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.scoreStrip strong {
  display: block;
  margin-top: 2px;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.scoreStrip .totalScore strong,
.scoreHud strong { color: var(--cyan); }

.controlRail {
  align-self: start;
  overflow: hidden;
}

.modeSwitch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
}

.modeSwitch legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modeSwitch label {
  min-width: 0;
}

.modeSwitch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modeSwitch span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.modeSwitch input:checked + span {
  border-color: var(--cyan-deep);
  background: rgba(53, 216, 195, 0.13);
  color: var(--cyan);
}

.modeSwitch input:focus-visible + span {
  outline: 3px solid rgba(255, 189, 63, 0.82);
  outline-offset: 2px;
}

.railSection {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.railSection:last-child {
  border-bottom: 0;
}

.sectionHeading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sectionHeading strong {
  font-size: 0.82rem;
  letter-spacing: 0;
}

.lessonList {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.lessonButton {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 9px;
  text-align: left;
}

.lessonButton .lessonIndex {
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.lessonButton .lessonName {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lessonButton .lessonState {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.lessonButton.current {
  border-color: var(--cyan-deep);
  background: rgba(53, 216, 195, 0.09);
}

.lessonButton.complete .lessonState {
  background: var(--green);
  box-shadow: 0 0 8px rgba(126, 224, 129, 0.48);
}

.numberField {
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.numberField input {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f1416;
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.settingReadout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.settingReadout > div {
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #111718;
}

.settingReadout span,
.settingReadout strong {
  display: block;
}

.settingReadout span {
  color: var(--muted);
  font-size: 0.68rem;
}

.settingReadout strong {
  margin-top: 3px;
  font-size: 0.85rem;
}

.fullButton {
  width: 100%;
}

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

.continuousSettings .settingReadout {
  grid-template-columns: 1fr;
}

.continuousStatus.running {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.55);
  animation: streamPulse 900ms ease-in-out infinite alternate;
}

.algorithmRank {
  display: grid;
  gap: 4px;
  min-height: 62px;
  margin-bottom: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 189, 63, 0.32);
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  background: rgba(255, 189, 63, 0.06);
}

.algorithmRank span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
}

.algorithmRank strong {
  color: var(--amber);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@keyframes streamPulse {
  from { opacity: 0.62; }
  to { opacity: 1; }
}

.boundaryDiagram {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  align-items: stretch;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #111718;
}

.boundaryDiagram span {
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
}

.escapeSide {
  background: rgba(53, 216, 195, 0.13);
  color: var(--cyan);
  writing-mode: vertical-rl;
}

.closedSide {
  border-top: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  color: var(--muted);
}

.legend {
  display: grid;
  gap: 9px;
}

.legend .sectionHeading {
  margin-bottom: 2px;
}

.legend > div:not(.sectionHeading) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: #d0d7d8;
  font-size: 0.76rem;
}

.legendLine {
  width: 34px;
  height: 0;
  flex: 0 0 34px;
  border-top: 5px solid;
  border-radius: 3px;
}

.legendLine.correction {
  border-color: var(--cyan);
}

.legendLine.actual {
  border-color: var(--amber);
  border-top-style: dashed;
}

.legendLine.matched {
  border-color: rgba(175, 203, 199, 0.4);
}

.legendLine.residual {
  border-color: var(--red);
  box-shadow: 0 0 7px rgba(255, 77, 109, 0.35);
}

.legendNode {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
}

.legendNode.syndrome {
  border: 3px solid #ff94aa;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.8);
}

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

@media (max-width: 1120px) {
  .gameHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .hud {
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gameLayout {
    grid-template-columns: 1fr;
  }

  .controlRail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modeSwitch {
    grid-column: 1 / -1;
  }

  .railSection {
    border-right: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .gameHeader {
    gap: 14px;
    padding: 14px;
  }

  .brandBlock h1 {
    font-size: 1.22rem;
  }

  .brandMark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hudItem {
    min-height: 50px;
    padding: 6px;
  }

  .gameLayout {
    padding: 8px;
  }

  .missionBar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .lessonMessage {
    grid-template-columns: 1fr;
  }

  .lessonMessage strong {
    max-width: none;
    padding: 10px 12px;
    border: 1px solid rgba(255, 189, 63, 0.35);
    border-left: 4px solid var(--amber);
  }

  .canvasWrap {
    padding: 6px;
  }

  #decoderCanvas {
    aspect-ratio: 4 / 3;
  }

  .gameOverOverlay {
    inset: 7px;
    padding: 8px;
  }

  .gameOverOverlay > span {
    font-size: 0.78rem;
  }

  .gameOverOverlay > small {
    margin-top: 6px;
    font-size: 0.62rem;
  }

  .gameOverOverlay > strong {
    font-size: clamp(3.7rem, 20vw, 5.2rem);
  }

  .achievementLevel {
    min-width: min(320px, calc(100vw - 72px));
    margin-top: 8px;
    padding: 6px 10px;
  }

  .achievementLevel span {
    font-size: 0.6rem;
  }

  .achievementLevel strong {
    font-size: 1.05rem;
  }

  .gameOverOverlay button {
    min-height: 40px;
    margin-top: 8px;
  }

  .arenaControls {
    grid-template-columns: 1fr;
  }

  .editActions {
    order: 2;
  }

  .commitButton {
    grid-row: 2;
  }

  .resultPanel {
    grid-template-columns: 1fr;
  }

  .scoreStrip {
    grid-template-columns: repeat(6, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .controlRail {
    grid-template-columns: 1fr;
  }

  .modeSwitch {
    grid-column: auto;
  }

  .modeSwitch {
    grid-template-columns: 1fr;
  }

  .railSection {
    border-right: 0;
  }
}
