/* ==========================================================
   🚨 CERTIFIED BOZO PRANK STYLESHEET 🚨
   High contrast, rich dark aesthetic, dynamic animations & large font
   ========================================================== */

:root {
  --bg-dark: #0a0512;
  --bg-card: rgba(22, 13, 38, 0.85);
  --accent-pink: #ff007f;
  --accent-yellow: #ffe600;
  --accent-cyan: #00f0ff;
  --accent-red: #ff2a2a;
  --accent-purple: #9d4edd;
  --text-white: #ffffff;
  --text-dim: #b8afc8;
  --font-display: 'Anton', 'Outfit', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 0, 127, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0, 240, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.12) 0%, transparent 60%);
  color: var(--text-white);
  font-family: var(--font-body);
  user-select: none;
}

/* ==========================================================
   FLOATING ANIMATION LAYERS (🖕 & 💩)
   ========================================================== */
#floating-stream-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

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

/* Individual floating items */
.floater {
  position: absolute;
  pointer-events: none;
  font-size: 2.5rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
  animation: floatUpAndDrift var(--duration, 8s) cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  will-change: transform, opacity;
}

@keyframes floatUpAndDrift {
  0% {
    transform: translate(var(--startX, 0px), 105vh) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: var(--maxOpacity, 0.9);
  }
  85% {
    opacity: var(--maxOpacity, 0.9);
  }
  100% {
    transform: translate(var(--endX, 0px), -15vh) rotate(var(--rot, 360deg)) scale(var(--scale, 1.2));
    opacity: 0;
  }
}

/* Tumble / Shake modifier */
.tumble-wobble {
  animation: floatUpAndDrift var(--duration, 8s) linear infinite, spinWobble 2s ease-in-out infinite alternate;
}

@keyframes spinWobble {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(25deg); }
}

/* ==========================================================
   TOP TICKER / BREAKING NEWS
   ========================================================== */
.ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: linear-gradient(90deg, #d90429, #ef233c, #d90429);
  color: #fff;
  display: flex;
  align-items: center;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(239, 35, 60, 0.4);
  border-bottom: 2px solid #ffcc00;
  overflow: hidden;
}

.ticker-badge {
  background: #000;
  color: #ffe600;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 4px 0 12px rgba(0,0,0,0.5);
  z-index: 2;
}

.ticker-move {
  display: flex;
  white-space: nowrap;
  animation: tickerSlide 26s linear infinite;
}

.ticker-item {
  margin: 0 28px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================
   MAIN CENTER PRANK STAGE
   ========================================================== */
.main-container {
  min-height: 100vh;
  padding: 68px 16px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.prank-card {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 0, 127, 0.4);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(255, 0, 127, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: auto;
}

/* Top Badges */
.badge-ribbon {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.red-pulse {
  background: rgba(255, 42, 42, 0.25);
  color: #ff5555;
  border: 1px solid #ff2a2a;
  animation: pulseGlow 1.5s infinite alternate;
}

.yellow-glow {
  background: rgba(255, 230, 0, 0.2);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(255, 42, 42, 0.4); }
  100% { box-shadow: 0 0 18px rgba(255, 42, 42, 0.9); }
}

/* ==========================================================
   CENTER IMAGE & MOCKING DECORATIONS
   ========================================================== */
.image-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto 24px;
  cursor: pointer;
  user-select: none;
}

.bozo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ff007f;
  box-shadow: 
    0 0 25px rgba(255, 0, 127, 0.7),
    0 0 50px rgba(255, 230, 0, 0.3);
  animation: photoWobble 4s ease-in-out infinite alternate;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-wrapper:hover .bozo-photo {
  transform: scale(1.05) rotate(3deg);
}

.image-wrapper:active .bozo-photo {
  transform: scale(0.92) rotate(-6deg);
}

@keyframes photoWobble {
  0% { transform: rotate(-3deg) scale(0.98); }
  50% { transform: rotate(3deg) scale(1.02); }
  100% { transform: rotate(-2deg) scale(1); }
}

/* Photo shake effect when slapped */
.slapped {
  animation: slapShake 0.4s ease-in-out !important;
}

@keyframes slapShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-15px, 5px) rotate(-12deg); }
  40% { transform: translate(15px, -5px) rotate(12deg); }
  60% { transform: translate(-10px, 2px) rotate(-8deg); }
  80% { transform: translate(8px, -2px) rotate(6deg); }
}

/* Slap Feedback Stamp */
.slap-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg) scale(0);
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  padding: 6px 18px;
  border: 4px solid #fff;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(255, 0, 0, 1);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
  z-index: 20;
}

.slap-feedback.show {
  transform: translate(-50%, -50%) rotate(-15deg) scale(1.15);
  opacity: 1;
}

