/* ============================================================
   rarity-ticket.css
   Custom rarity badges, ticket/box backgrounds and special
   card effects. Extracted from style.css to keep the primary
   stylesheet focused on layout/theme. Linked globally in base.html.
   ============================================================ */

/* Rarity badges with special effects */
.badge.bg-danger {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    animation: epic-glow 2s ease-in-out infinite alternate;
}

.badge.bg-warning {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.badge.bg-success {
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.3);
}

.badge.bg-legendary {
    box-shadow: 0 0 6px rgba(255, 247, 0, 0.3);
}
/* BOX EXCLUSIVE */
.badge.bg-boxexcl {
  background-color: #ff17f1;
  color: black;
  box-shadow: 0 0 6px rgba(255, 0, 43, 1);
  animation: boxexcl-glow 4s ease-in-out infinite alternate;
}

@keyframes boxexcl-glow {
  0%   { box-shadow: 0 0 6px rgba(255, 0, 43, 0.4); }
  50%  { box-shadow: 0 0 16px rgba(255, 0, 43, 0.8); }
  100% { box-shadow: 0 0 6px rgba(255, 0, 43, 0.4); }
}


/* BOX EXCLUSIVE X (special blue) */
.badge.bg-boxexclusivex {
    background-color: black;
    color: white;
    box-shadow: 0 0 6px #ef1d00;
    animation: boxexclusivex-glow 2s ease-in-out infinite alternate;
}

