:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-dark: #52289d;

    --bg-dark: #0a0a0c;
    --bg-card: linear-gradient(180deg, rgba(15, 16, 35, .72), rgba(15, 16, 35, .40));
    --bg-lighter: #18181c;
    --text-muted: #6cc7f8;
    --text-muted2: #d1befd;
    --border: rgba(255, 255, 255, 0.08);
    --discord: #3B45B7;

    --bg: #0c0c0f;
    --bg-alt: #12121a;
    --card: #16161f;
    --text: #f4f4f5;
    --success: #10b981;
    --radius: 12px;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Header logo FX controls */
    --logo-glow-opacity-min: 0.12;
    --logo-glow-opacity-max: 0.32;
    --logo-glow-blur-min: 14px;
    --logo-glow-blur-max: 22px;
    --logo-glow-scale-min: 0.52;
    --logo-glow-scale-max: 0.78;
    --logo-glow-shift-x: -10px;
    --logo-glow-shift-y: -16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* HyRPG — One-page style (SwordTales-inspired) */

body.onepage {
    /* font-family: var(--font);
    background: var(--bg); */
    /* color: var(--text);
    line-height: 1.6; */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ——— Background sparkles ——— */
body.onepage::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(255, 255, 255, 0.4), transparent 50%),
        radial-gradient(1.5px 1.5px at 75% 15%, rgba(139, 92, 246, 0.5), transparent 50%),
        radial-gradient(2px 2px at 45% 70%, rgba(255, 255, 255, 0.25), transparent 50%),
        radial-gradient(1px 1px at 90% 55%, rgba(200, 180, 255, 0.4), transparent 50%),
        radial-gradient(1.5px 1.5px at 25% 85%, rgba(255, 255, 255, 0.2), transparent 50%),
        radial-gradient(1px 1px at 60% 40%, rgba(139, 92, 246, 0.3), transparent 50%);
    background-size: 100% 100%;
    opacity: 0.6;
    animation: op-sparkle 12s ease-in-out infinite;
}

@keyframes op-sparkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

body.onepage::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 85% 30%, rgba(255, 255, 255, 0.5), transparent 55%),
        radial-gradient(2px 2px at 20% 60%, rgba(180, 140, 255, 0.35), transparent 50%),
        radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.3), transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 20%, rgba(139, 92, 246, 0.4), transparent 50%);
    background-size: 100% 100%;
    opacity: 0;
    animation: op-sparkle-2 9s ease-in-out infinite 1s;
}

@keyframes op-sparkle-2 {

    0%,
    60%,
    100% {
        opacity: 0;
    }

    30%,
    45% {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {

    body.onepage::before,
    body.onepage::after {
        animation: none;
        opacity: 0.3;
    }
}

body.onepage>main {
    position: relative;
    z-index: 1;
    background: url(../images/HyRPG_Bg.webp);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-attachment: scroll;
    background-size: auto;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.onepage .footer {
    position: relative;
    z-index: 1;
}

/* Voile nébuleuse (pages standalone uniquement) */
body:not(.onepage)::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(40% 30% at 10% 20%, rgba(150, 80, 255, 0.3), transparent 60%), radial-gradient(35% 28% at 80% 35%, rgba(90, 160, 255, .18), transparent 60%), radial-gradient(45% 40% at 50% 75%, rgba(110, 60, 220, .18), transparent 65%);
    filter: blur(28px) saturate(1.15);
    opacity: .9;
    transform: rotate(-2deg);
    animation: nebulaDrift 10s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
    0% {
        transform: scale(1) rotate(-2deg);
    }

    100% {
        transform: scale(1.06) rotate(7deg);
    }
}

/* Respect users */
@media (prefers-reduced-motion: reduce) {
    body:not(.onepage)::after {
        animation: none;
    }
}

/* ——— Header ——— */
.header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    isolation: isolate;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 12, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image: url(../images/Header-l-bg.webp);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    z-index: 0;
}

.header-navbar>* {
    position: relative;
    z-index: 1;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    isolation: isolate;
}

.header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.header-logo::before {
    content: "";
    position: absolute;
    inset: -14px -18px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(62% 92% at 25% 74%, rgba(198, 126, 255, 0.74), transparent 76%),
        radial-gradient(58% 90% at 74% 60%, rgba(106, 182, 255, 0.52), transparent 77%);
    filter: blur(var(--logo-glow-blur-min)) saturate(1.08);
    opacity: var(--logo-glow-opacity-min);
    transform: translate(var(--logo-glow-shift-x), var(--logo-glow-shift-y)) scale(var(--logo-glow-scale-min));
    animation: headerLogoBackPulse 3s ease-in-out infinite;
}

.header-logo-particles {
    position: absolute;
    left: -12px;
    top: -10px;
    width: calc(100% + 24px);
    height: calc(100% + 20px);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    opacity: 0.95;
    filter: saturate(1.28) brightness(1.25);
}

@keyframes headerLogoBackPulse {

    0%,
    100% {
        opacity: var(--logo-glow-opacity-min);
        filter: blur(var(--logo-glow-blur-min)) saturate(1.03);
        transform: translate(var(--logo-glow-shift-x), var(--logo-glow-shift-y)) scale(var(--logo-glow-scale-min));
    }

    50% {
        opacity: var(--logo-glow-opacity-max);
        filter: blur(var(--logo-glow-blur-max)) saturate(1.2);
        transform: translate(var(--logo-glow-shift-x), var(--logo-glow-shift-y)) scale(var(--logo-glow-scale-max));
    }
}

@media (prefers-reduced-motion: reduce) {

    .header-logo::before,
    .header-logo-particles {
        animation: none;
    }

    .header-logo-particles {
        display: none;
    }
}

/* ——— Navbar ——— */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(12, 12, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-links {
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}


.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

/* ——— Responsive ——— */
/* Mobile menu */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-navbar {
        padding: 12px 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        z-index: 99;
        background: rgba(12, 7, 23, 0.97);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        height: 93vh;
        justify-content: space-evenly;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px;
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .nav {
        padding: 12px 16px;
    }
}

/*header profil*/
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    background: var(--primary);
    color: white;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.user img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.user-menu {
    position: relative;
}

.user-menu-trigger-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    padding: 2px;
    text-decoration: none;
}

.user-menu-caret {
    font-size: 0.7rem;
    opacity: 0.8;
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 230px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(14, 14, 20, 0.98);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48);
    display: none;
    gap: 4px;
    z-index: 120;
}

