:root {
  --bg: #010602;
  --panel: rgba(0, 17, 6, 0.74);
  --panel-strong: rgba(0, 24, 8, 0.88);
  --text: #f0fff3;
  --muted: #6ee981;
  --muted-dim: #2e8f45;
  --green: #34ff58;
  --green-soft: #9affaa;
  --green-dim: rgba(52, 255, 88, 0.16);
  --danger: #ff315a;
  --line: rgba(52, 255, 88, 0.42);
  --shadow: 0 0 28px rgba(52, 255, 88, 0.38);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(52, 255, 88, 0.12), transparent 24rem),
    radial-gradient(circle at 75% 45%, rgba(52, 255, 88, 0.08), transparent 20rem),
    linear-gradient(180deg, #020603 0%, #000 100%);
  color: var(--text);
  font-family:
    "Courier New",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}

button,
input {
  font: inherit;
}

#digital-rain {
  position: fixed;
  inset: 0;
  z-index: -5;
  opacity: 0.62;
}

.screen-noise,
.scanlines,
.hud-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.screen-noise {
  z-index: -1;
  opacity: 0.24;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(52, 255, 88, 0.16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(52, 255, 88, 0.05) 18px 19px);
  mix-blend-mode: screen;
}

.scanlines {
  z-index: -2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

.hud-grid {
  z-index: -4;
  background-image:
    linear-gradient(rgba(52, 255, 88, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 255, 88, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, black 0%, transparent 72%);
}

.gate-shell {
  display: grid;
  min-height: 100vh;
  width: min(1540px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.75rem) 0;
  gap: clamp(1rem, 2vw, 1.55rem);
}

.top-layer,
.bottom-layer {
  display: grid;
  grid-template-columns: 250px 1fr 210px;
  gap: 1rem;
  align-items: center;
}

.status-card,
.network-status,
.hud-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(9, 45, 18, 0.36), transparent),
    rgba(0, 0, 0, 0.66);
  box-shadow:
    inset 0 0 24px rgba(52, 255, 88, 0.08),
    0 0 28px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(7px);
}

.status-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.3rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.status-card strong,
.network-status strong {
  color: var(--green);
  font-weight: 800;
}

.led {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.led-dim {
  opacity: 0.42;
}

.world-map {
  min-height: 150px;
}

.world-map svg {
  display: block;
  width: 100%;
  height: 160px;
  overflow: visible;
}

.continent {
  fill: none;
  stroke: rgba(52, 255, 88, 0.34);
  stroke-width: 3;
  stroke-dasharray: 2 7;
}

.arc {
  fill: none;
  stroke: rgba(52, 255, 88, 0.42);
  stroke-width: 1.4;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: trace 4s linear infinite;
}

.arc-b {
  animation-delay: 0.8s;
}

.arc-c {
  animation-delay: 1.5s;
}

.map-dot {
  fill: var(--green);
  filter: drop-shadow(0 0 8px var(--green));
  animation: node-pulse 2.4s ease-in-out infinite;
}

.network-status {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
}

.bars {
  display: flex;
  align-items: end;
  gap: 0.25rem;
  height: 26px;
  justify-content: end;
}

.bars i {
  width: 0.35rem;
  background: var(--green);
  opacity: 0.42;
  box-shadow: 0 0 10px rgba(52, 255, 88, 0.5);
  animation: bar-rise 1.3s ease-in-out infinite alternate;
}

.bars i:nth-child(1) {
  height: 30%;
}

.bars i:nth-child(2) {
  height: 48%;
  animation-delay: 0.1s;
}

.bars i:nth-child(3) {
  height: 66%;
  animation-delay: 0.2s;
}

.bars i:nth-child(4) {
  height: 84%;
  animation-delay: 0.3s;
}

.bars i:nth-child(5) {
  height: 100%;
  animation-delay: 0.4s;
}

.hero {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.x-emblem {
  display: grid;
  place-items: center;
  width: clamp(92px, 11vw, 160px);
  aspect-ratio: 1;
  border: 2px solid rgba(52, 255, 88, 0.62);
  border-radius: 50%;
  color: var(--green-soft);
  text-shadow: var(--shadow);
  box-shadow:
    0 0 32px rgba(52, 255, 88, 0.32),
    inset 0 0 24px rgba(52, 255, 88, 0.12);
}

.x-emblem span {
  position: relative;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  font-weight: 900;
  line-height: 1;
  animation: glitch-small 2.7s infinite steps(2, end);
}

.glitch {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  font-weight: 900;
  text-shadow:
    0 0 10px rgba(52, 255, 88, 0.95),
    0 0 42px rgba(52, 255, 88, 0.58);
}

.glitch::before,
.glitch::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0.7;
}

.glitch::before {
  color: #a5ffb0;
  transform: translate(3px, -1px);
  animation: glitch-shift 2.6s infinite linear alternate-reverse;
}

.glitch::after {
  color: #26d84a;
  transform: translate(-3px, 1px);
  animation: glitch-shift 1.9s infinite linear alternate;
}

.subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  color: #b7ffc2;
  font-size: clamp(1rem, 2vw, 1.55rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(52, 255, 88, 0.5);
}

.subtitle span {
  width: min(13vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 255, 88, 0.7), transparent);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.45fr) minmax(280px, 0.95fr);
  gap: 1.6rem;
  align-items: stretch;
}