/* Clown Overlays */
.clown-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.clown-nose {
  position: absolute;
  top: 51%;
  left: 49%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.9));
  animation: noseSqueeze 1.2s ease-in-out infinite alternate;
}

@keyframes noseSqueeze {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  100% { transform: translate(-50%, -50%) scale(1.2); }
}

.clown-hair-left {
  position: absolute;
  top: 8px;
  left: -20px;
  font-size: 2.2rem;
  transform: rotate(-35deg);
  animation: wigWobble 2s infinite alternate;
}

.clown-hair-right {
  position: absolute;
  top: 8px;
  right: -20px;
  font-size: 2.2rem;
  transform: rotate(35deg) scaleX(-1);
  animation: wigWobble 2s infinite alternate-reverse;
}

.dunce-cap {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.6rem;
  animation: capBounce 1.5s ease-in-out infinite alternate;
}

@keyframes wigWobble {
  0% { transform: rotate(-30deg) scale(1); }
  100% { transform: rotate(-45deg) scale(1.15); }
}

@keyframes capBounce {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-8px) rotate(5deg); }
}

/* Orbiting emojis */
.orbit-item {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.orbit-1 {
  top: -10px;
  left: 10px;
  animation: orbitMotion1 3s ease-in-out infinite alternate;
}

.orbit-2 {
  bottom: 0px;
  left: -15px;
  animation: orbitMotion2 3.5s ease-in-out infinite alternate;
}

.orbit-3 {
  top: 15px;
  right: -15px;
  animation: orbitMotion3 2.8s ease-in-out infinite alternate;
}

.orbit-4 {
  bottom: -10px;
  right: 15px;
  animation: orbitMotion4 3.2s ease-in-out infinite alternate;
}

@keyframes orbitMotion1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-10px, -15px) rotate(-25deg) scale(1.2); }
}

@keyframes orbitMotion2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-15px, 12px) rotate(20deg) scale(1.25); }
}

@keyframes orbitMotion3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(12px, -12px) rotate(30deg) scale(1.2); }
}

@keyframes orbitMotion4 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(15px, 10px) rotate(-20deg) scale(1.15); }
}

/* ==========================================================
   LARGE READABLE ROAST TEXT BOX
   ========================================================== */
.roast-section {
  margin-top: 10px;
}

.roast-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.8px;
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

.edit-hint {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.text-box-container {
  position: relative;
  margin-bottom: 18px;
}

/* Hyper-readable, prominent large font textarea */
.large-readable-font {
  width: 100%;
  background: rgba(10, 5, 20, 0.85);
  border: 3px solid rgba(255, 0, 127, 0.6);
  border-radius: 18px;
  padding: 16px 20px;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem); /* Giant readable font! */
  font-weight: 800;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 0, 127, 0.3);
  text-align: center;
  resize: vertical;
  min-height: 120px;
  outline: none;
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 0, 127, 0.2);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.large-readable-font:focus {
  border-color: var(--accent-cyan);
  box-shadow: 
    0 0 25px rgba(0, 240, 255, 0.5),
    inset 0 0 15px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================
   ACTION BUTTONS
   ========================================================== */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.94);
}

.btn-roast {
  background: linear-gradient(135deg, #ff007f, #b5179e);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}
.btn-roast:hover {
  background: linear-gradient(135deg, #ff1a8c, #c725af);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
  transform: translateY(-2px);
}

.btn-turbo {
  background: linear-gradient(135deg, #ff2a2a, #d90429);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 35, 60, 0.4);
  animation: turboPulse 1.8s infinite;
}
.btn-turbo:hover {
  transform: scale(1.05);
}

@keyframes turboPulse {
  0% { box-shadow: 0 0 8px rgba(239, 35, 60, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 42, 42, 0.8); }
  100% { box-shadow: 0 0 8px rgba(239, 35, 60, 0.4); }
}

.btn-sound {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-sound:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  transform: translateY(-2px);
}

.btn-share {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}
.btn-share:hover {
  background: linear-gradient(135deg, #00c4ec, #0088ce);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.55);
  transform: translateY(-2px);
}

/* ==========================================================
   FUNNY METRICS / STATS FOOTER
   ========================================================== */
.bozo-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-pill {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.stat-num {
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

/* ==========================================================
   FLOATING TOGGLES & TOAST
   ========================================================== */
.floating-controls {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.toggle-btn {
  background: rgba(18, 10, 32, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: var(--accent-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.4);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #fff;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

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

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 600px) {
  .prank-card {
    padding: 20px 14px;
    border-radius: 20px;
  }
  .image-wrapper {
    width: 170px;
    height: 170px;
  }
  .large-readable-font {
    font-size: 1.35rem;
    padding: 14px 14px;
    min-height: 110px;
  }
  .action-buttons {
    gap: 8px;
  }
  .btn {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .floating-controls {
    bottom: 12px;
    right: 12px;
  }
}
