:root {
  --tet-red: #dc2626;
  --tet-red-light: #ef4444;
  --tet-red-dark: #b91c1c;
  --tet-red-primary: #dc2626;
  --tet-gold: #fbbf24;
  --tet-gold-light: #fcd34d;
  --tet-gold-dark: #d97706;
  --tet-pink: #ec4899;
  --tet-pink-light: #f472b6;
  --tet-yellow: #fde047;
  --tet-orange: #fb923c;
  --tet-gradient: linear-gradient(135deg, #dc2626 0%, #dc2626 50%, #b91c1c 100%);
}

.tet-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2147483004;
  overflow: visible;
}

.tet-greeting-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2147483003;
  animation: tetBannerFadeIn 0.8s ease-out forwards;
  pointer-events: auto;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.tet-banner-content {
  text-align: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: visible;
  animation: tetBannerLuckyMoney 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-height: none;
}

.tet-banner-content::before {
  display: none;
}

.tet-banner-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 
    2px 2px 0 rgba(0, 0, 0, 0.3),
    0 0 15px rgba(251, 191, 36, 0.8),
    0 0 30px rgba(220, 38, 38, 0.6);
  margin-bottom: 15px;
  letter-spacing: 1px;
  animation: tetBannerTitlePulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.tet-banner-subtitle {
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.tet-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 38, 38, 0.8);
  border: 2px solid var(--tet-red);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tet-banner-close:hover {
  background: var(--tet-red);
  transform: scale(1.1) rotate(90deg);
}

@keyframes tetBannerFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tetBannerLuckyMoney {
  0% {
    transform: translateY(100vh) scale(0.2) rotate(-20deg);
    opacity: 0;
    filter: blur(10px) drop-shadow(0 0 0 rgba(220, 38, 38, 0));
  }
  20% {
    transform: translateY(50vh) scale(0.6) rotate(-10deg);
    opacity: 0.7;
    filter: blur(5px) drop-shadow(0 5px 15px rgba(220, 38, 38, 0.3));
  }
  40% {
    transform: translateY(-30px) scale(1.3) rotate(8deg);
    opacity: 1;
    filter: blur(0px) drop-shadow(0 10px 30px rgba(220, 38, 38, 0.6));
  }
  50% {
    transform: translateY(0) scale(1.1) rotate(-3deg);
    opacity: 1;
    filter: drop-shadow(0 10px 30px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 40px rgba(220, 38, 38, 0.4));
  }
  60% {
    transform: translateY(-10px) scale(1.15) rotate(2deg);
    filter: drop-shadow(0 15px 40px rgba(220, 38, 38, 0.7)) drop-shadow(0 0 50px rgba(220, 38, 38, 0.5));
  }
  70% {
    transform: translateY(0) scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 10px 30px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 40px rgba(220, 38, 38, 0.4));
  }
  80% {
    transform: scale(1.1);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 10px 30px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 40px rgba(220, 38, 38, 0.4));
  }
}

@keyframes tetBannerNumber2026 {
  0% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.3) rotate(0deg);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes tetBannerTextAppear {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.tet-banner-lucky-money {
  font-size: 8rem;
  animation: tetBannerLuckyMoney 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: block;
  margin: 0 auto 20px;
  transform-origin: center bottom;
  filter: drop-shadow(0 10px 30px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 40px rgba(220, 38, 38, 0.4));
  position: relative;
  z-index: 1;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.tet-banner-lucky-money::before,
.tet-banner-lucky-money::after {
  content: '✨';
  position: absolute;
  font-size: 2rem;
  animation: tetSparkle 2s ease-in-out infinite;
  opacity: 0;
}

.tet-banner-lucky-money::before {
  top: -20px;
  left: -30px;
  animation-delay: 0.5s;
}

.tet-banner-lucky-money::after {
  bottom: -20px;
  right: -30px;
  animation-delay: 1s;
}

@keyframes tetSparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
}

.tet-banner-number-2026 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--tet-red);
  text-shadow: 
    3px 3px 0 rgba(0, 0, 0, 0.2),
    0 0 30px rgba(220, 38, 38, 0.8),
    0 0 60px rgba(220, 38, 38, 0.6),
    0 0 90px rgba(220, 38, 38, 0.4);
  animation: tetBannerNumber2026 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
  display: block;
  margin: 20px auto;
  letter-spacing: 10px;
  filter: drop-shadow(0 5px 15px rgba(220, 38, 38, 0.5));
}

.tet-banner-greeting-text {
  animation: tetBannerTextAppear 0.6s ease-out 1s both;
  color: var(--tet-red);
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 20px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(220, 38, 38, 0.5);
  letter-spacing: 2px;
}

.tet-countdown {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 1;
  min-width: auto;
  border: none;
  animation: none;
  margin: 24px 0;
  text-align: center;
}

.tet-countdown-inline {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 1;
  min-width: auto;
  border: none;
  animation: none;
  margin: 24px 0;
  text-align: center;
}

.tet-countdown-title {
  color: var(--tet-red);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  text-shadow: none;
}

.tet-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.tet-countdown-item {
  text-align: center;
  background: transparent;
  border-radius: 12px;
  padding: 12px 8px;
  border: 2px solid var(--tet-red);
  background: rgba(220, 38, 38, 0.05);
}

