/* ======================================================
   Stop At App styles.css
====================================================== */
:root {
  --neon-green: #7dfe80;
  --arcade-purple: #6300ee;
  --bg-dark: #0d0d0d;
  --text-light: #f0f0f0;
  --dark-panel: #1a211a;
  --white-border: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  line-height: 1.4;
}

/* Prevent background scroll when screenshot modal is open */
body.modal-open { overflow: hidden; }

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: rgba(13, 13, 13, 0.98);
  border-bottom: 4px solid var(--arcade-purple);
  padding: 15px 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  position: relative;
}

nav a.active { color: var(--neon-green); }

nav a.active::before {
  content: '◆';
  color: var(--neon-green);
  margin-right: 8px;
  font-size: 0.8rem;
  transform: translateY(-4px);
}

section { padding: 40px 20px; max-width: 1000px; margin: 0 auto; }

h1, h2, h3 {
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  text-align: center;
}

h1 {
  font-size: 2.8rem;
  color: var(--text-light);
  margin: 10px 0;
}

h2 { font-size: 1.7rem; color: var(--arcade-purple); margin-bottom: 30px; }

h3 { font-size: 1.4rem; color: var(--neon-green); margin-bottom: 30px; }

/* Pixel Notched Corners */
.info-box, .feature-item, .pixel-box, .modal-content {
  background: var(--dark-panel);
  border: 6px solid var(--white-border);
  padding: 25px;
  clip-path: polygon(
    0% 6px, 6px 6px, 6px 0%,
    calc(100% - 6px) 0%, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0% calc(100% - 6px)
  );
}

/* 3D Buttons */
.cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-family: 'Press Start 2P', cursive;
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.1s;
  text-transform: uppercase;
}
.cta-center {
  display: flex;
  justify-content: center;
}

.cta-button:active { transform: translateY(4px); }

.cta-subtext {
  text-align: center;
  font-size: 1rem;
  color: #aaa;
  margin-top: 10px;
}
@media (max-width: 480px) {
  .cta-subtext {
    font-size: 0.75rem;
  }
}

.btn-apk { background-color: var(--arcade-purple); color: white; box-shadow: 0 8px 0 #3a0091; }
.btn-share { background-color: var(--neon-green); color: black; box-shadow: 0 8px 0 #5ebb60; }
.btn-close { background-color: #444; color: white; box-shadow: 0 6px 0 #222; margin-top: 20px; font-size: 0.6rem; }

#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1001;
  background-color: white;
  color: black;
  padding: 15px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 0 #bbb;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Custom Scrollbar for Chrome/Safari */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--arcade-purple); border: 2px solid var(--bg-dark); }

/* Smoother Button Hover */
.cta-button:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

/* Modal Logic (privacy/terms) */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--modal-overlay);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-content {
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
}

.modal-content h3 { text-align: left; font-size: 0.9rem; color: var(--neon-green); margin-bottom: 20px; }
.modal-body { font-size: 1.2rem; line-height: 1.6; }

/* Difficulty Modes */
.mode-easy { color: var(--neon-green); }
.mode-normal { color: #cfcfcf; }
.mode-hard { color: #ffb84d; }
.mode-insane { color: #ff4d4d; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-item h3 {
  text-align: center;
  font-size: 1rem;
  color: var(--neon-green);
  margin-bottom: 10px;
  margin-top: 0;
}
.feature-item img {
    margin: 0 auto;
    display: block;
}

.screenshot-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px 0;
}

.screenshot-container img {
  width: 260px;
  border: 4px solid var(--white-border);
  clip-path: inherit;
  cursor: pointer;
}

footer {
  padding: 40px;
  text-align: center;
  border-top: 4px solid var(--arcade-purple);
  background: #000;
}

.hero-subtitle-link {
  color: var(--neon-green);
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-subtitle-link:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

.footer-brand a {
  color: var(--arcade-purple);
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-brand a:hover {
  filter: brightness(1.3);
  text-decoration: underline;
}

.footer-lab-text {
  font-size: 1.15rem;
  color: #ccc;
  margin: 16px auto 18px;
  max-width: 640px;
  line-height: 1.5;
}
.footer-lab-text a {
  color: var(--neon-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}
.footer-lab-text a:hover {
  filter: brightness(1.25);
  color: #fff;
}
.footer-lab-text .vote-link {
  font-weight: bold;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 15px;
  cursor: pointer;
}

.footer-links a:hover { color: var(--neon-green); }

/* ======================================================
   Screenshot Lightbox Modal (Gallery Only)
====================================================== */

/* Prevent body scroll while open */
body.modal-open {
  overflow: hidden;
}

/* Fullscreen blurred overlay */
.screenshot-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: 16px;
}

/* Modal body – glassy, no border, no scroll */
.screenshot-body {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);

  border: none;
  overflow: hidden;

  padding: 16px 88px;

  max-width: 96vw;
  max-height: 92vh;

  border-radius: 14px;
  box-shadow: 0 0 30px rgba(99, 0, 238, 0.25);
}

/* Image scales to fit viewport */
#screenshotModalImage {
  max-width: 100%;
  max-height: 92vh;

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;

  user-select: none;
  -webkit-user-drag: none;
}

/* Pixel-style control buttons */
.pixel-icon-btn {
  position: absolute;

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: 'Press Start 2P', cursive;
  font-size: 0.95rem;

  color: var(--neon-green);
  background: rgba(0, 0, 0, 0.75);

  border: none;
  cursor: pointer;

  clip-path: polygon(
    0% 8px, 8px 8px, 8px 0%,
    calc(100% - 8px) 0%, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0% calc(100% - 8px)
  );

  box-shadow:
    0 0 0 4px rgba(125, 254, 128, 0.4),
    0 8px 0 rgba(0, 0, 0, 0.45);
}

.pixel-icon-btn:hover {
  filter: brightness(1.25);
}

.pixel-icon-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 0 0 4px rgba(125, 254, 128, 0.4),
    0 4px 0 rgba(0, 0, 0, 0.45);
}

/* Button positions */
.pixel-icon-btn.close {
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  font-size: 0.85rem;
}

.pixel-icon-btn.prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.pixel-icon-btn.next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Smaller controls on small screens */
@media (max-width: 480px) {
  .pixel-icon-btn {
    width: 52px;
    height: 52px;
    font-size: 0.8rem;
  }

  .screenshot-body {
    padding: 12px 72px;
  }
}

/* DEV MODE */
.dev-mode-body {
  background: rgba(18, 0, 42, 0.94);
  color: var(--neon-green);
  width: 90%;
  max-width: 860px;
  max-height: 78vh;
  height: 600px;
  overflow-y: auto;
  padding: 32px 42px;
  display: block !important;
  box-sizing: border-box;
  position: relative;
  transition: max-width 0.2s ease, max-height 0.2s ease;
}

/* Super Secret Area View: Expands so it does NOT have to scroll */
.dev-mode-body.view-secret {
  max-width: 840px;
  height: auto;
  max-height: 94vh;
  overflow-y: auto;
  padding: 26px 36px 30px;
}

/* Sound Board View */
.dev-mode-body.view-soundboard {
  max-width: 860px;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 36px 30px;
}

.dev-title {
  font-size: 1.8rem;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.dev-subtitle {
  font-size: 1.35rem;
  text-align: center;
  margin: 10px 0 20px;
}

.dev-section-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  text-align: center;
}

.dev-history {
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  border: 1px dashed var(--neon-green);
  padding: 14px 18px;
  box-sizing: border-box;
  text-align: left;
}

.dev-history pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--neon-green);
}

