

/* Shared CTA accent for POWER UP / GO BACK */
:root {
  --powerup-green: #00d500;
  --button-font-size: 14px;
}

/* --- VERTICAL CONTENT CENTERING --- */
.content-page {
  /* unified section body positioning */
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 100vh; /* consistent section height */
  padding-top: 120px; /* consistent offset below fixed header */
  padding-bottom: 120px; /* consistent bottom spacing */
  padding-left: 24px;  /* consistent horizontal inset */
  padding-right: 24px; /* consistent horizontal inset */
}
.content-page.active { opacity: 1; }
.content-page-full { min-height: 100vh; }

/* Inner container to normalize content width across sections */
.content-page > .section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- CRT INITIALIZATION FLASH --- */
@keyframes crt-output {
  0% { opacity: 0; transform: scaleY(1); }
  5% { opacity: 1; transform: scaleY(0.02); background: #fff; }
  10% { opacity: 1; transform: scaleY(1); background: transparent; }
  15% { opacity: 0.4; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

#crt-flash {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 213, 0, 0.035);
  z-index: 20000;
  pointer-events: none;
  opacity: 0;
}
.crt-active { animation: crt-output 0.4s ease-out forwards; }
#glitch-flash {
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 213, 0, 0.045), rgba(0, 0, 0, 0.02));
  mix-blend-mode: screen;
  z-index: 20001;
  pointer-events: none;
  opacity: 0;
}
#glitch-flash.active { animation: glitch-flash 0.6s steps(2) forwards; }
@keyframes glitch-flash {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.5; transform: translateY(-6px); }
  40% { opacity: 0.15; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* --- EXISTING ANIMATIONS --- */
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.8; }
}

.audio-activated {
  box-shadow: 0 0 30px #00d500, 0 0 60px #00d500 !important;
  background: #00d500 !important;
  color: rgba(37, 0, 115, 0.95) !important;
  transform: scale(1.1);
  animation: neon-flicker 0.15s infinite;
}


/* --- BUTTON STYLES UPDATED --- */
#audio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  text-align: center;
  z-index: 10002;
  border: 1px solid #00d500;
  padding: 7px 14px;
  font-family: 'Upheaval', sans-serif;
  font-size: var(--button-font-size);
  cursor: none !important;
  transition: all 0.3s ease;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(0, 213, 0, 0.35);
  /* Default OFF state */
  background: rgba(37, 0, 115, 0.95);
  color: #00d500;
}

#audio-toggle:hover {
  box-shadow: 0 0 15px rgba(0, 213, 0, 0.35);
}

/* Audio ON state (Green BG, Purple Text) */
#audio-toggle.audio-on {
  background: #00d500 !important;
  color: rgba(37, 0, 115, 0.95) !important;
  border-color: #00d500;
}

/* Audio OFF state (Purple BG, Green Text) */
#audio-toggle.audio-off {
  background: rgba(37, 0, 115, 0.95) !important;
  color: #00d500 !important;
  border-color: #00d500;
}

/* Generic CTA Buttons (LINK UP, Back to Top, POWER UP!Request Quote) */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 8px 14px;
  border: none;
  /* Always Green BG, Purple Text */
  background: #00d500 !important;
  color: rgba(37, 0, 115, 0.95) !important;
  font-family: 'Upheaval', sans-serif;
  font-size: var(--button-font-size);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(0, 213, 0, 0.35);
}

.cta-button:hover {
  /* Keep Green BG, Purple Text, just enhance glow */
  background: #00d500 !important;
  color: rgba(37, 0, 115, 0.95) !important;
  box-shadow: 0 0 20px rgba(0, 213, 0, 0.35);
}

.cta-button:visited,
.cta-button:focus,
.cta-button:focus-visible,
.cta-button:hover,
.cta-button:active {
  color: rgba(37, 0, 115, 0.95) !important;
  background: #00d500 !important;
  text-shadow: none;
}

.cta-button:active {
  background: #00d500 !important;
  color: rgba(37, 0, 115, 0.95) !important;
  box-shadow: 0 0 15px rgba(0, 213, 0, 0.6);
}

footer .cta-button {
  background: #00d500 !important;
  background-color: #00d500 !important;
  color: rgba(37, 0, 115, 0.95) !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}
footer .cta-button:hover,
footer .cta-button:active {
  background: rgba(37, 0, 115, 0.95) !important;
  background-color: rgba(37, 0, 115, 0.95) !important;
  color: #00d500 !important;
}

#power-up,
.power-up-cta {
  background: var(--powerup-green) !important;
  background-color: var(--powerup-green) !important;
  color: rgba(37, 0, 115, 0.95) !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}
#power-up:hover,
#power-up:active,
.power-up-cta:hover,
.power-up-cta:active {
  background: rgba(37, 0, 115, 0.95) !important;
  background-color: rgba(37, 0, 115, 0.95) !important;
  color: var(--powerup-green) !important;
}

.thankyou-actions .power-up-cta:hover,
.thankyou-actions .power-up-cta:active {
  color: var(--powerup-green) !important;
}

