.game-tirage-container h1, .cardintro h2 { color: var(--game-color-txtSuite); }  .game-tirage-container h1 { font-size: 2.5em; font-weight: 600; text-align: center; }
    .game-tirage-container h2 { font-size: 3em; } .game-tirage-container .cardintro h2 { font-size: 2em; font-family: var(--font-subtitle); }
    .game-tirage-container h3 {  font-size: 1.5em;  font-weight: 600;  }
    .game-tirage-container h4 {   font-size: 1.2em;  color: var(--colorSelected); }
    @media (max-width: 930px) {
       .game-tirage-container h1 { font-size: 2em; } .game-tirage-container h2, .game-tirage-container .cardintro h2 { font-size: 1.7em; } .game-tirage-container h3 { font-size: 1.3em; }
    }
    #zonesfixes { color: var(--game-color-txtSuite); }.cardintro { background : no-repeat url('ged/cardsparams/back_home.png') ; background-size:cover; background-position-x: 100%; }#drawnCardSection { background : no-repeat url('ged/cardsparams/back_card.png') ; background-size:cover; background-position-x: 50%; color: white; }#categorySection { background : no-repeat url('ged/cardsparams/back_category.png') ; background-size:cover; }#parallaxGame { background : no-repeat url('ged/cardsparams/parallax.png') ;     background-repeat: no-repeat; background-size: cover;  background-attachment: fixed;  background-position-x: 50%; min-height:70vh; }#mantraSection { background : no-repeat url('ged/cardsparams/back_details2.png') ; background-size:cover; background-position-x: 100%; }#mentorRitualSection { background : no-repeat url('ged/cardsparams/back_details3-4.png') ; background-size:cover; background-position-x: 100%; }#zonesfixes > div:nth-child(1) { background : no-repeat url('ged/cardsparams/back_apropos.png') ; background-size:cover; }#zonesfixes > div:nth-child(2) { background : no-repeat url('ged/cardsparams/back_apropos2.png') ; background-size:cover; }#engagementSection { background : no-repeat url('ged/cardsparams/back_engagement.jpg') ; background-size:cover; }#zonesfixes #linkProducts { background : no-repeat url('ged/cardsparams/back_flux_produits.png') ; background-size:cover; color:#ffffff; }#zonesfixes #linkBlog { background : no-repeat url('ged/cardsparams/back_flux_blogpresse.png') ; background-size:cover; color:#000000; }#lien_HautDePage { position: relative; margin: 0; width: 100%; min-width: 100%; min-height: 500px; padding: 35vh 0 10vh 0; }  @media (max-width: 930px) { #lien_HautDePage {  background: #00000069;  } }#banniere { background: url('ged/cardsparams/back_banniere_end.png') no-repeat; background-size:cover; background-position-x: 100%; } 
            #logoGame { height: 120px; }
    /* Mode Switcher */
    .mode-switcher {
        gap: 10px;
    }
    .mode-switcher .btn-mode {
        padding: 5px 10px 10px 10px; width: 190px;
        border: 2px solid var(--colorSelected, #333);
        background: #f2f2f2;
        color: #333;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500; 
    }
    .mode-switcher .btn-mode:hover,
    .mode-switcher .btn-mode.active {
        background: var(--colorSelected, #333);
        color: white; text-shadow: 0 0 2px black;
    }

    /* Deck Selector Overlay */
    #deckSelectorOverlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.85);
        z-index: 99999999;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    #deckSelectorOverlay.visible {
        display: flex;
    }
    .deck-selector-title {
        color: white;
        font-size: 1.8em;
        margin-bottom: 40px;
        text-align: center;
    }
    .deck-selector-container {
        display: flex;
        gap: 30px;
        justify-content: center;
        flex-wrap: wrap;
        padding: 20px;
    }
    .deck-selector-card {
        width: 180px;
        height: 260px;
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        position: relative;
    }
    .deck-selector-card:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 30px rgba(255,255,255,0.3);
    }
    .deck-selector-card .deck-name {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
        color: white;
        padding: 20px 10px 10px;
        text-align: center;
        font-weight: 600;
        border-radius: 0 0 12px 12px;
    }
    .deck-selector-close {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 2em;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.3s;
    }
    .deck-selector-close:hover {
        opacity: 1;
    }

    /* Current mode indicator */
    .current-indicator, .help-txt { font-size: 0.9em; text-shadow: 0 0 5px #ffffff;    color: #545454;    }
    .current-indicator { padding: 8px 15px; border-radius: 20px; color: #626262; }


    /* Cooldown Popup */
    #cooldownPopup, #drawInfoPopup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 99999999;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        animation: fadeIn 0.3s ease;
    }
    #cooldownPopup.visible, #drawInfoPopup.visible {
        display: flex;
    }
    #drawInfoPopup .connexion-btn {
        display: inline-block;
        margin-bottom: 15px;
        text-decoration: none;
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes slideUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    .cooldown-modal {
        background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 20px;
        padding: 40px 50px;
        max-width: 450px;
        text-align: center;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--colorSelectedRGB, 100, 100, 255), 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideUp 0.4s ease;
    }
    .cooldown-icon {
        font-size: 4em;
        margin-bottom: 20px;
        animation: pulse 2s infinite;
    }
    .cooldown-title {
        color: #fff;
        font-size: 1.6em;
        font-weight: 600;
        margin-bottom: 15px;
    }
    .cooldown-message {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    .cooldown-timer {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    .cooldown-timer-block {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 15px 20px;
        min-width: 70px;
    }
    .cooldown-timer-value {
        font-size: 2em;
        font-weight: bold;
        color: var(--colorSelected, #4a9fff);
        display: block;
    }
    .cooldown-timer-label {
        font-size: 0.75em;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .cooldown-btn, .connexion-btn {
        background: linear-gradient(135deg, var(--color-primary, #4a9fff) 0%, #000 80%);
        color: white;
        border: none;
        padding: 14px 40px;
        font-size: 1em;
        font-weight: 600;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(74, 159, 255, 0.4);
    }
    .connexion-btn { background: linear-gradient(135deg, var(--colorSelected, #4a9fff) 0%, #000 100%); }
    .cooldown-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(74, 159, 255, 0.5);
    }
    .cooldown-next-draw {
        margin-top: 20px;
        font-size: 0.85em;
        color: rgba(255, 255, 255, 0.5);
    }
    :root {
        --colorSelected:#75d775;
    }

    .game-tirage-container {
        background: linear-gradient(180deg, var(--game-color-back1) 0%, var(--game-color-back2) 100%);
        color: var(--game-color-txt);
        overflow-x: hidden;
    }

    #cardsDeck {
        position: relative; width: 900px; max-width: 95vw; height: 400px; margin: 5px auto;
        padding: 40px 20px 0 20px;
        overflow-x: auto; overflow-y: hidden; white-space: nowrap;
    }

    #cardsDeck::-webkit-scrollbar {
        height: 8px;
    }
    
    #btnDrawCard { z-index: 99999999; }
    .card-back:hover { z-index: 999999; top:0 !important; }

    #cardPlaceholder:hover { z-index: 99999; -webkit-transform:scale(1.25); -moz-transform:scale(1.25); -ms-transform:scale(1.25); -o-transform:scale(1.25); transform:scale(1.25); }

    #cardName,
    .boxTitleDetail3 {
        padding: 5px 5vw;
    }

    #cardName {
        background: var(--colorSelected);width: 70%;height: 30px;position: absolute;left: 10%; top: 70px;
    }

    #cardName b {
        text-shadow: 0px 0px 5px black, 0px 0px 15px black, 1px 1px 20px black, 1px 1px 25px black, 1px 1px 30px black, 1px 1px 35px black, 1px 1px 40px black, 1px 1px 45px black, 1px 1px 50px black, 1px 1px 55px black, 1px 1px 60px black, 1px 1px 65px black, 1px 1px 70px black;
        font-size: 60px;
        position: absolute; left:5vw; top: -5px;
    }

    #cardNarrative {
        margin-top: 30px;
    }

    #btnShuffle {
        display: none;
        position: fixed;
        cursor: pointer;
        z-index: 1001;
        right: 25px;
        top: 45%;
    }

    .card-drawn-section,
    .category-section,
    .mantra-section,
    .mentor-ritual-section,
    .share-section,
    .engagement-section {
        display: none;
        background: var(--game-color-backSuite);
        color: var(--game-color-txtSuite);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .engagement-section {
        background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
        color: white;
    }

    .engagement-section h3,
    .engagement-section p {
        color: white;
    }

    .engagement-card {
        background: white !important;
        color: #333 !important;
    }

    .engagement-card h4,
    .engagement-card h5,
    .engagement-card p {
        color: #333 !important;
    }

    .boxDetail1,
    .boxDetail2 {
        width: 450px;
        max-width: 90vw;
        min-height: 400px;
        color: white;
    }

    .boxDetail1 h3,
    .boxDetail2 h3 {
        color: white;
        font-family: var(--font-original);
        font-size: 3em;
    }

    .boxDetail1 {
        background: linear-gradient(145deg, var(--colorSelected) 0%, #212121 100%);
    }

    .boxDetail2 {
        background: linear-gradient(145deg, #525252 0%, #212121 20%, var(--colorSelected) 89%, #4d4d4d 150%);
    }

    .boxTitleDetail3 {
        background: linear-gradient(90deg, var(--colorSelected) 0%, #f9f9f9 11%, #fff 21%, #f9f9f9 39%, var(--colorSelected) 55%);
    }
    @media (max-width: 930px) {
        .mode-switcher .btn-mode {
            padding: 0 10px 3px 10px;
        }
        #icoSingle, #icoMulti, #icoSelect { height: 40px; }
        #zonesfixes > div:nth-child(2) { background-position-x: 100%; }
    }
    @media (max-width: 768px) {
        
        .cards-deck {
            height: 250px !important;
            padding-left: 20px;
        }

        .w60,
        .w40 {
            width: 100% !important;
            padding: 10px !important;
        }

        .card-drawn-section {
            flex-direction: column-reverse;
            padding: 50px 20px !important;
        }

        #cardName b {
            font-size: 40px;
        }

        #cardPlaceholder {
            margin-bottom: 30px;
        }

        .deck-selector-card {
            width: 140px;
            height: 200px;
        }
    }
