/**
 * More / More Content — cyberpunk CRT holding page (scoped to .page-more)
 */

.page-more {
  --more-neon: #38bdf8;
  --more-neon-dim: rgba(56, 189, 248, 0.45);
  --more-neon-glow: rgba(56, 189, 248, 0.35);
  --more-gold: #b8941f;
  --more-bg: #020408;
  --more-font-display: "Orbitron", var(--font-heading);
  --more-font-mono: "Share Tech Mono", ui-monospace, monospace;
}

.page-more {
  background: var(--more-bg);
}

.page-more::before,
.page-more::after {
  display: none;
}

.page-more .site-wrap--more {
  min-height: 100vh;
}

/* Nav — neon accent on More tab only */
.page-more .site-nav--more {
  background: linear-gradient(180deg, rgba(2, 4, 8, 0.95) 0%, rgba(2, 4, 8, 0.8) 100%);
  border-bottom-color: rgba(56, 189, 248, 0.2);
}

.page-more .site-nav__brand {
  color: var(--more-neon);
  text-shadow: 0 0 18px var(--more-neon-glow);
}

.page-more .site-nav__links a:hover,
.page-more .site-nav__links a.nav-active {
  color: var(--more-neon);
}

.page-more .site-nav__more {
  font-family: var(--more-font-mono);
  font-size: 0.8rem !important;
  letter-spacing: 0.14em !important;
  margin-left: 0.35rem !important;
  padding: 0.45rem 0.9rem !important;
  border: 1px solid var(--more-neon-dim) !important;
  background: rgba(56, 189, 248, 0.08) !important;
  color: var(--more-neon) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.page-more .site-nav__more:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #e0f2fe !important;
}

.page-more .nav-toggle {
  color: var(--more-neon);
  border-color: var(--more-neon-dim);
}

.page-more .site-footer--more {
  color: rgba(56, 189, 248, 0.35);
  font-family: var(--more-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

/* CRT viewport */
.more-main {
  flex: 1;
  display: flex;
  padding: clamp(1rem, 3vw, 2rem);
}

.crt-viewport {
  position: relative;
  flex: 1;
  min-height: min(78vh, 720px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 35% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #030610 0%, var(--more-bg) 50%, #010204 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(56, 189, 248, 0.06);
}

/* Scanlines */
.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.crt-scanlines--static {
  opacity: 0.12;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.45) 2px,
    rgba(0, 0, 0, 0.45) 4px
  );
}

.crt-scanlines--scroll {
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(56, 189, 248, 0.15) 3px,
    rgba(56, 189, 248, 0.15) 4px
  );
  background-size: 100% 8px;
  animation: more-scan-scroll 12s linear infinite;
}

@keyframes more-scan-scroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 8px;
  }
}

.crt-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}

.more-grid-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  background-size: 32px 32px;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* HUD panels */
.more-hud {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--more-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--more-neon-dim);
  pointer-events: none;
}

.more-hud--tl {
  top: 1rem;
  left: 1rem;
}

.more-hud--tr {
  top: 1rem;
  right: 1rem;
  align-items: flex-end;
  text-align: right;
}

.more-hud--bl {
  bottom: 1rem;
  left: 1rem;
}

.more-hud--br {
  bottom: 1rem;
  right: 1rem;
  align-items: flex-end;
}

.more-hud__tag {
  color: var(--more-neon);
  text-shadow: 0 0 12px var(--more-neon-glow);
}

.more-hud__line {
  color: rgba(255, 255, 255, 0.35);
}

.more-hud__bracket {
  display: block;
  width: 48px;
  height: 32px;
  border: 2px solid var(--more-neon-dim);
  border-right: none;
  border-top: none;
}

.more-hud__bracket--br {
  border: 2px solid var(--more-neon-dim);
  border-left: none;
  border-bottom: none;
  margin-left: auto;
}

.more-signal {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 0.35rem;
}

.more-signal span {
  display: block;
  width: 4px;
  height: var(--h, 50%);
  background: var(--more-neon);
  opacity: 0.5;
  animation: more-signal-pulse 2.4s ease-in-out infinite;
}