.header-cta {
  margin-left: 12px;
}
.form-shell {
  max-width: 900px;
  width: 92vw;
  margin: 0 auto 0;
  text-align: left;
  font-size: 17px;
}
#linkup .form-shell {
  margin-top: 4px;
}
#linkup.content-page { padding-bottom: 80px; }
#linkup .scroll-spacer { height: 80px; }
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  width: 100%;
}
.form-grid label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 213, 0, 0.4);
  background: rgba(37, 0, 115, 0.3);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: #00d500;
  font-family: 'Akira Expanded Demo', 'Upheaval', sans-serif;
  font-size: 16px;
}
.form-grid select {
  color: #00d500 !important;
  -webkit-text-fill-color: #00d500;
  font-size: 14px !important;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(37, 0, 115, 0.95);
}
.form-grid select option {
  background: rgba(37, 0, 115, 0.95);
  color: #00d500 !important;
  font-size: 14px !important;
  font-family: 'Akira Expanded Demo', 'Upheaval', sans-serif;
}
.select-shell {
  position: relative;
  width: 100%;
}
.select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.select-button {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 213, 0, 0.4);
  background: rgba(37, 0, 115, 0.3);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: #00d500;
  font-family: 'Akira Expanded Demo', 'Upheaval', sans-serif;
  font-size: var(--button-font-size);
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
}
.select-button.is-placeholder {
  color: #00d500;
}
.select-button::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #00d500;
  font-size: 12px;
}
.select-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: rgba(37, 0, 115, 0.3);
  border: 1px solid rgba(0, 213, 0, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  max-height: 220px;
  overflow-y: auto;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.select-shell.open .select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.select-options li {
  padding: 8px 14px;
  color: #00d500;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.select-options li:hover,
.select-options li.is-active {
  background: rgba(0, 213, 0, 0.2);
}
.form-grid > div:last-child {
  grid-column: 1 / -1;
}

.form-grid textarea {
  min-height: 180px;
  width: 100%;
  justify-self: stretch;
}
.form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#linkup .form-actions {
  justify-content: flex-end;
}
.form-actions .cta-button:hover {
  /* Specific override if needed, but the main class handles it */
  color: rgba(37, 0, 115, 0.95) !important;
}

/* --- NAV DROPDOWN --- */
.mobile-menu a {
  display: block;
  padding: 8px 4px;
  text-decoration: none;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  order: 3;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-center {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  order: 1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.parallax-list li { position: relative; z-index: 2; }

.parallax-list li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: relative;
  padding: 0;
  display: inline-block;
  transform-origin: center center;
  text-shadow: 0 0 4px rgba(0, 213, 0,0.5), 0 0 8px rgba(0, 213, 0,0.3);
}

.parallax-list li.visible {
  opacity: 1;
  transform: translateY(0);
}
.parallax-section-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: 0;
  min-height: 0;
  height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

/* --- LOGO PERMANENT HEADER LOCK --- */
.glitch-container {
  position: fixed;
  top: -40px; /* Centered vertically in your 80px header */
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 10005;
  opacity: 1 !important;
  pointer-events: auto;
  transition: transform 0.4s ease, opacity 0.3s ease, top 0.45s ease;
}

/* Remove the old scroll-based sticky logic for the container
   so it stays in the header from the start. */

@media (max-width: 768px) {
  :root { --mobile-footer-text-size: 8px; }
  body { --body-text-size: 16px; }
  #linkup.content-page {
    padding-left: 0;
    padding-right: 0;
  }
  #linkup .section-inner {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  :root {
    --powerup-green: #0ad100;
  }
  #signal-loss { display: none !important; }
  #hero-image-trigger { z-index: 10007 !important; }
  body.hero-locked #hero-image-trigger {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  body.hero-locked #hero-image-trigger .hero-image,
  body.hero-locked #hero-image-trigger .hero-image-media,
  body.hero-locked #hero-image-trigger .hero-subtext,
  body.hero-locked #hero-image-trigger #glitch-canvas {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  .glitch-container,
  .hero-image,
  .hero-image-media,
  .hero-subtext {
    opacity: 1 !important;
    visibility: visible !important;
  }
  #glitch-canvas {
    visibility: visible !important;
  }
  #hero-image-trigger,
  #hero-image-trigger * {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .mobile-title { opacity: 0; pointer-events: none; }
  .mobile-title.is-docked,
  .mobile-title.press-active,
  body.press-reveal .mobile-title { opacity: 1; pointer-events: auto; }
}

@font-face { font-family: 'Upheaval'; src: url('fonts/upheavtt.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akira Expanded Demo'; src: url('fonts/Akira Expanded Demo.otf') format('opentype'); font-weight: normal; font-style: normal; font-display: swap; }
body, h1, h2, h3, h4, h5, h6, p, li, span, a, div { color: #00d500 !important; text-transform: uppercase; }
a:hover, .parallax-list li:hover, .scroll-glitch:hover { color: #00d500 !important; text-shadow: 0 0 5px rgba(0, 213, 0, 0.35), 0 0 10px rgba(0, 213, 0, 0.35), 0 0 20px rgba(0, 213, 0, 0.35), 0 0 40px rgba(0, 213, 0, 0.35); }
.cta-button:hover,
.cta-button:focus,
.cta-button:focus-visible {
  color: rgba(37, 0, 115, 0.95) !important;
}
body, section, p, li, span, div { font-family: 'Akira Expanded Demo', 'Upheaval', sans-serif !important; }
h1, h2, h3, h4, h5, h6 { font-family: 'Akira Expanded Demo', 'Upheaval', sans-serif !important; }

/* Absolute uniformity: heading alignment + spacing */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}
section h1, section h2, section h3, section h4, section h5, section h6 {
  margin-top: 0;
  margin-bottom: 50px;
}
#thankyou h2 { margin-bottom: -24px; }

header, nav, header a, footer, footer a { font-family: 'Upheaval', sans-serif !important; }
* { margin:0; padding:0; box-sizing:border-box; }

/* Replaced old section h2 style */
/* section h2 { font-size: 300%; position: relative; margin: 0 auto 50px; text-align: center; width: 100%; } */
section h2 { font-size: 500%; }
.content-page h2 a {
  text-decoration: none;
  text-shadow: none;
  position: relative;
  display: inline-block;
}
.content-page h2 a:hover {
  text-decoration: none;
  text-shadow: 0 0 5px rgba(0, 213, 0, 0.0972), 0 0 10px rgba(0, 213, 0, 0.0972), 0 0 20px rgba(0, 213, 0, 0.0972), 0 0 40px rgba(0, 213, 0, 0.0972);
}
.content-page h2 a.press-active {
  text-shadow: 0 0 5px rgba(0, 213, 0, 0.35), 0 0 10px rgba(0, 213, 0, 0.25), 0 0 20px rgba(0, 213, 0, 0.18), 0 0 40px rgba(0, 213, 0, 0.12);
}
.content-page h2 a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 213, 0,0) 0%, rgba(0, 213, 0,1) 15%, rgba(0, 213, 0,1) 85%, rgba(0, 213, 0,0) 100%);
  transform: translateX(-50%);
  transition: width 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  filter: drop-shadow(0 0 2px rgba(0, 213, 0,0)) drop-shadow(0 0 5px rgba(0, 213, 0,0)) drop-shadow(0 0 10px rgba(0, 213, 0,0));
}
.content-page h2 a:hover::after,
.content-page h2 a:focus-visible::after,
.content-page h2 a.press-active::after {
  width: 100%;
}
#linkup h2 { margin-bottom: 20px; }
.thankyou-subtext {
  margin-top: 30px;
  font-size: 100%;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.unknown-pleasures-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 70%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 0%, #000 70%, transparent 100%);
  pointer-events: none;
}
.unknown-pleasures-full {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.thankyou-content {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
#thankyou {
  position: relative;
  z-index: 3;
}
.thankyou-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}


