/* =========================================================
   GLYPHIS_IO MiSIM SUPER USER BBS
   Add-on stylesheet. Loads AFTER your existing style.css.
   ========================================================= */

.superuser-shell {
  padding-bottom: 48px;
}

.access-gate,
.bbs-interior {
  display: grid;
  gap: 24px;
  padding: 48px 0 24px;
}

.superuser-intro,
.bbs-banner {
  text-align: left;
}

.challenge-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(99, 242, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
}

.challenge-rules b {
  color: var(--cyan);
}

.maze-panel,
.challenge-terminal {
  min-height: 470px;
}

.maze-display {
  margin: 0;
  min-height: 360px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(93, 255, 164, 0.22);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(93, 255, 164, 0.014) 0px,
      rgba(93, 255, 164, 0.014) 1px,
      transparent 1px,
      transparent 20px
    ),
    #000;
  color: var(--green);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: clamp(0.68rem, 1.1vw, 0.95rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 30px rgba(93,255,164,0.05),
    0 0 22px rgba(93,255,164,0.05);
  text-shadow: 0 0 5px rgba(93,255,164,0.45);
}

.maze-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--cyan2);
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.command-output {
  min-height: 330px;
  max-height: 330px;
  overflow-y: auto;
}

.command-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(93, 255, 164, 0.28);
  background: #000;
  padding: 10px 12px;
}

.command-prompt {
  color: var(--green);
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(93, 255, 164, 0.6);
}

.command-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--green);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 1rem;
  caret-color: var(--cyan);
}

.bbs-banner {
  animation: bbs-materialise 0.7s ease both;
}

.bbs-directory {
  animation: bbs-materialise 0.7s 0.12s ease both;
}

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

.archive-button {
  position: relative;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(6,27,21,0.94), rgba(0,0,0,0.78));
  color: var(--green);
  font-family: "VT323", monospace;
  font-size: 1.45rem;
  letter-spacing: 1.5px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.archive-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(99,242,255,0.08), transparent);
  transform: translateX(-110%);
  transition: transform 0.45s ease;
}

.archive-button:hover::before {
  transform: translateX(110%);
}

.archive-button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(99,242,255,0.18),
    inset 0 0 18px rgba(99,242,255,0.04);
}

.archive-code {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan2);
  letter-spacing: 2px;
}

.archive-reader {
  animation: archive-appear 0.45s ease both;
}

.archive-terminal {
  min-height: 360px;
  font-size: 1rem;
  line-height: 1.7;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.is-hidden {
  display: none !important;
}

.dissolve-out {
  animation: dissolve-out 0.46s ease forwards;
}

.auth-success-flash {
  animation: auth-success 0.85s ease;
}

.auth-fail-flash {
  animation: auth-fail 0.38s ease;
}

@keyframes dissolve-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  55% {
    opacity: 0.45;
    filter: blur(2px);
    transform: scale(1.005);
  }
  100% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.985);
  }
}