.dev-footer {
  font-size: 1.15rem;
  margin-top: 18px;
  text-align: center;
  cursor: pointer;
}

.dev-transmission-hint {
  margin-top: 55px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #888;
}

.dev-transmission-hint #devEgg {
  display: inline-block;
  font-size: 1.4rem;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
}

/* Master Override Block Typography & Sizing */
.master-override-box {
  text-align: center;
  border: 2px solid #7CFF7C;
  padding: 1.25rem 1.6rem;
  max-width: 760px;
  margin: 0 auto;
}

.master-override-title {
  color: #7CFF7C;
  font-size: 1.5rem;
  display: block;
  line-height: 1.35;
}

.master-override-quote {
  color: #00FFFF;
  font-size: 1.2rem;
  font-style: italic;
  margin: 0.85rem 0;
  line-height: 1.45;
}

.master-override-divider {
  border: 1px solid #7CFF7C;
  opacity: 0.3;
  margin: 0.85rem 0;
}

.master-override-steps {
  text-align: left;
  color: #E0E0E0;
  font-size: 1.2rem;
  line-height: 1.55;
}

.master-override-steps-title {
  color: #7CFF7C;
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 4px;
}

.master-override-warning {
  color: #FF0055;
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
  line-height: 1.45;
}

#devEgg {
  display: inline-block;
  cursor: pointer;
}

/* Secret Area Inside Dev Mode */
.dev-secret-icons {
  font-size: 2rem;
  margin: 15px 0;
}

.dev-secret-p {
  font-size: 1.35rem;
  line-height: 1.5;
  margin: 15px 0;
  color: #fff;
}

.dev-secret-box {
  margin: 18px 0;
  text-align: center;
  border-color: var(--neon-green);
  padding: 16px 20px;
}

.dev-secret-box p {
  font-size: 1.35rem;
  margin: 0;
  color: var(--neon-green);
}

.dev-secret-subtext {
  font-size: 1.2rem;
  line-height: 1.4;
  color: #aaa;
  margin: 15px 0;
}