body, a, button, li, .glitch-container, .hero-image, nav { cursor: none !important; }

body.keep-hero-visible #hero-image-trigger,
body.keep-hero-visible #hero-image-trigger * {
  opacity: 1 !important;
  visibility: visible !important;
}
body.idle-glitch #signal-loss {
  opacity: 0.12;
  animation: idle-glitch 2.2s steps(2) infinite;
}
@keyframes idle-glitch {
  0% { opacity: 0.05; transform: translateY(0); }
  50% { opacity: 0.2; transform: translateY(-4px); }
  100% { opacity: 0.05; transform: translateY(3px); }
}

body { background:#000; color:#00d500 !important; font-family:'Akira Expanded Demo','Upheaval',sans-serif; text-transform:uppercase; letter-spacing:0.12em; overflow-x:hidden; position:relative; text-align: center; font-size: 10px; }
html, body, * { color: #00d500 !important; }
html { scroll-behavior: smooth; }
@media (max-width: 768px) {
  :root {
    --mobile-insert-coin-bottom: 18vh;
    --mobile-insert-coin-size: 11px;
    --mobile-hi-score-top: 95px;
    --mobile-hi-score-size: 11px;
  }
  #bg-video { opacity: 0.25; }
  .noise { opacity: 0.07; animation-duration: 0.8s; }
  #insert-coin.show { animation: none; }
  #insert-coin { bottom: var(--mobile-insert-coin-bottom) !important; font-size: var(--mobile-insert-coin-size) !important; }
  #hi-score { top: var(--mobile-hi-score-top) !important; font-size: var(--mobile-hi-score-size) !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #bg-video { opacity: 0.15; }
  #signal-loss { display: none !important; }
}

/* --- SCROLL SNAP LAYOUT --- */
html, body {
  scroll-snap-type: y proximity;
}

section[id] {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Offset content from fixed header while preserving snap position */
section[id] { scroll-margin-top: 120px; }
#linkup { scroll-margin-top: 100px; }
section[id].section-reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1); }
section[id].section-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
section[id].rgb-burst { animation: rgb-burst 0.35s ease-out; }
.rgb-burst-image { animation: rgb-burst 0.35s ease-out; }
.rgb-burst-text { animation: rgb-burst-text 0.35s ease-out; }
@keyframes rgb-burst {
  0% { filter: drop-shadow(0 0 0 rgba(255,0,0,0)) drop-shadow(0 0 0 rgba(0, 213, 0,0)) drop-shadow(0 0 0 rgba(0,0,255,0)); }
  80% { filter: drop-shadow(5px 0 0 rgba(255,0,0,0.8)) drop-shadow(-5px 0 0 rgba(0, 213, 0,0.4)) drop-shadow(4px 0 0 rgba(0,0,255,0.4)); }
  100% { filter: drop-shadow(0 0 0 rgba(255,0,0,0)) drop-shadow(0 0 0 rgba(0, 213, 0,0)) drop-shadow(0 0 0 rgba(0,0,255,0)); }
}
@keyframes rgb-burst-text {
  0% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
  60% { text-shadow: 6px 0 0 rgba(255,0,0,0.9), -5px 0 0 rgba(0, 213, 0,0.75), 3px 0 0 rgba(0,0,255,0.75); }
  100% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
}
@keyframes rgb-burst-text-mid {
  0% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
  60% { text-shadow: 2px 0 0 rgba(255,0,0,0.3), -1.75px 0 0 rgba(0, 213, 0,0.3), 1px 0 0 rgba(0,0,255,0.3); }
  100% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
}
@keyframes rgb-burst-text-mobile {
  0% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
  60% { text-shadow: 5.1px 0 0 rgba(255,0,0,0.3375), -4.25px 0 0 rgba(0, 213, 0,0.75), 2.55px 0 0 rgba(0,0,255,0.75); }
  100% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
}
@keyframes rgb-burst-text-soft {
  0% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
  60% { text-shadow: 6px 0 0 rgba(255,0,0,0.45), -5px 0 0 rgba(0, 213, 0,0.75), 3px 0 0 rgba(0,0,255,0.75); }
  100% { text-shadow: 0 0 0 rgba(255,0,0,0), 0 0 0 rgba(0, 213, 0,0), 0 0 0 rgba(0,0,255,0); }
}

html, body { overflow-x: hidden; width: 100%; height: auto; min-height: 100%; }
html { scrollbar-gutter: stable; }
body { overflow-y: scroll; }
body { position: relative; top: 0; left: 0; }

/* Added global styles for touch awaiting and mobile docking */
body.awaiting-touch header, body.awaiting-touch footer { opacity: 0 !important; pointer-events: none !important; }
body.awaiting-touch .mobile-title { opacity: 0 !important; }
body.mobile-docked header { opacity: 1 !important; pointer-events: auto !important; }
.glitch-container { transition: transform 0.4s ease, opacity 0.3s ease; }

#custom-cursor {
  position: fixed;
  font-size: 34px;
  pointer-events: none;
  z-index: 10005;
  color: #00d500;
  text-shadow: none;
}

