body {
    background-size: 400% 400%;
    overflow-x: hidden;
    color: #f8fafc;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #c41e3a; border-radius: 10px; }

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Christmas Glass Panel */
.glass-panel-christmas {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 4px 30px rgba(196, 30, 58, 0.2), 0 0 20px rgba(22, 91, 51, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 30, 58, 0.6);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3), 0 0 30px rgba(22, 91, 51, 0.2);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-ice {
    background: linear-gradient(to right, #a5f3fc, #e0f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Christmas Text Gradients */
.text-gradient-christmas {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b6b 30%, #ffd700 60%, #c41e3a 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-gold-christmas {
    background: linear-gradient(to right, #ffd700, #ffed4e, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Shadow Glow */
.shadow-glow-christmas {
    filter: drop-shadow(0 0 8px rgba(22, 91, 51, 0.8)) drop-shadow(0 0 15px rgba(196, 30, 58, 0.4));
}

/* Flying Image Animation Class */
.flying-img {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.perspective-container { perspective: 1000px; }
.card-inner { transform-style: preserve-3d; }

/* Christmas Lights Top */
.christmas-lights-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 5px;
    pointer-events: none;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: twinkle 1.5s ease-in-out infinite;
}

.light:nth-child(even) {
    animation-delay: 0.5s;
}

.light:nth-child(3n) {
    animation-delay: 1s;
}

.light.red {
    background: #ff0000;
    color: #ff0000;
}

.light.green {
    background: #00ff00;
    color: #00ff00;
}

.light.gold {
    background: #ffd700;
    color: #ffd700;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Christmas Tree */
.christmas-tree {
    position: absolute;
    width: 200px;
    height: 300px;
    z-index: 5;
    pointer-events: none;
}

.left-tree {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.right-tree {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.tree-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    animation: twinkle 2s ease-in-out infinite;
}

.tree-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid #165b33;
    filter: drop-shadow(0 0 8px rgba(22, 91, 51, 0.5));
}

.tree-section-1 {
    top: 30px;
    border-left-width: 35px;
    border-right-width: 35px;
    border-bottom-width: 50px;
}

.tree-section-2 {
    top: 70px;
    border-left-width: 50px;
    border-right-width: 50px;
    border-bottom-width: 70px;
}

.tree-section-3 {
    top: 120px;
    border-left-width: 65px;
    border-right-width: 65px;
    border-bottom-width: 90px;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 90px;
    background: #8b4513;
    border-radius: 2px;
}

.tree-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tree-light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
    animation: twinkle 1.5s ease-in-out infinite;
}

.tree-light:nth-child(2n) {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    animation-delay: 0.5s;
}

.tree-light:nth-child(3n) {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation-delay: 1s;
}

/* ----------------------------------------------------
   SNOWY BUTTON STYLES 
   ---------------------------------------------------- */
.snow-btn {
    position: relative;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    min-width: 8em;
    text-align: center;
    color: #fff;
    /* Christmas Red Gradient Background */
    background-image: linear-gradient(to bottom, #c41e3a, #a00332, #9f0f31), linear-gradient(to bottom, #c41e3a, #8b0000);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 10px rgba(196, 30, 58, 0.3);
    transition-property: transform, filter;
    transition-duration: 0.2s;
    will-change: transform;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.snow-btn:hover {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 20px rgba(196, 30, 58, 0.5);
}

.snow-btn:active {
    transform: scale(0.92);
    filter: brightness(0.8);
}

.snow-btn::after {
    --overflow-x: 4px;
    --snow-image: url("https://assets.codepen.io/4175254/snow-cap-test-2.png");
    content: "";
    position: absolute;
    top: -6px;
    left: calc(var(--overflow-x) * -1);
    border-image-source: var(--snow-image);
    border-image-slice: calc(6 * 56 / 20) fill;
    border-image-width: calc(28px / 3);
    border-image-repeat: round;
    width: calc(100% + var(--overflow-x) * 2);
    height: 28px;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
    opacity: 1;
    animation: fade-in 2s;
    pointer-events: none;
}

@keyframes fade-in {
    0%, 50% { opacity: 0; }
    100% { opacity: 1; }
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.4s ease;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-content {
  max-width: 450px;
  width: 100%;
  padding: 1.5rem; /* Smaller padding for mobile default */
  border-radius: 1.5rem;
  text-align: center;
  position: relative;
  animation: slideUp 0.5s ease;
  box-shadow: 0 20px 60px rgba(196, 30, 58, 0.4), 0 0 40px rgba(22, 91, 51, 0.2);
}

.cookie-gif-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.cookie-gif {
  width: 80px; /* Smaller default */
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.4), 0 0 30px rgba(22, 91, 51, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.snow-btn-secondary {
  background-image: linear-gradient(to bottom, #165b33, #0d4023, #0a3019), 
                    linear-gradient(to bottom, #165b33, #0a3019);
  opacity: 0.9;
}

.snow-btn-secondary:hover {
  opacity: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 20px rgba(22, 91, 51, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ----------------------------------------------------
   NEW FESTIVE MUSIC PLAYER STYLES (Collapsible & Mobile First)
   ---------------------------------------------------- */
.festive-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(196, 30, 58, 0.4);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(196, 30, 58, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 320px;
    max-width: 90vw;
    overflow: hidden;
}

.festive-player:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(196, 30, 58, 0.4);
    border-color: rgba(196, 30, 58, 0.8);
    transform: translateY(-2px);
}

/* Collapsed State */
.festive-player.collapsed {
    width: 74px; /* Disc (50) + Padding (12*2) */
    gap: 0;
    padding: 12px;
    border-color: rgba(196, 30, 58, 0.2);
    border-radius: 50px;
}

/* Make trigger clickable */
.player-disc-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.festive-player.collapsed .player-disc-container:hover {
    transform: scale(1.1);
}

.player-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #111, #333);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation: spin-slow 8s linear infinite;
    animation-play-state: paused;
}

.player-disc.playing {
    animation-play-state: running;
}

.disc-grooves {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: repeating-radial-gradient(
      #111 0, 
      #111 2px, 
      #222 3px, 
      #222 4px
    );
}

.disc-label {
    width: 20px;
    height: 20px;
    background: #c41e3a;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
}

.disc-label i {
    font-size: 10px;
    color: white;
}

.music-notes {
    position: absolute;
    top: -20px;
    right: -10px;
    pointer-events: none;
}

.music-notes .note {
    position: absolute;
    font-size: 14px;
    color: #ffd700;
    opacity: 0;
}

@keyframes floatNotes {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(10px, -30px) rotate(20deg); opacity: 0; }
}

.festive-player.playing .note {
    animation: floatNotes 2s linear infinite;
}

.festive-player.playing .note:nth-child(1) { animation-delay: 0s; }
.festive-player.playing .note:nth-child(2) { animation-delay: 0.6s; left: 10px; }
.festive-player.playing .note:nth-child(3) { animation-delay: 1.2s; left: -5px; }

/* Controls Area */
.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
}

.festive-player.collapsed .player-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    position: absolute;
    left: 70px; /* Keep it from breaking layout while hidden */
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.song-title {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.time-display {
    color: #94a3b8;
    font-feature-settings: "tnum";
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #c41e3a, #ffd700);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.control-btn:hover {
    color: #c41e3a;
}

.volume-control {
    display: flex;
    align-items: center;
    width: 60px;
}

.volume-control input[type="range"] {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* ----------------------------------------------------
   RESPONSIVE & MOBILE ADJUSTMENTS
   ---------------------------------------------------- */
@media (min-width: 640px) {
  .cookie-buttons {
    flex-direction: row;
  }
  
  .cookie-content {
    padding: 2.5rem;
  }

  .cookie-gif {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 640px) {
    /* Mobile Player: Floating at bottom left */
    .festive-player {
        bottom: 20px;
        left: 20px;
        right: auto; 
        max-width: 300px;
        width: 300px;
    }

    .festive-player.collapsed {
        width: 66px; /* 50 disc + 8*2 pad */
        padding: 8px;
    }
    
    .player-disc-container {
        width: 50px;
        height: 50px;
    }

    .festive-player:hover {
         transform: none; /* Disable hover float on mobile */
    }

    /* Adjust Flying Image on mobile */
    .flying-img {
        display: none !important; /* Too distracting/performance heavy on mobile */
    }
}