.user-menu.is-open .user-menu-panel {
    display: grid;
}

.user-menu-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
}

.user-menu-head strong {
    font-size: 0.85rem;
    color: var(--text);
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    color: var(--text-muted);
    border-radius: 8px;
    border: 0;
    background: transparent;
    text-decoration: none;
    font-size: 0.84rem;
    cursor: pointer;
}

.user-menu-link i {
    width: 14px;
    text-align: center;
}

.user-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.user-menu-link-button {
    font: inherit;
}

.server-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-muted2);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
    font-family: 'Cinzel', serif;
}

.server-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.how-to-join {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 30px auto -50px auto;
    padding: 20px 50px;
    padding-top: 0px;
    border-radius: 20px;
    background: rgba(10, 12, 25, 0);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
}


/* IP Server Button Style */
.server-ip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 45px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, #2b0d4e 50%, #28117c 150%);
    /* extérieur + biseau intérieur */
    box-shadow:
        0 10px 22px rgba(0, 0, 0, .45),
        /* ombre portée */
        0 1px 0 rgba(255, 255, 255, .06),
        /* léger lift */
        inset 0 1px 0 rgba(255, 255, 255, .10),
        /* highlight haut */
        inset 0 -2px 0 rgba(0, 0, 0, .55);
    /* assombrissement bas */
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center;
    /* Important: avoid text selection drag on click */
    -webkit-user-drag: none;
    transform: scale(1), translateZ(0);
    will-change: transform, filter, box-shadow;
    backface-visibility: hidden;

    /* smooth & gamey */
    transition:
        transform 260ms cubic-bezier(.18, 1, .22, 1),
        filter 320ms cubic-bezier(.2, .9, .2, 1),
        box-shadow 320ms cubic-bezier(.2, .9, .2, 1),
        border-color 320ms cubic-bezier(.2, .9, .2, 1),
        background 320ms cubic-bezier(.2, .9, .2, 1);


    /* New Dark Button Style*/
    /* Base "pill" sombre glossy */
    box-shadow:
        0 12px 26px rgba(0, 0, 0, .55),
        inset 0 2px 0 rgba(255, 255, 255, .18),
        inset 0 -3px 0 rgba(0, 0, 0, .75);
    animation: arcanePulse 4.5s ease-in-out infinite;
    width: fit-content;
}


/* Reflet "vernis" */
.server-ip::before {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, .14),
            rgba(255, 255, 255, .04) 40%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;

    /* Make the sheen more alive on hover */
    transition: opacity 280ms ease, filter 320ms ease;
    opacity: .70;
}


/* Petit “inner rim” */
.server-ip::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0;
    /* inset: 1px;
    border-radius: 11px; */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
    pointer-events: none;

    /* couche de bordure animée */
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(120, 80, 255, .65),
            rgba(80, 150, 255, .65),
            transparent 70%);
    background-size: 200% 200%;
    opacity: .55;
    filter: blur(6px);
    z-index: -1;
    animation: arcaneBorder 6s linear infinite;
    transition: all .5s ease-in-out;
}

.server-ip:hover::before {
    opacity: .95;
    /* adds a slight blue sheen without moving it */
    filter: hue-rotate(-24deg) saturate(1.2);
}

