/**
 * โลโก้วงกลมล้วน (logo_wall) — ดีไซน์เฉพาะ ไม่พึ่ง .hl-marketplace__item
 */
.home .hl-module--marketplace-strip.hl-marketplace--logo-wall .hl-module__surface,
.home .hl-module--marketplace-strip.hl-marketplace--logo-wall .hl-marketplace__surface {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.home .hl-module--marketplace-strip.hl-marketplace--logo-wall,
.home .hl-module--marketplace-strip.hl-marketplace--logo-wall .hl-module__shell,
.home .hl-home-section--marketplace-strip,
.home .hl-mp-wall,
.home .hl-mp-wall__viewport {
    overflow: visible;
}

.home .hl-mp-wall {
    --hl-mp-accent: var(--hl-market-accent, var(--hl-accent, #f4502f));
    --hl-mp-chip: clamp(108px, 14vw, 132px);
    --hl-mp-gap: 16px;
    --hl-mp-hover-pad: 10px;
    position: relative;
    padding: 2px 0 8px;
}

.home .hl-mp-wall__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.home .hl-mp-wall__head-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home .hl-mp-wall__accent {
    flex: 0 0 auto;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--hl-mp-accent) 0%, rgba(244, 80, 47, 0.45) 100%);
    box-shadow: 0 0 0 3px rgba(244, 80, 47, 0.12);
}

.home .hl-mp-wall__title {
    margin: 0;
    font-size: clamp(0.88rem, 0.82rem + 0.25vw, 1rem);
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.home .hl-mp-wall__nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.home .hl-mp-wall__nav-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
}

.home .hl-mp-wall__nav-btn:hover {
    color: var(--hl-mp-accent);
    border-color: rgba(244, 80, 47, 0.28);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.home .hl-mp-wall__nav-btn:active {
    transform: translateY(0);
}

.home .hl-mp-wall__viewport {
    position: relative;
    overflow: visible;
    padding-top: var(--hl-mp-hover-pad);
    margin-top: calc(var(--hl-mp-hover-pad) * -1);
}

.home .hl-mp-wall__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--hl-mp-gap) 14px;
    overflow: visible;
}

.home .hl-mp-wall.is-marquee-viewport .hl-mp-wall__viewport {
    overflow: hidden;
}

.home .hl-mp-wall__track.is-marquee.is-marquee-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    scroll-behavior: auto;
    will-change: transform;
    backface-visibility: hidden;
    width: max-content;
}

.home .hl-mp-wall__track.is-marquee:not(.is-marquee-track) {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--hl-mp-hover-pad) 8px 12px;
    margin-top: calc(var(--hl-mp-hover-pad) * -1);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
}

.home .hl-mp-wall__track.is-marquee::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.home .hl-mp-wall__chip {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: var(--hl-mp-chip);
    min-width: var(--hl-mp-chip);
    padding-top: var(--hl-mp-hover-pad);
    margin-top: calc(var(--hl-mp-hover-pad) * -1);
    text-decoration: none;
    color: inherit;
    outline: none;
    overflow: visible;
    z-index: 1;
    animation: hlMpWallChipIn 0.52s cubic-bezier(0.34, 1.28, 0.64, 1) backwards;
    animation-delay: calc(var(--hl-mp-i, 0) * 52ms);
}

.home .hl-mp-wall__chip:hover,
.home .hl-mp-wall__chip:focus-visible {
    text-decoration: none;
    z-index: 3;
}

@keyframes hlMpWallChipIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.82);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hlMpWallFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes hlMpWallRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes hlMpWallRingPulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.02);
    }
}

@keyframes hlMpWallLogoPop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

.home .hl-mp-wall__chip-media {
    position: relative;
    width: var(--hl-mp-chip);
    height: var(--hl-mp-chip);
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 18px rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    animation: hlMpWallFloat 4.8s ease-in-out infinite;
    animation-delay: calc(var(--hl-mp-i, 0) * 0.38s);
    transition:
        transform 0.32s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.32s ease,
        border-color 0.32s ease;
}

.home .hl-mp-wall__chip-media::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        color-mix(in srgb, var(--hl-mp-accent) 55%, transparent) 80deg,
        transparent 160deg,
        color-mix(in srgb, var(--hl-mp-accent) 35%, transparent) 240deg,
        transparent 360deg
    );
    opacity: 0.55;
    animation: hlMpWallRingSpin 9s linear infinite;
    animation-delay: calc(var(--hl-mp-i, 0) * -0.6s);
    pointer-events: none;
    z-index: 0;
}

.home .hl-mp-wall__chip-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    z-index: 0;
    pointer-events: none;
}

.home .hl-mp-wall__chip-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--hl-mp-accent);
    opacity: 0;
    transform: scale(0.94);
    animation: hlMpWallRingPulse 3.2s ease-in-out infinite;
    animation-delay: calc(var(--hl-mp-i, 0) * 0.22s);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.home .hl-mp-wall__chip:hover .hl-mp-wall__chip-media,
.home .hl-mp-wall__chip:focus-visible .hl-mp-wall__chip-media {
    animation-play-state: paused;
    transform: scale(1.1) translateY(-4px);
    border-color: color-mix(in srgb, var(--hl-mp-accent) 40%, transparent);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--hl-mp-accent) 12%, transparent),
        0 14px 32px color-mix(in srgb, var(--hl-mp-accent) 18%, rgba(15, 23, 42, 0.12));
}

.home .hl-mp-wall__chip:hover .hl-mp-wall__chip-ring,
.home .hl-mp-wall__chip:focus-visible .hl-mp-wall__chip-ring {
    animation: none;
    opacity: 1;
    transform: scale(1.04);
}

.home .hl-mp-wall__chip-logo,
.home .hl-mp-wall__chip-fallback {
    position: relative;
    z-index: 1;
}

.home .hl-mp-wall__chip-logo {
    display: block;
    flex: 0 0 auto;
    margin: 0 auto;
    max-width: 72%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    filter: grayscale(0.25) saturate(0.9);
    animation: hlMpWallLogoPop 5.2s ease-in-out infinite;
    animation-delay: calc(var(--hl-mp-i, 0) * 0.45s);
    transition: filter 0.26s ease, transform 0.28s ease;
}

.home .hl-mp-wall__chip:hover .hl-mp-wall__chip-logo,
.home .hl-mp-wall__chip:focus-visible .hl-mp-wall__chip-logo {
    animation: none;
    filter: grayscale(0) saturate(1.1);
    transform: scale(1.08);
}

.home .hl-mp-wall__chip-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    padding: 6px 12px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hl-mp-accent) 8%, #f8fafc);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--hl-mp-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.28s ease, background 0.28s ease;
}

.home .hl-mp-wall__chip:hover .hl-mp-wall__chip-fallback,
.home .hl-mp-wall__chip:focus-visible .hl-mp-wall__chip-fallback {
    transform: scale(1.06);
    background: color-mix(in srgb, var(--hl-mp-accent) 14%, #fff);
}

@media (prefers-reduced-motion: reduce) {
    .home .hl-mp-wall__chip {
        animation: none;
    }

    .home .hl-mp-wall__chip-media,
    .home .hl-mp-wall__chip-media::before,
    .home .hl-mp-wall__chip-ring,
    .home .hl-mp-wall__chip-logo {
        animation: none !important;
    }

    .home .hl-mp-wall__chip:hover .hl-mp-wall__chip-media,
    .home .hl-mp-wall__chip:focus-visible .hl-mp-wall__chip-media {
        transform: scale(1.04);
    }
}
