.pk-games-tabs-shell {
    position: sticky;
    top: calc(var(--topbar-height) + 40px);
    z-index: 120;
    margin: 0 0 22px;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(11,11,11,0.98), rgba(11,11,11,0.88));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.pk-games-tabs {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.pk-games-tabs::-webkit-scrollbar { display: none; }

.pk-games-tabs__button {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.pk-games-tabs__button:hover,
.pk-games-tabs__button:focus-visible,
.pk-games-tabs__button.is-active {
    transform: translateY(-1px);
    background: var(--accent);
    color: #000;
    outline: none;
}

.pk-games-hub__content { min-height: 520px; }
.pk-games-hub__panel { animation: pkGamesPanelIn .28s ease both; }
.pk-games-hub__panel[hidden] { display: none !important; }

.pk-activity-visual--flipper { --activity-visual-image: url('../../media/flipper.png'); }
.pk-activity-visual--billard { --activity-visual-image: url('../../media/billard.png'); }
.pk-activity-visual--shuffleboard { --activity-visual-image: url('../../media/shuffle.png'); }

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

@media (min-width: 700px) {
    .pk-games-tabs-shell { top: calc(var(--topbar-height) + 50px); }
}
@media (min-width: 1024px) {
    .pk-games-tabs-shell { top: calc(var(--topbar-height) + 55px); }
}
@media (prefers-reduced-motion: reduce) {
    .pk-games-hub__panel { animation: none; }
}

/* Ancre de scroll indépendante de la position sticky du menu. */
.pk-games-tabs-anchor {
    display: block;
    height: 0;
    scroll-margin-top: calc(var(--topbar-height) + 40px);
}

/* Garantit assez de hauteur sous le menu pour aligner les sections courtes. */
.pk-games-hub__content {
    min-height: calc(100svh - var(--topbar-height) - 95px);
    padding-bottom: clamp(80px, 18vh, 220px);
}

@media (min-width: 700px) {
    .pk-games-tabs-anchor { scroll-margin-top: calc(var(--topbar-height) + 50px); }
    .pk-games-hub__content { min-height: calc(100svh - var(--topbar-height) - 105px); }
}

@media (min-width: 1024px) {
    .pk-games-tabs-anchor { scroll-margin-top: calc(var(--topbar-height) + 55px); }
    .pk-games-hub__content { min-height: calc(100svh - var(--topbar-height) - 110px); }
}