.cursor-trail {
  position: fixed;
  font-size: 38px;
  pointer-events: none;
  z-index: 10004;
  color: #00d500;
  opacity: 0;
  mix-blend-mode: screen;
  filter: none;
  animation: cursor-noise 6s steps(3) infinite;
}
body.cursor-arrow #custom-cursor {
  width: 21px;
  height: 29px;
  font-size: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='29' viewBox='0 0 22 30'%3E%3Cpath d='M2 2 L2 26 L7.5 20.5 L12 29 L15 27 L10.5 18.5 L19.5 18.5 Z' fill='%2300d500'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  color: transparent;
  text-shadow: none;
  filter: none;
}
body.cursor-arrow .cursor-trail {
  width: 10px;
  height: 10px;
  font-size: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 213, 0, 0.12);
  text-shadow: none;
  transform: translate(-50%, -50%);
}
@keyframes cursor-noise { 0% { filter: blur(0.5px) brightness(0.9); } 50% { filter: blur(2px) brightness(1.1); } 100% { filter: blur(1px) brightness(0.95); } }

.particle {
  position: fixed;
  font-size: 10px;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
  z-index: 10003;
  filter: brightness(0.8) sepia(1) hue-rotate(70deg) saturate(10);
  text-shadow: 0 0 5px #00d500, 0 0 10px #00d500;
  animation: fall 1.5s linear forwards;
}
@keyframes fall { 0% { opacity: 0.9; transform: translateY(0) rotate(0deg) scale(1); } 100% { opacity: 0; transform: translateY(150px) rotate(360deg) scale(0.5); } }

#bg-video-container { position:fixed; top:0; left:0; width:100%; height:100%; z-index:-2; overflow: hidden; }
#bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; mix-blend-mode: screen; }
#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.noise { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:-1; opacity:0.1; background:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIj48L2ZldHVyYnVsZW5jZT48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbilvcGFjaXR5PSIuMDUiLz48L3N2Zz4=') repeat; animation:noise-move 0.3s steps(8) infinite; mix-blend-mode:screen; }
@keyframes noise-move {0%{transform:translate(0,0);}100%{transform:translate(10px,10px);}}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.nav-logo-wrap.left { left: 32px; }
.nav-logo-wrap.right { right: 32px; }
.nav-logo-wrap.menu-trigger { cursor: pointer; }

.nav-logo-img {
  height: 71px;
  width: auto;
  filter: none;
  transition: all 0.3s ease;
  position: relative;
}
.nav-logo-img.mobile-only { display: none; }

.nav-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0px, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: url('images/roofacethin.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('images/roofacethin.png');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.nav-logo-wrap:hover .nav-logo-img {
  filter: drop-shadow(0 0 5px rgba(0, 213, 0, 0.35)) drop-shadow(0 0 15px rgba(0, 213, 0, 0.35));
  transform: scale(1.05);
}

header { position:fixed; top:0; left:0; right:0; padding:15px 60px; z-index:1000; display:flex; justify-content:center; align-items:center; backdrop-filter:blur(7px); background:rgba(37,0,115,0.3); opacity: 0; pointer-events: auto; transition: opacity 0.8s ease; min-height: 80px; overflow: visible; }
header::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0px, rgba(0, 0, 0, 0.25) 1px, transparent 1px, transparent 2px); pointer-events: none; z-index: 0; }
header.show { opacity: 1; pointer-events: auto; }
body:not(.press-reveal) header { opacity: 0 !important; pointer-events: none !important; }
body.press-reveal header { opacity: 1 !important; pointer-events: auto !important; transition: none !important; }
body.press-reveal header { animation: rgb-burst-text 0.35s ease-out; }
body.press-reveal header { animation: header-press-fade 0.18s ease-out forwards; }
header.press-burst-bg::before,
footer.press-burst-bg::before { animation: rgb-burst-text-soft 0.35s ease-out; }
.mobile-title { display: none; }
nav { display: flex; flex-wrap: wrap; gap: 16px 35px; justify-content: center; max-width: 1400px; align-items: center; transition: opacity 0.6s ease; position: relative; }
nav.fade-out { opacity: 0; pointer-events: none; }
nav a { color:#00d500; text-decoration:none; font-size:32px; font-weight:500; position:relative; transition:all 0.4s ease; white-space: nowrap; transform-origin: center center; text-transform: none; text-shadow: 0 0 5px rgba(0, 213, 0, 0.35), 0 0 15px rgba(0, 213, 0, 0.35); }
nav a::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px); pointer-events: none; z-index: 1; }
/* Global glow */
nav a:hover { color:#00d500 !important; transform:scale(1.05); text-shadow:0 0 px rgba(0, 213, 0, 0.35), 0 0 10px rgba(0, 213, 0, 0.35), 0 0 20px rgba(0, 213, 0, 0.35), 0 0 40px rgba(0, 213, 0, 0.35) !important; }
nav a.press-active { color:#00d500 !important; transform:scale(1.05); text-shadow:0 0 5px #00d500, 0 0 10px #00d500, 0 0 20px #00d500, 0 0 40px #00d500 !important; }
/* Outward gradient bar */
nav a::after { content: ''; position: absolute; bottom: -0.8px; left: 50%; width: 0; height: 1px; background: linear-gradient(90deg, rgba(0, 213, 0,0) 0%, rgba(0, 213, 0,1) 15%, rgba(0, 213, 0,1) 85%, rgba(0, 213, 0,0) 100%); transform: translateX(-50%); transition: width 0.8s cubic-bezier(0.645, 0.045, 0.355, 1); filter: drop-shadow(0 0 0px rgba(0, 213, 0,0)) drop-shadow(0 0 0px rgba(0, 213, 0,0)) drop-shadow(0 0 0px rgba(0, 213, 0,0)); }
nav a:hover::after { width: 100%; }
nav a.press-active::after { width: 100%; }

/* Adjusted hero section for padding and width constraints */
.hero { position:relative; min-height: 100vh; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; perspective: 1000px; padding-top: 120px; padding-bottom: 120px; padding-left: 24px; padding-right: 24px; }

.glitch-container { position:relative; display:inline-block; transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1); }

.glitch-container::after { content: none; }
.hero-image { display:block; max-width:29.25vw; height:auto; opacity: 1; filter: drop-shadow(0 0 3px rgba(0, 213, 0,0.45)) drop-shadow(0 0 6px rgba(0, 213, 0,0.25)); transition: filter 0.4s ease, transform 0.4s ease; transform-origin: center center; }
.hero-image-wrap { transform: translateY(calc(-9% - 50px)) translate(var(--jitter-x, 0), var(--jitter-y, 0)) !important; }
.hero-image-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; isolation: isolate; text-align: center; }
.hero-image-media { position: relative; display: inline-block; isolation: isolate; }
.hero-image.base { position: relative; z-index: 5; display:block; }
.hero-subtext {
  margin-top: 8px;
  display: block;
  width: 55%;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transform: translateY(4px) scale(0.88);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 7;
}