/* Sound Board Inside Dev Mode */
.sound-board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 16px;
  justify-items: center;
  align-items: start;
  margin: 22px auto 10px;
  width: 100%;
  max-width: 640px;
}

.sound-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 130px;
}

.sound-round-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: white;
  color: black;
  border: 0;
  box-shadow: 0 6px 0 #bbb;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s, color 0.1s;
  margin-bottom: 14px;
  user-select: none;
}

.sound-round-btn:hover {
  background-color: #f0f0f0;
}

.sound-round-btn:active,
.sound-round-btn.playing {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #999;
  background-color: #e5e5e5;
  color: #0b7d18;
}

.sound-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.58rem;
  line-height: 1.35;
  color: var(--neon-green);
  text-align: center;
}

/* Toast Message */
.dev-toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13, 13, 13, 0.95);
  color: var(--neon-green);
  border: 3px solid var(--neon-green);
  padding: 12px 24px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(125, 254, 128, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dev-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes devModeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#devModeOverlay .dev-mode-body {
  animation: devModeIn 220ms ease-out;
}

/* Mobile responsive scaling for Dev Mode */
@media (max-width: 600px) {
  .dev-mode-body {
    width: 95%;
    max-width: 96vw;
    max-height: 90vh;
    padding: 44px 14px 18px !important;
    border-radius: 10px;
  }

  .dev-mode-body .pixel-icon-btn.close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .dev-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .dev-subtitle {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 6px 0 14px;
  }

  .dev-transmission-hint {
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 1.05rem;
  }

  .dev-transmission-hint #devEgg,
  #devEgg {
    font-size: 1.15rem !important;
  }

  .dev-section-title {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .dev-history {
    max-height: 220px;
    padding: 8px 10px;
  }

  .dev-history pre {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .dev-footer {
    font-size: 0.85rem;
    margin-top: 14px;
  }

  .dev-secret-icons {
    font-size: 1.4rem !important;
    margin: 8px 0 !important;
  }

  .dev-secret-p {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin: 10px 0 !important;
  }

  .master-override-box {
    padding: 1.1rem 1rem !important;
  }

  .master-override-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }

  .master-override-quote {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin: 0.9rem 0 !important;
  }

  .master-override-steps {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
  }

  .master-override-steps-title {
    font-size: 1.15rem !important;
  }

  .master-override-warning {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .sound-board-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 6px;
    margin: 16px 0 8px;
  }

  .sound-round-btn {
    width: 48px;
    height: 48px;
    font-size: 0.75rem;
    box-shadow: 0 4px 0 #bbb;
    margin-bottom: 10px;
  }

  .sound-round-btn:active,
  .sound-round-btn.playing {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #999;
  }

  .sound-name {
    font-size: 0.46rem;
    line-height: 1.25;
  }

  .dev-toast {
    font-size: 0.7rem;
    padding: 10px 18px;
    bottom: 25px;
  }
}
/* Site-wide tester badge */
.tester-badge {
  position: fixed;
  top: 78px; /* below sticky nav */
  right: 14px;
  z-index: 3500;

  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: var(--neon-green);

  background: rgba(0,0,0,0.72);
  padding: 10px 12px;
  border: none;
  cursor: default;

  clip-path: polygon(
    0% 6px, 6px 6px, 6px 0%,
    calc(100% - 6px) 0%, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0% calc(100% - 6px)
  );

  box-shadow:
    0 0 0 3px rgba(125, 254, 128, 0.28),
    0 8px 0 rgba(0,0,0,0.40);
}

/* CTA modal tweaks */
.cta-modal {
  max-width: 760px;
}

/* Make modal close X visible above content */
.cta-modal .pixel-icon-btn.close {
  top: 12px;
  right: 12px;
}
.tester-cta-panel {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.tester-cta-panel ol a,
.cta-modal ol a {
  color: var(--neon-green);
  text-decoration: underline;
}

.tester-cta-panel ol a:hover,
.cta-modal ol a:hover {
  color: #ffffff;
}
/* =====================================
   TESTER BADGE FLASH ANIMATION
===================================== */

@keyframes badgeFlash {
  0% {
    transform: scale(1);
    background: rgba(0, 0, 0, 0.72);
    box-shadow:
      0 0 0 3px rgba(125, 254, 128, 0.28),
      0 8px 0 rgba(0,0,0,0.40);
  }

  40% {
    transform: scale(1.05);
    background: rgba(125, 254, 128, 0.15);
    box-shadow:
      0 0 0 4px rgba(125, 254, 128, 0.75),
      0 0 18px rgba(125, 254, 128, 0.65);
  }

  100% {
    transform: scale(1);
    background: rgba(0, 0, 0, 0.72);
    box-shadow:
      0 0 0 3px rgba(125, 254, 128, 0.28),
      0 8px 0 rgba(0,0,0,0.40);
  }
}

/* apply animation */
.tester-badge.flash {
  animation: badgeFlash 380ms ease-out;
}