/* Homepage carousels keep touch and trackpad scrolling while hiding the rail. */
.home-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: .25rem .1rem .75rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-carousel-track::-webkit-scrollbar { display: none; }
.home-carousel-track > * { flex: none; scroll-snap-align: start; }
.home-carousel-game { width: min(78vw, 280px); }
.home-carousel-game > a { height: 100%; }
.home-carousel-controls { display: flex; align-items: center; gap: .5rem; }
.home-carousel-count { min-width: 4rem; text-align: right; color: #a1a1aa; font-size: .75rem; font-variant-numeric: tabular-nums; }
.home-carousel-arrow {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #52525b;
    border-radius: 999px;
    background: #27272a;
    color: #f4f4f5;
    transition: background .2s, border-color .2s, opacity .2s;
}
.home-carousel-arrow svg { width: 1rem; height: 1rem; }
.home-carousel-arrow:hover:not(:disabled) { background: #134e4a; border-color: #2dd4bf; }
.home-carousel-arrow:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.home-carousel-arrow:disabled { opacity: .35; cursor: default; }
.home-carousel-progress { height: 3px; margin-top: .75rem; border-radius: 999px; background: #27272a; overflow: hidden; }
.home-carousel-progress > span { display: block; height: 100%; border-radius: inherit; background: #2dd4bf; transition: width .2s ease; }
.home-server-card {
    display: flex;
    flex-direction: column;
    width: min(86vw, 350px);
    min-height: 300px;
    padding: 1.25rem;
    border: 1px solid #3f3f46;
    border-radius: 1rem;
    background: linear-gradient(145deg, #20282a 0%, #18181b 44%, #111113 100%);
    box-shadow: 0 12px 30px rgb(0 0 0 / .18);
    transition: border-color .2s, transform .2s;
}
.home-server-card:hover { border-color: #0d9488; transform: translateY(-2px); }
.home-server-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.home-server-game { color: #5eead4; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-server-game a:hover { color: #99f6e4; }
.home-server-status { display: inline-flex; align-items: center; gap: .35rem; color: #d4d4d8; font-size: .75rem; white-space: nowrap; }
.home-server-status > span { width: .45rem; height: .45rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgb(52 211 153 / .12); }
.home-server-title { margin-top: .9rem; color: #fafafa; font-size: 1.15rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.home-server-region { margin-top: .25rem; color: #a1a1aa; font-size: .75rem; }
.home-server-mod { display: flex; align-items: center; gap: .8rem; min-height: 5rem; margin-top: auto; padding: .6rem; border: 1px solid #3f3f46; border-radius: .75rem; background: rgb(9 9 11 / .75); }
.home-server-mod:hover { border-color: #0d9488; }
.home-server-mod img, .home-server-mod-placeholder { flex: none; width: 4rem; height: 4rem; border-radius: .5rem; object-fit: cover; }
.home-server-mod-placeholder { display: grid; place-items: center; background: #27272a; color: #a1a1aa; font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.home-server-mod-copy { display: block; min-width: 0; }
.home-server-mod-copy small { display: block; color: #a1a1aa; font-size: .7rem; }
.home-server-mod-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #f4f4f5; font-size: .9rem; line-height: 1.3; }
.home-server-stats { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.home-server-stats > span { padding: .35rem .55rem; border-radius: .45rem; background: #27272a; color: #d4d4d8; font-size: .72rem; }
.home-server-details { display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; color: #5eead4; font-size: .82rem; font-weight: 700; }
.home-server-details:hover { color: #99f6e4; }
.home-server-details svg { width: 1rem; height: 1rem; }
@media (prefers-reduced-motion: reduce) {
    .home-carousel-track { scroll-behavior: auto; }
    .home-server-card, .home-carousel-arrow, .home-carousel-progress > span { transition: none; }
}