.server-ip:hover {
    border-color: #334dd6;
    background: linear-gradient(180deg, #55bcfc 00%, #3d4ddc 100%);
    filter: brightness(120%);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, .52),
        0 1px 0 rgba(255, 255, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .12),
        inset 0 -2px 0 rgba(0, 0, 0, .58);
    /* Hover = slight grow + hue shift toward blue + more "arcane" */
    transform: scale(1.1);
    /* game glow (still controlled) */
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .55),
        0 0 18px rgba(80, 150, 255, .25),
        0 0 42px rgba(120, 80, 255, .18),
        inset 0 2px 0 rgba(255, 255, 255, .16),
        /* bevel top stronger */
        inset 0 -3px 0 rgba(0, 0, 0, .60);
    /* bevel bottom stronger */
}

.server-ip:active {
    filter: brightness(.98);
    /* box-shadow:
        0 7px 16px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .08),
        inset 0 -2px 0 rgba(0, 0, 0, .62); */
    /* same bevel invert */
    box-shadow:
        0 10px 22px rgba(0, 0, 0, .55),
        inset 0 -2px 0 rgba(255, 255, 255, .10),
        inset 0 5px 10px rgba(0, 0, 0, .70);
    /* animation: ipPressBounceRestTopDown 420ms cubic-bezier(.2, 1.35, .35, 1) forwards; */
}

.server-ip.copied {
    border-color: #10b981;
}

.server-ip.copied::after {
    content: 'Copié !';
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #10b981;
    font-family: 'Inter', sans-serif;
    opacity: 1;
    filter: blur(0px);
    text-align: center;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(2, 46, 2, 0.55);
    margin-bottom: 2px;
}

/* when clicked while hovered */
.server-ip:hover:active {
    /* invert bevel to feel "pressed" */
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .55),
        0 0 14px rgba(80, 150, 255, .18),
        inset 0 -2px 0 rgba(255, 255, 255, .12),
        /* light now on bottom */
        inset 0 5px 10px rgba(0, 0, 0, .70);
    /* shadow now on top */
    filter: hue-rotate(-24deg) saturate(1.22) brightness(0.98);
    /* animation: ipPressBounceTopDown 420ms cubic-bezier(.2, 1.35, .35, 1) forwards; */
}


.how-to-join::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(174deg, rgba(160, 120, 255, 0.65), rgba(90, 160, 255, 0), rgba(90, 160, 255, 0), rgba(160, 120, 255, 0.65));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


.how-to-join::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.57), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.how-to-join h3 {
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    border-radius: 18px;
    background: rgba(10, 12, 25, 0.65);
    backdrop-filter: blur(6px);
    width: auto;
    padding: 0 20px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -10px;
    margin-bottom: 0px;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 4px;
}

.how-to-join h3::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    /* épaisseur de bordure */
    border-radius: inherit;
    background: linear-gradient(180deg,
            rgba(160, 120, 255, 0.55),
            rgba(90, 160, 255, 0),
            rgba(255, 255, 255, 0.10));

    /* "trou" au milieu (bordure only) */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}


.steps {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Roadmap Section */
.roadmap-section {
    overflow: hidden;
    padding-bottom: 10%;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

/* Layer image + masque (entre tes ::before et ::after / contenu) */
.roadmap-section .roadmap-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    will-change: background-position;
    opacity: 0.5;
    background-image: url(../images/GreyRoom.webp);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;

    /* masque d’opacité */
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 30%,
            rgba(0, 0, 0, 1) 70%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 30%,
            rgba(0, 0, 0, 1) 70%,
            rgba(0, 0, 0, 0) 100%);
}

.roadmap-section .roadmap-borders {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.roadmap-section .roadmap-borders::before,
.roadmap-section .roadmap-borders::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    width: 340px;
}

.roadmap-section .roadmap-borders::before {
    left: -30px;
    background-image: url(../images/border-left.webp);
    background-position: right center;
}

.roadmap-section .roadmap-borders::after {
    right: -40px;
    background-image: url(../images/border-right.webp);
    background-position: left center;
}

.roadmap-section .roadmap-borders2 {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.roadmap-section .roadmap-borders2::before,
.roadmap-section .roadmap-borders2::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.9;
    width: 340px;
}

.roadmap-section .roadmap-borders2::before {
    left: -5vw;
    background-image: url(../images/border-left2.webp);
    background-position: right center;
}

.roadmap-section .roadmap-borders2::after {
    right: -6vw;
    background-image: url(../images/border-right2.webp);
    background-position: left center;
}

.roadmap-section .roadmap-header,
.roadmap-section .timeline-container {
    position: relative;
    z-index: 1;
}

