/* Global styles for jokes component - deployment fix */
.container {
  width: 100vw;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.cyber-frame {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  min-width: 0;
}

.joke-container {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(20, 20, 20, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-image: linear-gradient(
      45deg,
      var(--neon-blue),
      var(--neon-purple),
      var(--neon-cyan)
    )
    1;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  min-height: clamp(120px, 20vh, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(15px);
  transform-style: preserve-3d;
  border-radius: 8px;
  box-shadow:
    inset 0 0 20px rgba(0, 242, 255, 0.2),
    0 0 30px rgba(0, 242, 255, 0.1),
    0 15px 40px rgba(0, 0, 0, 0.6);
  animation: containerPulse 8s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
  -webkit-transform: translateZ(15px);
}

.button-container {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  transform: translateZ(15px);
  transform-style: preserve-3d;
  flex-wrap: wrap;
}

#next {
  font-family: var(--font-press-start);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 255, 255, 0.1) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  color: var(--text-primary);
  border: 2px solid var(--neon-purple);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(0.7rem, 2vw, 1rem);
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 20px rgba(184, 41, 227, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
  animation: buttonFloat 4s ease-in-out infinite;
  will-change: transform, box-shadow, background;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#copy-joke {
  font-family: var(--font-press-start);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(184, 41, 227, 0.1) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  color: var(--text-primary);
  border: 2px solid var(--neon-cyan);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(0.6rem, 1.8vw, 0.9rem);
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 8px rgba(184, 41, 227, 0.1);
  animation: buttonFloat 4s ease-in-out infinite;
  animation-delay: 0.5s;
  will-change: transform, box-shadow, background;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(20, 20, 20, 0.7) 100%
  );
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 4px;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateZ(5px);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow:
    inset 0 0 10px rgba(0, 242, 255, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.3);
  animation: statusFlicker 6s ease-in-out infinite;
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--neon-cyan);
  border-style: solid;
  border-width: 0;
  transform: translateZ(3px);
  animation: cornerGlow 5s ease-in-out infinite alternate;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  animation-delay: 0s;
}

.corner-tr {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  animation-delay: 0.5s;
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
  animation-delay: 1s;
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  animation-delay: 1.5s;
}

.digital-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-background);
  overflow: hidden;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-base);
  overflow: hidden;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.particle {
  position: absolute;
  width: clamp(1px, 0.3vw, 3px);
  height: clamp(1px, 0.3vw, 3px);
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
  box-shadow: 0 0 6px currentColor;
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 0, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(
      circle at center,
      rgba(184, 41, 227, 0.1) 0%,
      transparent 70%
    );
  background-size:
    clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px),
    clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px),
    100% 100%;
  transform: perspective(1000px) rotateX(45deg) translateZ(-200px);
  transform-origin: center top;
  z-index: var(--z-background);
  animation: gridPulse 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
  -webkit-transform: perspective(1000px) rotateX(45deg) translateZ(-200px);
}

#joke {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.6;
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 30px rgba(0, 255, 255, 0.5);
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
  text-align: center;
  padding: var(--space-sm);
  filter: contrast(1.2) brightness(1.1);
  will-change: transform, text-shadow;
  -webkit-transform: translateZ(10px);
}