.hero-image-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(rgba(0,0,0,0.8) 0px, rgba(0,0,0,0.8) 1px, transparent 1px, transparent 2px);
  opacity: 0.035;
}
.hero-image-media::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 213, 0,0.25) 50%, transparent 100%);
  opacity: 0;
  transform: translateY(-30%);
}
.glitch-container:hover .hero-image-media::after,
.glitch-container.press-active .hero-image-media::after { opacity: 0; }
@keyframes hero-scanline-press {
  0% { opacity: 0.06; transform: translateY(0); }
  50% { opacity: 0.28; transform: translateY(-6px); }
  100% { opacity: 0.06; transform: translateY(0); }
}
.glitch-container.press-active .hero-image { animation: rgb-burst 0.35s ease-out; }
.glitch-container.press-active .hero-image-media::before {
  opacity: 0.2;
  animation: hero-scanline-press 0.35s steps(2);
}

@media (max-width: 768px) {
  nav { display: none; }
  header { display: flex !important; opacity: 0 !important; pointer-events: none !important; padding-left: 0; padding-right: 0; }
  header::before { content: ''; }
  :root { --mobile-hero-image-width: 72vw; }
  .mobile-title {
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Upheaval', sans-serif;
    font-size: clamp(24px, 8.6vw, 44px);
    color: #0ad100;
    text-shadow: none;
    letter-spacing: 0em;
    text-decoration: none;
    z-index: 1;
    transition: top 0.6s ease, transform 0.6s ease, filter 0.3s ease, text-shadow 0.3s ease;
    overflow: visible;
  }
  .mobile-title.glitching {
    animation: rgb-burst-text-mobile 0.9s steps(2) infinite;
  }
  .mobile-title.is-docked {
    top: 40px;
    transform: translate(-50%, -50%);
    animation: none;
  }
  .mobile-title.reveal-glitch {
    animation: rgb-burst-text-mobile 0.6s ease;
  }
  .mobile-title.press-glow {
    text-shadow: none;
    filter: drop-shadow(0 0 5px rgba(0, 213, 0, 0.35)) drop-shadow(0 0 15px rgba(0, 213, 0, 0.35));
    transform: translate(-50%, -50%) scale(1.05);
  }
  .mobile-title:hover,
  .mobile-title:active,
  .mobile-title.press-active {
    filter: drop-shadow(0 0 5px rgba(0, 213, 0, 0.35)) drop-shadow(0 0 15px rgba(0, 213, 0, 0.35));
    transform: translate(-50%, -50%) scale(1.05);
  }
  .mobile-title.press-active { opacity: 1 !important; transition: none !important; }
  .mobile-title.press-active { animation: rgb-burst-text-mobile 0.35s ease-out; }
  .mobile-title.press-active::after { content: none; }
  .mobile-title { opacity: 0; pointer-events: none; }
  .mobile-title.is-docked { opacity: 1; pointer-events: auto; }
  .nav-logo-wrap.left { left: 12px; }
  .nav-logo-wrap.right { display: none; }
  .nav-logo-img.desktop-only { display: none; }
  .nav-logo-img.mobile-only { display: inline-block; }
  .hero .glitch-container { display: inline-block; }
  body.press-reveal header::after,
  body.press-reveal footer::after { opacity: 1; }
  body { font-size: 15px; }
  body, h1, h2, h3, h4, h5, h6, p, li, span, a, div, label, button, input, select, textarea {
    color: #0ad100 !important;
  }
  a:hover, .parallax-list li:hover, .scroll-glitch:hover {
    color: #0ad100 !important;
    text-shadow: 0 0 4px rgba(10, 209, 0, 0.35), 0 0 8px rgba(10, 209, 0, 0.35);
  }
  nav a.press-active, .parallax-list li.press-active {
    color: #0ad100 !important;
    text-shadow: 0 0 4px rgba(10, 209, 0, 0.5), 0 0 8px rgba(10, 209, 0, 0.35);
  }
  #audio-toggle,
  .cta-button,
  .select-button {
    border-color: #0ad100 !important;
    box-shadow: 0 0 10px rgba(10, 209, 0, 0.3);
  }
  #audio-toggle.audio-on,
  .cta-button {
    background: #0ad100 !important;
  }
  footer .cta-button {
    background: #0ad100 !important;
    background-color: #0ad100 !important;
    color: rgba(37, 0, 115, 0.95) !important;
    transition: background-color 0.18s ease, color 0.18s ease;
  }
  footer .cta-button:hover,
  footer .cta-button:active {
    background: rgba(37, 0, 115, 0.95) !important;
    background-color: rgba(37, 0, 115, 0.95) !important;
    color: #0ad100 !important;
  }
  #power-up,
  .power-up-cta {
    background: var(--powerup-green) !important;
    background-color: var(--powerup-green) !important;
    color: rgba(37, 0, 115, 0.95) !important;
    transition: background-color 0.18s ease, color 0.18s ease;
  }
  #power-up:hover,
  #power-up:active,
  .power-up-cta:hover,
  .power-up-cta:active {
    background: rgba(37, 0, 115, 0.95) !important;
    background-color: rgba(37, 0, 115, 0.95) !important;
    color: var(--powerup-green) !important;
  }
  #audio-toggle.audio-off {
    color: #0ad100 !important;
    border-color: #0ad100 !important;
    box-shadow: 0 0 12px rgba(10, 209, 0, 0.45);
  }
  .select-button::after { color: #0ad100; }
  .form-grid input,
  .form-grid select,
  .form-grid textarea { border-color: rgba(10, 209, 0, 0.4); }
  #linkup .form-grid input::placeholder,
  #linkup .form-grid textarea::placeholder,
  #linkup .form-grid input::-webkit-input-placeholder,
  #linkup .form-grid textarea::-webkit-input-placeholder {
    color: rgba(37, 0, 115, 0.95) !important;
    -webkit-text-fill-color: rgba(37, 0, 115, 0.95) !important;
    opacity: 1;
  }
  .select-options { border-color: rgba(10, 209, 0, 0.5); }
  #insert-coin,
  #hi-score,
  #build-status {
    text-shadow: 0 0 4px rgba(10, 209, 0, 0.45);
  }
  .hero-image {
    filter: drop-shadow(0 0 2px rgba(10, 209, 0, 0.25)) drop-shadow(0 0 4px rgba(10, 209, 0, 0.15));
    max-width: var(--mobile-hero-image-width);
  }
  .hero-image-media::after {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 209, 0, 0.12) 50%, transparent 100%);
  }
  .hero-subtext { width: 65%; }
  .glitch-container:hover .hero-image-media::after { opacity: 0; }
  .glitch-container:hover .hero-image {
    filter: drop-shadow(0 0 2px rgba(10, 209, 0, 0.2)) drop-shadow(0 0 4px rgba(10, 209, 0, 0.12));
    transform: scale(1.02);
  }