.hud-panel {
  position: relative;
  overflow: hidden;
}

.hud-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(52, 255, 88, 0.06), transparent),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(52, 255, 88, 0.04) 28px 29px);
  opacity: 0.65;
}

.widget-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(52, 255, 88, 0.06);
}

.window-dots {
  display: flex;
  gap: 0.45rem;
}

.window-dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.widget-header strong {
  margin-left: auto;
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.terminal-widget,
.network-widget,
.access-panel {
  min-height: 485px;
}

.terminal-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.82rem;
  padding: 1.5rem 1.25rem;
  color: #85ff95;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.terminal-lines p {
  margin: 0;
  animation: terminal-fade 5s linear infinite;
}

.terminal-lines p:nth-child(2) {
  animation-delay: 0.25s;
}

.terminal-lines p:nth-child(3) {
  animation-delay: 0.5s;
}

.terminal-lines p:nth-child(4) {
  animation-delay: 0.75s;
}

.terminal-lines p:nth-child(5) {
  animation-delay: 1s;
}

.terminal-lines p:nth-child(6) {
  animation-delay: 1.25s;
}

.terminal-lines span {
  color: var(--green);
}

.cursor {
  animation: blink 0.9s steps(2, start) infinite;
}

.system-card {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(52, 255, 88, 0.28);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.42);
}

.system-card small,
.clearance-card small,
.protocol-card small {
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.system-card strong,
.clearance-card strong,
.protocol-card strong {
  color: var(--green);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.lock {
  float: right;
  color: var(--green);
  text-shadow: var(--shadow);
}

.access-panel {
  display: grid;
  gap: 1.35rem;
  align-content: center;
  justify-items: stretch;
  padding: clamp(1.4rem, 3vw, 3rem);
  text-align: center;
}

.panel-glow {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: radial-gradient(circle, rgba(52, 255, 88, 0.16), transparent 55%);
  animation: rotate-glow 11s linear infinite;
}

.access-panel > *:not(.panel-glow) {
  position: relative;
  z-index: 1;
}

.panel-kicker {
  margin: 0;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.27em;
  font-weight: 700;
}

.access-panel h2 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
}

.access-panel input {
  width: 100%;
  min-height: 76px;
  padding: 0 1.4rem;
  border: 1px solid var(--green);
  border-radius: 9px;
  outline: none;
  background: rgba(0, 0, 0, 0.76);
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  box-shadow:
    inset 0 0 28px rgba(52, 255, 88, 0.09),
    0 0 22px rgba(52, 255, 88, 0.14);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.access-panel input:focus {
  box-shadow:
    inset 0 0 28px rgba(52, 255, 88, 0.16),
    0 0 32px rgba(52, 255, 88, 0.28);
}

.access-panel button {
  min-height: 68px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  background: linear-gradient(135deg, #24ff47, #5fff78);
  color: #001806;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 0 30px rgba(52, 255, 88, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.access-panel button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 46px rgba(52, 255, 88, 0.72);
}

.message {
  min-height: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message.is-denied {
  color: var(--danger);
  text-shadow: 0 0 18px rgba(255, 49, 90, 0.65);
}

.message.is-granted {
  color: var(--green);
  text-shadow: 0 0 22px rgba(52, 255, 88, 0.9);
}

.warning-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(52, 255, 88, 0.25);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
}

.warning-row p {
  margin: 0;
  line-height: 1.7;
}

.warning-row span {
  color: var(--green);
  font-size: 2rem;
}

.node-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: calc(100% - 82px);
  min-height: 360px;
  padding: 1rem;
}

.map-line {
  fill: none;
  stroke: rgba(52, 255, 88, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 9 10;
  animation: dash 3.2s linear infinite;
}

.line-b {
  animation-duration: 4.1s;
}

.line-c {
  animation-duration: 2.6s;
}

.node {
  fill: rgba(52, 255, 88, 0.8);
  stroke: rgba(160, 255, 176, 0.8);
  stroke-width: 2;
  filter: url("#green-glow");
  transform-origin: center;
  animation: node-pulse 2s ease-in-out infinite;
}

.node.core {
  fill: var(--green);
}

.pulse-b {
  animation-delay: 0.2s;
}

.pulse-c {
  animation-delay: 0.45s;
}

.pulse-d {
  animation-delay: 0.7s;
}

.pulse-e {
  animation-delay: 0.95s;
}

.pulse-f {
  animation-delay: 1.2s;
}

.pulse-g {
  animation-delay: 1.45s;
}

.pulse-h {
  animation-delay: 1.7s;
}

.map-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(52, 255, 88, 0.28);
  color: var(--muted-dim);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.map-footer strong {
  color: var(--green);
  font-weight: 500;
}

.bottom-layer {
  grid-template-columns: 400px 1fr 400px;
}

.clearance-card,
.protocol-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 96px;
  padding: 1rem 1.4rem;
}

.mask-icon {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 255, 88, 0.18), rgba(52, 255, 88, 0.03));
  color: var(--green);
  text-shadow: var(--shadow);
}

