@import url('https://fonts.cdnfonts.com/css/mozilla-headline');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  margin: 0;
  height: 100vh;
  background: #0a0a16;
  background: url("background.jpg") center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #e0e6e8;
  font-family: 'Mozilla Headline', Arial, sans-serif;
  text-align: center;
  overflow: hidden;
  position: relative;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 10px #ddff00,
      0 0 20px #c5cc66,
      0 0 30px #9ba340;
  }
  50% {
    text-shadow:
      0 0 15px #fbff00,
      0 0 25px #9ba340,
      0 0 35px #cacc66;
  }
}

h2 {
  font-size: 3.5rem;
  font-weight: 900;
  animation: glowPulse 3s ease-in-out infinite;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 8px;
  line-height: 1.2;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.start-prompt {
  position: relative;
  color: #ffeb3b;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 25px 20px;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(-50vw + 50%);
  background: rgba(10, 10, 22, 0.9);
  border: 2px solid #ffd700;
  border-radius: 0;
  border-left: none;
  border-right: none;
  overflow: hidden;
  animation: terminalGlow 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
  margin-top: 30px;
  backdrop-filter: blur(5px);
}

.prompt-text {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, #ffff00, #ffd700, transparent);
  animation: scan 2s linear infinite;
  z-index: 1;
}

.prompt-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: rotateGlow 3s linear infinite;
  z-index: 1;
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(400%);
    opacity: 0;
  }
}

@keyframes terminalGlow {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255, 215, 0, 0.4),
      0 0 30px rgba(255, 215, 0, 0.2),
      inset 0 0 15px rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 215, 0, 0.6),
      0 0 50px rgba(255, 215, 0, 0.3),
      inset 0 0 20px rgba(255, 215, 0, 0.2);
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.title-container {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.main-title {
  font-size: clamp(1.6rem, 5.2vw, 4rem);
  color: #ffeb3b;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.8;
  animation: subtitlePulse 3s ease-in-out infinite;
  text-shadow: none;
  font-weight: 700;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

@keyframes subtitlePulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.title-decoration {
  position: absolute;
  width: 70vw;
  height: 8px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  animation: linePulse 3s ease-in-out infinite;
}

.title-decoration::before,
.title-decoration::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 8px solid #ffd700;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  animation: diamondPulse 2s ease-in-out infinite;
}

.title-decoration::before {
  left: 0;
}

.title-decoration::after {
  right: 0;
}

@keyframes linePulse {
  0%, 100% {
    opacity: 0.4;
    width: 70vw;
  }
  50% {
    opacity: 1;
    width: 74vw;
  }
}

@keyframes diamondPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(-50%) rotate(45deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) rotate(45deg) scale(1.2);
    box-shadow: 0 0 10px #ffd700;
  }
}

/* Selector Menu - POSITIONED BELOW START PROMPT */
.selector-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
  margin-top: 40px;
  width: 100%;
  align-items: center;
}

.menu-item {
  color: gold;
  font-family: 'Mozilla Headline', Arial, sans-serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 12px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.menu-item:hover {
  opacity: 1;
  text-shadow: 0 0 15px rgba(255, 215, 0, 1);
  transform: scale(1.05);
}

.menu-item:hover::before {
  left: 100%;
}

/* Warp Effect */
#warpCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.warp-active {
  opacity: 1 !important;
}