@keyframes archive-appear {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes bbs-materialise {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes auth-success {
  0%, 100% { box-shadow: inherit; }
  30% {
    box-shadow:
      0 0 0 1px rgba(93,255,164,0.65) inset,
      0 0 55px rgba(93,255,164,0.45);
  }
}

@keyframes auth-fail {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@media (max-width: 760px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .maze-panel,
  .challenge-terminal {
    min-height: auto;
  }

  .maze-display {
    min-height: 280px;
    font-size: 0.62rem;
  }
}

/* =========================================================
   CYBERPUNK SUPER USER TRANSITION
   ========================================================= */
@font-face {
  font-family: "Retro Gaming";
  src: url("Retro Gaming.ttf") format("truetype");
  font-display: swap;
}

.cyber-transition {
  padding: 48px 0 24px;
}

.cyber-transition-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(99,242,255,0.08), transparent 38%),
    linear-gradient(160deg, rgba(2,13,9,0.99), rgba(0,0,0,0.99));
}

.cyber-ascii {
  margin: 0;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  overflow: hidden;
  padding: 24px 8px;
  color: var(--cyan);
  background: #000;
  border: 1px solid rgba(99,242,255,0.25);
  font-family: "Retro Gaming", "Share Tech Mono", monospace;
  font-size: clamp(0.46rem, 0.92vw, 0.86rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow:
    0 0 6px rgba(99,242,255,0.9),
    0 0 16px rgba(99,242,255,0.35);
  box-shadow: inset 0 0 45px rgba(99,242,255,0.05);
}

.cyber-caption {
  margin-top: 14px;
  font-family: "Retro Gaming", "Share Tech Mono", monospace;
  color: var(--green);
  text-align: center;
  letter-spacing: 2px;
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  animation: cyber-caption-pulse 0.8s steps(2, end) infinite;
}

.cyber-transition-panel.signal-jolt {
  animation: signal-jolt 0.16s steps(2, end);
}

@keyframes cyber-caption-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes signal-jolt {
  0% { transform: translateX(0); filter: none; }
  35% { transform: translateX(-3px); filter: contrast(1.35); }
  70% { transform: translateX(3px); filter: brightness(1.15); }
  100% { transform: translateX(0); filter: none; }
}

@media (max-width: 760px) {
  .cyber-transition-panel { min-height: 440px; }
  .cyber-ascii {
    min-height: 320px;
    font-size: clamp(0.32rem, 1.5vw, 0.55rem);
    overflow-x: auto;
    justify-content: flex-start;
  }
}


.ascii-transition {
  display: grid;
  gap: 24px;
  padding: 48px 0 24px;
}

.ascii-panel {
  text-align: center;
}

.ascii-art {
  margin: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  overflow-x: auto;
  padding: 28px 16px;
  background: #000;
  border: 1px solid rgba(93,255,164,0.25);
  color: var(--green);
  font-family: "Retro Gaming", "VT323", monospace;
  font-size: clamp(0.55rem, 1.6vw, 1rem);
  line-height: 1.35;
  text-shadow: 0 0 8px rgba(93,255,164,0.55);
}

.ascii-status {
  margin-top: 14px;
  color: var(--cyan);
  font-family: "Retro Gaming", "VT323", monospace;
  font-size: clamp(0.7rem, 1.8vw, 1.05rem);
  letter-spacing: 1px;
  animation: pulse 1s infinite;
}


/* Maze colour separation */
.maze-display .maze-wall {
  color: var(--green);
  text-shadow: 0 0 5px rgba(93, 255, 164, 0.45);
}

.maze-display .maze-entity {
  color: var(--cyan);
  text-shadow:
    0 0 5px rgba(99, 242, 255, 0.85),
    0 0 10px rgba(99, 242, 255, 0.35);
}

.radio-receiver { animation: archive-appear 0.45s ease both; }
.radio-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:16px; }
.radio-meter-block { min-width:220px; text-align:right; }
.radio-meter-label { color:var(--muted); font-size:0.72rem; letter-spacing:2px; margin-bottom:4px; }
.radio-meter { color:var(--cyan); font-family:"Retro Gaming","VT323",monospace; letter-spacing:2px; text-shadow:0 0 8px rgba(99,242,255,.6); }
.radio-terminal { min-height:430px; display:flex; flex-direction:column; }
.radio-output { flex:1; min-height:330px; white-space:pre-wrap; overflow-y:auto; color:var(--green); font-family:"Retro Gaming","Share Tech Mono",monospace; font-size:.9rem; line-height:1.7; }
.radio-status-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:14px; }
.radio-status-grid > div { border:1px solid var(--line); background:rgba(0,0,0,.4); padding:10px 12px; }
.radio-status-grid span { display:block; color:var(--muted); font-size:.68rem; letter-spacing:2px; }
.radio-status-grid strong { display:block; margin-top:4px; color:var(--cyan); font-family:"Retro Gaming","VT323",monospace; font-size:.9rem; }
@media (max-width:760px){
  .radio-head{flex-direction:column;align-items:flex-start;}
  .radio-meter-block{min-width:0;text-align:left;}
  .radio-status-grid{grid-template-columns:repeat(2,1fr);}
}