.clearance-card strong,
.protocol-card strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 1.45rem;
}

.level-bars {
  display: flex;
  gap: 0.18rem;
}

.level-bars span,
.barcode {
  height: 0.7rem;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 255, 88, 0.45);
}

.level-bars span {
  width: 0.85rem;
}

.level-bars .empty {
  opacity: 0.14;
}

blockquote {
  margin: 0;
  color: white;
  text-align: center;
  line-height: 1.55;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

blockquote cite {
  color: var(--green);
  font-style: normal;
}

.protocol-card {
  justify-content: space-between;
}

.barcode {
  width: 50%;
  height: 44px;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--green) 8% 11%, transparent 11% 17%, var(--green) 17% 19%, transparent 19% 28%, var(--green) 28% 33%, transparent 33% 38%, var(--green) 38% 40%, transparent 40% 48%, var(--green) 48% 52%, transparent 52% 58%, var(--green) 58% 62%, transparent 62% 74%, var(--green) 74% 79%, transparent 79%);
  opacity: 0.6;
}

.shake {
  animation: shake 380ms ease-in-out;
}

.granted {
  animation: granted-flash 900ms ease both;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.75);
  }
}

@keyframes trace {
  45%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes bar-rise {
  to {
    opacity: 0.9;
    transform: scaleY(0.72);
  }
}

@keyframes glitch-small {
  0%,
  92%,
  100% {
    transform: translateX(0);
  }
  94% {
    transform: translateX(-6px) skewX(8deg);
  }
  96% {
    transform: translateX(5px) skewX(-8deg);
  }
}

@keyframes glitch-shift {
  0%,
  100% {
    clip-path: inset(0 0 84% 0);
  }
  20% {
    clip-path: inset(20% 0 52% 0);
  }
  40% {
    clip-path: inset(62% 0 18% 0);
  }
  60% {
    clip-path: inset(8% 0 72% 0);
  }
  80% {
    clip-path: inset(42% 0 32% 0);
  }
}

@keyframes terminal-fade {
  0%,
  100% {
    opacity: 0.48;
  }
  35%,
  70% {
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes rotate-glow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -76;
  }
}

@keyframes node-pulse {
  50% {
    opacity: 0.52;
    transform: scale(1.25);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-12px);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(-7px);
  }
  80% {
    transform: translateX(5px);
  }
}