.flashbang {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.flashbang-active {
  opacity: 0.95;
}

.warping .content{transform:scale(1.35);filter:blur(3px);transition:transform 3s cubic-bezier(.6,0,1,1),filter 3s,opacity 1.6s ease-in;}
.warping .content,
.warping #particleCanvas,
.warping .selector-menu {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Credits Modal */
.credits-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.credits-modal.hidden {
  display: none;
}

.credits-content {
  background: linear-gradient(135deg, #0a0a16, #1a1a2e);
  border: 3px solid #ffd700;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
  position: relative;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.credits-header h2 {
  color: #ffeb3b;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #ffeb3b;
  animation: none;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.creator-banner {
  background: linear-gradient(45deg, #ff6b00, #ffeb3b);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.creator-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.creator-banner:hover::before {
  left: 100%;
}

.creator-title {
  display: block;
  font-size: 0.9rem;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.creator-name {
  display: block;
  font-size: 1.5rem;
  color: #000;
  font-weight: 900;
  margin-top: 5px;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.credits-body h3 {
  color: #87ceeb;
  font-size: 1.3rem;
  margin: 25px 0 15px;
  border-bottom: 2px solid #87ceeb;
  padding-bottom: 5px;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.tester-list {
  list-style: none;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.tester-list li {
  color: #e0e6e8;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  font-size: 1rem;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.tester-list li:last-child {
  border-bottom: none;
}

.more-testers {
  color: #cacc66;
  font-style: italic;
  margin-top: 15px;
  font-size: 0.9rem;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.credits-close {
  margin-top: 25px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Mozilla Headline', Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.credits-close:hover {
  background: linear-gradient(135deg, #ffeb3b, #fff176);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

/* Settings Panel */
.settings-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2001;
  display: none;
}

.settings-backdrop.active {
  display: block;
}

.settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 22, 0.98);
  padding: 30px;
  border: 3px solid #ffd700;
  border-radius: 15px;
  z-index: 2002;
  backdrop-filter: blur(10px);
  min-width: 350px;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  font-family: 'Mozilla Headline', Arial, sans-serif;
  display: none;
}

.settings-panel.active {
  display: block;
  animation: settingsSlideIn 0.3s ease-out;
}

@keyframes settingsSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.settings-panel h3 {
  color: #ffd700;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.settings-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 10px 0;
  color: #e0e6e8;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.settings-option:last-child {
  border-bottom: none;
}

.settings-option span {
  color: #e0e6e8;
  font-weight: 500;
  font-family: 'Mozilla Headline', Arial, sans-serif;
}

.settings-toggle {
  width: 60px;
  height: 30px;
  background: #333;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #555;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-toggle:hover {
  border-color: #777;
}

.settings-toggle.active {
  background: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.toggle-slider {
  position: absolute;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.settings-toggle.active .toggle-slider {
  transform: translateX(30px);
  background: linear-gradient(135deg, #ffffff, #e8ffe8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.settings-close-btn {
  margin-top: 25px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  font-family: 'Mozilla Headline', Arial, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.settings-close-btn:hover {
  background: linear-gradient(135deg, #ffeb3b, #fff176);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.settings-close-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-height: 700px) {
  .selector-menu {
    margin-top: 25px;
    gap: 10px;
  }
  
  .menu-item {
    padding: 10px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .selector-menu {
    margin-top: 30px;
  }
  
  .menu-item {
    font-size: 1.1rem;
    padding: 10px 25px;
    min-width: 180px;
  }
  
  .main-title {
    font-size: 3rem;
  }
  
  .start-prompt {
    font-size: 1.2rem;
    padding: 20px 15px;
  }
  
  .settings-panel {
    min-width: 280px;
    padding: 20px;
    margin: 20px;
  }
}
/* part 5: credits rebuild */
.cr2{max-width:560px;text-align:center;background:linear-gradient(180deg,rgba(10,12,26,.96),rgba(6,8,18,.94))!important;border:0!important;border-top:2px solid #ffd56a!important;box-shadow:0 0 80px rgba(255,200,90,.14),0 0 0 1px rgba(255,255,255,.06)!important;padding:34px 40px!important;animation:crIn .6s ease-out}
.cr2 .cr-eyebrow{font-size:.62rem;letter-spacing:.6em;color:#8b97ab}.cr2 h2{margin:8px 0 12px;font-size:2rem;letter-spacing:.35em;color:#ffd56a;text-shadow:0 0 24px rgba(255,190,70,.5)}
.cr2 .cr-line{height:1px;margin:0 auto 16px;width:60%;background:linear-gradient(90deg,transparent,#ffd56a,transparent)}
.cr2 .creator-banner{display:flex;flex-direction:column;gap:4px}.cr2 .creator-title{font-size:.6rem;letter-spacing:.5em;color:#8b97ab}.cr2 .creator-name{font-size:1.5rem;letter-spacing:.2em;color:#fff}
.cr2 .cr-dev{margin:12px 0 0;font-size:.74rem;letter-spacing:.12em;color:#9fb0c6}
.cr-special{margin:20px 0 6px;padding:16px;background:radial-gradient(ellipse at center,rgba(111,233,255,.14),transparent 70%);border-top:1px solid rgba(111,233,255,.35);border-bottom:1px solid rgba(111,233,255,.35);animation:crIn .8s .25s both}
.cr-special span{display:block;font-size:.6rem;letter-spacing:.5em;color:#6fe9ff}.cr-special b{display:block;margin:6px 0;font-size:1.6rem;letter-spacing:.22em;color:#fff;text-shadow:0 0 18px rgba(111,233,255,.6)}.cr-special small{font-size:.72rem;color:#b9c6d8}
.cr2 .tester-list li{opacity:0;animation:crIn .6s both}.cr2 .tester-list li:nth-child(n){animation-delay:.5s}.cr2 .tester-list li.hi{color:#ffd56a;letter-spacing:.2em}
@keyframes crIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.cr2{max-height:92vh;overflow-y:auto}.cr2 h2{font-size:1.45rem!important;letter-spacing:.3em!important;white-space:nowrap}
.cr2 .creator-banner{background:none!important;box-shadow:none!important;border:0!important;padding:0!important}
.cr2 .creator-title{color:#9fb0c6!important}.cr2 .credits-body h3{font-size:.72rem;letter-spacing:.5em;color:#8b97ab;border:0;margin:22px 0 8px}
.cr2 .tester-list li{font-size:.95rem}
