/* ============================================
   Christmas Top Banner (one-line)
   ============================================ */

.ChristmasTopBanner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(135deg, #9B2335 0%, #B33A3A 50%, #9B2335 100%);
    background-size: 200% 200%;
    animation: christmasGradient 8s ease infinite;
    padding: 8px 12px;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
}

.ChristmasTopBanner .XmasTopSparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 215, 0, 0.6);
    animation: topSparkle 2s ease-in-out infinite;
    opacity: 0.5;
}

.ChristmasTopBanner .XmasTopSparkle:nth-child(1) {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.ChristmasTopBanner .XmasTopSparkle:nth-child(2) {
    top: 60%;
    right: 25%;
    animation-delay: 0.7s;
}

.ChristmasTopBanner .XmasTopSparkle:nth-child(3) {
    top: 30%;
    right: 12%;
    animation-delay: 1.4s;
}

@keyframes topSparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.ChristmasTopBanner .XmasTopContent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ChristmasTopBanner .XmasTopIcon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(83%) sepia(47%) saturate(1000%) hue-rotate(359deg) brightness(103%) contrast(106%);
    animation: topIconFloat 2s ease-in-out infinite;
}

@keyframes topIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.ChristmasTopBanner .XmasTopText {
    color: #ffd700;
    font-family: TTFbold, sans-serif;
    font-size: 12pt;
}

.ChristmasTopBanner .XmasTopArrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffd700;
    border-right: 2px solid #ffd700;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-right: 8px;
}

/* ============================================
   Christmas Gift Banner Styles
   ============================================ */

/* Main Gift Banner Container */
.ChristmasGiftBanner {
    position: relative;
    background: linear-gradient(135deg, #9B2335 0%, #B33A3A 25%, #9B2335 50%, #B33A3A 75%, #9B2335 100%);
    background-size: 400% 400%;
    animation: christmasGradient 8s ease infinite;
    border-radius: 8px;
    padding: 20px 20px 18px;
    overflow: hidden;
}

@keyframes christmasGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Snowflakes container */
.ChristmasGiftBanner .Snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Individual snowflakes */
.ChristmasGiftBanner .Snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: xmasSnowfall linear infinite;
    top: -20px;
}

.ChristmasGiftBanner .Snowflake:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; font-size: 12px; }
.ChristmasGiftBanner .Snowflake:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 1s; font-size: 16px; }
.ChristmasGiftBanner .Snowflake:nth-child(3) { left: 25%; animation-duration: 7s; animation-delay: 2s; font-size: 10px; }
.ChristmasGiftBanner .Snowflake:nth-child(4) { left: 35%; animation-duration: 9s; animation-delay: 0.5s; font-size: 14px; }
.ChristmasGiftBanner .Snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; font-size: 18px; }
.ChristmasGiftBanner .Snowflake:nth-child(6) { left: 65%; animation-duration: 8s; animation-delay: 3s; font-size: 12px; }
.ChristmasGiftBanner .Snowflake:nth-child(7) { left: 75%; animation-duration: 10s; animation-delay: 2.5s; font-size: 16px; }
.ChristmasGiftBanner .Snowflake:nth-child(8) { left: 85%; animation-duration: 9s; animation-delay: 0.8s; font-size: 10px; }
.ChristmasGiftBanner .Snowflake:nth-child(9) { left: 95%; animation-duration: 7s; animation-delay: 1.2s; font-size: 14px; }

@keyframes xmasSnowfall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

/* Sparkle stars */
.ChristmasGiftBanner .Sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.ChristmasGiftBanner .Sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #ffd700, 0 0 20px 4px rgba(255, 215, 0, 0.5);
    animation: sparkle 2s ease-in-out infinite;
}