@keyframes boxexclusivex-glow {
    0%   { box-shadow: 0 0 8px #ef1d00; }
    50%  { box-shadow: 0 0 16px #ff1717; }
    100% { box-shadow: 0 0 8px #ef1d00; }
}


@keyframes boxexcl-glow {
    0%   { box-shadow: 0 0 17px rgba(255, 105, 180, 0.8); }
    33%  { box-shadow: 0 0 20px rgba(255, 0, 0, 1); }
    66%  { box-shadow: 0 0 20px rgba(138, 43, 226, 0.9); }
    100% { box-shadow: 0 0 17px rgba(255, 105, 180, 0.8); }
}



@keyframes legendary-glow {
    0% { box-shadow: 0 0 10px rgba(220, 53, 69, 0.4); }
    20% { box-shadow: 0 0 14px rgba(220, 53, 69, 0.6); }
    100% { box-shadow: 0 0 17px rgba(255, 185, 0, 0.8); }
}

@keyframes epic-glow {
    0% { box-shadow: 0 0 12px rgba(220, 53, 69, 0.7); }
    100% { box-shadow: 0 0 15px rgba(220, 53, 69, 0.7); }
}

.epic-glow {
  animation: epic-glow 1s infinite alternate;
}

.legendary-glow {
  animation: legendary-glow 1s infinite alternate;
}

/* Mythic rarity badge */
.badge.bg-mythic {
  background: linear-gradient(415deg, #1a237e, #4b0082);
  border: 3px solid white; /* thick solid white outline */
  color: white;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
  animation: mythic-glow 3s ease-in-out infinite alternate;
}

@keyframes mythic-glow {
  0% {
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(138, 43, 226, 1);
  }
  100% {
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
  }
}


/* Blackmarket rarity badge */
.badge.bg-blackmarket {
  background: linear-gradient(135deg, #0d0d0d, #2c003e, #57003a);
  border: 2px solid #ff00ff;
  color: #f8d7ff;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.8), 0 0 22px rgba(138, 43, 226, 0.6);
  position: relative;
  overflow: hidden;
  animation: glitch-flicker 2.4s infinite ease-in-out;
}

@keyframes glitch-flicker {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  20% {
    transform: translate(1px, -1px);
    opacity: 0.9;
  }
  40% {
    transform: translate(-1px, 1px);
    opacity: 0.95;
  }
  60% {
    transform: translate(1px, 0);
    opacity: 0.85;
  }
  80% {
    transform: translate(0, 1px);
    opacity: 0.9;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

/* Event rarity badge */
.badge.bg-event {
  background: linear-gradient(135deg, #ff6f00, #ff4081);
  color: white;
  border: 2px solid #fff3cd;
  border-radius: 0.75rem;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  animation: event-glow 2.5s ease-in-out infinite, sparkle 4s ease-in-out infinite;
}

/* Gold glow effect */
@keyframes event-glow {
  0% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  }
}

/* Soft sparkle pulse */
@keyframes sparkle {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
}

.animated-x {
    display: inline-block;
    margin-left: 4px;
    color: black;
    font-style: italic;
    font-weight: bold;
    font-size: 1.25em;
    animation: float-x 2s ease-in-out infinite, shine-x 3s ease-in-out infinite;

    /* Remove boxy background */
    background: none;
    padding: 0;
    border-radius: 0;

    /* Subtle gold outline using text shadow */
    text-shadow:
        0 0 3px #ef1d00,
        0 0 5px #ef1d00;
}

@keyframes float-x {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes shine-x {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(2.3);
    }
}

@media (max-width: 576px) {
  .badge.bg-boxexclusivex {
    font-size: 0.75rem; /* Smaller text */
    padding: 0.25rem 0.5rem; /* Tighter padding */
  }

  .animated-x {
    font-size: 1rem; /* Scale down the X */
    margin-left: 2px;
  }
}

/* cards */
/* Example: Highlight legendary tickets */
.ticket-card {
    background: #1e1e2f;
    border: 2px solid #333;
    border-radius: 12px;
}

/* Rarity-based backgrounds */
.rarity-legendary {
    background: #111111;
    border: 4px solid gold;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.rarity-legendary:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 223, 50, 0.4);
}

.rarity-box_exclusive {
    background: linear-gradient(135deg, #2b0033, #4b003f, #5e002b);
    border: 4px solid #ff0059;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 0, 89, 0.4), 0 0 35px rgba(170, 0, 80, 0.3);
}

.rarity-box_exclusive:hover {
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.6);
}

.rarity-box_exclusive_x {
    background: linear-gradient(135deg, #0b000f, #1a000f, #2c000f);
    border: 4px solid crimson;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5), 0 0 40px rgba(255, 50, 50, 0.4);
    position: relative;
    overflow: hidden;
}

/* Pulsing glow overlay */
.rarity-box_exclusive_x::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,0,0,0.2) 0%, transparent 70%);
    animation: pulse-glow 2.5s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.rarity-box_exclusive_x * {
    position: relative;
    z-index: 1;
}

@keyframes pulse-glow {
    0% { opacity: 0.2; }
    50% { opacity: 0.4; }
    100% { opacity: 0.2; }
}

.rarity-mythic {
    background: linear-gradient(135deg, #0d0c2c, #1a0648, #100b69);
    border: 3px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 40px rgba(0, 60, 255, 0.3);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Starfield overlay using CSS pseudo-elements */
.rarity-mythic::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(white 1px, transparent 1px),
                radial-gradient(white 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 30px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Make inner content sit above the stars */
.rarity-mythic * {
    position: relative;
    z-index: 1;
}

.rarity-blackmarket {
    background: linear-gradient(135deg, #06000c, #220022, #3a003d);
    border: 3px solid #ff00d4;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.5),
                0 0 28px rgba(138, 43, 226, 0.4),
                inset 0 0 10px rgba(255, 0, 255, 0.3);
    color: #ffeaff;
    position: relative;
    overflow: hidden;
    animation: glitch-flicker 2.2s infinite ease-in-out;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 3px #ff00f7, 0 0 6px #9b00ff;
}

/* Starfield overlay like mythic */
.rarity-blackmarket::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(#ffffff20 1px, transparent 1px),
                radial-gradient(#ffb0ff15 1px, transparent 1px);
    background-size: 45px 45px, 70px 70px;
    background-position: 0 0, 25px 35px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

/* Content above visual FX */
.rarity-blackmarket * {
    position: relative;
    z-index: 1;
}

/* Glitch flicker effect */
@keyframes glitch-flicker {
    0%   { transform: translate(0);       opacity: 1;   }
    15%  { transform: translate(1px, -1px); opacity: 0.92; }
    30%  { transform: translate(-1px, 1px); opacity: 0.96; }
    50%  { transform: translate(1px, 0);     opacity: 0.88; }
    70%  { transform: translate(0, 1px);     opacity: 0.93; }
    100% { transform: translate(0);       opacity: 1;   }
}

.ticket-seabreeze-scratch {
    background: url('/static/images/searbreezescratch.jpg') no-repeat center;
    background-size: 100%; /* Shrink to 75% width, auto height */
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: normal;

    border: 4px solid #f7b733;  /* Bright orange-yellow */
    color: #000000;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.3), 0 0 35px rgba(255, 140, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-attachment: local;
}


/* Sparkle overlay to add texture */
.ticket-seabreeze-scratch::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Ensure children render above overlay */
.ticket-seabreeze-scratch * {
    position: relative;
    z-index: 1;
}

/* Hover glow */
.ticket-seabreeze-scratch:hover {
    box-shadow: 0 0 25px rgba(255, 174, 0, 0.4), 0 0 45px rgba(255, 128, 0, 0.3);
}
.ticket-vaporwave {
    background: url('/static/images/summervaporwavehighres.jpg') no-repeat center;
    background-size: 110%; /* Shrink to 75% width, auto height */
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: normal;

    border: 4px solid #f7b733;  /* Bright orange-yellow */
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.3), 0 0 35px rgba(255, 140, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-attachment: local;
}


/* Sparkle overlay to add texture */
.ticket-vaporwave::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Ensure children render above overlay */
.ticket-vaporwave * {
    position: relative;
    z-index: 1;
}

/* Hover glow */
.ticket-vaporwave:hover {
    box-shadow: 0 0 25px rgba(255, 174, 0, 0.4), 0 0 45px rgba(255, 128, 0, 0.3);
}

.ticket-celestial-reign {
    background: url('/static/images/celestialreign.jpg') no-repeat center;
    background-size: 100%; /* Shrink to 75% width, auto height */
    background-repeat: no-repeat;
    background-position: top -60px center;
    background-blend-mode: normal;

    border: 4px solid #f7b733;  /* Bright orange-yellow */
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.3), 0 0 35px rgba(255, 140, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-attachment: local;
}


.ticket-celestial-reign::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}


.ticket-celestial-reign * {
    position: relative;
    z-index: 1;
}

/* Hover glow */
.ticket-celestial-reign:hover {
    box-shadow: 0 0 25px rgba(255, 174, 0, 0.4), 0 0 45px rgba(255, 128, 0, 0.3);
}

.ticket-black-diamond {
    background: url('/static/images/blackdiamondticket.jpg') no-repeat center;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top -60px center;
    background-blend-mode: normal;

    border: 4px solid #8e44ad; /* Legendary purple border */
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3), 0 0 35px rgba(75, 0, 130, 0.2);
    position: relative;
    overflow: hidden;
    background-attachment: local;
}

.ticket-black-diamond::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(72,61,139,0.3));
}

.ticket-black-diamond * {
    position: relative;
    z-index: 1;
}

/* Hover glow */
.ticket-black-diamond:hover {
    box-shadow: 0 0 25px rgba(128, 0, 128, 0.4), 0 0 45px rgba(75, 0, 130, 0.3);
}

.ticket-firework-explosion {
  position: relative;
  background: url('/static/images/fireworkexplosionbanner.jpg');
  border-radius: 1rem;
  color: white;
  padding: 1rem;
  overflow: hidden;
  text-shadow: 1px 1px 4px black;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Optional: soft glow overlay */
.ticket-firework-explosion::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: brightness(1.1) saturate(1.3);
  z-index: 0;
  pointer-events: none;
  border-radius: 1rem;
}


.ticket-stars-and-sparks {
  position: relative;
  background-color: #3c3b6e; /* Flag blue */
  color: white;
  border: 3px solid #bf0a30; /* Flag red */
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 18px rgba(191, 10, 48, 0.7);
  text-shadow: 1px 1px 3px black;
  overflow: hidden;
}

/* Stripes: 13 horizontal stripes alternating red and white */
.ticket-stars-and-sparks::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      to bottom,
      #bf0a30 0 7.69%,  /* Red */
      white 7.69% 15.38% /* White */
    );
  z-index: 0;
  border-radius: 1rem;
}

/* Blue canton with stars pattern */
.ticket-stars-and-sparks::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%; /* Correct proportion */
  height: 54%; /* Correct proportion */
  background-color: #3c3b6e;
  background-image:
    radial-gradient(white 15%, transparent 16%),
    radial-gradient(white 15%, transparent 16%);
  background-position: 0 0, 15px 15px;
  background-size: 30px 30px;
  background-repeat: repeat;
  border-bottom-right-radius: 0.5rem;
  border-top-left-radius: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 1;
}

/* Make sure content is above pseudo-elements */
.ticket-stars-and-sparks > * {
  position: relative;
  z-index: 2;
}

.ticket-silly-ticket {
    position: relative;
    background: linear-gradient(135deg, #7b1fa2, #d32f2f, #f57c00, #fbc02d, #0288d1); /* Deep circus rainbow */
    background-size: 400% 400%;
    animation: ticket-gradient-move 12s ease infinite;
    color: #fff;
    border: 5px double gold; /* Ornate circus border */
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.7);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-family: "Luckiest Guy", "Comic Sans MS", cursive; /* Bold circus font */
    overflow: hidden;
    letter-spacing: 1px;
}

/* Moving spotlight stripes */
.ticket-silly-ticket::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0 25px,
        rgba(0, 0, 0, 0.3) 25px 50px
    );
    mix-blend-mode: overlay;
    animation: spotlight-move 10s linear infinite;
    z-index: 0;
    border-radius: 1rem;
}

/* Carnival lights around the border */
.ticket-silly-ticket::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 1.2rem;
    background: repeating-radial-gradient(
        circle,
        gold 0 5px,
        transparent 6px 30px
    );
    background-size: 50px 50px;
    animation: lights-flash 3s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* Content above everything */
.ticket-silly-ticket > * {
    position: relative;
    z-index: 2;
}

.ticket-orvex-trials {
    position: relative;
    background: url('/static/images/orvex_trials.jpg') 35% 27% / cover no-repeat !important;
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    overflow: hidden;
    text-shadow: 2px 2px 4px black;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.ticket-orvex-trials::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
    border-radius: 1rem;
}

.ticket-orvex-trials > * {
    position: relative;
    z-index: 1;
}

.ticket-orvex-trials:hover {
    box-shadow:
    0 0 25px rgba(255, 174, 0, 0.4),
    0 0 45px rgba(255, 128, 0, 0.3);
}

.ticket-raptor-hazard {
    position: relative;
    background: url('/static/images/raptorhazard.jpg') center 15% / 100% auto no-repeat !important;
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    overflow: hidden;
    text-shadow: 2px 2px 4px black;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.ticket-raptor-hazard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
    border-radius: 1rem;
}

.ticket-raptor-hazard > * {
    position: relative;
    z-index: 1;
}

.ticket-raptor-hazard:hover {
    box-shadow:
    0 0 25px rgba(255, 174, 0, 0.4),
    0 0 45px rgba(255, 128, 0, 0.3);
}

/* Gradient animation */
@keyframes ticket-gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Moving spotlight effect */
@keyframes spotlight-move {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

/* Lights flashing animation */
@keyframes lights-flash {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    50% { opacity: 0.6; filter: hue-rotate(180deg); }
}



/* Pulsing glow for title inside special effect */
.special-effect {
  animation: pulseGlow 0.5s infinite ease-in-out;
  color: #ffffff; /* or whatever your glowing color is */
  text-shadow:
    0 0 10px #ffff00,
    0 0 20px #ffff00,
    0 0 30px #fff700,
    0 0 40px #fff700,
    0 0 50px #ffff00,
    0 0 150px #ffff00;
}

/* Shiny sweep overlay only for popups with special-effect */
.special-effect {
  position: relative;
  overflow: hidden;
}

.special-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shinySweep 3s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes shinySweep {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow:
      0 0 10px #ffff00,
      0 0 20px #ffff00,
      0 0 30px #fff700,
      0 0 40px #fff700,
      0 0 50px #ffff00,
      0 0 60px #ffff00;
  }
  50% {
    text-shadow:
      0 0 20px #ffff88,
      0 0 30px #ffff88,
      0 0 40px #ffff00,
      0 0 50px #ffff00,
      0 0 60px #ffff88,
      0 0 70px #ffff88;
  }
}

@keyframes pulseGlowAlt {
  0%, 100% {
    text-shadow:
      0 0 10px #0093c8,
      0 0 20px #3e027e,
      0 0 30px #025878,
      0 0 40px #03bcff,
      0 0 50px #7800c8,
      0 0 60px #1e87ff;
  }
  50% {
    text-shadow:
      0 0 20px #7800c8,
      0 0 30px #bd59ff,
      0 0 40px #0093c8,
      0 0 50px #3f0765,
      0 0 60px #0093c8,
      0 0 70px #7800c8;
  }
}


.special-title {
    animation: pulseGlow 0.5s infinite ease-in-out;
}

.special-title-alt {
    animation: pulseGlowAlt 0.9s infinite ease-in-out;
}


.super-legendary-effect {
    animation: legendary-glow-pulse 1.5s infinite alternate;
    background: linear-gradient(135deg, #ffffff 0%, #00eaff 100%);
    background-clip: padding-box;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.super-legendary-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
    animation: rotate-glow 8s linear infinite;
    z-index: 0;
}

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

.super-legendary-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 30px white, 0 0 40px cyan, 0 0 60px gold;
    animation: text-pulse 2s infinite ease-in-out;
}

@keyframes text-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.legendary-effect {
    animation: neon-pulse 2s infinite alternate;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05), rgba(0, 255, 255, 0.05));
}