.roadmap-section::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(900px 400px at 50% 10%, rgb(65, 0, 255), #0009 60%),
        radial-gradient(1700px 800px at 10% 40%, rgba(34, 211, 238, .36), #0000001a 55%),
        radial-gradient(800px 700px at 85% 60%, rgb(140, 1, 255), #19032552 60%),
        radial-gradient(500px 400px at 45% 70%, rgba(59, 130, 246, 0.77), #000 60%);
    filter: blur(0.2px);
    z-index: -2;
    opacity: 0.15;
    animation: background-timeline 5s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

@keyframes background-timeline {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.35;
    }
}

.roadmap-section::after {
    content: "";
    position: absolute;
    inset: -80px;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .50) 50%, transparent 55%),
        radial-gradient(1px 1px at 60% 25%, rgba(255, 255, 255, .35) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 75% 55%, rgba(255, 255, 255, .25) 50%, transparent 55%),
        radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, .25) 50%, transparent 55%),
        radial-gradient(1px 1px at 50% 85%, rgba(255, 255, 255, .20) 50%, transparent 55%);
    opacity: .55;
    z-index: -1;
    animation: twinkle 6.5s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .45;
        transform: translateY(0)
    }

    50% {
        opacity: .70;
        transform: translateY(-6px)
    }
}

.roadmap-header {
    width: 100%;
    height: 132px;
    top: -40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* background: linear-gradient(#0b051300,#000); */
    z-index: -2 !important;
}

.roadmap-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);

    /* profondeur */
    text-shadow: 0 2px 30px rgba(138, 91, 247, 0.56), 0 0 25px rgba(139, 92, 246, .15);
}

.roadmap-year {
    color: var(--primary);
    background: linear-gradient(90deg, var(--violet-2), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 44px rgb(108, 191, 248);
}

.roadmap-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 10px 0 0;
    text-shadow: 0px 0px 20px #8a5af7;
}

/* Timeline */
.timeline-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.timeline {
    display: flex;
    gap: 0;
    min-width: max-content;
    position: relative;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f600 0%, #3b82f6 10%, #06b6d4 35%, #10b981 65%, #8b5cf6 90%, #8b5cf600 100%);
    border-radius: 2px;
    z-index: 1;
    box-shadow: 0 0 28px rgba(34, 211, 238, .14), 0 0 38px rgba(139, 92, 246, .12);
}

/* ✅ L'EFFET SHIMMER (boîte FIXE, on bouge juste le background) */
.timeline::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 30px;
    border-radius: 2px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, transparent 20%, rgba(0, 149, 255, 0.64) 40%, rgba(255, 255, 255, 0.2) 50%, rgba(79, 0, 255, 0.3) 60%, transparent 80%, transparent 100%);
    background-size: 50% 100%;
    background-position: -100% 0%;
    filter: blur(20px);
    mix-blend-mode: screen;
    animation: timelineShimmerBg 15s linear infinite;
}