@keyframes granted-flash {
  0% {
    box-shadow: 0 0 0 rgba(52, 255, 88, 0);
  }
  45% {
    border-color: var(--green);
    box-shadow:
      0 0 44px rgba(52, 255, 88, 0.7),
      inset 0 0 34px rgba(52, 255, 88, 0.2);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

@media (min-width: 1121px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow: hidden;
  }

  .gate-shell {
    height: 100dvh;
    width: min(1540px, calc(100% - 24px));
    padding: clamp(0.45rem, 1vh, 0.85rem) 0;
    gap: clamp(0.45rem, 0.95vh, 0.8rem);
    grid-template-rows: minmax(66px, 12vh) minmax(188px, 35vh) minmax(278px, 43vh) minmax(58px, 10vh);
  }

  .top-layer,
  .bottom-layer {
    gap: 0.75rem;
    min-height: 0;
  }

  .top-layer {
    grid-template-columns: 250px 1fr 210px;
  }

  .bottom-layer {
    grid-template-columns: 350px 1fr 350px;
  }

  .status-card {
    gap: 0.38rem;
    padding: 0.68rem 0.95rem;
    font-size: 0.74rem;
  }

  .world-map {
    min-height: 0;
    align-self: stretch;
  }

  .world-map svg {
    height: 100%;
  }

  .network-status {
    gap: 0.28rem;
    padding: 0.65rem 0.8rem;
  }

  .bars {
    height: 20px;
  }

  .hero {
    align-self: center;
    gap: 0.1rem;
  }

  .x-emblem {
    width: clamp(58px, 8vh, 104px);
  }

  .x-emblem span {
    font-size: clamp(2.35rem, 6vh, 4.1rem);
  }

  .glitch {
    font-size: clamp(4rem, 11.5vh, 6.9rem);
  }

  .subtitle {
    font-size: clamp(0.85rem, 1.9vh, 1.2rem);
    letter-spacing: 0.4em;
  }

  .dashboard {
    gap: 1rem;
    min-height: 0;
  }

  .terminal-widget,
  .network-widget,
  .access-panel {
    height: 100%;
    min-height: 0;
  }

  .widget-header {
    min-height: 39px;
    padding: 0.52rem 0.85rem;
  }

  .terminal-lines {
    gap: 0.42rem;
    padding: 0.95rem;
    font-size: clamp(0.7rem, 1.42vh, 0.9rem);
  }

  .system-card {
    right: 0.78rem;
    bottom: 0.78rem;
    left: 0.78rem;
    gap: 0.24rem;
    padding: 0.65rem;
  }

  .access-panel {
    gap: clamp(0.58rem, 1.45vh, 0.92rem);
    padding: clamp(0.9rem, 2.2vh, 1.65rem);
  }

  .access-panel h2 {
    font-size: clamp(1.35rem, 4vh, 2.12rem);
  }

  .access-panel input {
    min-height: clamp(48px, 6.8vh, 62px);
    padding: 0 1rem;
  }

  .access-panel button {
    min-height: clamp(46px, 6.2vh, 56px);
  }

  .message {
    min-height: 1rem;
  }

  .warning-row {
    gap: 0.7rem;
    padding-top: 0.52rem;
    font-size: clamp(0.6rem, 1.22vh, 0.7rem);
  }

  .warning-row p {
    line-height: 1.45;
  }

  .warning-row span {
    font-size: 1.35rem;
  }

  .node-map {
    height: calc(100% - 72px);
    min-height: 0;
    padding: 0.6rem;
  }

  .map-footer {
    padding: 0.6rem 0.8rem;
    font-size: 0.68rem;
  }

  .clearance-card,
  .protocol-card {
    height: 100%;
    min-height: 0;
    gap: 0.75rem;
    padding: 0.62rem 0.95rem;
  }

  .mask-icon {
    width: clamp(2.6rem, 5.6vh, 3.35rem);
    height: clamp(2.6rem, 5.6vh, 3.35rem);
  }

  .clearance-card strong,
  .protocol-card strong {
    font-size: clamp(0.95rem, 2.25vh, 1.2rem);
  }

  blockquote {
    align-self: center;
    font-size: clamp(0.74rem, 1.65vh, 0.95rem);
    line-height: 1.32;
  }

  .barcode {
    height: clamp(26px, 4.8vh, 36px);
  }
}

@media (max-width: 1120px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .top-layer,
  .bottom-layer,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .world-map,
  .network-status {
    display: none;
  }

  .dashboard {
    gap: 1rem;
  }

  .access-panel {
    order: -1;
  }

  .terminal-widget,
  .network-widget,
  .access-panel {
    min-height: auto;
  }

  .system-card {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0 1rem 1rem;
  }

  .node-map {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .gate-shell {
    width: min(100% - 20px, 1540px);
    padding: 0.85rem 0;
  }

  .status-card {
    font-size: 0.72rem;
  }

  .glitch {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .subtitle {
    gap: 0.5rem;
    letter-spacing: 0.22em;
    font-size: 0.9rem;
  }

  .subtitle span {
    width: 2rem;
  }

  .access-panel {
    padding: 1.1rem;
  }

  .access-panel h2 {
    font-size: 1.35rem;
  }

  .warning-row {
    grid-template-columns: 1fr;
  }

  .warning-row span {
    display: none;
  }

  .bottom-layer {
    gap: 0.8rem;
  }

  .clearance-card,
  .protocol-card {
    min-height: 82px;
  }
}

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