.game_Container {
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

.game_Header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

.game_HeaderTitle {
    letter-spacing: .2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 1.5rem;
}

/* FIX */

.slider-btn {
    width: 40px;
    height: 40px;
    border: none;
    color: white;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    background-color: transparent;
}


.games_Slider-Viewport {
    position: relative;
    overflow: hidden;
}

.slider_Track {
    display: flex;
    gap: 15px;
    padding-top: 1rem;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    scrollbar-width: none;


}

.slider_Track.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* hide WebKit scrollbar for track */
.slider_Track::-webkit-scrollbar {
    display: none;
}

.game_Card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 999;
    width: 240px;
    flex: 0 0 240px;
    min-width: 200px;
    background: rgb(0, 0, 0, 0.1);
    padding: 1rem;
    border: 1px solid rgba(165, 255, 0, 0.16);
    border-radius: .3rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .2s ease;

}

.game_Card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 18% 12%, rgba(141, 220, 57, 0.12), transparent 36%),
        radial-gradient(circle at 82% 10%, rgba(141, 220, 57, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(141, 220, 57, 0.06), transparent 50%);
    pointer-events: none;
    opacity: .65;
    mix-blend-mode: screen;
}

/*
.game_Card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    z-index: 1;
}
*/

.game_Name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.3rem;
    text-align: center;

}

.game_CardGlitch {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 240px;
    --glitch-base: none;
    --glitch-1: var(--glitch-base);
    --glitch-2: var(--glitch-base);
    --glitch-3: var(--glitch-base);
    --glitch-delay: 0s;
    --glitch-duration: 3.5s;
    --glitch-shift: 1.5px;
}

.game_CardGlitch a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.game_CardGlitch a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game_CardGlitch::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--glitch-base) center/cover no-repeat;
    animation: glitch-flash var(--glitch-duration) infinite steps(1);
    animation-delay: var(--glitch-delay);
    z-index: 2;
    pointer-events: none;
}

/* extra burst layer only runs on intense glitches */
.game_CardGlitch::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--glitch-1) center/cover no-repeat;
    mix-blend-mode: screen;
    opacity: 0;
    animation: glitch-burst var(--glitch-duration) infinite steps(1);
    animation-delay: calc(var(--glitch-delay) + .05s);
    animation-play-state: paused;
    z-index: 3;
    pointer-events: none;
}

@keyframes glitch-flash {

    0%,
    100% {
        background: var(--glitch-base) center/cover no-repeat;
        opacity: 1;
    }

    92.5% {
        background: var(--glitch-1) center/cover no-repeat;
        opacity: 1;
    }

    95% {
        background: var(--glitch-2) center/cover no-repeat;
        opacity: 0;
    }

    97.5% {
        background: var(--glitch-3) center/cover no-repeat;
        opacity: 1;
    }
}

@keyframes glitch-burst {

    0%,
    100% {
        opacity: 0;
        transform: translateX(0);
    }

    90% {
        opacity: .35;
        transform: translateX(calc(var(--glitch-shift) * -1));
    }

    93% {
        opacity: .75;
        transform: translateX(calc(var(--glitch-shift) * 1.4));
    }

    96% {
        opacity: .15;
        transform: translateX(calc(var(--glitch-shift) * -.6));
    }
}

/* intensifies burst layer for selected cards */
.glitch-intense::before {
    animation-play-state: running;
}

/* default intense tuning; JS overwrites per cycle */
.glitch-intense {
    --glitch-duration: .75s;
    --glitch-shift: 2px;
}


.card-intense {
    position: relative;
    border: 1px solid rgba(165, 255, 0, 0.75);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(165, 255, 0, 0.22);
    animation: card-float 2.4s ease-in-out infinite;
}

@keyframes card-float {
    0% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(-2px);
    }
}

/* BLOODY DAWN */
.glitch_Card_Bloody-Dawn {
    --glitch-base: url('../images/games/1-bloody-dawn.jpg');
    --glitch-1: url('../images/games/2-bloody-dawn-glitch.png');
    border-radius: .3rem;
    border: 1px solid rgba(165, 255, 0, 0.16);
    object-fit: cover;
}

.glitch_Card-Wild-Bandito {
    --glitch-base: url('../images/games/1-wild-bandito.png');
    --glitch-1: url('../images/games/2-wild-bandito.png');
    border-radius: .3rem;
    border: 1px solid rgba(165, 255, 0, 0.16);
    object-fit: cover;
}