/* On bouge uniquement le BACKGROUND */
@keyframes timelineShimmerBg {
    0% {
        background-position: -200% 0%;
        opacity: .55;
    }

    100% {
        background-position: 200% 0%;
        opacity: .55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline::after {
        animation: none;
    }
}

.phase {
    flex: 1;
    min-width: 140px;
    position: relative;
}

.phase-header {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: -10px;
}

.phase-version {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: -2px;
    margin-top: 50px;
    background: linear-gradient(90deg, #a78bfa, #22d3ee, #8b5cf6, #a78bfa);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: roadmapGradient 6s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(167, 139, 250, .25);
}

@keyframes roadmapGradient {
    0% {
        background-position: 0%
    }

    50% {
        background-position: 100%
    }

    100% {
        background-position: 0%
    }
}

.phase-number {
    font-size: 0.7rem;
    color: var(--text-muted2);
    margin-bottom: 0px;
}

.phase-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    top: -60px;
}

.phase-dot.alpha {
    background: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.phase-dot.beta {
    background: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.phase-dot.release {
    background: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.phase-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0px 0px 10px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    margin: 0 30px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.phase-label.alpha {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.phase-label.beta {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.phase-label.release {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.phase-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 15px;
    padding-top: 8px;
    margin: 0 8px;
    min-height: 200px;
    padding-top: 23px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transform: translateY(0);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
    justify-content: center;
    z-index: 0;
}

/* bordure glow “nette et détourable” */
.phase-content::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(135deg, rgb(23, 12, 48), rgba(2, 12, 14, 0.14), rgba(60, 127, 233, 0.31));
    opacity: 0.35;
    filter: blur(10px);
    z-index: -1;
}

/* micro-reflet */
.phase-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(150px 80px at 10% 3%, rgba(62, 129, 233, 0.32), transparent 55%);
    opacity: .35;
    pointer-events: none;
}


.phase-content:hover {
    /* transform: translateY(-4px); */
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
}


.phase-content ul {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.phase-content li {
    font-size: 0.8rem;
    padding: 6px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.phase-content li::before {
    content: "";
    width: 1px;
    height: 4px;
    border-radius: 999px;
    position: absolute;
    left: -8px;
    top: 0.95em;
    background: rgb(38, 34, 61);
}

.phase-content li:last-child {
    border-bottom: none;
}

.phase-content li.highlight {
    color: var(--text);
    font-weight: 500;
}

/* ——— Footer ——— */
.footer {
    position: relative;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    margin-top: 0;
    box-shadow:
        0 -18px 40px rgba(84, 55, 180, 0.30),
        inset 0 1px 0 rgba(180, 150, 255, 0.18);
    background: linear-gradient(180deg,
            rgba(13, 11, 24, 0.88) 0%,
            rgba(10, 8, 18, 0.95) 100%);
    animation: footerAura 6s ease-in-out infinite;
    isolation: isolate;
    overflow: visible;
}

.footer .footer-container {
    position: relative;
    z-index: 2;
}

.footer-sparkle-particles {
    position: absolute;
    left: 0;
    top: -66px;
    width: 100%;
    height: calc(100% + 54px);
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    mix-blend-mode: hue;
    filter: saturate(118%) brightness(110%);
}

@keyframes footerAura {

    0%,
    100% {
        box-shadow: 0 -16px 36px rgba(84, 55, 180, 0.24), inset 0 1px 0 rgba(180, 150, 255, 0.14);
    }

    50% {
        box-shadow: 0 -24px 48px rgba(98, 63, 210, 0.34), inset 0 1px 0 rgba(198, 170, 255, 0.22);
    }
}

.footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/HyRPG_Bg.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    z-index: -1;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(900px 200px at -10% 0%, rgba(140, 100, 255, 0.20) 0%, rgba(140, 100, 255, 0.00) 80%);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer .footer-meta {
    font-weight: bold;
}

.footer .footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer .footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 10px;
    /* border: 1px solid rgba(108, 199, 248, 0.14);
    background: linear-gradient(180deg, rgba(108, 199, 248, 0), rgba(108, 199, 248, 0.08)); */
    /* color: rgba(214, 236, 255, 0.71); */
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    /* box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 6px 20px rgba(36, 76, 151, 0.26); */
    /* transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease; */
    border-bottom: 1px solid transparent;
    color: rgba(168, 211, 255, 0.9);
    transition: color .2s ease, border-color .2s ease, text-shadow .2s ease;
}

.footer .footer-links a::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(147, 197, 253, 0), rgba(52, 23, 69, 0.18), rgba(147, 197, 253, 0));
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}

.footer .footer-links a:hover {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgb(0, 0, 0));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 5px 16px rgba(44, 92, 180, 0.1), 0 0 15px rgba(120, 190, 255, 0.1);
    color: #d9e8ff;
    border-color: rgba(168, 211, 255, 0.55);
}

.footer .footer-links a:first-of-type:hover {
    border-color: rgb(5, 109, 243);
    text-shadow: 0px 2px 10px rgb(0, 94, 255);
}

.footer .footer-links a:last-of-type:hover {
    border-color: rgb(146, 5, 243);
    text-shadow: 0px 2px 10px rgb(92, 0, 255);
}


.footer .footer-links a:hover::after {
    opacity: 1;
}

.footer .footer-links a:focus-visible {
    outline: none;
    border-color: rgba(191, 219, 254, 0.8);
    box-shadow:
        0 0 0 3px rgba(96, 165, 250, 0.32),
        0 10px 24px rgba(44, 92, 180, 0.3);
}


/* Mobile */
@media (max-width: 768px) {


    .hero {
        padding: 90px 15px 50px;
    }


    .steps {
        flex-direction: column;
        gap: 8px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }


    .roadmap-section {
        padding: 60px 10px;
        padding-bottom: 140px;
    }

    .timeline-container {
        margin: 0 -10px;
        padding: 0 24px 20px;
    }
}

/* ——— Hero (uses hero.css, ensure anchor scroll) ——— */
#accueil.hero,
#roadmap.roadmap-section {
    scroll-margin-top: 70px;
    min-height: 100vh;
}

/* Roadmap: hide scrollbar, keep scroll */
.roadmap-section .timeline-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.roadmap-section .timeline-container::-webkit-scrollbar {
    display: none;
}

/* ——— OP Sections ——— */
.section {
    padding: 80px 0;
    background: transparent;
}


.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 32px;
}

.section-text {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 40px 0 20px;
    text-align: center;
    color: var(--text-muted);
}