.glitch-container:hover .hero-subtext { transform: translateY(4px) scale(0.92); }
  @keyframes scanline-sweep-mobile { }
  section h2 { font-size: 250%; }
  .content-page { padding-top: 80px; padding-bottom: 80px; }
  .form-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    font-size: 14px;
  }
  #linkup .form-actions {
    justify-content: flex-end;
    margin-top: 18px;
  }
  #linkup.content-page {
    padding-left: 0;
    padding-right: 0;
  }
  #linkup .section-inner {
    max-width: 100%;
  }
  #linkup .form-shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }
  #linkup .form-grid,
  #linkup .form-actions {
    margin: 18px auto 0;
  }
  #linkup .form-grid {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid textarea { min-height: 140px; }
  footer { padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; min-height: 0; line-height: 1; }
  .footer-actions { width: 100%; margin: 0; padding: 0; order: 1; display: flex; justify-content: center; align-items: center; line-height: 1; }
  .footer-right { width: auto; justify-content: center; align-items: center; margin: 0; padding: 0; }
  .footer-right .cta-button,
  .footer-right #audio-toggle { margin: 0; }
  .footer-right .cta-button {
    border: 1px solid transparent;
    padding: 8px 14px;
    line-height: 1;
  }
  .footer-right #audio-toggle {
    padding: 8px 14px;
    line-height: 1;
  }
  .footer-center { width: 100%; display: flex; gap: 0; align-items: center; justify-content: center; order: 2; position: static; transform: none; margin: 0; padding: 0; line-height: 1; }
  .footer-center p,
  .footer-center a {
    font-size: var(--mobile-footer-text-size);
  }
  .footer-copy { display: block; }
  .footer-center p { text-align: center; margin: 0; line-height: 1; }
  .footer-copy { margin: 0; line-height: 1; }
  #build-status { top: 51.2vh; left: 8px; font-size: 8px !important; padding: 5px 6px !important; width: max-content; gap: 4.2px; }
  .build-status-line { line-height: 0; }
  .build-status-script { font-size: 7.2px !important; line-height: 1.05; }
  #custom-cursor, .cursor-trail { display: none; }
  body, a, button, li, span, div, nav { cursor: auto !important; }
  .mobile-menu a { font-size: 25px !important; font-family: 'Upheaval', sans-serif !important; }
  .parallax-list {
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (hover: none) and (pointer: coarse) {
  #linkup.content-page {
    padding-left: 0;
    padding-right: 0;
  }
  #linkup .section-inner {
    max-width: 100%;
  }
  #linkup .form-shell {
    width: 92vw;
    max-width: 360px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }
  #linkup .form-grid,
  #linkup .form-actions {
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    box-sizing: border-box;
  }
  #linkup .form-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  #custom-cursor, .cursor-trail { display: none !important; }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    #linkup .section-inner {
      max-width: 100% !important;
    }
    #linkup .form-shell {
      width: 92vw !important;
      max-width: 360px !important;
      margin: 0 auto !important;
      padding: 0 !important;
    }
    #linkup .form-grid {
      width: 100% !important;
      margin: 0 auto !important;
      padding: 0 !important;
    }
    #linkup .form-actions {
      width: 100% !important;
      margin: 18px auto 0 !important;
      padding: 0 !important;
    }
  }
  @media (min-width: 769px) {
    #linkup .section-inner {
      max-width: 100% !important;
    }
    #linkup .form-shell {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      padding: 0 !important;
    }
    #linkup .form-grid {
      width: 100% !important;
      margin: 0 auto !important;
      padding: 0 !important;
    }
    #linkup .form-actions {
      width: 100% !important;
      margin: 18px auto 0 !important;
      padding: 0 !important;
    }
  }
}
.glitch-container:hover .hero-image { filter: drop-shadow(0 0 5px rgba(0, 213, 0, 0.35)) drop-shadow(0 0 15px rgba(0, 213, 0, 0.35)); transform: scale(1.05); }
.glitch-container:hover .hero-subtext { transform: translateY(4px) scale(0.92); }

