.mechanics-article code {
  padding: .16em .42em;
  border: 1px solid rgba(19, 225, 223, .2);
  border-radius: 6px;
  color: #d8ffff;
  background: rgba(19, 225, 223, .07);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
  font-weight: 700;
}

.mechanics-intro-notice {
  margin-bottom: 30px;
}

.mechanics-facts strong code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.mechanics-command-strip {
  margin: 25px 0 36px;
  padding: 18px 20px;
  border: 1px solid var(--cyan-line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(100deg, rgba(19, 225, 223, .07), rgba(255, 255, 255, .012));
}

.mechanics-command-strip code {
  flex: 0 0 auto;
  font-size: .93rem;
}

.mechanics-command-strip span {
  color: #aeb9be;
  font-size: .83rem;
  line-height: 1.55;
}

.mechanics-role-list {
  margin-bottom: 30px;
}

.mechanics-note {
  margin: 30px 0 45px;
  padding: 22px 24px;
  border: 1px solid rgba(90, 240, 177, .22);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(90, 240, 177, .06), rgba(255, 255, 255, .012));
}

.mechanics-note strong {
  display: block;
  margin-bottom: 6px;
  color: #d7f9e9;
  font-size: .92rem;
}

.mechanics-note p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.7;
}

.mechanics-note-purple {
  border-color: rgba(190, 174, 255, .24);
  background: linear-gradient(120deg, rgba(155, 128, 255, .07), rgba(255, 255, 255, .012));
}

.mechanics-note-purple strong {
  color: #e1dcff;
}

.mechanics-steps {
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mechanics-steps article {
  min-height: 250px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
}

.mechanics-steps article > span {
  margin-bottom: auto;
  color: rgba(19, 225, 223, .35);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

.mechanics-steps h3 {
  margin: 32px 0 8px;
  color: #d8e1e4;
}

.mechanics-steps p {
  margin: 0;
  font-size: .79rem;
  line-height: 1.65;
}

.mechanics-capture-steps article > span {
  color: rgba(190, 174, 255, .42);
}

.mechanics-command-grid {
  margin: 24px 0 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mechanics-command-grid > div {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 7px;
  background: rgba(255, 255, 255, .016);
}

.mechanics-command-grid code {
  width: fit-content;
}

.mechanics-command-grid span {
  color: var(--muted-2);
  font-size: .7rem;
  line-height: 1.45;
}

.mechanics-command-grid-wide > div {
  min-height: 82px;
}

.mechanics-table-wrap {
  margin: 30px 0 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .014);
}

.mechanics-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  color: #aeb9be;
  font-size: .76rem;
}

.mechanics-table caption {
  padding: 18px 19px;
  color: #e0e8eb;
  font-size: .92rem;
  font-weight: 800;
  text-align: left;
}

.mechanics-table th,
.mechanics-table td {
  padding: 14px 15px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.mechanics-table thead th {
  color: var(--muted-2);
  background: rgba(255, 255, 255, .018);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mechanics-table tbody th {
  color: #d3dce0;
}

.mechanics-bastion-layout {
  margin: 28px 0 18px;
  display: grid;
  grid-template-columns: minmax(235px, .85fr) minmax(0, 1.35fr);
  gap: 22px;
}

.mechanics-recipe,
.mechanics-bastion-copy {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .016);
}

.mechanics-recipe > strong {
  display: block;
  margin-bottom: 17px;
  color: #dce5e8;
}

.recipe-grid {
  width: fit-content;
  margin-bottom: 17px;
  display: grid;
  grid-template-columns: repeat(3, 45px);
  gap: 5px;
}

.recipe-grid span {
  aspect-ratio: 1;
  border: 1px solid var(--cyan-line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: .78rem;
  font-weight: 900;
}

.mechanics-recipe small {
  color: var(--muted-2);
  font-size: .7rem;
  line-height: 1.75;
}

.mechanics-recipe b {
  color: #d7e0e3;
}

.mechanics-bastion-copy h3 {
  margin: 0 0 7px;
  color: #dbe4e7;
}

.mechanics-bastion-copy h3:not(:first-child) {
  margin-top: 23px;
}

.mechanics-bastion-copy p {
  margin: 0;
  font-size: .81rem;
  line-height: 1.68;
}

.mechanics-sensor-grid,
.mechanics-transport-grid,
.mechanics-exit-grid {
  margin: 27px 0 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mechanics-sensor-grid article,
.mechanics-transport-grid article,
.mechanics-exit-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .017);
}

.mechanics-object-label {
  display: block;
  margin-bottom: 25px;
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .11em;
}

.mechanics-sensor-grid h3,
.mechanics-transport-grid h3 {
  margin: 0 0 8px;
  color: #dce5e8;
}

.mechanics-sensor-grid p,
.mechanics-transport-grid p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.68;
}

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

.mechanics-exit-grid article {
  min-height: 225px;
  display: flex;
  flex-direction: column;
}

.mechanics-exit-grid strong {
  display: block;
  color: #f1f5f6;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.mechanics-exit-grid article > span {
  margin: 4px 0 auto;
  color: var(--cyan);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mechanics-exit-grid p {
  margin: 35px 0 0;
  font-size: .76rem;
  line-height: 1.65;
}

.mechanics-exit-grid .mechanics-exit-safe {
  border-color: rgba(90, 240, 177, .23);
  background: rgba(90, 240, 177, .035);
}

.mechanics-prison-facts {
  margin-top: 28px;
}

.mechanics-command-summary {
  margin: 25px 0 45px;
  border-top: 1px solid var(--line);
}

.mechanics-command-summary section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mechanics-command-summary h3,
.mechanics-command-summary p {
  margin: 0;
}

.mechanics-command-summary h3 {
  color: #d4dde0;
  font-size: .85rem;
}

.mechanics-command-summary p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 820px) {
  .mechanics-steps,
  .mechanics-exit-grid {
    grid-template-columns: 1fr;
  }

  .mechanics-steps article,
  .mechanics-exit-grid article {
    min-height: 0;
  }

  .mechanics-steps article > span,
  .mechanics-exit-grid article > span {
    margin-bottom: 20px;
  }

  .mechanics-steps h3,
  .mechanics-exit-grid p {
    margin-top: 0;
  }

  .mechanics-bastion-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .mechanics-command-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mechanics-command-grid,
  .mechanics-sensor-grid,
  .mechanics-transport-grid {
    grid-template-columns: 1fr;
  }

  .mechanics-command-summary section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mechanics-role-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