.legendary-title {
    font-weight: 900;
    text-transform: uppercase;
    animation: glow-text 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 10px #ff69b4, 0 0 20px #00ffff, 0 0 40px #ff69b4;
    }
    to {
        box-shadow: 0 0 20px #00ffff, 0 0 40px #ff69b4, 0 0 60px #00ffff;
    }
}

@keyframes glow-text {
    from {
        text-shadow: 0 0 5px #ff69b4, 0 0 10px #00ffff;
    }
    to {
        text-shadow: 0 0 10px #00ffff, 0 0 20px #ff69b4;
    }
}

/* tt-created .ticket-celestial-prism : copied from .ticket-raptor-hazard */
.ticket-celestial-prism {
    position: relative;
    background: url('/static/images/raptorhazard.jpg') center 15% / 100% auto no-repeat !important;
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    overflow: hidden;
    text-shadow: 2px 2px 4px black;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* tt-created .ticket-daydream : copied from .ticket-silly-ticket */
.ticket-daydream {
    position: relative;
    background: linear-gradient(135deg, #7b1fa2, #d32f2f, #f57c00, #fbc02d, #0288d1);
    background-size: 400% 400%;
    animation: ticket-gradient-move 12s ease infinite;
    color: #fff;
    border: 5px double gold;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.7);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-family: "Luckiest Guy", "Comic Sans MS", cursive;
    overflow: hidden;
    letter-spacing: 1px;
}

/* tt-created .ticket-lucid-mirage : copied from .ticket-raptor-hazard */
.ticket-lucid-mirage {
    position: relative;
    background: url('/static/images/raptorhazard.jpg') center 15% / 100% auto no-repeat !important;
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    overflow: hidden;
    text-shadow: 2px 2px 4px black;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* tt-created .ticket-absolute-zero : copied from .ticket-raptor-hazard */
.ticket-absolute-zero {
    position: relative;
    background: url('/static/images/raptorhazard.jpg') center 15% / 100% auto no-repeat !important;
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    overflow: hidden;
    text-shadow: 2px 2px 4px black;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* tt-created .ticket-laser-fight : copied from .ticket-raptor-hazard */
.ticket-laser-fight {
    position: relative;
    background: url('/static/images/raptorhazard.jpg') center 15% / 100% auto no-repeat !important;
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    overflow: hidden;
    text-shadow: 2px 2px 4px black;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* tt-created .ticket-lost-legends : copied from .ticket-card */
.ticket-lost-legends {
    background: #1e1e2f;
    border: 2px solid #333;
    border-radius: 12px;
}
