

        /* Polices fallback - les fichiers otf sont disponibles dans la racine/fonts */
        @font-face {
            font-family: garetbook;
            font-weight: 400;
            src: url('../../../../fonts/Garet-Book.otf') format('opentype');
        }
        
        @font-face {
            font-family: garetheavy;
            font-weight: 700;
            src: url('../../../../fonts/Garet-Heavy.otf') format('opentype');
        }

#sous_menu{
    display:none;
}

#popup{
    display:none;
}

.popup {
    opacity:0;
    position: fixed;
    width: 100vw;
    height:100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 20px;
    background:unset;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(50, 50, 50, 0.8));
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: popupSlideIn 0.5s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 50px;
    cursor: pointer;
    color:white;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-popup:hover {
    color: #00d4ff;
    transform: rotate(90deg) scale(1.2);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}






/*FIREWORKS*/


/* ----------------------------------------------
 * Generated by Animista on 2023-8-30 21:17:19
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation bounce
 * ----------------------------------------
 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 157, 227, 0.4), 0 0 30px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 10px 60px rgba(0, 157, 227, 0.6), 0 0 50px rgba(124, 58, 237, 0.5);
    }
}

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

@keyframes counterPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 1);
    }
}

@keyframes bounce {
  from, 45%, to {
    transform: scale(1);
    animation-timing-function: ease-out;
  }

  17% {
    transform: scale(0.95);
    animation-timing-function: ease-out;
  }
}




@keyframes ChangeGainAnimation {
    20% { font-size:2em;text-Shadow: 2px 3px 5px #009fe3;color: #ffffff;opacity:1  }
    40% { font-size:2em;text-Shadow: 2px 3px 5px #009fe3;color: #ffffff;opacity:0   }
    60% { font-size:2em;text-Shadow: 2px 3px 5px #009fe3;color: #ffffff;opacity:0   }
    80% { font-size:2em;opacity:0   }
    100% { opacity:1 ; font-size:1em }
}


.TextWinnedGain{
    text-align: center;
    color: white;
    font-family: garetbook,Arial;
    font-size: 1.1em;
    font-weight: 500;
    margin: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.WinnedGain {
    text-align: center;
    color: white;
    font-family: garetbook,Arial;
    padding: 15px 25px;
    display: block;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    font-size: 1.1em;
    background: linear-gradient(135deg, #009fe3 0%, #00d4ff 50%, #00a8cc 100%);
    border: none;
    border-radius: 15px;
    color: white;
    margin: 15px auto;
    box-shadow: 0 8px 32px rgba(0, 157, 227, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: slideUpIn 0.6s ease-out both;
}

.WinnedGain:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.WinnedGain:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 48px rgba(0, 157, 227, 0.5), 0 0 40px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 50%, #0088aa 100%);
}

.WinnedGain:hover:before {
    left: 100%;
}

.WinnedGain:nth-child(2n) {
    animation-delay: 0.1s;
}

.WinnedGain:nth-child(3n) {
    animation-delay: 0.2s;
}

.tier-achievements {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.tier-achievements.is-visible {
    display: flex;
}

.tier-achievements__title {
    font-size: 2em;
    margin: 0 0 12px;
    padding: 0;
    text-align: center;
    font-family: garetheavy, Arial, Helvetica, sans-serif;
    color: #fff;
    width: 100%;
    background: transparent;
}

.tier-achievements__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    background: #0b1524;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.tier-achievements__list .WinnedGain {
    margin: 0;
}

.nextWinText {
    text-align: center;
    color: white;
    font-family: garetbook,Arial;
    font-size:1.1em;
    margin:0;
}


.nextWin {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    text-align: center;
    color: white;
    font-family: garetbook, Arial;
    width: 100%;
    max-width: 100%;
    font-size: 1.1em;
    pointer-events: none;
    box-sizing: border-box;
    padding: 10px 14px;
    margin: 4px 0 12px;
}

.nextWin.nextWin--finished {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
}

#reservoirButton {
    background: linear-gradient(135deg, #009fe3 0%, #00d4ff 50%, #7c3aed 100%);
    border-radius: 20px;
    font-family: garetheavy, Arial, Helvetica, sans-serif;
    color: white;
    border: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    width: 90%;
    max-width: 500px;
    min-width: 200px;
    margin-top: 20px;
    box-shadow: 0 10px 40px rgba(0, 157, 227, 0.4), 0 0 30px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    transition: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
}

body:not(.cm-modern) #reservoirButton {
    height: 10vh;
    min-height: 150px;
    max-height: 300px;
}

@keyframes cmBtnTap {
    0% {
        transform: scale(1) translateZ(0);
    }
    35% {
        transform: scale(0.95) translateZ(0);
    }
    100% {
        transform: scale(1) translateZ(0);
    }
}

#reservoirButton.btn-tap {
    animation: cmBtnTap 160ms cubic-bezier(0.34, 1.4, 0.64, 1);
    transition: none;
    pointer-events: auto;
}

#reservoirButton:active {
    transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    #reservoirButton {
        transition: transform 0.15s ease, box-shadow 0.2s ease;
    }

    #reservoirButton:active {
        transform: scale(0.98) translateZ(0);
    }

    #reservoirButton:hover {
        transform: scale(1.03) translateY(-2px);
        box-shadow: 0 20px 60px rgba(0, 157, 227, 0.6), 0 0 50px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, #00d4ff 0%, #009fe3 50%, #9d4edd 100%);
    }
}

.bounceAnimation {
    animation: bounce 150ms ease-in-out both ;
}

.container-glass {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.drop-layer {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    overflow: visible;
}

.drop {
    position: fixed;
    top: 0;
    margin-left: calc(var(--drop-size, 10px) * -0.5);
    width: var(--drop-size, 10px);
    height: calc(var(--drop-size, 10px) * 1.35);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at 35% 25%, rgba(255, 255, 255, 0.75), var(--drop-color, #00d4ff) 55%, color-mix(in srgb, var(--drop-color, #00d4ff) 70%, #000) 100%);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--drop-color, #00d4ff) 50%, transparent);
    animation: dropFall var(--drop-duration, 0.55s) cubic-bezier(0.55, 0.05, 0.85, 0.45) forwards;
    transform: translateY(0) scale(1);
    transition: none;
    will-change: transform, opacity;
}

.drop-splash {
    position: fixed;
    width: 18px;
    height: 7px;
    margin-left: -9px;
    margin-top: -3px;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--splash-color, #00d4ff) 70%, #fff), transparent 70%);
    animation: dropSplash 0.35s ease-out forwards;
    pointer-events: none;
    transition: none;
}

@keyframes dropFall {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    85% {
        transform: translateY(var(--drop-travel, 200px)) scaleX(0.85) scaleY(1.15);
        opacity: 0.95;
    }
    100% {
        transform: translateY(var(--drop-travel, 200px)) scaleX(1.2) scaleY(0.7);
        opacity: 0;
    }
}

@keyframes dropSplash {
    0% {
        transform: scale(0.4);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}


 * {
    touch-action: manipulation;
  }

a,
button:not(#reservoirButton),
.WinnedGain,
.close-popup,
.online-counter {
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    background-color: #060d18;
}

body {
    margin: 0;
    background-color: #060d18;
    background-image: radial-gradient(#607d8b 15%, #000000 100%);
    font-family: Arial, Helvetica, sans-serif;
}

html.pwa-installed,
html.pwa-installed body {
    min-height: 100%;
    min-height: 100dvh;
}

html.pwa-installed body {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
}

body, body * {
    box-sizing: border-box;
}

h1 {
    text-align: center;
    font-size: 3em;
    color: #ffffff;
    margin: 5vh 0;
    text-shadow: 1px 1px 1px #00000070, -1px -1px 1px #f1f1f12b;
    position: relative;
}

.title {
    position: relative;
    text-align: center;
    font-weight: bold;
    font-size: 5em;
    color: #00000000;
}

.title:before {
    position: absolute;
    content: "LIQUID";
    text-shadow: 1px 1px 1px #00000045, 0px 0px 1px #a4f0ff70;
}

input.changepos {
    width: 100%;
    height: 320px;
    opacity: 0;
    position: absolute;
    z-index: 3333;
    margin: 0;
    cursor: pointer;
    outline: none;
}

.click {
    position: relative;
    margin: 0 auto;
    width: 280px;
    height: 320px;
    top: 4vh;
}

.click:before, .click:after {
    content: "CLICK ON THE GLASS";
    position: absolute;
    bottom: -9vh;
    text-align: center;
    width: 280px;
    font-size: 1.5em;
    box-sizing: border-box;
    filter: blur(1px);
}

.click:after {
    filter: none;
    color: #1c2428;
}

.click:hover:before, .click:hover:after {
    color: #9fe7ff40;
    text-shadow: 0 0 1px #9de8ff4f;
}

.glass {
    display: flex;
    position: relative;
    overflow: hidden;
    --water-height: 0px;
    margin: 0 auto;
    width: 280px;
    height: 40vh;
    border-radius: 140px/50px;
    background-color: rgb(255 255 255 / 0.15);
    top: 0%;
    border: 10px solid rgb(255 255 255 / 0.15);
    box-shadow: 0px 5px 15px -10px #000;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.cm-modern .glass::before,
.cm-modern .glass::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important;
}


input.changepos + .drop + .glass {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

input.changepos:checked + .drop + .glass {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.water {
    position: absolute;
    overflow: hidden;
    margin: 0;
    width: 100%;
    height: 0px;
    border-radius: 140px/50px;
    transform-origin: bottom center;
    background-color: #009fe3;
    background: linear-gradient(180deg, #00d4ff 0%, #009fe3 50%, #0088aa 100%);
    transition: height 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.5s ease;
    bottom: 0;
    left: 0;
}


.water:before {
    position: absolute;
    left: 0px;
    top: 0;
    width: 260px;
    height: 85px;
    border-radius: 130px/42px;
    content: "";
    box-shadow: 0 0 100px 0px #ffffff57;
    z-index: 0;
    background: radial-gradient(#80c2e038, #97979757, #00212f00);
}

.water:after {
    position: absolute;
    left: 0px;
    top: 0;
    width: 260px;
    height: 95px;
    border-radius: 140px/50px;
    content: "";
    z-index: 333;
    background: rgb(0 188 212 / 15%);
    bottom: 0;
    z-index: -1;
    background: rgb(0 188 212 / 5%);
}

.wave, .rewave {
    position: relative;
    width: 100%;
    height: 105px;
    top: -30px;
    display: block;
}


.wave:before, .wave:after, .rewave:before, .rewave:after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 55%;
    right: 50%;
    transform: translate(50%) rotateX(75deg);
    border-radius: 100%;
    opacity: 0;
    width: 85%;
    height: 85%;
    border: 8px solid #007d81;
    animation: dripple 4s ease-out 0s 1 ;
}

.wave:after, .rewave:after {
    animation: dripple 4s ease-out 1s 1 ;
}

.rewave {
    display: none;
}

#containerSub{
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: 90vw;
}

input.changepos:checked + .drop + .glass>.water {
    animation: rewaterlevel 3.75s ease-out 0s 1;
}

input.changepos:checked + .drop + .glass>.water>.rewave {
    display: block;
}

input.changepos:checked + .drop + .glass>.water>.wave {
    display: none;
}

.collection {
    position: absolute;
    bottom: 1.5em;
    width: 100%;
    text-align: center;
}
.collection a {
    background: #ffffff29;
    font-size: 0.9em;
    font-family: Arial, Helvetica, sas;
    padding: 0.5em;
    box-sizing: border-box;
    border-radius: 3px;
    box-shadow: 0px 5px 15px -10px #000;
    text-decoration: none;
    color: #2f3d44;
    font-weight: bold;
}
.collection a:hover {
    color: #2c3a40;
    text-shadow: 0 0 1px #242f34;
    background: #13191b;
}

@keyframes dripple {
    0% { width: 10px; height: 10px; opacity: 0; }
    25% { opacity: 1; }
    100% { width: 250px; height: 250px; top: -55%; opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 1px) rotate(0deg); }
}

input.changepos + .drop {
    position: absolute;
    width: 10px;
    height: 12px;
    background: #69b4d5;
    border-radius: 100% 0 100% 100%;
    border-bottom: 1px solid #3ea4d0;
    z-index: 1;
    opacity: 0;
    top: 40px;
    animation: dripping 2s ease-out 0.25s 1;
    left: -8px;
    transform: translate(14px, 5px) rotate(90deg);
}

input.changepos:checked + .drop {
    animation: dripping 2s ease-out 0.25s 1;
}

input.changepos + .drop:before {
    animation: minidrop 2.5s ease-out 0.25s 1;
}

input.changepos + .drop:after {
    animation: minidrop 3.5s ease-out 0.25s 1;
    top: 0px;
    left: 0px;
}

input.changepos:checked + .drop:before {
    animation: minidrop 2.5s ease-out 0.25s 1;
}

input.changepos:checked + .drop:after {
    animation: minidrop 3.5s ease-out 0.25s 1;
}

@keyframes dripping {
    0% { transform: translate(14px, 5px) rotate(90deg); opacity: 0; }
    15% { transform: translate(0px, 0px) rotate(90deg); opacity: 1; }
    20% { transform: translate(-5px, 5px) rotate(5deg); opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate(-50px, 500px) rotate(-45deg); opacity: 0; }
}

@keyframes minidrop {
    0% { transform: translate(14px, 5px); }
    100% { transform: translate(-50px, 50px); }
}


        #mainMenu {
            height: fit-content;
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            position: relative;
            top: 0;
            z-index: 10;
            gap: 8px;
        }

        .mainMenuLogo {
            display: flex;
            flex-shrink: 0;
        }

        #logoHeadMenu {
            height: 70px;
            margin: 20px;
            z-index: 1000;
        }

        .online-counter {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-left: 4px;
            padding: 8px 16px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(0, 212, 255, 0.35);
            color: #fff;
            font-family: garetbook, Arial, Helvetica, sans-serif;
            font-size: 1rem;
            white-space: nowrap;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        #onlineCount {
            font-family: garetheavy, Arial, Helvetica, sans-serif;
            font-size: 1.25rem;
            min-width: 1.25rem;
            text-align: center;
        }

        .online-label {
            opacity: 0.9;
            font-size: 0.95rem;
        }

        .online-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #00ff88;
            box-shadow: 0 0 8px #00ff88;
            animation: onlinePulse 2s ease-in-out infinite;
        }

        @keyframes onlinePulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(0.9); }
        }

        #popup p {
            color: white;
            font-size: 1.3em;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            font-weight: 500;
            margin: 10px 0;
            letter-spacing: 0.5px;
        }


@media screen and (max-width: 750px) {

    .online-counter {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    #onlineCount {
        font-size: 1.05rem;
    }

    .online-label {
        font-size: 0.8rem;
    }

    .reservoirGain{
    font-size: 0.5em;

}
}

