/* ===================================
    SECRET TERMINAL EASTER EGG STYLES
   =================================== */

/* Terminal Container - Hidden by default */
#secret-terminal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90%;
  max-width: 800px;
  height: 600px;
  background: #0a0e27;
  border: 2px solid #00ff41;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 255, 65, 0.3),
    inset 0 0 100px rgba(0, 255, 65, 0.05);
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

#secret-terminal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Terminal Header */
.terminal-header {
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  padding: 12px 20px;
  border-bottom: 1px solid #00ff41;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
}

.terminal-title {
  color: #00ff41;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.terminal-btn.close {
  background: #ff5f56;
  box-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
}

.terminal-btn.minimize {
  background: #ffbd2e;
  box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.terminal-btn.maximize {
  background: #27c93f;
  box-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
}

.terminal-btn:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

/* Terminal Body */
.terminal-body {
  padding: 20px;
  height: calc(100% - 100px);
  overflow-y: auto;
  background: rgba(10, 14, 39, 0.95);
  position: relative;
}

/* Scanline effect */
.terminal-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 50%, rgba(0, 255, 65, 0.03) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

/* Terminal Output */
.terminal-output {
  color: #00ff41;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.terminal-line {
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Command prompt */
.terminal-prompt {
  color: #00ff41;
  font-weight: bold;
}

.terminal-command {
  color: #00d9ff;
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

/* Different message types */
.terminal-success {
  color: #00ff41;
}

.terminal-error {
  color: #ff4757;
  text-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
}

.terminal-warning {
  color: #ffa502;
  text-shadow: 0 0 5px rgba(255, 165, 2, 0.5);
}

.terminal-info {
  color: #00d9ff;
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

/* ASCII Art */
.ascii-art {
  color: #00ff41;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  margin: 20px 0;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #00ff41;
  margin-left: 4px;
  animation: blink 1s infinite;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Terminal Input Area */
.terminal-input-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: rgba(26, 31, 58, 0.95);
  border-top: 1px solid #00ff41;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-input-prompt {
  color: #00ff41;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00d9ff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

#terminal-input::placeholder {
  color: rgba(0, 217, 255, 0.3);
}

/* Backdrop overlay */
.terminal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.terminal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Glitch effect for special messages */
.glitch {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* Matrix rain effect background */
.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  z-index: -1;
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: rgba(0, 255, 65, 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.3);
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.5);
}

/* Achievement Badge */
.achievement-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid #00ff41;
  border-radius: 4px;
  margin: 10px 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.8);
  }
}

/* Link styling in terminal */
.terminal-link {
  color: #00d9ff;
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.3s;
}

.terminal-link:hover {
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Code block in terminal */
.terminal-code {
  background: rgba(0, 255, 65, 0.1);
  border-left: 3px solid #00ff41;
  padding: 10px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  color: #00d9ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #secret-terminal {
    width: 95%;
    height: 80vh;
  }

  .terminal-output {
    font-size: 12px;
  }

  .ascii-art {
    font-size: 8px;
  }

  #terminal-input {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #secret-terminal {
    width: 98%;
    height: 90vh;
  }

  .terminal-output {
    font-size: 11px;
  }

  .terminal-title {
    font-size: 12px;
  }
}

/* ===================================
   ENHANCED KONAMI HINT NOTIFICATION - FIXED MOBILE
   =================================== */