.glitch_Card-Dynamite-Trio {
    --glitch-base: url('../images/games/1-dynamite-trio.png');
    --glitch-1: url('../images/games/2-dynamite-trio.png');
    border-radius: .3rem;
    border: 1px solid rgba(165, 255, 0, 0.16);
    object-fit: cover;
}

.glitch_Card-Spell-Master {
    --glitch-base: url('../images/games/1-spell-master.png');
    --glitch-1: url('../images/games/2-spell-master.png');
    border-radius: .3rem;
    border: 1px solid rgba(165, 255, 0, 0.16);
    object-fit: cover;
}

.glitch_Card-Rage-of-Perun {
    --glitch-base: url('../images/games/1-rage-of-perun.png');
    --glitch-1: url('../images/games/2-rage-of-perun.png');
    border-radius: .3rem;
    border: 1px solid rgba(165, 255, 0, 0.16);
    object-fit: cover;
}















.game_Button {
    text-decoration: none;
    appearance: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(141, 220, 57, 0.75);
    background: linear-gradient(180deg, #0c1b07, #0b1f05);
    color: #c6ff66;
    font-weight: 700;
    letter-spacing: .4px;
    height: 46px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .08s ease, filter var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), background .12s ease, border-color .12s ease;
    box-shadow:
        0 0 0 1px rgba(141, 220, 57, 0.35) inset,
        0 10px 22px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(141, 220, 57, 0.22);
    animation: bump-in .5s ease .35s both;
    border-radius: .3rem;
}

.game_Button.pill {
    width: auto;
    min-width: 100%;
    justify-content: center;
}

.game_Button:hover {
    filter: brightness(1.05);
    background: linear-gradient(180deg, #10270a, #0f2e07);
    border-color: rgba(152, 232, 76, 0.9);
    box-shadow: 0 0 0 1px rgba(152, 232, 76, 0.45) inset, 0 12px 26px rgba(0, 0, 0, 0.58), 0 0 24px rgba(152, 232, 76, 0.26);
}

.game_Button:active {
    transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
    .game_Button::before {
        content: "";
        position: absolute;
        -webkit-clip-path: var(--btn-clip);
        clip-path: var(--btn-clip);
        top: -1px;
        bottom: -1px;
        left: -40%;
        right: -40%;
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
        transform: translateX(-100%);
        transition: transform .6s ease;
        pointer-events: none;
    }

    .game_Button:hover::before {
        transform: translateX(100%);
    }
}

.game_Status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: .2px;
    margin: 0 auto;
}

.game_Status .status-label {
    font-weight: 700;
}

.game_Status .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #666;
    box-shadow: 0 0 0 transparent;
    animation: dot-pulse 1s ease-in-out infinite;
}

.game_Status .status-text {
    font-weight: 600;
    opacity: .92;
}

.game_Status .status-dot.status-found {
    background: #7bff7b;
    box-shadow: 0 0 8px #7bff7b;
}

.game_Status.status-flash {
    animation: status-pop .55s ease;
}

.game_Status.status-flash .status-dot {
    animation: status-dot-flare .9s ease;
}

@keyframes dot-pulse {
    0% {
        transform: scale(0.9);
        opacity: .7;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: .7;
    }
}

@keyframes status-pop {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    30% {
        transform: translateY(-4px) scale(1.03);
        filter: brightness(1.12);
    }

    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes status-dot-flare {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 transparent;
    }

    40% {
        transform: scale(1.25);
        box-shadow: 0 0 12px rgba(141, 220, 57, 0.75);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(123, 255, 123, 0.6);
    }
}

@media (max-width: 1280px) {
    .game_Card {
        min-width: 180px;
    }

    .slider_Track {
        gap: 12px;
        padding: 10px 14px 10px 0;
    }

    .game_HeaderTitle {
        font-size: 1.35rem;
    }
}

@media (min-width: 1281px) {
    .games_Slider-Viewport {
        overflow: hidden;
        padding-right: 0;
    }

    .slider_Track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 2.5rem;
        padding: 1rem 0 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .game_Card {
        flex: 0 0 calc((95% - (12px * 4)) / 5);
        width: auto;
        max-width: 100%;
    }
}


/* How-to section */
.howto {
    margin-top: 1.5rem;
}

