/* Links flank the original descent cue without moving the gate or video. */
.gate-actions { display: none; }
body[data-view="prison"] .gate-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.1vw, 40px);
  flex: 0 0 auto;
  width: min(448px, 100%);
  height: 72px;
  margin-top: 55px;
}
body[data-view="prison"] .gate-actions .descent-cue { margin: 0; }
.gate-action {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 46px;
  padding: 0 8px;
  border: 1px solid #7c3d34;
  border-radius: 0;
  background: linear-gradient(155deg, #47201cba, #170d0deb), url('assets/home-wall-v1.png') 38% 44% / 560px auto;
  box-shadow: inset 0 1px 0 #c4755730, inset 0 -2px 5px #0008, 0 0 17px #9d24181a;
  color: #dd8e7f;
  font: 700 clamp(10px, 1vw, 13px) / 1 JetBrains, monospace;
  letter-spacing: .07em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.gate-action::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, #0b0909 0 3%, transparent 3% 19%, #0b0909 19% 24%, transparent 24% 67%, #0b0909 67% 70%, transparent 70% 96%, #0b0909 96%);
  pointer-events: none;
}
.gate-action span {
  mask-image: repeating-linear-gradient(174deg, #000 0 6px, #000b 6.3px, #000 6.8px 16px);
  text-shadow: 0 1px 2px #000b;
}
.gate-action--x { font-size: 24px; }
.gate-action--token { background-position: 63% 71%; }
.gate-action:hover, .gate-action:focus-visible {
  border-color: #b55b4c;
  color: #efb0a0;
  box-shadow: inset 0 1px 0 #c4755740, 0 0 20px #ad2c242b;
}
.gate-action:focus-visible { outline: 1px dashed #d88574; outline-offset: 5px; }
.gate-action[aria-disabled="true"] { cursor: default; }
@media (max-width: 700px) {
  body[data-view="prison"] .gate-actions { margin-top: 72px; }
  .gate-action { height: 44px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-action { transition: none; }
}