.konami-hint-notification {
  position: fixed;
  left: 50%;
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  color: #00ff41;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.3), 0 0 0 1px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  max-width: 320px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  backdrop-filter: blur(10px);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* Desktop positioning - top center */
@media (min-width: 769px) {
  .konami-hint-notification {
    top: 100px;
    transform: translateX(-50%) translateY(-20px);
  }

  .konami-hint-notification.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile positioning - bottom center, above buttons */
@media (max-width: 768px) {
  .konami-hint-notification {
    bottom: 100px; /* Positioned above the bottom buttons */
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    max-width: 280px;
    width: auto;
    padding: 12px 16px;
    margin: 0;
  }

  .konami-hint-notification.show {
    transform: translateX(-50%) translateY(0);
  }

  .konami-hint-notification span {
    font-size: 12px;
    line-height: 1.3;
  }

  .konami-hint-notification small {
    font-size: 10px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .konami-hint-notification {
    bottom: 90px; /* Even higher to ensure no overlap */
    max-width: 260px;
    padding: 10px 14px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .konami-hint-notification {
    bottom: 85px;
    max-width: 240px;
    padding: 8px 12px;
  }
}

.konami-hint-notification.show {
  opacity: 1;
}

.konami-hint-notification i {
  font-size: 16px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.6));
  color: #00ff41;
}

.konami-hint-notification span {
  color: #00ff41;
  line-height: 1.3;
}

.konami-hint-notification small {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 500;
  color: #00d9ff;
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
  margin-top: 1px;
}

/* Simple progress indicator */
.konami-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
  color: #00d9ff;
}

.progress-bar {
  width: 50px;
  height: 3px;
  background: rgba(0, 255, 65, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #00d9ff);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
}

/* Mobile progress adjustments */
@media (max-width: 768px) {
  .konami-progress {
    gap: 5px;
    font-size: 9px;
  }

  .progress-bar {
    width: 40px;
  }
}

/* Different states based on click progress */
.konami-hint-notification.level-1 {
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  border-color: rgba(0, 255, 65, 0.3);
}

.konami-hint-notification.level-2 {
  background: linear-gradient(135deg, #1a2f3a 0%, #0a1e27 100%);
  border-color: rgba(0, 217, 255, 0.4);
}

.konami-hint-notification.level-3 {
  background: linear-gradient(135deg, #2a1f3a 0%, #1a0e27 100%);
  border-color: rgba(255, 107, 107, 0.4);
}

.konami-hint-notification.level-4 {
  background: linear-gradient(135deg, #3a1f2a 0%, #270e1a 100%);
  border-color: rgba(255, 165, 2, 0.4);
}

.konami-hint-notification.level-5 {
  background: linear-gradient(135deg, #2a3a1f 0%, #1a270e 100%);
  border-color: rgba(0, 255, 65, 0.6);
}

/* Close button for manual dismissal */
.konami-hint-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: rgba(0, 255, 65, 0.6);
  font-size: 12px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
}

.konami-hint-close:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

/* Mobile close button */
@media (max-width: 768px) {
  .konami-hint-close {
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    font-size: 10px;
    min-width: 20px; /* Touch target */
    min-height: 20px;
  }
}

/* Ensure it doesn't conflict with mobile buttons */
@media (max-width: 768px) {
  /* Make sure it's above the clue button but doesn't overlap */
  .secret-clue.revealed ~ .konami-hint-notification {
    z-index: 10002;
    bottom: 100px; /* Adjust based on clue button height */
  }

  /* Make sure it's above back-to-top button */
  .back-to-top ~ .konami-hint-notification {
    z-index: 10002;
  }

  /* If both buttons exist, position even higher */
  .secret-clue.revealed ~ .back-to-top ~ .konami-hint-notification {
    bottom: 120px;
  }
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
  .konami-hint-notification {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* Dark mode compatibility */
body.dark-mode .konami-hint-notification {
  background: linear-gradient(135deg, #050814 0%, #0a0e1a 100%);
  border-color: rgba(0, 255, 65, 0.4);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .konami-hint-notification {
    transition: opacity 0.3s ease;
  }
}

/* Sequence reset notification */
.sequence-reset-notification {
  position: fixed;
  top: 140px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(149, 165, 166, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Konami reminder notification */
.konami-reminder-notification {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 11px 19px;
  border-radius: 22px;
  box-shadow: 0 8px 35px rgba(52, 152, 219, 0.5);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 12px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================================
   Easter egg clue indicator - Desktop vs Mobile Behavior
   =================================== */

/* Base styles for clue */
.secret-clue {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0) rotate(0deg);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: float 3s ease-in-out infinite;
  animation-play-state: paused;
}

.secret-clue i {
  color: white;
  font-size: 18px;
}

/* Revealed state - base */
.secret-clue.revealed {
  opacity: 0.7;
  visibility: visible;
  transform: scale(1) rotate(360deg);
  animation-play-state: running;
}

/* DESKTOP: Show clue but make it NOT clickable */
@media (min-width: 769px) {
  .secret-clue.revealed {
    cursor: default !important; /* Not clickable */
  }

  /* Remove all hover effects except tooltip */
  .secret-clue.revealed:hover {
    opacity: 0.7;
    transform: scale(1) rotate(360deg);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  }

  /* Show tooltip on hover */
  .secret-clue.revealed:hover::before {
    opacity: 1;
  }
}

/* MOBILE: Make clue clickable */
@media (max-width: 768px) {
  .secret-clue.revealed {
    cursor: pointer !important; /* Make it clickable */
  }

  .secret-clue.revealed:active {
    transform: scale(0.9) rotate(360deg); /* Tap feedback */
  }

  /* Show tooltip on active (tap) */
  .secret-clue.revealed:active::before {
    opacity: 1;
  }
}

/* Float animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Tooltip - Desktop (show but not interactive) */
.secret-clue.revealed::before {
  content: '...';
  position: absolute;
  bottom: 0;
  left: 60px;
  background: rgba(10, 14, 39, 0.95);
  color: #00ff41;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #00ff41;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Show tooltip on desktop hover */
@media (min-width: 769px) {
  .secret-clue.revealed:hover::before {
    opacity: 1;
  }
}

/* Mobile tooltip */
@media (max-width: 768px) {
  .secret-clue.revealed::before {
    content: '✨ Tap for secret terminal';
    bottom: 60px;
    left: 0;
    font-size: 11px;
    padding: 6px 10px;
  }

  .secret-clue.revealed:active::before {
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .secret-clue {
    width: 50px;
    height: 50px;
    bottom: 25px;
    left: 20px;
  }

  .secret-clue i {
    font-size: 22px;
  }

  .secret-unlocked-notification {
    font-size: 13px;
    padding: 12px 20px;
  }
}

/* Add tap-friendly behavior for mobile */
@media (hover: none) and (pointer: coarse) {
  .secret-clue {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* Profile image remains clickable on all devices */
.profile-img {
  cursor: pointer !important;
  transition: transform 0.15s ease;
}

.profile-img:active {
  transform: scale(0.95);
}

/* ===================================
   KONAMI-FOCUSED ANIMATIONS
   =================================== */

/* Directional arrow animations */
@keyframes arrowUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes arrowDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes arrowLeft {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-8px);
  }
}

@keyframes arrowRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

@keyframes floatDirection {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(
        calc(var(--dir-x, 0) * 120px),
        calc(var(--dir-y, 0) * 120px - 60px)
      )
      scale(0) rotate(180deg);
    opacity: 0;
  }
}

@keyframes konamiReveal {
  0% {
    transform: scale(0.5) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 0.7;
  }
}

@keyframes konamiCelebration {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.4) rotate(90deg);
  }
  50% {
    transform: scale(1.1) rotate(180deg);
  }
  75% {
    transform: scale(1.3) rotate(270deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

@keyframes konamiExplode {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(2) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5) rotate(360deg);
    opacity: 0;
  }
}

.konami-master-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: #0a0e27;
  color: #e0e0e0;
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.3), 0 10px 40px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 10004;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 460px;
  min-width: 380px;
  border: 2px solid rgba(0, 255, 65, 0.4);
  overflow: hidden;
  cursor: pointer;
}

.konami-master-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 50%, rgba(0, 255, 65, 0.02) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

.konami-master-notification > * {
  position: relative;
  z-index: 2;
}

.konami-master-notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.konami-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.konami-badge i {
  font-size: 24px;
  color: #00ff41;
  filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
}

.konami-master-notification p {
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
}

.konami-master-notification p strong {
  color: #00ff41;
  font-weight: 600;
}

.konami-sequence {
  background: rgba(0, 0, 0, 0.4);
  padding: 18px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.konami-sequence code {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
  display: block;
}

.backup-method {
  margin: 18px 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.backup-method small {
  color: #a0a0a0;
  font-weight: 500;
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}

.backup-method code {
  background: rgba(0, 255, 65, 0.15);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #00ff41;
  letter-spacing: 1px;
  display: inline-block;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.achievement-unlocked {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  position: relative;
}

/* Remove any pseudo-elements that were cutting the line */
.achievement-unlocked::before,
.achievement-unlocked::after {
  display: none;
}

.achievement-unlocked small {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

@media (max-width: 480px) {
  .konami-master-notification {
    min-width: 320px;
    max-width: 90%;
    padding: 25px 20px;
  }

  .konami-badge {
    font-size: 16px;
  }

  .konami-sequence code {
    font-size: 16px;
    letter-spacing: 4px;
  }
}

/* Celebration particles */
.celebration-particle {
  position: fixed;
  pointer-events: none;
  z-index: 10003;
  font-size: 20px;
  animation: celebrateFloat 2s ease-out forwards;
}

@keyframes celebrateFloat {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(var(--particle-x, 0), var(--particle-y, -100px))
      scale(1) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(
        calc(var(--particle-x, 0) * 1.5),
        calc(var(--particle-y, -100px) * 1.5)
      )
      scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced konami explosion */
@keyframes konamiExplode {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(2.5) rotate(180deg);
    opacity: 0.8;
    filter: hue-rotate(180deg);
  }
  100% {
    transform: scale(3) rotate(360deg);
    opacity: 0;
    filter: hue-rotate(360deg);
  }
}

/* Confetti effect */
.confetti {
  position: fixed;
  width: 10px;
  height: 20px;
  background: var(--confetti-color, #ff6b6b);
  top: -20px;
  opacity: 0;
  animation: confettiFall 3s ease-in forwards;
  z-index: 10002;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Enhanced master celebration animation */
@keyframes masterCelebration {
  0% {
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(0.95) rotate(-3deg);
  }
  60% {
    transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
  }
  80% {
    transform: translate(-50%, -50%) scale(0.98) rotate(-1deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.konami-master-notification.show {
  animation: masterCelebration 1s ease-out,
    masterPulse 2s ease-in-out 1s infinite;
}

/* ===================================
   ADDITIONAL KONAMI ANIMATIONS FOR 10-CLICK SYSTEM
   =================================== */

@keyframes bButton {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 107, 107, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
  }
}

@keyframes aButton {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 rgba(78, 205, 196, 0.4);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.9);
  }
}

/* ===================================
   CORRECTED TOOLTIP PROGRESSION FOR 10-CLICK SYSTEM
   =================================== */

/* Level 0-2: No clue shown yet */
.secret-clue[data-hint-level='0']::before {
  content: '...' !important;
}

/* Level 1: Initial discovery (click 3-4) */
.secret-clue[data-hint-level='1']::before {
  content: 'You found something! Keep exploring...' !important;
}

/* Level 2: Direction hints (click 5-6) */
.secret-clue[data-hint-level='2']::before {
  content: 'Follow the arrow patterns... 🧭' !important;
}

/* Level 3: Konami sequence start (click 7-8) */
.secret-clue[data-hint-level='3']::before {
  content: 'Up, up, down, down...' !important;
}

/* Level 4: Full arrow sequence (click 9) */
.secret-clue[data-hint-level='4']::before {
  content: '↑↑↓↓←→←→' !important;
}

/* Level 5: Almost complete (click 10) */
.secret-clue[data-hint-level='5']::before {
  content: '↑↑↓↓←→←→BA - Complete the sequence!' !important;
}

/* Level 6: Master level with keyboard shortcut */
.secret-clue[data-hint-level='6']::before {
  content: 'Konami Code: ↑↑↓↓←→←→BA (or Ctrl+Shift+B)' !important;
}

/* ===================================
   SPAM PROTECTION STYLES
   =================================== */

.spam-warning-notification {
  position: fixed;
  top: 180px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(243, 156, 18, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 13px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.spam-warning-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Cooldown state for profile image */
.profile-img.cooldown {
  animation: cooldownPulse 0.5s ease-in-out;
  filter: grayscale(0.3) brightness(0.8);
  cursor: not-allowed !important;
}

@keyframes cooldownPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
}

/* Rate limiting feedback */
.profile-img:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ===================================
   ACCESS GRANTED NOTIFICATION - FIXED TEXT WRAPPING
   =================================== */

.access-granted-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  color: #00ff41;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 255, 65, 0.5), 0 0 0 2px rgba(0, 255, 65, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  z-index: 10010;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 255, 65, 0.4);
  backdrop-filter: blur(10px);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  max-width: 320px;
  width: auto;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.access-granted-notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.access-granted-notification i {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
  color: #00ff41;
  flex-shrink: 0;
  margin-top: -1px; /* Better vertical alignment */
}

.access-granted-notification span {
  color: #00ff41;
  line-height: 1.4;
  flex: 1;
  min-width: 0; /* Allow text to shrink properly */
}

/* Mobile positioning */
@media (max-width: 768px) {
  .access-granted-notification {
    top: 50%;
    left: 50%;
    padding: 18px 22px;
    font-size: 15px;
    max-width: 280px;
    width: calc(100% - 40px);
    gap: 10px;
  }

  .access-granted-notification i {
    font-size: 22px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .access-granted-notification {
    padding: 16px 20px;
    font-size: 14px;
    max-width: 260px;
    gap: 8px;
  }

  .access-granted-notification i {
    font-size: 20px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .access-granted-notification {
    padding: 14px 18px;
    font-size: 13px;
    max-width: 240px;
    gap: 8px;
  }

  .access-granted-notification i {
    font-size: 18px;
  }
}

/* Mobile Secret Prompt Styles - COMPACT VERSION */
.mobile-secret-overlay,
.mobile-cryptic-overlay,
.mobile-special-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow-y: auto;
}

.mobile-secret-container,
.mobile-cryptic-container,
.mobile-special-container {
  background: #0a0e27;
  border: 2px solid #00ff41;
  border-radius: 16px;
  padding: 20px 18px;
  max-width: 380px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: white;
  box-shadow: 0 0 60px rgba(0, 255, 65, 0.4);
  text-align: center;
}

.mobile-secret-header,
.mobile-cryptic-header,
.mobile-special-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  padding-bottom: 12px;
}

.mobile-secret-header h3,
.mobile-cryptic-header h3,
.mobile-special-header h3 {
  color: #00ff41;
  margin: 0;
  font-size: 18px;
}

.mobile-secret-close,
.mobile-cryptic-close,
.mobile-special-close {
  background: none;
  border: none;
  color: #00ff41;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.secret-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.secret-message,
.special-message {
  font-size: 14px;
  color: #00ff41;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.4;
}

.secret-hint {
  font-size: 13px;
  color: #b8b8b8;
  margin-bottom: 15px;
}

.secret-progress {
  background: rgba(0, 0, 0, 0.6);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 65, 0.2);
  margin-bottom: 15px;
}

.progress-hint .hint-text {
  color: #feca57;
  font-size: 12px;
}

.mobile-secret-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.secret-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.try-sequence {
  background: linear-gradient(135deg, #00ff41 0%, #00d9ff 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 255, 65, 0.4);
  font-weight: 700;
}

.exit-secret {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.secret-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.secret-footer small {
  color: #feca57;
  font-size: 11px;
  display: block;
}

/* Special Input Screen - COMPACT */
.sequence-tracker {
  background: rgba(0, 0, 0, 0.6);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 65, 0.2);
  margin-bottom: 15px;
}

.tracker-display {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tracker-placeholder {
  color: #666;
  font-style: italic;
  font-size: 12px;
}

.tracked-key {
  font-size: 16px;
  font-weight: bold;
  color: #00ff41;
  padding: 6px 10px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 5px;
  min-width: 30px;
  display: inline-block;
  text-align: center;
}

.tracker-actions {
  display: flex;
  gap: 8px;
}

.tracker-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

#clear-tracker {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.special-input-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.special-btn {
  padding: 14px 8px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.1s;
}

.direction-btn {
  background: rgba(0, 255, 65, 0.1);
  color: #00ff41;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.letter-btn {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.special-hint {
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(0, 255, 65, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.special-hint small {
  color: #00ff41;
  font-size: 11px;
  font-weight: 500;
}

.special-back {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.back-btn {
  background: rgba(149, 165, 166, 0.1) !important;
  color: #95a5a6 !important;
  border: 1px solid rgba(149, 165, 166, 0.3) !important;
  width: 100%;
  padding: 10px !important;
  font-size: 13px !important;
}

/* Sequence feedback messages - COMPACT */
.sequence-feedback {
  text-align: center;
  padding: 8px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

.sequence-feedback.error {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

/* Button press animation */
.special-btn:active {
  transform: scale(0.9);
}

/* Responsive - Extra small screens */
@media (max-height: 700px) {
  .mobile-special-container {
    padding: 15px;
  }

  .mobile-special-header h3 {
    font-size: 16px;
  }

  .special-message {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .sequence-tracker {
    padding: 10px;
    margin-bottom: 12px;
  }

  .tracker-display {
    min-height: 40px;
  }

  .special-input-buttons {
    gap: 6px;
    margin-bottom: 10px;
  }

  .special-btn {
    padding: 12px 6px;
    font-size: 16px;
  }

  .special-hint {
    margin-bottom: 10px;
    padding: 6px;
  }

  .special-back {
    padding-top: 10px;
  }
}

@media (max-width: 360px) {
  .mobile-special-container {
    padding: 15px 12px;
  }

  .special-input-buttons {
    gap: 6px;
  }

  .tracked-key {
    font-size: 14px;
    padding: 5px 8px;
    min-width: 26px;
  }
}

/* ===================================
    DARK MODE COMPATIBILITY
   =================================== */

body.dark-mode #secret-terminal {
  background: #050814;
  border-color: #00ff41;
}

body.dark-mode .terminal-header {
  background: linear-gradient(135deg, #0a0e1a 0%, #050814 100%);
}

body.dark-mode .terminal-body {
  background: rgba(5, 8, 20, 0.98);
}

.special-input-buttons {
  display: grid;
  grid-template-areas:
    '. up .'
    'left center right'
    '. down .'
    'b b a';
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
}

.direction-btn[data-key='ArrowUp'] {
  grid-area: up;
}
.direction-btn[data-key='ArrowLeft'] {
  grid-area: left;
}
.direction-btn[data-key='ArrowRight'] {
  grid-area: right;
}
.direction-btn[data-key='ArrowDown'] {
  grid-area: down;
}
.letter-btn[data-key='b'] {
  grid-area: b;
}
.letter-btn[data-key='a'] {
  grid-area: a;
}

.special-input-buttons::before {
  content: '●';
  grid-area: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  animation: matrixPulse 2s infinite;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
  opacity: 0.7;
}

@keyframes matrixPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Mobile Terminal Banner - Clean & Modern */
.mobile-terminal-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 10px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.1) 0%,
    rgba(0, 217, 255, 0.1) 100%
  );
  border: 2px solid rgba(0, 255, 65, 0.3);
  border-radius: 8px;
  margin: 10px 0 20px 0;
  animation: mobileBannerGlow 2s ease-in-out infinite;
}

.mobile-banner-icon {
  font-size: 24px;
  animation: iconPulse 1.5s ease-in-out infinite;
}

.mobile-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mobile-banner-text strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #00ff41 0%, #00d9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  font-family: 'Courier New', monospace;
}

.mobile-banner-text span {
  font-size: 11px;
  color: #00ff41;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
  font-weight: 600;
}

/* Animations */
@keyframes mobileBannerGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3),
      inset 0 0 10px rgba(0, 255, 65, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5),
      inset 0 0 15px rgba(0, 255, 65, 0.2);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Mobile Logo Class */
.terminal-line.mobile-logo {
  margin: 0;
  padding: 0;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
  #terminal-output {
    padding: 10px;
  }

  .terminal-line {
    font-size: 13px;
    line-height: 1.5;
  }

  .mobile-terminal-banner {
    margin: 5px 0 15px 0;
  }

  .mobile-banner-text strong {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .mobile-banner-icon {
    font-size: 20px;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .mobile-banner-text strong {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .mobile-banner-text span {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .mobile-banner-icon {
    font-size: 18px;
  }
}

/* ===================================
   ENHANCED MOBILE SECRET OVERLAYS
   =================================== */

.mobile-secret-overlay,
.mobile-special-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-secret-overlay.show,
.mobile-special-overlay.show {
  opacity: 1;
}

.mobile-secret-overlay.exit,
.mobile-special-overlay.exit {
  opacity: 0;
}

/* ===================================
   ENHANCED CONTAINERS
   =================================== */

.mobile-secret-container,
.mobile-special-container {
  background: linear-gradient(135deg, #0a0e27 0%, #050a1a 100%);
  border: 2px solid #00ff41;
  border-radius: 20px;
  padding: 0;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  color: white;
  box-shadow: 0 0 80px rgba(0, 255, 65, 0.4), 0 0 0 1px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-secret-container.show,
.mobile-special-container.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ===================================
   ENHANCED HEADERS
   =================================== */

.mobile-secret-header,
.mobile-special-header {
  background: linear-gradient(135deg, #1a1f3a 0%, #0d1224 100%);
  padding: 20px 60px 20px 20px;
  border-bottom: 2px solid rgba(0, 255, 65, 0.3);
  position: relative;
  overflow: hidden;
}

.header-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 65, 0.1) 50%,
    transparent 100%
  );
  animation: headerSweep 3s ease-in-out infinite;
}

@keyframes headerSweep {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.mobile-secret-header h3,
.mobile-special-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  max-width: calc(100% - 50px);
  line-height: 1.3;
  flex-wrap: wrap;
}

.lock-icon {
  font-size: 20px;
  animation: iconFloat 2s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

.thunder-icon {
  font-size: 20px;
  animation: iconFloat 2s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}

.mobile-secret-close,
.mobile-special-close {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  flex-shrink: 0;
}

.mobile-secret-close:active,
.mobile-special-close:active {
  transform: translateY(-50%) scale(0.9) rotate(90deg);
  background: rgba(255, 71, 87, 0.2);
}

@media (max-width: 360px) {
  .mobile-secret-header,
  .mobile-special-header {
    padding: 18px 55px 18px 18px;
  }

  .mobile-secret-header h3,
  .mobile-special-header h3 {
    font-size: 15px;
    gap: 10px;
  }

  .lock-icon,
  .thunder-icon {
    font-size: 18px;
  }

  .mobile-secret-close,
  .mobile-special-close {
    width: 32px;
    height: 32px;
    font-size: 22px;
    right: 12px;
  }
}

@media (max-height: 700px) {
  .mobile-secret-header,
  .mobile-special-header {
    padding: 16px 55px 16px 16px;
  }

  .mobile-secret-header h3,
  .mobile-special-header h3 {
    font-size: 15px;
  }
}

/* ===================================
   ENHANCED CONTENT AREA
   =================================== */

.mobile-secret-content,
.mobile-special-content {
  padding: 25px 20px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

/* Secret Icon Animation */
.secret-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-glow-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 255, 65, 0.3);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.secret-icon {
  font-size: 50px;
  animation: iconBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.4));
  position: relative;
  z-index: 2;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

/* Message Container */
.message-container {
  margin-bottom: 25px;
  text-align: center;
}

.secret-message {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-highlight {
  color: #b8b8b8;
  font-weight: 500;
}

.message-emphasis {
  color: #00ff41;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
  letter-spacing: 1px;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
  }
  50% {
    text-shadow: 0 0 25px rgba(0, 255, 65, 0.9);
  }
}

.secret-hint {
  font-size: 13px;
  color: #00d9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.9;
}

.hint-icon {
  font-size: 16px;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Progress Area */
.secret-progress {
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 65, 0.2);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.secret-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 65, 0.05) 50%,
    transparent 100%
  );
  animation: progressSweep 3s ease-in-out infinite;
}

@keyframes progressSweep {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.progress-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hint-icon-small {
  font-size: 18px;
}

.hint-text {
  color: #feca57;
  font-size: 13px;
  font-weight: 600;
}

.mystery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #00ff41;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* ===================================
   ENHANCED BUTTONS
   =================================== */

.mobile-secret-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.secret-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

/* ===================================
   PURPLE Gradient Button - FORCED THEME
   Add this to the VERY END of your CSS file
   =================================== */

.gradient-btn {
  position: relative;
  background: linear-gradient(135deg, #1a0b2b 0%, #2d1b4a 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  overflow: hidden;
  padding: 12px 30px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  color: white !important;
  min-height: 50px;
}

.gradient-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(168, 85, 247, 0.15) 0%,
    transparent 70%
  ) !important;
  opacity: 0;
  transition: opacity 0.3s ease !important;
}

.gradient-btn:hover::before {
  opacity: 0.8 !important;
}

.gradient-btn:active::before {
  opacity: 1 !important;
}

.gradient-btn .btn-icon {
  font-size: 22px;
  color: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
  z-index: 2;
}

.gradient-btn .btn-text {
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 2;
}

/* Hover effects */
.gradient-btn:hover {
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5) !important;
  border-color: rgba(168, 85, 247, 0.8) !important;
  background: linear-gradient(135deg, #2d1b4a 0%, #1a0b2b 100%) !important;
  transform: translateY(-2px);
}

.gradient-btn:hover .btn-text,
.gradient-btn:hover .btn-icon {
  color: #a855f7 !important;
  text-shadow: 0 2px 8px rgba(168, 85, 247, 0.4) !important;
}

/* Active state */
.gradient-btn:active {
  box-shadow: 0 3px 20px rgba(168, 85, 247, 0.8),
    0 0 0 2px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(168, 85, 247, 0.3) !important;
  transform: scale(0.97) !important;
  background: linear-gradient(135deg, #150923 0%, #26173d 100%) !important;
}

.gradient-btn:active .btn-text,
.gradient-btn:active .btn-icon {
  color: #c084fc !important;
  text-shadow: 0 2px 12px rgba(168, 85, 247, 0.6) !important;
}

/* Remove any existing green styles that might be overriding */
.gradient-btn:not(.gradient-btn):not(.gradient-btn):not(.gradient-btn) {
  background: linear-gradient(135deg, #1a0b2b 0%, #2d1b4a 100%) !important;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.exit-secret {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.secret-btn:active {
  transform: scale(0.95);
}

.btn-icon {
  font-size: 18px;
  font-weight: 700;
}

/* Footer */
.secret-footer {
  padding-top: 20px;
  position: relative;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 65, 0.3) 50%,
    transparent 100%
  );
  margin-bottom: 15px;
}

.secret-footer small {
  color: #feca57;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-icon {
  font-size: 14px;
  animation: tipPulse 2s ease-in-out infinite;
}

@keyframes tipPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ===================================
   KEYBOARD INPUT SCREEN ENHANCEMENTS
   =================================== */

.message-wrapper {
  margin-bottom: 15px;
  text-align: center;
}

.special-message {
  font-size: 14px;
  color: #00ff41;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pulse-icon {
  font-size: 20px;
  animation: targetPulse 1.5s ease-in-out infinite;
}

@keyframes targetPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Sequence Tracker */
.sequence-tracker {
  background: rgba(0, 0, 0, 0.6);
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(0, 255, 65, 0.2);
  margin-bottom: 16px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.tracker-title {
  color: #00ff41;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tracker-count {
  color: #00d9ff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.tracker-count.update {
  transform: scale(1.1);
  background: rgba(0, 217, 255, 0.2);
}

.tracker-display {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.tracker-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.tracked-key {
  font-size: 16px;
  font-weight: 900;
  color: #00ff41;
  padding: 6px 10px;
  background: rgba(0, 255, 65, 0.15);
  border-radius: 8px;
  min-width: 32px;
  display: inline-block;
  text-align: center;
  border: 2px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  animation: keyAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.3s ease;
}

.tracked-key.correct {
  border-color: rgba(0, 255, 65, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.tracked-key.wrong {
  border-color: rgba(255, 71, 87, 0.6);
  color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

@keyframes keyAppear {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.tracker-display.success-sequence .tracked-key {
  animation: successPulse 0.5s ease-in-out;
  border-color: rgba(0, 255, 65, 0.8);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.tracker-display.wrong-sequence {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-10px);
  }
  40%,
  80% {
    transform: translateX(10px);
  }
}

.backspace-btn,
.clear-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backspace-btn {
  background: rgba(255, 165, 2, 0.1);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 2, 0.3);
}

.clear-btn {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.backspace-btn:disabled,
.clear-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

backspace-btn:not(:disabled):active {
  transform: scale(0.9);
  background: rgba(255, 165, 2, 0.2);
}

.clear-btn:not(:disabled):active {
  transform: scale(0.9);
  background: rgba(255, 107, 107, 0.2);
}

.special-input-buttons {
  display: grid;
  grid-template-areas:
    '. up .'
    'left center right'
    '. down .'
    'b b a';
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.direction-btn[data-key='ArrowUp'] {
  grid-area: up;
}
.direction-btn[data-key='ArrowLeft'] {
  grid-area: left;
}
.direction-btn[data-key='ArrowRight'] {
  grid-area: right;
}
.direction-btn[data-key='ArrowDown'] {
  grid-area: down;
}
.letter-btn[data-key='b'] {
  grid-area: b;
}
.letter-btn[data-key='a'] {
  grid-area: a;
}

.special-btn {
  position: relative;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 65, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.special-btn:active .btn-glow {
  opacity: 1;
}

.btn-content {
  position: relative;
  z-index: 2;
  display: block;
}

.direction-btn {
  background: rgba(0, 255, 65, 0.1);
  color: #00ff41;
  border: 2px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 4px 15px rgba(0, 255, 65, 0.2);
}

.letter-btn {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 2px solid rgba(255, 107, 107, 0.3);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.special-btn.pressed {
  transform: scale(0.9);
}

.direction-btn.pressed {
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
  border-color: rgba(0, 255, 65, 0.8);
}

.letter-btn.pressed {
  box-shadow: 0 0 25px rgba(255, 107, 107, 0.6);
  border-color: rgba(255, 107, 107, 0.8);
}

/* Center indicator */
.special-input-buttons::before {
  content: '●';
  grid-area: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #00ff41;
  animation: centerPulse 2s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

@keyframes centerPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    text-shadow: 0 0 30px rgba(0, 255, 65, 1);
  }
}

/* Hint Box */
.special-hint {
  position: relative;
  padding: 10px;
  background: rgba(0, 255, 65, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 65, 0.2);
  text-align: center;
  margin-bottom: 25px;
  overflow: hidden;
}

.hint-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 65, 0.1) 0%,
    transparent 70%
  );
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.special-hint small {
  color: #00ff41;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.hint-icon {
  font-size: 16px;
}

/* Back Button */
.special-back {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.back-btn {
  width: 100%;
  padding: 10px;
  background: rgba(149, 165, 166, 0.1);
  color: #95a5a6;
  border: 1px solid rgba(149, 165, 166, 0.3);
  font-size: 13px;
}

/* Sequence Feedback */
.sequence-feedback {
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  animation: feedbackSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sequence-feedback.error {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.4);
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

@keyframes feedbackSlide {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================================
   BACKGROUND EFFECTS
   =================================== */

/* Matrix Rain */
.matrix-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.1;
  z-index: 0;
}

.matrix-column {
  position: absolute;
  color: #00ff41;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  animation: matrixFall 3s linear infinite;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

@keyframes matrixFall {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Konami Pattern Background */
.konami-pattern-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
  z-index: 0;
}

.konami-symbol {
  position: absolute;
  color: #00ff41;
  font-size: 20px;
  font-weight: 900;
  animation: symbolFloat 4s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

@keyframes symbolFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-height: 700px) {
  .mobile-secret-container,
  .mobile-special-container {
    padding-top: 0;
  }

  .mobile-secret-content,
  .mobile-special-content {
    padding: 20px 18px;
  }

  .mobile-special-content {
    padding: 14px;
  }

  .secret-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .secret-icon {
    font-size: 40px;
  }

  .tracker-display {
    min-height: 40px;
  }

  .special-input-buttons {
    margin-bottom: 12px;
    gap: 6px;
  }

  .special-btn {
    padding: 14px;
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .mobile-secret-container,
  .mobile-special-container {
    max-width: 95%;
  }

  .tracked-key {
    font-size: 15px;
    padding: 5px 8px;
    min-width: 30px;
  }

  .backspace-btn,
  .clear-btn {
    padding: 6px 10px;
    font-size: 16px;
  }

  .special-btn {
    padding: 14px;
    font-size: 20px;
  }
}

.mobile-secret-overlay,
.mobile-cryptic-overlay,
.mobile-special-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