.howto__card {
    border: 1px solid rgba(165, 255, 0, 0.35);
    border-radius: .35rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(165, 255, 0, 0.12);
    display: grid;
    gap: 0.9rem;
}

.howto__title {
    margin: 0;
    color: #b8ff8f;
    letter-spacing: 0.05em;
    font-size: 1.25rem;
}

.howto__tag {
    margin: 0;
    color: #d8ffba;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.9;
}

.howto__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.howto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.howto__item {
    border: 1px solid rgba(165, 255, 0, 0.22);
    border-radius: 0.35rem;
    padding: 0.75rem 0.85rem;
    background: rgba(0, 12, 6, 0.7);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: flex-start;
    box-shadow: inset 0 0 0 1px rgba(165, 255, 0, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.howto__item:hover {
    transform: translateY(-2px);
    border-color: rgba(165, 255, 0, 0.45);
    box-shadow:
        inset 0 0 0 1px rgba(165, 255, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.25);
}

.howto__item i {
    color: #8dff38;
    font-size: 1.2rem;
    margin-top: 2px;
}

.howto__item h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: #e9ffd2;
}

.howto__item p {
    margin: 0;
    color: #d8ffba;
    line-height: 1.45;
    font-size: 0.95rem;
}

.howto__item strong {
    color: #cfff99;
}

/* Install popup */
.install-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    opacity: 0;
    transition: opacity .24s ease;
}

.install-modal[hidden] {
    display: none !important;
}

.install-modal.open {
    opacity: 1;
}

.install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 10, 4, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.install-dialog {
    position: relative;
    z-index: 1;
    margin: 5vh auto;
    max-width: 320px;
    width: min(460px, calc(100% - 24px));
    border: 1px solid rgba(165, 255, 0, 0.35);
    border-radius: 12px;
    background:
        radial-gradient(circle at 20% 10%, rgba(165, 255, 0, 0.08), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(141, 255, 56, 0.06), transparent 38%),
        linear-gradient(180deg, rgba(0, 15, 5, 0.92), rgba(0, 8, 4, 0.95));
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(165, 255, 0, 0.12);
    padding: 14px 14px 12px;
    transform: translateY(8px) scale(.985);
    opacity: 0;
    transition: transform .26s ease, opacity .26s ease;
    pointer-events: auto;
}

.install-modal.open .install-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(165, 255, 0, 0.35);
    background: rgba(0, 0, 0, .25);
    color: #cfff99;
    cursor: pointer;
}

.install-close:hover {
    background: rgba(165, 255, 0, 0.08);
}

.install-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.install-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0b1407;
    background: radial-gradient(circle at 50% 0%, #b8ff8f, #45ff38);
    box-shadow: 0 0 24px rgba(141, 255, 56, 0.45);
}

.install-hero-icon i {
    font-size: 22px;
}

#installTitle {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.06em;
    color: #d9ffbf;
    text-shadow: 0 0 8px rgba(165, 255, 0, 0.25);
}

.install-subtitle {
    margin: 8px 0 8px;
    font-size: 14px;
    color: #d6ffcb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-tabs {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
    margin: 10px 0;
}

.platform-tabs .tab-btn {
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(165, 255, 0, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #e8ffcf;
    cursor: pointer;
    padding: 0 10px;
    text-align: center;
    transition: border 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.platform-tabs .tab-btn.active {
    background: linear-gradient(180deg, rgba(141, 255, 56, 0.2), rgba(69, 255, 56, 0.1));
    border-color: rgba(165, 255, 0, 0.6);
    box-shadow: 0 6px 14px rgba(141, 255, 56, 0.18);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.steps li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(165, 255, 0, 0.25);
    background: rgba(0, 12, 6, 0.65);
    border-radius: 11px;
    padding: 9px 10px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #8dff38, #45ff38);
    color: #0c1408;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(141, 255, 56, 0.35);
}

.step-title {
    font-weight: 700;
    color: #e9ffd2;
    letter-spacing: 0.02em;
}

.step-sub {
    color: #d0ffba;
    font-size: 12px;
}

.install-cta {
    margin-top: 14px;
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    color: #0b1407;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #8dff38, #45ff38);
    box-shadow: 0 10px 24px rgba(141, 255, 56, 0.26);
}

.install-cta:hover {
    filter: brightness(1.05);
}
