.home-notice {
    --home-notice-border: var(--border-color, #d9dde5);
    --home-notice-bg: var(--bg-color, #fff);
    --home-notice-text: var(--text-main, #20242c);
    --home-notice-gap: 48px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 36px;
    margin: -8px 0 18px;
    overflow: hidden;
    color: var(--home-notice-text);
    background: var(--home-notice-bg);
    border: var(--border-width, 1px) solid var(--home-notice-border);
    border-radius: var(--radius, 8px);
    box-shadow: var(--card-shadow, none);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.home-notice__icon-wrap {
    display: grid;
    place-items: center;
    border-right: var(--border-width, 1px) solid var(--home-notice-border);
}

.home-notice__icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: .9;
    transition: filter var(--theme-ease, 260ms ease), opacity var(--theme-ease, 260ms ease);
}

[data-theme="dark"] .home-notice__icon {
    filter: brightness(0) invert(1) contrast(1.08);
    opacity: .96;
}

.home-notice__viewport {
    display: flex;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 2px;
    overflow: hidden;
    align-items: center;
}

.home-notice__track {
    display: flex;
    width: max-content;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.home-notice__message {
    flex: none;
    width: max-content;
    box-sizing: border-box;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 34px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.home-notice__message[aria-hidden="true"] {
    display: none;
}

.home-notice__track.is-scrolling {
    animation: home-notice-marquee var(--home-notice-duration) linear infinite;
    animation-delay: 2s;
    animation-fill-mode: backwards;
    will-change: transform;
}

.home-notice__track.is-scrolling .home-notice__message {
    padding-right: var(--home-notice-gap);
}

.home-notice__track.is-scrolling .home-notice__message[aria-hidden="true"] {
    display: inline-block;
}

.home-notice__track:focus-visible {
    animation-play-state: paused;
}

@media (hover: hover) {
    .home-notice__track:hover {
        animation-play-state: paused;
    }
}

.home-notice__track:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

@keyframes home-notice-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--home-notice-distance))); }
}

@media (max-width: 640px) {
    .home-notice {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 34px;
        margin-bottom: 14px;
    }

    .home-notice__icon {
        width: 18px;
        height: 18px;
    }

    .home-notice__message {
        font-size: 13px;
        line-height: 32px;
    }
}
