.welcome-section {
    position: relative;
    margin-bottom: 24px;
    margin-top: 60px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 50%, var(--bg-card) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: visible;
}

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

.welcome-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.deco-1 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: -80px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    width: 150px;
    height: 150px;
    background: var(--info);
    bottom: -60px;
    left: -40px;
    animation: float 8s ease-in-out infinite reverse;
}

.deco-3 {
    width: 100px;
    height: 100px;
    background: var(--success);
    top: 50%;
    right: 20%;
    animation: float 7s ease-in-out infinite 1s;
}

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

.sakura-petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--sakura-1);
    border-radius: 50% 0 50% 50%;
    opacity: 0.4;
    animation: sakuraFall 10s linear infinite;
}

.sakura-petal:nth-child(4) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.sakura-petal:nth-child(5) { left: 30%; animation-delay: 2s; animation-duration: 10s; }
.sakura-petal:nth-child(6) { left: 50%; animation-delay: 4s; animation-duration: 14s; }
.sakura-petal:nth-child(7) { left: 70%; animation-delay: 1s; animation-duration: 11s; }
.sakura-petal:nth-child(8) { left: 90%; animation-delay: 3s; animation-duration: 13s; }

@keyframes sakuraFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.5; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(120px) rotate(360deg) scale(0.6);
        opacity: 0;
    }
}

.welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 100px;
}

.greeting-icon {
    width: 180px;
    height: 180px;
    object-fit: contain;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    position: absolute;
    top: -80px;
    left: -60px;
    z-index: 10;
    transform-origin: bottom center;
    will-change: transform;
}

.greeting-icon.no-bounce {
    animation: none;
}

.welcome-greeting.no-mascot {
    padding-left: 0 !important;
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .greeting-icon {
        width: 150px;
        height: 150px;
        top: -70px;
        left: -50px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .greeting-icon {
        width: 120px;
        height: 120px;
        top: -55px;
        left: -40px;
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60%, 100% { transform: rotate(0deg); }
}

.greeting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.greeting-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.welcome-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.time-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.time-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent) 0%, var(--sakura-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(232, 102, 138, 0.2);
}

.traffic-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.has-custom-background .welcome-section {
    background: rgba(var(--bg-card-rgb), var(--custom-card-alpha, 0.75));
    border-color: rgba(var(--border-color-rgb), 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    animation: none;
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 16px 16px 16px 16px;
        margin-top: 40px;
    }

    .welcome-content {
        flex-direction: row;
        gap: 0;
        text-align: left;
    }

    .welcome-greeting {
        padding-left: 70px;
        flex-direction: column;
        align-items: flex-start;
        flex: 1;
    }

    .greeting-icon {
        width: 80px;
        height: 80px;
        top: -40px;
        left: 0;
        transform: none;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
        animation: bounce 2s ease-in-out infinite;
    }

    .greeting-text {
        font-size: 1.2rem;
    }

    .greeting-subtitle {
        font-size: 0.72rem;
    }

    .welcome-time {
        align-items: flex-end;
        flex-shrink: 0;
    }

    .time-value {
        font-size: 1.2rem;
    }

    .time-label {
        font-size: 0.72rem;
    }

    .sakura-petal {
        display: none;
    }

    .deco-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 12px 12px 12px 12px;
        margin-top: 35px;
    }

    .greeting-icon {
        width: 100px;
        height: 100px;
        top: -50px;
        left: -20px;
        transform: none;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
        animation: bounce 2s ease-in-out infinite;
    }

    .welcome-greeting {
        padding-left: 70px;
    }

    .greeting-text {
        font-size: 1.05rem;
    }

    .greeting-subtitle {
        font-size: 0.68rem;
    }

    .time-value {
        font-size: 1.05rem;
    }

    .time-label {
        font-size: 0.68rem;
    }

    .traffic-text {
        font-size: 0.6rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .welcome-section {
        margin-top: 0;
        padding: 12px 16px;
    }

    .greeting-icon {
        width: 65px;
        height: 65px;
        top: -32px;
        left: -15px;
        transform: none;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    }

    .welcome-content {
        flex-direction: row;
    }

    .welcome-greeting {
        flex-direction: row;
        padding-left: 40px;
    }
}