.ChristmasGiftBanner .Sparkle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.ChristmasGiftBanner .Sparkle:nth-child(2) { top: 25%; right: 15%; animation-delay: 0.5s; }
.ChristmasGiftBanner .Sparkle:nth-child(3) { top: 60%; left: 8%; animation-delay: 1s; }
.ChristmasGiftBanner .Sparkle:nth-child(4) { top: 70%; right: 12%; animation-delay: 1.5s; }
.ChristmasGiftBanner .Sparkle:nth-child(5) { top: 40%; left: 3%; animation-delay: 0.3s; }
.ChristmasGiftBanner .Sparkle:nth-child(6) { top: 50%; right: 5%; animation-delay: 0.8s; }

@keyframes sparkle {
    0%, 100% { transform: scale(0.5); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Content wrapper */
.ChristmasGiftBanner .GiftContent {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Gift icon animation */
.ChristmasGiftBanner .GiftIconWrapper {
    display: inline-block;
    margin-bottom: 12px;
    animation: giftBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.ChristmasGiftBanner .GiftIconWrapper img {
    width: 56px;
    height: 56px;
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    25% { transform: translateY(-8px) rotate(3deg); }
    50% { transform: translateY(0) rotate(-3deg); }
    75% { transform: translateY(-4px) rotate(2deg); }
}

/* Gift title */
.ChristmasGiftBanner .GiftTitle {
    font-family: TTFbold, sans-serif;
    font-size: 14pt;
    color: #ffd700;
    margin-top: 18px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.ChristmasGiftBanner .GiftSubtitle {
    font-family: TTFnormal, sans-serif;
    font-size: 11pt;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Christmas Button */
.ChristmasGiftButton {
    display: inline-block;
    background: #d4af37;
    color: #1a472a !important;
    font-family: TTFbold, sans-serif;
    font-size: 12pt;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.ChristmasGiftButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.ChristmasGiftButton:hover {
    background: #e5c247;
}

.ChristmasGiftButton:active {
    background: #c9a73f;
}

.ChristmasGiftButton .ButtonIcon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -2px;
    filter: brightness(0) saturate(100%) invert(23%) sepia(15%) saturate(1500%) hue-rotate(93deg) brightness(95%) contrast(85%);
    animation: giftShake 2.5s ease-in-out infinite;
    transform-origin: center bottom;
}

.ChristmasGiftButton span {
    vertical-align: middle;
    position: relative;
    top: -1px;
}

@keyframes giftShake {
    0%, 70%, 100% { transform: rotate(0deg); }
    72% { transform: rotate(-12deg); }
    74% { transform: rotate(10deg); }
    76% { transform: rotate(-10deg); }
    78% { transform: rotate(8deg); }
    80% { transform: rotate(-6deg); }
    82% { transform: rotate(4deg); }
    84% { transform: rotate(0deg); }
}

/* Light string decoration at top */
.ChristmasGiftBanner .LightString {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 3;
}

.ChristmasGiftBanner .Light {
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: lightGlow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 8px 2px currentColor;
}

.ChristmasGiftBanner .Light:nth-child(odd) { background: #ff4444; color: #ff4444; }
.ChristmasGiftBanner .Light:nth-child(even) { background: #44ff44; color: #44ff44; animation-delay: 0.75s; }
.ChristmasGiftBanner .Light:nth-child(3n) { background: #ffd700; color: #ffd700; animation-delay: 0.5s; }
.ChristmasGiftBanner .Light:nth-child(4n) { background: #4444ff; color: #4444ff; animation-delay: 0.25s; }

@keyframes lightGlow {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Wire connecting lights */
.ChristmasGiftBanner .LightString::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .ChristmasGiftBanner {
        background: linear-gradient(135deg, #7a1c2a 0%, #8f2a2a 25%, #7a1c2a 50%, #8f2a2a 75%, #7a1c2a 100%);
    }
}

/* ============================================
   Christmas Gift Page Styles
   ============================================ */

.ChristmasGiftPage {
    position: relative;
    background: linear-gradient(135deg, #9B2335 0%, #B33A3A 25%, #9B2335 50%, #B33A3A 75%, #9B2335 100%);
    background-size: 400% 400%;
    animation: christmasGradient 8s ease infinite;
    border-radius: 8px;
    padding: 32px 20px 28px;
    overflow: hidden;
    min-height: 400px;
}

.GiftPageClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
    opacity: 0;
    animation: fadeInClose 0.3s ease forwards;
    animation-delay: 2s;
}

@keyframes fadeInClose {
    to { opacity: 1; }
}

.GiftPageClose:hover {
    background: rgba(255, 255, 255, 0.4);
}

.GiftPageClose img {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: invert(1);
}

/* Reuse snowflakes and sparkles from banner */
.ChristmasGiftPage .Snowflakes,
.ChristmasGiftPage .Snowflake,
.ChristmasGiftPage .Sparkles,
.ChristmasGiftPage .Sparkle,
.ChristmasGiftPage .LightString,
.ChristmasGiftPage .Light,
.ChristmasGiftPage .LightString::before {
    /* Inherits from banner styles */
}

.ChristmasGiftPage .Snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ChristmasGiftPage .Snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: xmasSnowfall linear infinite;
    top: -20px;
}

.ChristmasGiftPage .Snowflake:nth-child(1) { left: 3%; animation-duration: 8s; animation-delay: 0s; font-size: 12px; }
.ChristmasGiftPage .Snowflake:nth-child(2) { left: 12%; animation-duration: 12s; animation-delay: 1s; font-size: 16px; }
.ChristmasGiftPage .Snowflake:nth-child(3) { left: 22%; animation-duration: 9s; animation-delay: 2s; font-size: 10px; }
.ChristmasGiftPage .Snowflake:nth-child(4) { left: 32%; animation-duration: 11s; animation-delay: 0.5s; font-size: 14px; }
.ChristmasGiftPage .Snowflake:nth-child(5) { left: 42%; animation-duration: 10s; animation-delay: 1.5s; font-size: 18px; }
.ChristmasGiftPage .Snowflake:nth-child(6) { left: 52%; animation-duration: 8s; animation-delay: 3s; font-size: 12px; }
.ChristmasGiftPage .Snowflake:nth-child(7) { left: 62%; animation-duration: 13s; animation-delay: 2.5s; font-size: 16px; }
.ChristmasGiftPage .Snowflake:nth-child(8) { left: 72%; animation-duration: 9s; animation-delay: 0.8s; font-size: 10px; }
.ChristmasGiftPage .Snowflake:nth-child(9) { left: 82%; animation-duration: 11s; animation-delay: 1.2s; font-size: 14px; }
.ChristmasGiftPage .Snowflake:nth-child(10) { left: 88%; animation-duration: 10s; animation-delay: 2s; font-size: 12px; }
.ChristmasGiftPage .Snowflake:nth-child(11) { left: 94%; animation-duration: 8s; animation-delay: 0.3s; font-size: 16px; }
.ChristmasGiftPage .Snowflake:nth-child(12) { left: 7%; animation-duration: 12s; animation-delay: 1.8s; font-size: 14px; }

.ChristmasGiftPage .Sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.ChristmasGiftPage .Sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #ffd700, 0 0 20px 4px rgba(255, 215, 0, 0.5);
    animation: sparkle 2s ease-in-out infinite;
}

.ChristmasGiftPage .Sparkle:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.ChristmasGiftPage .Sparkle:nth-child(2) { top: 18%; right: 10%; animation-delay: 0.5s; }
.ChristmasGiftPage .Sparkle:nth-child(3) { top: 45%; left: 5%; animation-delay: 1s; }
.ChristmasGiftPage .Sparkle:nth-child(4) { top: 55%; right: 8%; animation-delay: 1.5s; }
.ChristmasGiftPage .Sparkle:nth-child(5) { top: 75%; left: 10%; animation-delay: 0.3s; }
.ChristmasGiftPage .Sparkle:nth-child(6) { top: 80%; right: 12%; animation-delay: 0.8s; }
.ChristmasGiftPage .Sparkle:nth-child(7) { top: 35%; left: 3%; animation-delay: 1.2s; }
.ChristmasGiftPage .Sparkle:nth-child(8) { top: 65%; right: 5%; animation-delay: 0.6s; }

.ChristmasGiftPage .LightString {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 3;
}

.ChristmasGiftPage .Light {
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: lightGlow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 8px 2px currentColor;
}

.ChristmasGiftPage .Light:nth-child(odd) { background: #ff4444; color: #ff4444; }
.ChristmasGiftPage .Light:nth-child(even) { background: #44ff44; color: #44ff44; animation-delay: 0.75s; }
.ChristmasGiftPage .Light:nth-child(3n) { background: #ffd700; color: #ffd700; animation-delay: 0.5s; }
.ChristmasGiftPage .Light:nth-child(4n) { background: #4444ff; color: #4444ff; animation-delay: 0.25s; }

.ChristmasGiftPage .LightString::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

/* Page content wrapper */
.GiftPageContent {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 20px;
}

/* Large gift icon */
.GiftIconLarge {
    display: inline-block;
    margin-bottom: 16px;
    animation: giftFloat 3s ease-in-out infinite;
}

.GiftIconLarge img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(0) saturate(100%) invert(83%) sepia(47%) saturate(1000%) hue-rotate(359deg) brightness(103%) contrast(106%);
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Page titles */
.GiftPageTitle {
    font-family: TTFbold, sans-serif;
    font-size: 22pt;
    color: #ffd700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.GiftPageSubtitle {
    font-family: TTFnormal, sans-serif;
    font-size: 13pt;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

/* Gift info box */
.GiftInfoBox {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 20px;
    max-width: 300px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: max-width 0.4s ease, padding 0.4s ease;
}

.GiftInfoBox.Expanded {
    max-width: 500px;
}

.GiftInfoIcon {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 50px;
    margin-bottom: 10px;
    color: #ffd700;
}

.GiftInfoIcon span {
    position: absolute;
}

.GiftInfoIcon .StarLarge {
    font-size: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: starTwinkleLarge 2s ease-in-out infinite;
    opacity: 0.7;
}

.GiftInfoIcon .StarSmall {
    font-size: 16px;
}

.GiftInfoIcon .StarTiny {
    font-size: 12px;
}

.GiftInfoIcon .StarBottomLeft {
    bottom: 10px;
    left: 0;
    animation: starTwinkleBottomLeft 2.2s ease-in-out infinite;
}

.GiftInfoIcon .StarTopRight {
    top: -2px;
    right: -2px;
    animation: starTwinkleTopRight 1.8s ease-in-out infinite;
}

@keyframes starTwinkleLarge {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(0 0 10px #ffd700); }
}

@keyframes starTwinkleBottomLeft {
    0%, 100% { opacity: 0.6; transform: scale(0.9) rotate(0deg); }
    60% { opacity: 1; transform: scale(1.25) rotate(-10deg); filter: drop-shadow(0 0 5px #ffd700); }
}

@keyframes starTwinkleTopRight {
    0%, 100% { opacity: 0.5; transform: scale(0.85) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); filter: drop-shadow(0 0 6px #ffd700); }
}

.GiftInfoTitle {
    font-family: TTFbold, sans-serif;
    font-size: 15pt;
    color: #fff;
    margin-bottom: 8px;
}

.GiftInfoText {
    font-family: TTFnormal, sans-serif;
    font-size: 11pt;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Toggle button for features */
.GiftFeaturesToggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 36px 12px 20px;
    min-width: 220px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 24px;
    color: #ffd700;
    font-family: TTFbold, sans-serif;
    font-size: 11pt;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.GiftFeaturesToggle:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.GiftFeaturesToggle .ToggleArrow {
    position: absolute;
    right: 20px;
    font-size: 8pt;
    transition: transform 0.3s ease;
}

.GiftFeaturesToggle .ToggleArrow.Open {
    transform: rotate(180deg);
}

/* Features list */
.GiftFeaturesList {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.GiftFeaturesList.Open {
    max-height: 1500px;
    opacity: 1;
    margin-top: 16px;
}

.GiftFeature {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.GiftFeature:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.GiftFeature:first-child {
    padding-top: 0;
}

.GiftFeatureTitle {
    font-family: TTFbold, sans-serif;
    font-size: 11pt;
    color: #ffd700;
    margin-bottom: 4px;
}

.GiftFeatureText {
    font-family: TTFnormal, sans-serif;
    font-size: 11pt;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Benefits list */
.GiftBenefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.GiftBenefit {
    font-family: TTFnormal, sans-serif;
    font-size: 11pt;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 6px;
}

.BenefitIcon {
    color: #90EE90;
    font-weight: bold;
    font-size: 14pt;
}

/* Thank you message */
.GiftThankYou {
    font-family: TTFbold, sans-serif;
    font-size: 12pt;
    color: #ffd700;
    opacity: 0.9;
    margin-top: 8px;
}

/* Dark mode for page */
@media (prefers-color-scheme: dark) {
    .ChristmasGiftPage {
        background: linear-gradient(135deg, #7a1c2a 0%, #8f2a2a 25%, #7a1c2a 50%, #8f2a2a 75%, #7a1c2a 100%);
    }
}

/* ============================================
   Christmas Poem Page (Green Design)
   ============================================ */

.XmasPoemPage {
    position: relative;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 25%, #1a472a 50%, #2d5a3d 75%, #1a472a 100%);
    background-size: 400% 400%;
    animation: christmasGradient 8s ease infinite;
    border-radius: 8px;
    padding: 32px 24px 28px;
    overflow: hidden;
    min-height: 400px;
}

/* Close button */
.XmasPoemClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
    opacity: 0;
    animation: fadeInClose 0.3s ease forwards;
    animation-delay: 2s;
}

.XmasPoemClose:hover {
    background: rgba(255, 255, 255, 0.35);
}

.XmasPoemClose img {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: invert(1);
}

/* Decorative stars */
.XmasPoemStars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.XmasPoemStar {
    position: absolute;
    color: #ffd700;
    font-size: 10px;
    animation: poemStarTwinkle 3s ease-in-out infinite;
    opacity: 0.4;
}

.XmasPoemStar:nth-child(1) { top: 8%; left: 5%; animation-delay: 0s; }
.XmasPoemStar:nth-child(2) { top: 15%; right: 8%; animation-delay: 0.5s; font-size: 8px; }
.XmasPoemStar:nth-child(3) { top: 35%; left: 3%; animation-delay: 1s; font-size: 12px; }
.XmasPoemStar:nth-child(4) { top: 50%; right: 5%; animation-delay: 1.5s; }
.XmasPoemStar:nth-child(5) { top: 65%; left: 6%; animation-delay: 2s; font-size: 8px; }
.XmasPoemStar:nth-child(6) { top: 75%; right: 4%; animation-delay: 0.8s; }
.XmasPoemStar:nth-child(7) { top: 88%; left: 4%; animation-delay: 1.3s; font-size: 12px; }
.XmasPoemStar:nth-child(8) { top: 92%; right: 6%; animation-delay: 0.3s; font-size: 8px; }
.XmasPoemStar:nth-child(9) { top: 5%; left: 15%; animation-delay: 0.7s; font-size: 6px; }
.XmasPoemStar:nth-child(10) { top: 22%; right: 3%; animation-delay: 1.2s; }
.XmasPoemStar:nth-child(11) { top: 28%; left: 8%; animation-delay: 0.4s; font-size: 8px; }
.XmasPoemStar:nth-child(12) { top: 42%; right: 10%; animation-delay: 1.8s; font-size: 6px; }
.XmasPoemStar:nth-child(13) { top: 58%; left: 2%; animation-delay: 0.9s; font-size: 12px; }
.XmasPoemStar:nth-child(14) { top: 70%; right: 8%; animation-delay: 2.2s; font-size: 8px; }
.XmasPoemStar:nth-child(15) { top: 82%; left: 10%; animation-delay: 1.6s; font-size: 6px; }

@keyframes poemStarTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.7; transform: scale(1.1); filter: drop-shadow(0 0 4px #ffd700); }
}

/* Snowflakes */
.XmasPoemSnowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.XmasPoemSnowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    animation: poemSnowfall linear infinite;
    top: -20px;
}

.XmasPoemSnowflake:nth-child(1) { left: 8%; animation-duration: 12s; animation-delay: 0s; font-size: 10px; }
.XmasPoemSnowflake:nth-child(2) { left: 18%; animation-duration: 15s; animation-delay: 2s; font-size: 14px; }
.XmasPoemSnowflake:nth-child(3) { left: 28%; animation-duration: 11s; animation-delay: 4s; font-size: 8px; }
.XmasPoemSnowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 1s; font-size: 12px; }
.XmasPoemSnowflake:nth-child(5) { left: 52%; animation-duration: 13s; animation-delay: 3s; font-size: 10px; }
.XmasPoemSnowflake:nth-child(6) { left: 62%; animation-duration: 16s; animation-delay: 5s; font-size: 14px; }
.XmasPoemSnowflake:nth-child(7) { left: 72%; animation-duration: 12s; animation-delay: 2.5s; font-size: 8px; }
.XmasPoemSnowflake:nth-child(8) { left: 82%; animation-duration: 14s; animation-delay: 0.5s; font-size: 12px; }
.XmasPoemSnowflake:nth-child(9) { left: 90%; animation-duration: 11s; animation-delay: 3.5s; font-size: 10px; }
.XmasPoemSnowflake:nth-child(10) { left: 95%; animation-duration: 15s; animation-delay: 1.5s; font-size: 14px; }

@keyframes poemSnowfall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(800px) rotate(360deg); opacity: 0; }
}

/* Header */
.XmasPoemHeader {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 24px;
}

.XmasPoemTree {
    font-size: 48px;
    margin-bottom: 8px;
    animation: treeGlow 2s ease-in-out infinite;
}

@keyframes treeGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.6)); }
}

.XmasPoemTitle {
    font-family: TTFbold, sans-serif;
    font-size: 24pt;
    color: #ffd700;
    letter-spacing: 1px;
}

/* Content */
.XmasPoemContent {
    position: relative;
    z-index: 2;
    text-align: center;
}

.XmasPoemContent p {
    font-family: TTFnormal, sans-serif;
    font-size: 12pt;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
}

.XmasPoemContent .Spacer {
    height: 16px;
}

/* Divider */
.XmasPoemDivider {
    color: #ffd700;
    font-size: 12px;
    letter-spacing: 8px;
    margin: 24px 0;
    opacity: 0.7;
}

/* Wish section */
.XmasPoemWish {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.XmasPoemWish p {
    color: #ffd700 !important;
    font-family: TTFnormal, sans-serif;
    font-size: 12pt;
}

/* Signature */
.XmasPoemSignature {
    margin-top: 8px;
}

.XmasPoemSignature .SignatureName {
    font-family: TTFhand, cursive;
    font-size: 28pt;
    color: #ffd700 !important;
    margin-bottom: 4px;
}

.XmasPoemSignature .SignatureTitle {
    font-family: TTFnormal, sans-serif;
    font-size: 10pt;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 20px;
}

/* Rating section */
.XmasPoemRating {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    text-align: center;
    margin: 0 -24px -28px -24px;
    border-radius: 0 0 8px 8px;
}

.XmasPoemRating .RatingText {
    font-family: TTFbold, sans-serif;
    font-size: 12pt;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.XmasPoemRating .RatingSubtext {
    font-family: TTFnormal, sans-serif;
    font-size: 10pt;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

/* Rating button */
.XmasPoemButton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffd700;
    color: #1a472a !important;
    font-family: TTFbold, sans-serif;
    font-size: 11pt;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.XmasPoemButton:hover {
    background: #ffe44d;
    transform: translateY(-1px);
}

.XmasPoemButton .ButtonStars {
    font-size: 11pt;
    letter-spacing: -2px;
    position: relative;
    top: -1px;
}

/* Wine glass animation */
.WineGlassAnim {
    display: inline-block;
    animation: wineSwirl 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes wineSwirl {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    80% { transform: rotate(4deg); }
}

/* Tipsy emoji animation */
.TipsyAnim {
    display: inline-block;
    animation: tipsyWobble 6s ease-in-out infinite;
}

@keyframes tipsyWobble {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

/* ============================================
   Christmas Tip Banner (Startseite)
   ============================================ */

.XmasBanner {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 25%, #1a472a 50%, #2d5a3d 75%, #1a472a 100%);
    background-size: 400% 400%;
    animation: christmasGradient 8s ease infinite;
    border-radius: 8px;
    padding: 14px 20px;
    overflow: hidden;
    text-decoration: none;
}

/* Golden stars */
.XmasBannerStars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.XmasBannerStar {
    position: absolute;
    color: #ffd700;
    font-size: 10px;
    animation: poemStarTwinkle 3s ease-in-out infinite;
    opacity: 0.4;
}

.XmasBannerStar:nth-child(1) { bottom: 20%; right: 4%; animation-delay: 0s; }
.XmasBannerStar:nth-child(2) { bottom: 35%; right: 10%; animation-delay: 0.5s; font-size: 8px; }
.XmasBannerStar:nth-child(3) { bottom: 15%; right: 16%; animation-delay: 1s; font-size: 12px; }
.XmasBannerStar:nth-child(4) { bottom: 40%; right: 3%; animation-delay: 1.5s; font-size: 8px; }

/* Content */
.XmasBannerContent {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.XmasBannerIcon {
    font-size: 28px;
    flex-shrink: 0;
    animation: treeGlow 2s ease-in-out infinite;
}

.XmasBannerTextWrap {
    flex: 1;
}

.XmasBannerText {
    font-family: TTFnormal, sans-serif;
    font-size: 12pt;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.XmasBannerHint {
    font-family: TTFbold, sans-serif;
    font-size: 12pt;
    color: #ffd700;
}

.XmasBannerHint .HintArrow {
    display: inline-block;
    position: relative;
    top: 3px;
    margin-left: 3px;
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(83%) sepia(47%) saturate(1000%) hue-rotate(359deg) brightness(103%) contrast(106%);
}

/* Close icon for banner */
#XmasBannerWrap {
    position: relative;
}

#XmasBannerWrap .CloseIcon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    cursor: pointer;
    z-index: 10;
    filter: brightness(0) invert(1) !important;
}

#XmasBannerWrap .CloseIcon:hover {
    opacity: 0.8;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .XmasPoemPage {
        background: linear-gradient(135deg, #0f2818 0%, #1a3a28 25%, #0f2818 50%, #1a3a28 75%, #0f2818 100%);
    }
}

/* ============================================
   Route Gift Icon (Floating)
   ============================================ */

.RouteGiftWrap {
    position: absolute;
    top: 3px;
    left: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.RouteGiftSparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FC8F04;
    border-radius: 50%;
    opacity: 0;
    animation: giftSparkle 2.5s ease-in-out infinite;
}

.RouteGiftSparkle:nth-child(1) {
    top: -8px;
    left: 4px;
    animation-delay: 0s;
}

.RouteGiftSparkle:nth-child(2) {
    top: 10px;
    left: -8px;
    animation-delay: 0.8s;
}

.RouteGiftSparkle:nth-child(3) {
    top: -5px;
    left: 20px;
    animation-delay: 1.6s;
}

@keyframes giftSparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.RouteGiftIcon {
    width: 26px;
    opacity: 0.9;
    margin-top: 2px;
    filter: invert(50%) sepia(90%) saturate(700%) hue-rotate(360deg) brightness(90%);
}

.RouteGiftBubble {
    color: #FC8F04;
    font-family: TTFnormal, sans-serif;
    font-size: 9pt;
    line-height: 1.2;
    margin-left: 6px;
    white-space: nowrap;
}

.FloatingAnim {
    animation: floatingGift 4s ease-in-out infinite;
}

@keyframes floatingGift {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}
