
/* home/newyear.css - New Year 2026 Special Styles */

/* 1. Year Ticker Transition */
.year-ticker {
    display: inline-flex;
    height: 1em;
    overflow: hidden;
    position: relative;
    vertical-align: bottom;
}

.year-old {
    animation: yearSlideUpOld 3s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    position: absolute;
    top: 0;
    left: 0;
}

.year-new {
    animation: yearSlideUpNew 3s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    transform: translateY(100%);
    position: relative;
}

@keyframes yearSlideUpOld {
    0%, 60% { transform: translateY(0); opacity: 1; filter: blur(0); }
    100% { transform: translateY(-100%); opacity: 0; filter: blur(10px); }
}

@keyframes yearSlideUpNew {
    0%, 60% { transform: translateY(100%); opacity: 0; filter: blur(10px); }
    100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* 2. New Year Overlay Overlay FadeOut */
#ny-overlay {
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

#ny-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
    filter: blur(20px);
}

/* 3. Gold Theme Overrides for Mode */
body.new-year-mode .chat-bubble.chat-ai {
    border-color: rgba(251, 191, 36, 0.2) !important;
}

/* 4. Canvas Positioning */
#fireworks {
    pointer-events: none;
}

/* 5. Custom Scrollbar for New Year Mode (Gold) */
body.new-year-mode ::-webkit-scrollbar-thumb {
    background: #fbbf24; 
}
body.new-year-mode ::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* 6. Product Card Gold Glow (for New Year) */
body.new-year-mode .product-card:hover {
    border-color: rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 25px 50px -12px rgba(251, 191, 36, 0.25) !important;
}

.newyear-card-bg {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(251, 191, 36, 0.3) !important;
}

body.new-year-mode #background-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(248, 113, 113, 0.12), rgba(0, 0, 0, 0.85) 65%);
    opacity: 0.9;
}

.ny-logo-wrap {
    position: relative;
    isolation: isolate;
}

body.new-year-mode .ny-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -10%;
    background: linear-gradient(120deg, #4b0d18, #c026d3 45%, #f59e0b);
    opacity: 0.65;
    mix-blend-mode: screen;
    filter: blur(6px);
    -webkit-mask-image: url("../muyulogo.png");
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("../muyulogo.png");
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    pointer-events: none;
}

body.new-year-mode .muyu-logo {
    filter: drop-shadow(0 0 12px rgba(248, 113, 113, 0.4)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.35));
}

.ny-horse {
    position: absolute;
    inset: -35% -20%;
    background: radial-gradient(circle at 20% 40%, rgba(239, 68, 68, 0.6), transparent 60%), radial-gradient(circle at 70% 20%, rgba(236, 72, 153, 0.45), transparent 55%);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ny-horse::after {
    content: '';
    position: absolute;
    inset: 10% 5%;
    border-radius: 50%;
    border: 2px solid rgba(248, 113, 113, 0.45);
    box-shadow: 0 0 30px rgba(248, 113, 113, 0.6), inset 0 0 30px rgba(236, 72, 153, 0.4);
    transform: rotate(-8deg);
}

body.new-year-mode .ny-horse {
    opacity: 1;
}

.ny-packet {
    position: absolute;
    width: 18%;
    height: 38%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.7), rgba(251, 191, 36, 0.35));
    border: 1px solid rgba(248, 113, 113, 0.6);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: rotate(-8deg);
    transition: opacity 0.4s ease;
}

.ny-packet::after {
    content: '';
    position: absolute;
    inset: 15% 18%;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent);
}

.ny-packet-a {
    right: -6%;
    top: -10%;
}

.ny-packet-b {
    left: -8%;
    bottom: -15%;
    transform: rotate(10deg);
}

body.new-year-mode .ny-packet {
    opacity: 0.8;
}

.ny-lantern {
    position: absolute;
    width: 20%;
    height: 32%;
    background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.5), rgba(248, 113, 113, 0.55) 60%, rgba(147, 51, 234, 0.6));
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ny-lantern::before,
.ny-lantern::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 40%;
    background: inherit;
    border-radius: 50%;
}

.ny-lantern::before {
    left: -18%;
    top: 18%;
}

.ny-lantern::after {
    right: -18%;
    top: 18%;
}

.ny-lantern-a {
    left: 18%;
    top: -22%;
}

.ny-lantern-b {
    right: 12%;
    bottom: -18%;
}

body.new-year-mode .ny-lantern {
    opacity: 0.75;
}

#ny-overlay {
    display: none;
}

.ny-overlay-bg {
    background: radial-gradient(circle at 50% 20%, rgba(248, 113, 113, 0.2), rgba(8, 6, 20, 0.95) 65%);
}

.ny-overlay-glow {
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.25), transparent 60%);
}

.ny-overlay-logo {
    filter: drop-shadow(0 0 20px rgba(248, 113, 113, 0.5));
}

.ny-overlay-horse {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    border: 2px solid rgba(248, 113, 113, 0.45);
    box-shadow: 0 0 35px rgba(248, 113, 113, 0.6), inset 0 0 35px rgba(236, 72, 153, 0.5);
    transform: rotate(-10deg);
}

.ny-overlay-packet {
    position: absolute;
    width: 120px;
    height: 180px;
    background: linear-gradient(140deg, rgba(239, 68, 68, 0.7), rgba(236, 72, 153, 0.25));
    border-radius: 18px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 25px rgba(248, 113, 113, 0.35);
    opacity: 0.7;
}

.ny-overlay-packet::after {
    content: '';
    position: absolute;
    inset: 18% 20%;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent);
}

.ny-overlay-packet-a {
    left: -40px;
    top: 20%;
    transform: rotate(-12deg);
}

.ny-overlay-packet-b {
    right: -30px;
    top: 10%;
    transform: rotate(10deg);
}

.ny-overlay-packet-c {
    right: 10%;
    bottom: -40px;
    transform: rotate(-8deg);
}

.ny-overlay-lantern {
    position: absolute;
    width: 120px;
    height: 150px;
    border-radius: 60% 60% 55% 55%;
    background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.5), rgba(248, 113, 113, 0.6) 60%, rgba(147, 51, 234, 0.65));
    box-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
    opacity: 0.8;
}

.ny-overlay-lantern::before,
.ny-overlay-lantern::after {
    content: '';
    position: absolute;
    width: 42%;
    height: 42%;
    background: inherit;
    border-radius: 50%;
}

.ny-overlay-lantern::before {
    left: -18%;
    top: 22%;
}

.ny-overlay-lantern::after {
    right: -18%;
    top: 22%;
}

.ny-overlay-lantern-a {
    left: 18%;
    top: -40px;
}

.ny-overlay-lantern-b {
    right: 16%;
    top: -30px;
}

@media (max-width: 768px) {
    .ny-packet,
    .ny-lantern {
        display: none;
    }
    .ny-overlay-packet,
    .ny-overlay-lantern {
        transform: scale(0.7);
    }
}