#glitch-canvas { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; opacity: 0.064; z-index: 1; }

.parallax-list { list-style:none; font-size:clamp(18px,3.3vw,25px); font-weight:400; line-height:1.1; display: flex; flex-direction: column; align-items: center; gap: 24px; }
/* Unified heading spacing; removed custom #work h2 margin */
/* #work h2 {
  margin-bottom: 80px;
} */
/* Brand & Content background */
#work {
  position: relative;
  background: none;
}
#work::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
#work > * {
  position: relative;
  z-index: 1;
}
.parallax-link {
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.parallax-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 213, 0,0) 0%, rgba(0, 213, 0,1) 15%, rgba(0, 213, 0,1) 85%, rgba(0, 213, 0,0) 100%);
  transform: translateX(-50%);
  transition: width 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  filter: drop-shadow(0 0 2px rgba(0, 213, 0,0)) drop-shadow(0 0 5px rgba(0, 213, 0,0)) drop-shadow(0 0 10px rgba(0, 213, 0,0));
}
.parallax-link:hover::after,
.parallax-link:focus-visible::after,
.parallax-list li.press-active .parallax-link::after {
  width: 100%;
}
.parallax-list li::after { content: none; }
.parallax-list li:hover,
.parallax-list li.press-active {
  color:#00d500 !important;
  text-shadow: 0 0 5px rgba(0, 213, 0, 0.35), 0 0 10px rgba(0, 213, 0, 0.35), 0 0 20px rgba(0, 213, 0, 0.35), 0 0 40px rgba(0, 213, 0, 0.35);
  transform: none !important;
}
footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 0px 0px; text-align: center; font-size: 11px; backdrop-filter: blur(7px); background: rgba(37, 0, 115, 0.3); z-index: 1000; display: flex; justify-content: space-between; align-items: center; gap: 16px; opacity: 0; pointer-events: auto; transition: opacity 0.8s ease; height: auto; min-height: 50px; }
footer::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0px, rgba(0, 0, 0, 0.25) 1px, transparent 1px, transparent 2px); pointer-events: none; z-index: 0; }
footer.show { opacity: 1; pointer-events: auto; }
body:not(.press-reveal) footer { opacity: 0 !important; pointer-events: none !important; }
body.press-reveal footer { opacity: 1 !important; pointer-events: auto !important; transition: none !important; }
body.press-reveal footer { animation: rgb-burst-text 0.35s ease-out; }
body.press-reveal footer { animation: footer-press-fade 0.18s ease-out forwards; }