.section-title {
    position: relative;
    margin: 0 auto 24px;
    width: min(920px, calc(100% - 32px));
    padding: 26px 28px;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cadre / pierre (réaliste = image texture légère) */
.section-title__frame {
    position: absolute;
    inset: 0;
    z-index: 0;

    /* Option A: tu mets UNE texture pierre 512/1024 (webp) */
    /* background:
      linear-gradient(180deg, rgba(180,120,255,.20), rgba(0,0,0,.35)),
      url("/assets/ui/stone-tiling.webp"); 
    background-size: cover, 520px;
    background-position: center, 0 0;
  
     border: 1px solid rgba(180,120,255,.22);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.05),
      0 18px 60px rgba(0,0,0,.55); */
}

/* Lueur violette + brume */
.section-title::before {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: 1;
    background: radial-gradient(60% 90% at 50% 40%, rgba(37, 11, 106, 0.36) 0%, rgba(130, 70, 255, .18) 35%, rgba(0, 0, 0, 0) 70%);
    filter: blur(30px);
    opacity: .9;
    pointer-events: none;
}

/* “Veines”/énergie (cheap & clean) */
.section-title::after {
    content: "";
    position: absolute;
    z-index: 2;
    background: radial-gradient(2px 10px at 22% 55%, rgb(200, 120, 255), #0000 70%), radial-gradient(5px 10px at 72% 42%, rgb(120, 210, 255), #0000 70%), linear-gradient(130deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: screen;
    opacity: 1;
    filter: blur(9px);
    transform: translateX(-30%);
    animation: titleEnergy 17s ease-in-out infinite;
    pointer-events: none;
    top: -100px;
    bottom: 100px;
    height: 300%;
    width: 240%;
}

@keyframes titleEnergy {

    0%,
    100% {
        transform: translateX(-30%);
        opacity: .28;
    }

    50% {
        transform: translateX(10%);
        opacity: .45;
    }
}

/* TEXTE */
.section-title__text {
    position: relative;
    z-index: 3;
    display: inline-block;
    letter-spacing: .5px;
    background: linear-gradient(180deg, #fff 0%, #d1c7e7 30%, #d1c7e8 65%, #d1c7e7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff4f;
    -webkit-text-stroke: 0px rgb(214, 204, 236);
    text-shadow: -1px 1px 0px rgba(0, 0, 0, 0.38), 0 0 12px rgba(204, 180, 255, 0.6), 0 0 24px rgba(21, 24, 235, 0.43);
    background-size: 200% 100%;
    animation: titleShimmer 6s linear infinite;
}

@keyframes titleShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Respect “reduce motion” */
@media (prefers-reduced-motion: reduce) {

    .section-title::after,
    .section-title__text {
        animation: none;
    }
}

body.quick-drawer-open {
    overflow: hidden;
}

.quick-drawer-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 210;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(185, 153, 255, 0.45);
    border-radius: 50%;
    padding: 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: #f8f6ff;
    background: linear-gradient(180deg, #5b37aa 0%, #452585 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform .18s ease;
}

.quick-drawer-toggle:hover {
    transform: translateY(-2px);
}

.quick-drawer-badge {
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: rgba(245, 158, 11, 0.9);
    position: absolute;
    right: -3px;
    top: -3px;
}

.quick-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(2, 3, 8, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.quick-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.quick-drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100dvh;
    width: min(420px, 100vw);
    z-index: 230;
    background: #11111a;
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 36px rgba(0, 0, 0, 0.46);
    transform: translateX(104%);
    transition: transform 0.23s ease;
    display: flex;
    flex-direction: column;
}

.quick-drawer.is-open {
    transform: translateX(0);
}

.quick-drawer.is-resizing {
    transition: none;
}

.quick-drawer-resize-handle {
    display: none;
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 0;
    width: 12px;
    cursor: ew-resize;
    touch-action: none;
    z-index: 1;
}

.quick-drawer-resize-handle::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60px;
    border-radius: 999px;
    background: rgba(180, 150, 255, 0.26);
    box-shadow: 0 0 12px rgba(180, 150, 255, 0.2);
}

.quick-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--border);
}

.quick-drawer-head h3 {
    margin: 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.quick-drawer-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.quick-drawer-close:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-drawer-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

.quick-drawer-tab {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.quick-drawer-tab.is-active {
    border-color: rgba(139, 92, 246, 0.6);
    color: var(--text);
    background: rgba(139, 92, 246, 0.18);
}

.quick-tab-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(139, 92, 246, 0.72);
}

.quick-tab-badge.is-empty {
    opacity: 0.35;
}

.quick-drawer-panel {
    flex: 1;
    overflow: auto;
    padding: 16px 18px 18px;
    display: none;
    gap: 14px;
    align-content: start;
}

.quick-drawer-panel.is-active {
    display: grid;
}

.quick-status,
.quick-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quick-inventory-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: rgba(139, 92, 246, 0.1);
    color: #bcb4ff;
}

.quick-inventory-status::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.82rem;
    opacity: 0.95;
}

.quick-inventory-status.is-error {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(127, 29, 29, 0.22);
    animation: quickInventoryStatusShake 0.34s ease-out;
}

.quick-inventory-status.is-error::before {
    content: "\f071";
}

.quick-inventory-status.is-success {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(22, 101, 52, 0.22);
}

.quick-inventory-status.is-success::before {
    content: "\f058";
}