.tet-countdown-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--tet-red);
  text-shadow: none;
  line-height: 1;
  margin-bottom: 6px;
  animation: tetCountdownPulse 1s ease-in-out infinite;
}

.tet-countdown-label {
  font-size: 0.8rem;
  color: var(--tet-red-dark);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes tetCountdownSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes tetCountdownPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.tet-flower {
  position: absolute;
  font-size: 24px;
  color: var(--tet-pink);
  opacity: 0.9;
  animation: fallFlower linear infinite;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tet-flower.flower-peach {
  color: var(--tet-pink-light);
}

.tet-flower.flower-apricot {
  color: var(--tet-gold);
}

@keyframes fallFlower {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

.tet-firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tet-red);
  box-shadow: 0 0 15px var(--tet-red), 0 0 30px var(--tet-red), 0 0 45px var(--tet-red);
  animation: explode linear forwards;
  pointer-events: none;
  z-index: 2147483004;
}

@keyframes explode {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(30) translate(var(--end-x, 0), var(--end-y, 0));
    opacity: 0;
  }
}

.tet-lucky-money {
  position: absolute;
  font-size: 28px;
  color: var(--tet-red);
  animation: flyLuckyMoney linear infinite;
  pointer-events: none;
  user-select: none;
  font-weight: bold;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes flyLuckyMoney {
  0% {
    transform: translateX(-50px) translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 50px)) translateY(-200px) rotate(360deg);
    opacity: 0;
  }
}

.tet-header-decoration {
  position: relative;
  overflow: hidden;
}

.tet-background-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, rgba(251, 191, 36, 0.02) 50%, rgba(236, 72, 153, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
  animation: tetGradient 15s ease infinite;
}

@keyframes tetGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.tet-search-glow {
  animation: tetSearchGlow 2s ease-in-out infinite;
  position: relative;
}

.tet-search-glow::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--tet-gradient);
  opacity: 0.5;
  z-index: -1;
  animation: tetSearchGlowRing 2s ease-in-out infinite;
}

@keyframes tetSearchGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6), 0 0 60px rgba(251, 191, 36, 0.4);
  }
}

@keyframes tetSearchGlowRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.tet-card-decoration {
  position: relative;
  overflow: hidden;
}

.tet-card-decoration::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(220, 38, 38, 0.15) 50%,
    transparent 70%
  );
  animation: tetShine 4s linear infinite;
  pointer-events: none;
}

@keyframes tetShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.tet-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--tet-red);
  border-radius: 2px;
  animation: confettiFall linear infinite;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tet-confetti:nth-child(2n) {
  background: var(--tet-gold);
  animation-duration: 2s;
  border-radius: 50%;
}

.tet-confetti:nth-child(3n) {
  background: var(--tet-pink);
  animation-duration: 2.5s;
  transform: rotate(45deg);
}

.tet-confetti:nth-child(4n) {
  background: var(--tet-yellow);
  animation-duration: 1.5s;
  border-radius: 0;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
    left: calc(var(--x) * 1vw);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(720deg);
    opacity: 0;
    left: calc(var(--x) * 1vw);
  }
}

.tet-music-control {
  position: fixed;
  bottom: 92px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: var(--tet-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.25);
  z-index: 2147483000;
  transition: all 0.3s ease;
  animation: tetMusicPulse 2s ease-in-out infinite;
  padding: 0;
}

.tet-music-control:active {
  transform: scale(0.98);
}

.tet-music-control svg {
  width: 28px;
  height: 28px;
}

.tet-music-control:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.tet-music-control.playing {
  animation: tetMusicPulse 1s ease-in-out infinite;
}

@keyframes tetMusicPulse {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5), 0 0 40px rgba(220, 38, 38, 0.3);
  }
}

@media (max-width: 768px) {
  .tet-banner-lucky-money {
    font-size: 6rem;
  }
  
  .tet-banner-number-2026 {
    font-size: 3.5rem;
    letter-spacing: 5px;
  }
  
  .tet-banner-greeting-text {
    font-size: 1.4rem;
  }
  
  .tet-banner-content {
    max-width: 90%;
  }
  
  .tet-banner-close {
    width: 35px;
    height: 35px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
  
  .tet-countdown-inline {
    margin: 20px 0;
  }
  
  .tet-countdown-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .tet-countdown-grid {
    gap: 8px;
    max-width: 100%;
  }
  
  .tet-countdown-item {
    padding: 10px 6px;
    border-radius: 8px;
  }
  
  .tet-countdown-number {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }
  
  .tet-countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.3px;
  }
  
  .tet-flower {
    font-size: 18px;
  }
  
  .tet-lucky-money {
    font-size: 22px;
  }
  
  .tet-music-control {
    bottom: 92px;
    right: 18px;
    width: 56px;
    height: 56px;
  }
  
  .tet-music-control svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tet-flower,
  .tet-firework,
  .tet-lucky-money,
  .tet-confetti,
  .tet-search-glow,
  .tet-card-decoration::before,
  .tet-banner-content,
  .tet-countdown-number {
    animation: none;
  }
  
  .tet-banner-content {
    animation: tetBannerFadeIn 0.3s ease-out forwards;
  }
}
