@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap");

[ttf][class~="tff-container"] {
  font-family: "Orbitron", monospace;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a, #1a1a1a);
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
  border: 4px solid #ffd700;
  border-radius: 20px;
  padding: 30px;
  max-width: 780px;
  margin: 40px auto;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.2);
  animation: containerGlow 2s ease-out, gradientShift 4s ease infinite;
  position: relative;
  overflow: hidden;
}

[ttf][class~="tff-container"]::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes containerGlow {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

[ttf][class~="tff-title"] {
  font-size: 2em;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 2px 2px 0 #000, -2px -2px 0 #000,
    2px -2px 0 #000, -2px 2px 0 #000;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: titleBounce 1.5s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

@keyframes titleRainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes titleBounce {
  0% {
    transform: translateY(-50px) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translateY(15px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

[ttf][class~="tff-logo"] {
  width: 250px;
  height: auto;
  animation: titleBounce 1.5s ease;
}

[ttf] hr {
  border: 2px solid #ffd700;
  width: 150px;
  animation: titleBounce 1.5s ease;
}

[ttf][class~="tff-search"] {
  width: 85%;
  padding: 15px;
  border: 3px solid #ffd700;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
  color: #fff;
  margin-top: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
    inset 0 0 10px rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

[ttf][class~="tff-search"]:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transform: scale(1.02);
}

[ttf][class~="arrow-down"] {
  width: 0;
  height: 0;
  margin: 20px auto;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid #FFD700;
  animation: bounceArrow 1.2s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

[ttf][class~="tff-slider"] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  margin-top: 25px;
}

[ttf][class~="tff-option"] {
  flex: 0 0 auto;
  font-size: 0;
  border-radius: 20px;
  border: 5px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

[ttf][class~="tff-option"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

[ttf][class~="tff-option"]:hover::before {
  left: 100%;
}

[ttf][class~="tff-option"] img {
  position: relative;
  width: 170px;
  height: 110px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

[ttf][class~="tff-option"]:hover {
  transform: rotate(-2deg) scale(1.08);
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

[ttf][class~="tff-option"] span {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: bold;
  -webkit-text-stroke: 1px #000;
  text-shadow: 1px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000,
    -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

[ttf][class~="tff-option"].selected {
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  animation: selectedPulse 2s ease infinite;
}

[ttf][class~="tff-suboption-img"] {
  width: 170px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

[ttf][class~="tff-suboption"]:hover [ttf][class~="tff-suboption-img"] {
  transform: scale(1.1);
}

@keyframes selectedPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

[ttf][class~="tff-suboptions"] {
  animation: suboptionsSlide 0.7s ease-in;
  margin-top: 20px;
}

@keyframes suboptionsSlide {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

[ttf][class~="tff-suboption-list"] {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 18px;
}

[ttf][class~="tff-suboption"] {
  padding: 2px 1px;
  background: linear-gradient(45deg, #999, #333);
  color: #000;
  font-weight: bold;
  border: 3px solid #555;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 0;
  opacity: 0.9;
  letter-spacing: 1px;
}

[ttf][class~="tff-suboption"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

[ttf][class~="tff-suboption"]:hover::before {
  width: 200%;
  height: 200%;
}

[ttf][class~="tff-suboption"]:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #ffeb3b, #ffd700);
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

[ttf][class~="tff-suboption"].selected {
  background: linear-gradient(45deg, #ffeb3b, #ffd700);
  color: #000;
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  opacity: 1;
  animation: selectedShake 0.5s ease;
}

@keyframes selectedShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

[ttf][class~="tff-give-btn"] {
  width: 100%;
  margin-top: 40px;
  padding: 15px 30px;
  font-size: 1em;
  font-weight: 700;
  background: linear-gradient(45deg, #ffd700, #ffc107);
  color: #000;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: buttonFloat 3s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[ttf][class~="tff-give-btn"]::before {
    content: '\1F381';/* 🎁 */
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    animation: gamepadMove 2s ease-in-out infinite;
}

[ttf][class~="tff-give-btn"]::after {
    content: '\1F381';/* 🎁 */
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    animation: gamepadMove 2s ease-in-out infinite reverse;
}

@keyframes buttonRainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes buttonFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes gamepadMove {
  0% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(10px);
  }
  100% {
    transform: translateY(-50%) translateX(0);
  }
}

[ttf][class~="tff-give-btn"]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.8), 0 12px 25px rgba(0, 0, 0, 0.4);
}

[ttf][class~="tff-give-btn"]:active {
  transform: scale(0.95);
  animation: buttonExplode 0.3s ease;
}

@keyframes buttonExplode {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(0.95);
  }
}

[ttf][class~="tff-give-btn"]:disabled {
  background: #000;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
  transform: none;
  opacity: .5;
}