@keyframes quickInventoryStatusShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.quick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.quick-inventory-grid {
    --quick-inventory-cols: 3;
    --quick-inventory-slot-min-desktop: 92px;
    --quick-inventory-min-cols-desktop: 3;
    --quick-inventory-max-cols-desktop: 6;
    --quick-inventory-slot-min-mobile: 132px;
    --quick-inventory-min-cols-mobile: 2;
    --quick-inventory-max-cols-mobile: 4;
    --quick-inventory-slot-min: var(--quick-inventory-slot-min-desktop);
    --quick-inventory-min-cols: var(--quick-inventory-min-cols-desktop);
    --quick-inventory-max-cols: var(--quick-inventory-max-cols-desktop);
    --rp-hit-ms: 220ms;
    --rp-locked-ms: 420ms;
    --rp-hit-shake-px: 2;
    --rp-hit-rotate-deg: 0.75deg;
    --rp-hit-rotate-neg-deg: -0.75deg;
    --rp-hit-glow-alpha: 0.34;
    --rp-locked-glow-alpha: 0.52;
    grid-template-columns: repeat(var(--quick-inventory-cols), minmax(0, 1fr));
    gap: 10px;
}

.quick-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.quick-inventory-slot {
    position: relative;
    overflow: hidden;
    min-height: var(--quick-inventory-slot-min);
    aspect-ratio: 1 / 1;
    padding: 8px;
    gap: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(29, 29, 45, 0.75) 0%, rgba(20, 20, 32, 0.9) 100%);
    border-color: rgba(154, 123, 244, 0.22);
    transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.quick-inventory-slot::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background-repeat: no-repeat;
    background-size: cover;
}

.quick-inventory-slot[data-break-stage="1"]::after {
    opacity: 1;
    background-image:
        radial-gradient(55% 70% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 75%),
        repeating-linear-gradient(118deg,
            rgba(255, 255, 255, 0) 0px,
            rgba(255, 255, 255, 0) 6px,
            rgba(165, 196, 255, 0.28) 7px,
            rgba(165, 196, 255, 0.05) 8px,
            rgba(255, 255, 255, 0) 10px);
}

.quick-inventory-slot[data-break-stage="2"]::after {
    opacity: 1;
    background-image:
        radial-gradient(58% 75% at 50% 50%, rgba(255, 255, 255, 0.12), transparent 72%),
        repeating-linear-gradient(35deg,
            rgba(255, 255, 255, 0) 0px,
            rgba(255, 255, 255, 0) 5px,
            rgba(202, 174, 255, 0.36) 6px,
            rgba(202, 174, 255, 0.08) 7px,
            rgba(255, 255, 255, 0) 9px);
}

.quick-inventory-slot.is-crack-fading::after {
    animation: quickSlotCrackFade var(--rp-decay-ms, 5000ms) linear forwards;
}

@keyframes quickSlotCrackFade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.quick-inventory-slot.is-hit {
    animation: quickSlotHit var(--rp-hit-ms, 220ms) ease-out;
    box-shadow:
        inset 0 0 0 1px rgba(196, 230, 255, calc(var(--rp-hit-glow-alpha, 0.34) * 0.9)),
        0 0 18px rgba(122, 198, 255, var(--rp-hit-glow-alpha, 0.34));
}

@keyframes quickSlotHit {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateX(calc(var(--rp-hit-shake-px, 2) * -1px)) rotate(var(--rp-hit-rotate-neg-deg, -0.75deg)) scale(0.995);
    }

    60% {
        transform: translateX(calc(var(--rp-hit-shake-px, 2) * 1px)) rotate(var(--rp-hit-rotate-deg, 0.75deg)) scale(1.005);
    }

    100% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

.quick-inventory-slot.is-locked-hit {
    border-color: rgba(239, 68, 68, calc(0.5 + (var(--rp-locked-glow-alpha, 0.52) * 0.45)));
    box-shadow:
        inset 0 0 0 1px rgba(255, 166, 166, calc(var(--rp-locked-glow-alpha, 0.52) * 0.9)),
        0 0 18px rgba(239, 68, 68, calc(var(--rp-locked-glow-alpha, 0.52) * 0.65));
    animation: quickSlotLockedHit var(--rp-locked-ms, 420ms) ease-out;
}

@keyframes quickSlotLockedHit {
    0% {
        transform: translateX(0) scale(1);
    }

    20% {
        transform: translateX(calc(var(--rp-hit-shake-px, 2) * -1.35px)) scale(0.992);
    }

    40% {
        transform: translateX(calc(var(--rp-hit-shake-px, 2) * 1.35px)) scale(1.004);
    }

    60% {
        transform: translateX(calc(var(--rp-hit-shake-px, 2) * -1px)) scale(0.997);
    }

    80% {
        transform: translateX(calc(var(--rp-hit-shake-px, 2) * 1px)) scale(1.002);
    }

    100% {
        transform: translateX(0) scale(1);
    }
}

.quick-inventory-slot.is-breaking {
    filter: brightness(1.2) saturate(1.2);
    border-color: rgba(234, 179, 8, 0.72);
    pointer-events: none;
}

.quick-inventory-slot[draggable="true"] {
    cursor: grab;
}

.quick-inventory-slot[draggable="true"]:active {
    cursor: grabbing;
}

.quick-inventory-slot.is-dragging {
    opacity: 0.45;
    transform: scale(0.96);
    border-color: rgba(168, 130, 255, 0.55);
}