@keyframes header-press-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes footer-press-fade { from { opacity: 0; } to { opacity: 1; } }
footer a { color: #00d500; text-decoration: none; position: relative; display: inline-block; }
.footer-copy { font-family: 'Upheaval', sans-serif !important; }
.motion-section { align-items: center; }
.motion-frame { width: min(80vw, 900px); aspect-ratio: 16 / 9; margin: 24px auto 0; border: none; max-height: 60vh; overflow: hidden; background: transparent; }
.motion-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.motion-frame.placeholder-frame { border: none; display: flex; align-items: center; justify-content: center; }
.motion-frame.placeholder-frame img[src*="question-block-red.gif"] { width: 16% !important; height: auto !important; max-width: 16%; max-height: 16%; display: block; }
.scroll-spacer { height: 400px; }
#insert-coin {
  position: fixed;
  left: 50%;
  bottom: 15vh;
  transform: translateX(-50%);
  font-family: 'Upheaval', sans-serif !important;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #00d500;
  text-shadow: 0 0 6px rgba(0, 213, 0,0.8);
  opacity: 0;
  z-index: 10002;
  pointer-events: none;
}
#insert-coin.show { opacity: 0.9; animation: coin-blink 1.2s steps(2) infinite; }
@keyframes coin-blink { 0%, 49% { opacity: 0.9; } 50%, 100% { opacity: 0.2; } }
#build-status {
  position: fixed;
  left: 12px;
  top: 52.8vh;
  transform: translateY(-50%);
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 11px 13px;
  font-family: 'Upheaval', sans-serif !important;
  font-size: 15.8px;
  letter-spacing: 0.18em;
  text-shadow: 0 0 6px rgba(0, 213, 0,0.8);
  background: transparent;
  border: none;
  z-index: 10002;
  pointer-events: auto;
  text-align: left;
}
#build-status span,
#build-status .build-status-text,
#build-status .build-status-script {
  font-family: 'Upheaval', sans-serif !important;
}
#build-status::before { content: none; }
#build-status::after { content: none; }
.build-status-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.build-status-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.build-status-line.flash-off { opacity: 0; }
.build-status-dots span {
  opacity: 0.2;
  animation: status-dot 1.2s steps(2) infinite;
}
.build-status-dots span:nth-child(2) { animation-delay: 0.2s; }
.build-status-dots span:nth-child(3) { animation-delay: 0.4s; }
.build-status-script {
  font-size: 13.2px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 4px rgba(0, 213, 0,0.5);
  position: relative;
  z-index: 1;
}
.build-status-script.flash-off { opacity: 0; }
@keyframes status-dot { 0%, 40% { opacity: 0.2; } 50%, 100% { opacity: 1; } }
@keyframes status-scan {
  0% { opacity: 0; transform: translateY(-40%); }
  12% { opacity: 0.5; }
  25% { opacity: 0; transform: translateY(40%); }
  100% { opacity: 0; transform: translateY(40%); }
}
#hi-score {
  position: fixed;
  top: 115px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Upheaval', sans-serif !important;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #00d500;
  text-shadow: 0 0 6px rgba(0, 213, 0,0.8);
  z-index: 10002;
  pointer-events: none;
}
#hi-score::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0px, rgba(0, 0, 0, 0.25) 1px, transparent 1px, transparent 2px); pointer-events: none; mix-blend-mode: multiply; }
#signal-loss {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.8) 0px, rgba(0,0,0,0.8) 1px, transparent 1px, transparent 3px),
    linear-gradient(90deg, rgba(0, 213, 0,0.08), rgba(0,0,0,0));
  opacity: 0;
  z-index: 10006;
  pointer-events: none;
}
#signal-loss.active { animation: signal-loss 0.5s steps(3) forwards; }
@keyframes signal-loss {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 0.8; transform: translateY(-6px); }
  70% { opacity: 0.5; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(0); }
}
.mobile-menu {
  position: fixed;
  top: 90px;
  left: 50%;
  right: auto;
  width: min(100vw, 350px);
  padding: 14px 14px;
  background: rgba(37, 0, 115, 0.3);
  border: none;
  box-shadow: 0 0 12px rgba(0, 213, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
  z-index: 10003;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu-left {
  left: 50%;
  right: auto;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0px, rgba(0, 0, 0, 0.25) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
  border: .9px solid #00d500;
  box-sizing: border-box;
}
.mobile-menu.open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mobile-menu a { display: block; padding: 5px 4px 3px; text-decoration: none; position: relative; }
.mobile-menu a:hover {
  text-shadow: 0 0 5px rgba(0, 213, 0, 0.35), 0 0 10px rgba(0, 213, 0, 0.35), 0 0 20px rgba(0, 213, 0, 0.35), 0 0 40px rgba(0, 213, 0, 0.35);
}
.mobile-menu a:active {
  animation: rgb-burst-text-mobile 0.35s ease-out;
}
.mobile-menu a.press-active,
.mobile-menu a:focus-visible {
  text-shadow: 0 0 5px #00d500, 0 0 10px #00d500, 0 0 20px #00d500, 0 0 40px #00d500;
}
.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(0, 213, 0,0) 0%, rgba(0, 213, 0,1) 15%, rgba(0, 213, 0,1) 85%, rgba(0, 213, 0,0) 100%);
  transform: translateX(-50%);
  transition: width 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  filter: drop-shadow(0 0 2px rgba(0, 213, 0,0)) drop-shadow(0 0 5px rgba(0, 213, 0,0)) drop-shadow(0 0 10px rgba(0, 213, 0,0));
}
.mobile-menu a:hover::after,
.mobile-menu a.press-active::after,
.mobile-menu a:focus-visible::after {
  width: 100%;
}
@supports (-webkit-touch-callout: none) {
  .mobile-menu a { padding-bottom: 2px; }
  .mobile-menu a::after {
    bottom: 0;
    transform: translate(-50%, 2px);
  }
}
@media (min-width: 769px) { .mobile-menu { display: none; } }
@media (max-width: 768px) {
  html, body, * { color: #00d500 !important; }
  input, select, textarea { -webkit-text-fill-color: #00d500 !important; }
  .mobile-menu a { display: inline-block; padding-bottom: 0px; }
  .mobile-menu a::after { bottom: 1px; }
  footer { padding: 5px 20px !important; gap: 4px !important; min-height: 0 !important; line-height: 1 !important; }
  .footer-actions { margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
  .footer-right { margin: 0 !important; padding: 0 !important; }
  .footer-center { margin: 0 !important; padding: 0 !important; gap: 0 !important; line-height: 1 !important; }
  .footer-center p, .footer-copy { margin: 0 !important; line-height: 1 !important; }
  a:hover, .parallax-list li:hover, .scroll-glitch:hover {
    color: #00d500 !important;
    text-shadow: 0 0 4px rgba(0, 213, 0, 0.35), 0 0 8px rgba(0, 213, 0, 0.35);
  }
  #audio-toggle,
  .cta-button,
  .select-button {
    border-color: #00d500 !important;
    box-shadow: 0 0 10px rgba(0, 213, 0, 0.3);
  }
  #audio-toggle,
  .cta-button { padding: 8px 14px; }
  #audio-toggle.audio-on,
  .cta-button { background: #00d500 !important; background-color: #00d500 !important; }
  #audio-toggle.audio-off {
    color: #00d500 !important;
    border-color: #00d500 !important;
    box-shadow: 0 0 12px rgba(0, 213, 0, 0.45);
  }
  .select-button::after { color: #00d500; }
  .form-grid input,
  .form-grid select,
  .form-grid textarea { border-color: rgba(0, 213, 0, 0.4); }
  .select-options { border-color: rgba(0, 213, 0, 0.5); }
  #insert-coin,
  #hi-score,
  #build-status { text-shadow: 0 0 4px rgba(0, 213, 0, 0.45); }
  .hero-image {
    filter: drop-shadow(0 0 2px rgba(0, 213, 0, 0.25)) drop-shadow(0 0 4px rgba(0, 213, 0, 0.15));
  }
  .hero-image-media::after {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 213, 0, 0.12) 50%, transparent 100%);
  }
  nav a:hover,
  nav a:hover::after,
  .parallax-list li:hover,
  .parallax-list li:hover::after,
  .glitch-container:hover .hero-image,
  .glitch-container:hover .hero-image-media::after {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    width: 0 !important;
  }
  .parallax-list li.rgb-burst-text,
  .content-page h2 a.rgb-burst-text,
  .mobile-menu a.rgb-burst-text {
    animation: rgb-burst-text-mid 0.35s ease-out;
  }
  .mobile-menu a.press-active {
    animation: rgb-burst-text-mobile 0.35s ease-out;
  }
  .glitch-container:hover .hero-image {
    filter: drop-shadow(0 0 2px rgba(0, 213, 0, 0.35)) drop-shadow(0 0 5px rgba(0, 213, 0, 0.35)) drop-shadow(0 0 10px rgba(0, 213, 0, 0.35)) !important;
    transform: scale(1.05) !important;
  }
  .glitch-container.press-active .hero-image {
    filter: drop-shadow(0 0 2px #00d500) drop-shadow(0 0 5px #00d500) drop-shadow(0 0 10px #00d500) !important;
    transform: scale(1.05) !important;
  }
  .glitch-container.press-active .hero-image-media::after { opacity: 0; }
}
