/* ============================================================
   PotatoServer.Live — Design Pass v2 (demo)
   15 effects, scoped under body.demo-mode
   Purple #491D8B→#622AB5 · Gold #FFB700 · Blue #60a5fa · Mint #18FFC3
   ============================================================ */

/* ---------- 13. Custom scrollbar + smooth scroll ---------- */
html { scroll-behavior: smooth; }
body.demo-mode::-webkit-scrollbar { width: 12px; }
body.demo-mode::-webkit-scrollbar-track { background: #1a0b33; }
body.demo-mode::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #622AB5, #491D8B);
    border-radius: 8px;
    border: 2px solid #1a0b33;
}
body.demo-mode::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FFB700, #FF6B35); }

/* Close the orphaned white gap at the very top: style.css sets body{padding-top:90px} to
   reserve space for a position:fixed navbar, but on these #home-wrapped pages the nav renders
   inline (relative) instead, so that 90px is just empty white. Zero it. */
body.demo-mode { padding-top: 0; }

/* Keyboard users can bypass the long navigation and game menus. */
.ps-skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 2147483647;
    transform: translateY(-160%);
    padding: .72rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #2a0d54;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    transition: transform .18s ease;
}
.ps-skip-link:focus { transform: translateY(0); }

/* ---------- Demo corner badge ---------- */
.demo-badge {
    position: fixed; bottom: 18px; left: 18px; z-index: 9999;
    background: rgba(26, 11, 51, .92);
    border: 1px solid rgba(255, 183, 0, .55);
    color: #FFD181; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    padding: .45rem .85rem; border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0,0,0,.4);
    pointer-events: none;
}

/* ============================================================
   1. LIVING GAME-ART HERO (collage behind hero)
   ============================================================ */
.demo-mode #home { position: relative; }
.demo-collage {
    position: absolute; inset: 0; overflow: hidden; z-index: 0;
    pointer-events: none;
}
.demo-collage .dc-row {
    position: absolute; left: -5%; width: 110%;
    display: flex; gap: 18px;
    transform: rotate(-4deg);
    opacity: .5;
}
.demo-collage .dc-row.r1 { top: 6%; }
.demo-collage .dc-row.r2 { top: 42%; }
.demo-collage .dc-row.r3 { top: 78%; }
.demo-collage .dc-track {
    display: flex; gap: 18px; flex-shrink: 0;
    animation: dcDrift 70s linear infinite;
}
.demo-collage .dc-row.r2 .dc-track { animation-duration: 90s; animation-direction: reverse; }
.demo-collage .dc-row.r3 .dc-track { animation-duration: 80s; }
.demo-collage img {
    width: 300px; height: 150px; object-fit: cover;
    border-radius: 14px; flex-shrink: 0;
    filter: brightness(.38) saturate(1.25);
}
@keyframes dcDrift { to { transform: translateX(calc(-100% - 18px)); } }
/* purple wash + vignette so text stays king */
.demo-collage::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(73, 29, 139, .25) 0%, rgba(58, 21, 112, .78) 68%, rgba(42, 13, 84, .96) 100%),
        linear-gradient(180deg, rgba(73, 29, 139, .55), rgba(73, 29, 139, .35) 45%, rgba(73, 29, 139, .85));
}