.more-signal span:nth-child(2) {
  animation-delay: 0.2s;
}
.more-signal span:nth-child(3) {
  animation-delay: 0.45s;
}
.more-signal span:nth-child(4) {
  animation-delay: 0.1s;
}
.more-signal span:nth-child(5) {
  animation-delay: 0.65s;
}

@keyframes more-signal-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

.more-cursor-blink {
  animation: more-cursor-blink 1.1s step-end infinite;
}

@keyframes more-cursor-blink {
  50% {
    opacity: 0;
  }
}

.more-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--more-neon);
  box-shadow: 0 0 10px var(--more-neon);
  animation: more-pulse-dot 2.8s ease-in-out infinite;
}

@keyframes more-pulse-dot {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stage layout */
.more-stage {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  min-height: inherit;
}

@media (max-width: 768px) {
  .more-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .more-clover-col {
    display: flex;
    justify-content: center;
  }

  .more-hud {
    font-size: 0.55rem;
  }
}

/* Clover focal */
.more-clover-frame {
  position: relative;
  padding: 1.5rem;
}

.more-frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--more-neon);
  border-style: solid;
  opacity: 0.7;
}

.more-frame-corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.more-frame-corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.more-frame-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.more-frame-corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.more-clover-wrap {
  position: relative;
  width: min(280px, 70vw);
  margin: 0 auto;
}

.more-clover {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.45));
}

.more-clover-label {
  margin: 1rem 0 0;
  font-family: var(--more-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--more-neon-dim);
}

/* Copy */
.more-copy-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.more-message {
  margin: 0;
  font-family: var(--more-font-display);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: rgba(224, 242, 254, 0.92);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  font-style: italic;
}

.more-message::before {
  content: "▸ ";
  color: var(--more-neon);
  font-style: normal;
  opacity: 0.7;
}

.more-dev-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  border-left: 2px solid rgba(184, 148, 31, 0.45);
  padding-left: 1rem;
}

/* Contact — quiet terminal readout */
.more-contact {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.more-contact__line {
  margin: 0 0 0.35rem;
  font-family: var(--more-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: rgba(56, 189, 248, 0.55);
}

.more-contact__tag {
  color: var(--more-neon);
  opacity: 0.75;
  margin-right: 0.35rem;
}

.more-contact__mail {
  color: rgba(125, 211, 252, 0.85);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.more-contact__mail:hover,
.more-contact__mail:focus-visible {
  color: #e0f2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.more-contact__hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.32);
  max-width: 22rem;
}

/* Glitch (triggered by JS) */
[data-glitch-target].is-glitching,
[data-glitch-group].is-glitching [data-glitch-target] {
  animation: more-glitch 0.32s steps(3, end);
}

@keyframes more-glitch {
  0% {
    transform: translate(0);
    filter: none;
  }
  20% {
    transform: translate(-4px, 1px) skewX(-1deg);
    filter: drop-shadow(3px 0 0 rgba(255, 0, 80, 0.5)) drop-shadow(-3px 0 0 rgba(0, 220, 255, 0.5));
  }
  40% {
    transform: translate(3px, -2px);
    opacity: 0.85;
  }
  60% {
    transform: translate(-2px, 0);
    filter: contrast(1.3) brightness(1.1);
  }
  80% {
    transform: translate(2px, 1px);
    clip-path: inset(8% 0 82% 0);
  }
  100% {
    transform: translate(0);
    filter: none;
    clip-path: none;
    opacity: 1;
  }
}

[data-glitch-group].is-glitching::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0.04) 4px
  );
  pointer-events: none;
  animation: more-static-flicker 0.25s steps(2);
  z-index: 10;
}

@keyframes more-static-flicker {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crt-scanlines--scroll,
  .more-signal span,
  .more-pulse-dot,
  .more-cursor-blink {
    animation: none;
  }

  [data-glitch-target].is-glitching,
  [data-glitch-group].is-glitching [data-glitch-target] {
    animation: none;
    opacity: 0.92;
  }
}