.quick-inventory-slot.is-drop-target {
    border-color: rgba(122, 198, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(122, 198, 255, 0.45), 0 0 14px rgba(122, 198, 255, 0.2);
    background: linear-gradient(180deg, rgba(38, 58, 90, 0.72) 0%, rgba(25, 35, 58, 0.9) 100%);
}

.quick-inventory-slot--empty.is-drop-target {
    background: rgba(42, 68, 104, 0.38);
}

.quick-inventory-slot .quick-list-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.quick-inventory-slot .quick-list-meta {
    width: 100%;
    text-align: center;
    gap: 4px;
}

.quick-inventory-slot .quick-list-meta strong {
    font-size: 0.75rem;
    line-height: 1.2;
}

.quick-inventory-slot .quick-list-meta small {
    font-size: 0.66rem;
}

.quick-inventory-slot--empty {
    border-style: dashed;
    border-color: rgba(140, 140, 175, 0.2);
    background: rgba(16, 16, 24, 0.45);
}

.quick-inventory-slot--empty::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px dashed rgba(148, 148, 176, 0.28);
    background: rgba(255, 255, 255, 0.02);
}

.quick-list-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.16);
}

.quick-list-meta {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.quick-list-meta strong {
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-list-meta small {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.quick-basket-item {
    align-items: center;
    gap: 8px;
}

.quick-qty-input {
    min-width: 62px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 6px;
    text-align: center;
}

.quick-qty-input:disabled {
    opacity: 0.65;
    cursor: wait;
}

.quick-qty-input::-webkit-outer-spin-button,
.quick-qty-input::-webkit-inner-spin-button {
    opacity: 1;
}

.quick-remove {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.quick-remove:hover {
    border-color: rgba(239, 68, 68, 0.7);
    color: #ef4444;
}

.quick-remove:disabled {
    opacity: 0.6;
    cursor: wait;
}

.quick-basket-summary {
    margin: 8px 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
}

.quick-basket-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.79rem;
    color: var(--text-muted);
}

.quick-basket-summary-row strong {
    color: var(--text);
}

.quick-basket-summary-row+.quick-basket-summary-row {
    margin-top: 6px;
}

.quick-basket-summary-row--total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.quick-basket-summary-row--total strong {
    color: #f59e0b;
}

.quick-basket-summary-note {
    margin: 8px 0 0;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.quick-loot-reveal {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: none;
}

.quick-loot-reveal.is-open {
    display: block;
}

.quick-loot-reveal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 12, 0.8);
    backdrop-filter: blur(4px);
}

.quick-loot-reveal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 28px));
    border-radius: 16px;
    border: 1px solid rgba(176, 142, 255, 0.35);
    background: linear-gradient(180deg, rgba(18, 18, 36, 0.95) 0%, rgba(10, 10, 24, 0.97) 100%);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 48px rgba(139, 92, 246, 0.25);
    padding: 24px 22px 20px;
    text-align: center;
}

.quick-loot-reveal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.quick-loot-reveal-close:hover {
    color: var(--text);
}

.quick-loot-reveal-kicker {
    margin: 0 0 12px;
    color: #d9d5ff;
    font-size: 0.95rem;
    font-weight: 700;
}

.quick-loot-reveal-icon {
    margin: 0 auto 12px;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d9c6ff;
    background:
        radial-gradient(65% 65% at 50% 50%, rgba(139, 92, 246, 0.36), rgba(139, 92, 246, 0) 75%),
        rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 0 0 1px rgba(202, 174, 255, 0.3), 0 0 30px rgba(139, 92, 246, 0.3);
    animation: quickLootPop 0.55s cubic-bezier(.17, .89, .32, 1.28);
}

@keyframes quickLootPop {
    0% {
        transform: scale(0.72) rotate(-4deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.08) rotate(2deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.quick-loot-reveal-name {
    margin: 0;
    color: #f8f5ff;
    font-size: 1.15rem;
}

.quick-loot-reveal-desc {
    margin: 8px 0 0;
    color: #b5c6ff;
    font-size: 0.85rem;
}

.quick-loot-reveal-note {
    margin: 12px 0 0;
    color: #8bf0bd;
    font-size: 0.78rem;
}

.quick-drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .quick-drawer-toggle {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }

    .quick-drawer {
        width: 100vw;
        border-left: 0;
    }

    .quick-inventory-grid {
        --quick-inventory-slot-min: var(--quick-inventory-slot-min-mobile);
        --quick-inventory-min-cols: var(--quick-inventory-min-cols-mobile);
        --quick-inventory-max-cols: var(--quick-inventory-max-cols-mobile);
    }

    .user-menu-panel {
        width: 210px;
    }
}

@media (min-width: 769px) {
    .quick-drawer-resize-handle {
        display: block;
    }

    body.quick-drawer-resizing {
        cursor: ew-resize;
        user-select: none;
    }
}