/* ---------- 2. Aurora sweep behind title ---------- */
.demo-aurora {
    position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    mix-blend-mode: screen;
}
.demo-aurora i {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.demo-aurora i:nth-child(1) {
    width: 46vw; height: 46vw; left: 8%; top: 12%;
    background: radial-gradient(circle, #7b3fe4 0%, transparent 65%);
    animation: auroraA 16s ease-in-out infinite alternate;
}
.demo-aurora i:nth-child(2) {
    width: 38vw; height: 38vw; right: 6%; top: 30%;
    background: radial-gradient(circle, #ffb700 0%, transparent 62%);
    opacity: .28;
    animation: auroraB 20s ease-in-out infinite alternate;
}
.demo-aurora i:nth-child(3) {
    width: 30vw; height: 30vw; left: 40%; bottom: 4%;
    background: radial-gradient(circle, #60a5fa 0%, transparent 65%);
    opacity: .35;
    animation: auroraC 24s ease-in-out infinite alternate;
}
@keyframes auroraA { to { transform: translate(14vw, 10vh) scale(1.25); } }
@keyframes auroraB { to { transform: translate(-12vw, -6vh) scale(1.15); } }
@keyframes auroraC { to { transform: translate(-8vw, -12vh) scale(1.3); } }

/* hero content rides above collage/aurora; nav must sit ABOVE .content so its
   dropdown menus escape the hero stacking context and stay clickable */
.demo-mode #home > .content { position: relative; z-index: 2; }
.demo-mode #home > nav { position: relative; z-index: 100; }

/* ============================================================
   3. GAME ICON MARQUEE
   ============================================================ */
.demo-mode #home { margin-bottom: 0 !important; }   /* kill 150px white gap; marquee continues the dark hero */
.demo-marquee {
    background: linear-gradient(180deg, #52239c, #2f1059);
    padding: 34px 0 34px; overflow: hidden; position: relative;
}
.demo-marquee .dm-row {
    display: flex; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.demo-marquee .dm-row + .dm-row { margin-top: 14px; }
.demo-marquee .dm-track {
    display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0;
    animation: dmScroll 55s linear infinite;
}
.demo-marquee .dm-row.rev .dm-track { animation-direction: reverse; animation-duration: 62s; }
.demo-marquee .dm-row:hover .dm-track { animation-play-state: paused; }
.dm-pill {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px; padding: 7px 18px 7px 8px;
    color: #EDE4FF; font-size: .88rem; font-weight: 600; white-space: nowrap;
    text-decoration: none; flex-shrink: 0;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.dm-pill img {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    background: #1a0b33;
}
.dm-pill:hover {
    background: rgba(255, 183, 0, .16);
    border-color: rgba(255, 183, 0, .6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    color: #FFD181;
}
@keyframes dmScroll { to { transform: translateX(-100%); } }

/* ============================================================
   4. COUNT-UP STATS BAR
   ============================================================ */
.demo-stats {
    background: linear-gradient(180deg, #2f1059, #271048);
    padding: 54px 0 64px; position: relative;
    margin: 0;   /* override global section margin-bottom:150px so it sits flush against the wave */
}
.demo-stats .ds-grid {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 820px) { .demo-stats .ds-grid { grid-template-columns: repeat(2, 1fr); } }
.demo-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px; padding: 26px 14px 22px; text-align: center;
    backdrop-filter: blur(6px);
    transition: transform .3s ease, border-color .3s ease;
}
.demo-stat:hover { transform: translateY(-5px); border-color: rgba(255,183,0,.45); }
.demo-stat .ds-num {
    font-size: 2.6rem; font-weight: 800; line-height: 1.1;
    background: linear-gradient(90deg, #FFD181, #FFB700, #FF6B35);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.demo-stat .ds-label { color: #C9B8F0; font-size: .92rem; margin-top: 6px; letter-spacing: .03em; }

/* ============================================================
   7. ANIMATED WAVE DIVIDERS
   ============================================================ */
.demo-wave { position: relative; height: 90px; overflow: hidden; line-height: 0; }
.demo-wave .w {
    position: absolute; inset: 0;
    background-repeat: repeat-x; background-size: 1200px 100%; background-position-y: bottom;
    animation: waveSlide 16s linear infinite;
}
.demo-wave .w.w2 { animation-duration: 24s; animation-direction: reverse; opacity: .55; }
@keyframes waveSlide { to { background-position-x: 1200px; } }
/* purple section above → white section below */
.demo-wave.p2w { background: #271048; }
.demo-wave.p2w .w {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C200,90 400,10 600,45 C800,80 1000,20 1200,55 L1200,90 L0,90 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.demo-wave.p2w.alt { background: #491D8B; }
/* waves replace the big section margins in demo mode */
.demo-mode #socials { margin-top: 0 !important; margin-bottom: 0 !important; }
.demo-mode #donate { margin-top: 0 !important; }
/* white section above → purple section below */
.demo-wave.w2p { background: #ffffff; }
.demo-wave.w2p .w {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C200,90 400,10 600,45 C800,80 1000,20 1200,55 L1200,90 L0,90 Z' fill='%23491D8B'/%3E%3C/svg%3E");
}

/* ============================================================
   8. FEATURED SPOTLIGHT CAROUSEL
   ============================================================ */
.demo-spotlight {
    position: relative; max-width: 1100px; margin: 0 auto 44px;
    border-radius: 22px; overflow: hidden; min-height: 300px;
    box-shadow: 0 18px 50px rgba(30, 8, 65, .35);
}
.demo-spot-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity .9s ease; pointer-events: none;
}
.demo-spot-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.demo-spot-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(26, 8, 55, .93) 0%, rgba(38, 12, 78, .78) 45%, rgba(38, 12, 78, .25) 100%);
}
.demo-spot-inner { position: relative; padding: 44px 52px; max-width: 640px; }
.demo-spot-badge {
    display: inline-block; background: linear-gradient(90deg, #FFB700, #FF6B35);
    color: #2a0d54; font-weight: 800; font-size: .78rem; letter-spacing: .06em;
    padding: .35rem .9rem; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase;
    animation: spotPulse 2.4s ease-in-out infinite;
}
@keyframes spotPulse { 50% { box-shadow: 0 0 0 8px rgba(255, 183, 0, .12); } }
.demo-spot-inner h3 { color: #fff; font-size: 2.1rem; font-weight: 800; margin: 0 0 10px; }
.demo-spot-inner p { color: #D9CCF5; font-size: 1.02rem; line-height: 1.6; margin: 0 0 20px; }
.demo-spot-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #491D8B; font-weight: 700; text-decoration: none;
    padding: .7rem 1.6rem; border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.demo-spot-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.35); color: #491D8B; }
.demo-spot-dots {
    display: flex; gap: 2px;
}
.demo-spot-controls {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(26, 8, 55, .72);
    backdrop-filter: blur(9px);
}
.demo-spot-dots button {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    padding: 0;
}
.demo-spot-dots button::before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: background .25s, transform .25s;
}
.demo-spot-dots button.on::before { background: #FFB700; transform: translate(-50%, -50%) scale(1.35); }
.demo-spot-pause {
    min-height: 28px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    padding: 0 8px 0 10px;
    background: transparent;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.demo-spot-pause [aria-hidden] { display: inline-block; min-width: .8rem; margin-right: 3px; color: #FFD181; }
.demo-spot-dots button:focus-visible,
.demo-spot-pause:focus-visible,
.demo-spotlight:focus-visible {
    outline: 3px solid #FFD181;
    outline-offset: 2px;
}
@media (max-width: 640px) {
    .demo-spot-inner { padding: 30px 24px; }
    .demo-spot-inner h3 { font-size: 1.5rem; }
    .demo-spot-inner { padding-bottom: 76px; }
    .demo-spot-controls { right: 12px; bottom: 12px; }
}

/* ============================================================
   8.5. GAME DIRECTORY SEARCH
   ============================================================ */
.games-discovery {
    max-width: 760px;
    margin: 0 auto 20px;
    text-align: center;
}
.games-search-shell {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .55rem .65rem .55rem 1rem;
    background: #fff;
    border: 2px solid rgba(73, 29, 139, .18);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(73, 29, 139, .1);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.games-search-shell:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 12px 32px rgba(73, 29, 139, .18), 0 0 0 4px rgba(124, 58, 237, .1);
    transform: translateY(-1px);
}
.games-search-shell > i { color: #7c3aed; }
.games-search-shell input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #2a0d54;
    font: inherit;
    font-size: 1rem;
}
.games-search-shell input::placeholder { color: #8a8196; }
.games-search-clear {
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    padding: .45rem .7rem;
    background: #f2edfb;
    color: #491D8B;
    font-size: .78rem;
    font-weight: 800;
}
.games-search-clear:hover { background: #e7dcfa; }
.games-search-meta {
    margin: .65rem 0 0;
    color: #6b7280;
    font-size: .84rem;
}
.games-empty-state {
    margin: 1rem auto 0;
    max-width: 560px;
    padding: 2rem;
    text-align: center;
    color: #491D8B;
    background: #f8f4ff;
    border: 2px dashed #c4b5fd;
    border-radius: 18px;
}
.games-empty-state i { display: block; font-size: 1.65rem; margin-bottom: .65rem; }
.games-empty-state p { margin: 0; }
.games-grid .game-card[hidden] { display: none !important; }
[data-theme="dark"] .games-search-shell {
    background: #17102c;
    border-color: rgba(196, 181, 253, .25);
}
[data-theme="dark"] .games-search-shell input { color: #f5f3ff; }
[data-theme="dark"] .games-search-clear { color: #e9ddff; background: rgba(133, 120, 230, .2); }
[data-theme="dark"] .games-search-meta { color: #b9afd0; }
[data-theme="dark"] .games-empty-state { color: #e9ddff; background: #17102c; border-color: #5b4a82; }
@media (max-width: 576px) {
    .games-discovery { margin-bottom: 16px; }
    .games-search-shell { border-radius: 13px; }
}

/* ============================================================
   5. SCROLL-REVEAL CHOREOGRAPHY
   ============================================================ */
.demo-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0ms);
}
.demo-reveal.demo-in { opacity: 1; transform: none; }

/* ============================================================
   6. 3D TILT + GLARE ON GAME CARDS
   ============================================================ */
.demo-mode .game-card {
    perspective: 900px;
    content-visibility: auto;
    contain-intrinsic-size: 320px 390px;
}
.demo-mode .game-card-inner {
    transition: transform .18s ease-out, box-shadow .3s ease;
    transform-style: preserve-3d; position: relative; overflow: hidden;
}
.demo-mode .game-card:hover .game-card-inner {
    box-shadow: 0 22px 48px rgba(40, 12, 80, .30);
}
.demo-glare {
    position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 46%);
    opacity: 0; transition: opacity .3s ease;
    border-radius: inherit;
}
.demo-mode .game-card:hover .demo-glare { opacity: 1; }
.demo-mode .game-card:hover .game-card-image { transform: scale(1.07); }
.demo-mode .game-card-image { transition: transform .5s ease; }

/* ============================================================
   9. KEN BURNS HERO (game pages)
   ============================================================ */
.demo-mode .game-hero { position: relative; overflow: hidden; }
.demo-kb {
    position: absolute; inset: -4%; z-index: 0;
    background-image: var(--hero-bg);
    background-size: cover; background-position: center;
    animation: demoKB 26s ease-in-out infinite alternate;
}
.demo-kb-shade {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(30, 10, 60, .92) 8%, rgba(50, 18, 100, .72) 48%, rgba(50, 18, 100, .45) 100%);
}
.demo-mode .game-hero .game-hero-content { position: relative; z-index: 2; }
@keyframes demoKB {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.12) translate(1.5%, -1.5%); }
}

/* ============================================================
   10. STICKY QUICK-JOIN BAR (game pages)
   ============================================================ */
.demo-joinbar {
    position: fixed; left: 0; right: 0; top: 0; z-index: 1029;
    transform: translateY(-110%);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
    background: rgba(35, 12, 70, .90);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255, 183, 0, .55);
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.demo-joinbar.visible { transform: translateY(0); }
.demo-joinbar .djb-inner {
    max-width: 1100px; margin: 0 auto; padding: 10px 18px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.demo-joinbar .djb-game { color: #fff; font-weight: 800; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.demo-joinbar .djb-server-list {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 209, 129, .65) transparent;
}
.demo-joinbar .djb-server-list::-webkit-scrollbar { height: 5px; }
.demo-joinbar .djb-server-list::-webkit-scrollbar-thumb { background: rgba(255, 209, 129, .65); border-radius: 999px; }
.demo-joinbar .djb-server {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .32rem .42rem .32rem .55rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.demo-joinbar .djb-server:hover,
.demo-joinbar .djb-server.active {
    transform: translateY(-1px);
    border-color: rgba(255, 183, 0, .75);
    background: rgba(255, 183, 0, .13);
    box-shadow: 0 6px 16px rgba(255, 150, 0, .18);
}
.demo-joinbar .djb-server-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.demo-joinbar .djb-server-link:focus-visible,
.demo-joinbar .djb-copy-inline:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
.demo-joinbar .djb-server-name {
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.demo-joinbar .djb-ip {
    font-family: monospace; color: #FFD181; font-size: .95rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    padding: .35rem .8rem; border-radius: 8px;
}
.demo-joinbar .djb-copy-inline {
    color: #2a0d54;
    background: linear-gradient(90deg, #FFB700, #FF6B35);
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    padding: .28rem .55rem;
    font-weight: 900;
    font-size: .72rem;
    letter-spacing: .02em;
}
.demo-joinbar .djb-copy {
    margin-left: auto; border: none; cursor: pointer;
    background: linear-gradient(90deg, #FFB700, #FF6B35); color: #2a0d54;
    font-weight: 800; font-size: .88rem; padding: .45rem 1.2rem; border-radius: 9px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.demo-joinbar .djb-copy:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 150, 0, .4); }
@media (max-width: 760px) {
    .demo-joinbar .djb-inner { align-items: stretch; gap: 8px; }
    .demo-joinbar .djb-game { width: 100%; font-size: .9rem; }
    .demo-joinbar .djb-server-list { flex-basis: 100%; }
}
@media (max-width: 560px) {
    .demo-joinbar .djb-game { display: none; }
    .demo-joinbar .djb-inner { padding: 8px 10px; }
    .demo-joinbar .djb-server { padding: .28rem .34rem .28rem .42rem; gap: .38rem; }
    .demo-joinbar .djb-server-link { gap: .38rem; }
    .demo-joinbar .djb-server-name { max-width: 8rem; font-size: .74rem; }
    .demo-joinbar .djb-ip { display: inline-flex; font-size: .72rem; padding: .28rem .45rem; }
    .demo-joinbar .djb-copy-inline { font-size: .68rem; padding: .24rem .42rem; }
}

/* ============================================================
   10.25. MULTI-SERVER OVERVIEW
   ============================================================ */
.multi-server-overview {
    position: relative;
    z-index: 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(255, 183, 0, .18), transparent 32%),
        linear-gradient(135deg, #2a0d54 0%, #491D8B 52%, #321061 100%);
    color: #fff;
    margin: 0;
}
.multi-server-overview .mso-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.75rem) 20px;
}
.multi-server-overview .mso-heading {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr);
    column-gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
    margin-bottom: 1.4rem;
}
.multi-server-overview .mso-eyebrow {
    grid-column: 1;
    color: #FFD181;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.multi-server-overview h2 {
    grid-column: 1;
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.55rem);
    font-weight: 900;
    margin: 0;
}
.multi-server-overview .mso-heading p {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #D9CCF5;
    line-height: 1.6;
    margin: 0;
}
.multi-server-overview .mso-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: .85rem;
}
.multi-server-overview .mso-server {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.multi-server-overview .mso-server:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 183, 0, .62);
    background: rgba(255,255,255,.12);
}
.multi-server-overview .mso-server-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 1rem .95rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.multi-server-overview .mso-number {
    color: #C9B8F0;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.multi-server-overview .mso-server strong {
    color: #fff;
    font-size: 1.02rem;
    margin: .18rem 0 .42rem;
}
.multi-server-overview .mso-server code {
    color: #FFD181;
    font-size: .82rem;
    overflow-wrap: anywhere;
}
.multi-server-overview .mso-view {
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    margin-top: .65rem;
}
.multi-server-overview .mso-copy {
    flex: 0 0 auto;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
    padding: .7rem;
    background: rgba(255, 183, 0, .12);
    color: #FFD181;
    font-size: .74rem;
    font-weight: 900;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: background .2s ease, color .2s ease;
}
.multi-server-overview .mso-copy:hover {
    color: #2a0d54;
    background: linear-gradient(180deg, #FFD181, #FFB700);
}
.multi-server-overview .mso-server-main:focus-visible,
.multi-server-overview .mso-copy:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}
.multi-server-overview .mso-feedback {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
@media (max-width: 680px) {
    .multi-server-overview .mso-heading { display: block; }
    .multi-server-overview .mso-heading p { margin-top: .65rem; }
}

/* ============================================================
   10.5. MULTI-SERVER CONNECT CARDS
   ============================================================ */
.demo-mode.multi-server-page .multi-server-connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: stretch;
    margin-top: 4rem;
}
.demo-mode.multi-server-page .multi-server-connect-grid .connect-section {
    margin-top: 0;
    height: 100%;
}
.demo-mode.multi-server-page .connect-section.multi-server-card {
    border-radius: 18px;
    padding: clamp(1.45rem, 3vw, 2.15rem);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .75rem;
    min-height: 0;
    scroll-margin-top: 115px;
}
.demo-mode.multi-server-page .connect-section.multi-server-card::before {
    width: 260px;
    height: 260px;
    right: -90px;
    top: -110px;
}
.demo-mode.multi-server-page .connect-section.multi-server-card::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -110px;
}
.demo-mode.multi-server-page .connect-section.multi-server-card h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-bottom: .35rem;
    letter-spacing: 0;
}
.demo-mode.multi-server-page .connect-section.multi-server-card > p {
    font-size: .98rem;
    margin-bottom: .5rem;
    line-height: 1.45;
}
.demo-mode.multi-server-page .connect-section.multi-server-card .server-ip {
    width: 100%;
    justify-content: space-between;
    gap: .65rem;
    margin: .35rem 0 .75rem;
    padding: .85rem;
    border-radius: 14px;
    font-size: clamp(.88rem, 1.4vw, 1.05rem);
    flex-wrap: wrap;
}
.demo-mode.multi-server-page .connect-section.multi-server-card .server-ip span {
    overflow-wrap: anywhere;
}
.demo-mode.multi-server-page .connect-section.multi-server-card .copy-btn {
    margin: 0;
    padding: .5rem .9rem;
    border-radius: 10px;
}
.demo-mode.multi-server-page .connect-section.multi-server-card .server-name,
.demo-mode.multi-server-page .connect-section.multi-server-card .cm-note {
    position: relative;
    z-index: 2;
}
.demo-mode.multi-server-page .connect-section.multi-server-card .cm-connect-btn {
    align-self: flex-start;
}
@media (max-width: 560px) {
    .demo-mode.multi-server-page .multi-server-connect-grid { margin-top: 2.5rem; }
    .demo-mode.multi-server-page .connect-section.multi-server-card {
        text-align: center;
        align-items: center;
    }
    .demo-mode.multi-server-page .connect-section.multi-server-card .server-ip {
        justify-content: center;
    }
    .demo-mode.multi-server-page .connect-section.multi-server-card .cm-connect-btn {
        align-self: center;
    }
}

/* ============================================================
   12. COPY-IP CONFETTI
   ============================================================ */
.demo-confetti {
    position: fixed; z-index: 99999; pointer-events: none;
    font-size: 14px; line-height: 1; will-change: transform, opacity;
}
.demo-confetti.sq { width: 9px; height: 9px; border-radius: 2px; }

/* ============================================================
   14. BACK-TO-TOP POTATO
   ============================================================ */
.demo-top {
    position: fixed; bottom: 22px; right: 22px; z-index: 9998;
    width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 183, 0, .5);
    background: rgba(35, 12, 70, .9); backdrop-filter: blur(8px);
    color: #fff; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, box-shadow .3s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.demo-top.show { opacity: 1; transform: none; pointer-events: auto; }
.demo-top:hover { box-shadow: 0 10px 28px rgba(255, 160, 0, .35); border-color: #FFB700; }
.demo-top span { display: inline-block; transition: transform .3s ease; }
.demo-top:hover span { transform: translateY(-4px) rotate(-12deg); }
.demo-top.launch span { animation: potatoLaunch .7s ease-in forwards; }
@keyframes potatoLaunch {
    30% { transform: translateY(4px) scale(.9); }
    100% { transform: translateY(-70px) scale(.4); opacity: 0; }
}

/* ============================================================
   15. NAV DROPDOWN CASCADE + GLASS
   ============================================================ */
.demo-mode .dropdown-menu {
    background: rgba(30, 10, 62, .88) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.demo-mode .dropdown-menu .dropdown-item { color: #EDE4FF !important; transition: background .2s ease, color .2s ease; }
.demo-mode .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 183, 0, .14) !important; color: #FFD181 !important;
}

/* ============================================================
   16. MOBILE MENU DRAWER (≤991px)
   ============================================================ */
@media (max-width: 991.98px) {
    /* while the menu is open, freeze the page so scrolling stays INSIDE the menu */
    body.demo-mode.demo-menu-open { overflow: hidden; }

    /* the open panel becomes its own scroll container capped to the viewport */
    .demo-mode .navbar-collapse.show {
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
        scrollbar-width: thin;
    }
    .demo-mode .navbar-collapse.show::-webkit-scrollbar { width: 6px; }
    .demo-mode .navbar-collapse.show::-webkit-scrollbar-thumb { background: rgba(255, 183, 0, .5); border-radius: 4px; }

    /* comfy tap targets + separators for top-level items */
    .demo-mode .navbar-collapse .navbar-nav > .nav-item > .nav-link {
        padding-top: .8rem; padding-bottom: .8rem;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    /* submenus join the panel's single scroll (no nested scrollbar, no floating) */
    .demo-mode .navbar-collapse .dropdown-menu {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, .12);
        margin: .35rem 0 .6rem;
    }

    /* Games List: two-column grid = half the scrolling */
    .demo-mode .navbar-collapse .dropdown-menu[aria-labelledby="gamesList"].show {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        padding: 10px;
    }
    .demo-mode .navbar-collapse .dropdown-menu[aria-labelledby="gamesList"] .dropdown-item {
        font-size: .84rem;
        padding: .6rem .55rem;
        white-space: normal;
        line-height: 1.25;
        border-radius: 9px;
        display: flex; align-items: center; gap: .4rem;
    }

    /* resources submenu items: roomier taps */
    .demo-mode .navbar-collapse .dropdown-menu[aria-labelledby="letsPlay"] .dropdown-item {
        padding-top: .65rem; padding-bottom: .65rem;
    }

    /* hamburger feedback: gold ring + rotate into an open state */
    .demo-mode .navbar-toggler {
        transition: transform .3s ease, background .3s ease, border-color .3s ease;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 10px;
    }
    .demo-mode .navbar-toggler[aria-expanded="true"] {
        transform: rotate(90deg);
        background: rgba(255, 183, 0, .18);
        border-color: #FFB700;
    }
}

/* ============================================================
   Reduced motion: switch everything off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .demo-collage .dc-track, .demo-marquee .dm-track, .demo-wave .w,
    .demo-aurora i, .demo-kb, .demo-spot-badge,
    .demo-mode .dropdown-menu.show .dropdown-item { animation: none !important; }
    .demo-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
