/* Styles d'origine conservés pour ne pas casser les éléments existants. */
/* ==================================================
   PAGE : HAUTEUR RÉDUITE
================================================== */

.wheel-page {
    color: #e7ebef;
    padding-top: 15px;
}

.wheel-section-title {
    margin-bottom: 5px;
}

.wheel-intro {
    margin: 0 auto 14px;
    color: #a9b1b8;
    text-align: center;
    font-size: 11px;
    letter-spacing: .8px;
    line-height: 1.5;
}

.wheel-alert {
    margin-bottom: 15px;
    padding: 12px;
    color: #ffb1b1;
    background: #2a1717;
    border: 1px solid #7b4141;
    font-size: 12px;
}

/* ==================================================
   CONNEXION
================================================== */

.wheel-login-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px 20px;
    background: #111820;
    border: 1px solid #303b46;
    border-top: 2px solid #168ed0;
    text-align: center;
}

.wheel-login-icon {
    margin-bottom: 10px;
    font-size: 32px;
}

.wheel-login-box h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
}

.wheel-login-box p {
    max-width: 450px;
    margin: 0 auto 18px;
    color: #a9b1b8;
    font-size: 12px;
    line-height: 1.7;
}

/* ==================================================
   PORTEFEUILLE COMPACT
================================================== */

.wheel-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    padding: 10px 16px;
    background: linear-gradient(110deg, #14221c, #111820);
    border: 1px solid #385443;
}

.wheel-balance-left,
.wheel-balance-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wheel-balance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #8fe0a9;
    background: #17271e;
    border: 1px solid #385443;
    font-size: 20px;
    font-weight: 900;
}

.wheel-balance-left small,
.wheel-balance-left strong,
.wheel-balance-right strong,
.wheel-balance-right small {
    display: block;
}

.wheel-balance-left small,
.wheel-balance-right small {
    color: #8998a5;
    font-size: 9px;
    line-height: 1.5;
}

.wheel-balance-left strong {
    margin-top: 2px;
    color: #8fe0a9;
    font-size: 18px;
}

.wheel-balance-right > span {
    font-size: 22px;
}

.wheel-balance-right strong {
    color: #e7ebef;
    font-size: 10px;
    letter-spacing: .4px;
}

.wheel-balance-right small {
    margin-top: 3px;
}

/* ==================================================
   GRILLE PRINCIPALE
================================================== */

.wheel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 15px;
    align-items: start;
}

.wheel-main-panel,
.wheel-side-panel {
    min-width: 0;
    background: rgba(9, 13, 17, .96);
    border: 1px solid #273440;
}

.wheel-main-panel {
    padding: 14px;
    border-top: 2px solid #168ed0;
}

.wheel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.wheel-side-panel {
    padding: 12px;
}

.wheel-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.wheel-panel-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1.5;
}

.wheel-panel-heading p {
    margin: 3px 0 0;
    color: #8998a5;
    font-size: 10px;
    line-height: 1.5;
}

.wheel-heading-badge {
    flex-shrink: 0;
    padding: 6px 8px;
    color: #e7c66c;
    background: #272318;
    border: 1px solid #6f5b30;
    font-size: 9px;
    font-weight: 900;
}

/* ==================================================
   ROUE : PLUS PETITE POUR ÊTRE VISIBLE DIRECTEMENT
================================================== */

.wheel-canvas-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
    padding: 8px;
    box-sizing: border-box;
}

.wheel-canvas-frame {
    position: relative;
    width: 100%;
    max-width: 390px;
    aspect-ratio: 1 / 1;
    padding: 5px;
    box-sizing: border-box;
    border: 4px solid #9a8048;
    border-radius: 50%;
    background: #0b1115;
    box-shadow:
        0 0 0 3px #202b30,
        0 0 20px rgba(0, 0, 0, .6);
}

#fortune-wheel {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    z-index: 5;
    top: -1px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 28px solid #e7c66c;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .8));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 19%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border: 3px solid #c4a45c;
    border-radius: 50%;
    background: radial-gradient(circle, #26343a, #0c1216);
    box-shadow: 0 0 0 3px #151e23;
    text-align: center;
    pointer-events: none;
}

.wheel-center span {
    color: #d8c28b;
    font-size: clamp(6px, 1.1vw, 9px);
    font-weight: 900;
    letter-spacing: .7px;
}

.wheel-center strong {
    color: #fff;
    font-size: clamp(13px, 2.5vw, 22px);
    font-weight: 1000;
}

.wheel-center small {
    color: #a9b1b8;
    font-size: clamp(5px, .9vw, 7px);
    letter-spacing: .5px;
}

/* ==================================================
   BOUTON ET COMPTE À REBOURS
================================================== */

.wheel-action-area {
    margin-top: 10px;
    text-align: center;
}

.wheel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 330px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 11px 15px;
    color: #fff;
    background: linear-gradient(135deg, #176b42, #218653);
    border: 1px solid #42b878;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.wheel-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218653, #2c9e63);
}

.wheel-button:disabled {
    color: #a1a9af;
    background: #273038;
    border-color: #3a454d;
    cursor: not-allowed;
}

.wheel-countdown {
    margin-top: 8px;
    color: #a9b1b8;
    font-size: 10px;
    line-height: 1.6;
}

.wheel-countdown strong {
    color: #e7c66c;
    font-size: 12px;
}

.wheel-message {
    min-height: 16px;
    margin: 6px 0 0;
    color: #8998a5;
    font-size: 10px;
    line-height: 1.5;
}

.wheel-message.success {
    color: #8fe0a9;
}

.wheel-message.error {
    color: #ff9292;
}

/* ==================================================
   HISTORIQUE
================================================== */

.wheel-history {
    display: flex;
    flex-direction: column;
}

.wheel-history-empty {
    padding: 16px 8px;
    text-align: center;
}

.wheel-history-empty > span {
    display: block;
    margin-bottom: 7px;
    font-size: 25px;
}

.wheel-history-empty p {
    margin: 0 0 5px;
    color: #e7ebef;
    font-size: 11px;
    font-weight: 800;
}

.wheel-history-empty small {
    color: #8998a5;
    font-size: 9px;
    line-height: 1.5;
}

.wheel-history-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #26323c;
}

.wheel-history-item:last-child {
    border-bottom: 0;
}

.wheel-history-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #e7c66c;
    background: #202b32;
    border: 1px solid #394956;
    font-size: 14px;
    font-weight: 900;
}

.wheel-history-win .wheel-history-symbol {
    color: #8fe0a9;
    border-color: #385443;
    background: #17271e;
}

.wheel-history-loss .wheel-history-symbol {
    color: #a9b1b8;
}

.wheel-history-details {
    min-width: 0;
}

.wheel-history-details strong,
.wheel-history-details small {
    display: block;
}

.wheel-history-details strong {
    color: #e7ebef;
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wheel-history-details small {
    margin-top: 3px;
    color: #8998a5;
    font-size: 9px;
    line-height: 1.4;
}

.wheel-history-amount {
    color: #8fe0a9;
    font-size: 10px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.wheel-history-loss .wheel-history-amount {
    color: #a9b1b8;
}

/* ==================================================
   COMPRENDRE LES CHANCES
================================================== */

.wheel-chances-panel {
    padding: 0;
    overflow: hidden;
}

.wheel-chances-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    color: #fff;
    background: #111820;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.wheel-chances-toggle:hover {
    background: #16212a;
}

.wheel-chances-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: #172a38;
    border: 1px solid #31556c;
    font-size: 16px;
}

.wheel-chances-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.wheel-chances-title strong {
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .3px;
    line-height: 1.5;
}

.wheel-chances-title small {
    color: #8998a5;
    font-size: 9px;
    line-height: 1.5;
}

.wheel-chances-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    color: #e7c66c;
    background: #202b32;
    border: 1px solid #394956;
    font-size: 18px;
    transition: transform .2s;
}

.wheel-chances-toggle[aria-expanded="true"]
.wheel-chances-chevron {
    transform: rotate(45deg);
}

.wheel-chances-content {
    padding: 0 13px 13px;
    border-top: 1px solid #26323c;
}

.wheel-chances-content[hidden] {
    display: none !important;
}

.wheel-chances-intro {
    margin: 11px 0 14px;
    color: #a9b1b8;
    font-size: 10px;
    line-height: 1.6;
}

.wheel-probability-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wheel-probability-item {
    min-width: 0;
}

.wheel-probability-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.wheel-probability-top span {
    color: #e7ebef;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wheel-probability-top strong {
    flex-shrink: 0;
    color: #e7c66c;
    font-size: 10px;
}

.wheel-probability-track {
    height: 4px;
    overflow: hidden;
    background: #27323a;
    border-radius: 3px;
}

.wheel-probability-fill {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, #416c50, #8fe0a9);
    border-radius: 3px;
}

.wheel-probability-item > small {
    display: block;
    margin-top: 4px;
    color: #8998a5;
    font-size: 9px;
    line-height: 1.4;
}

.wheel-chances-note {
    margin-top: 15px;
    padding: 10px;
    background: #17232b;
    border: 1px solid #303f49;
}

.wheel-chances-note strong {
    color: #e7c66c;
    font-size: 10px;
    letter-spacing: .4px;
}

.wheel-chances-note p {
    margin: 5px 0 0;
    color: #a9b1b8;
    font-size: 10px;
    line-height: 1.6;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (min-width: 901px) {

    .wheel-page > .container {
        max-width: 1150px;
    }

    .wheel-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    }

}

@media (max-width: 900px) {

    .wheel-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-main-panel {
        padding: 15px;
    }

    .wheel-canvas-wrap {
        max-width: 390px;
    }

    .wheel-canvas-frame {
        max-width: 370px;
    }

    .wheel-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 550px) {

    .wheel-page {
        padding-top: 10px;
    }

    .wheel-intro {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .wheel-balance-bar {
        padding: 9px;
    }

    .wheel-balance-left {
        gap: 7px;
    }

    .wheel-balance-left strong {
        font-size: 15px;
    }

    .wheel-balance-left small,
    .wheel-balance-right strong {
        font-size: 8px;
    }

    .wheel-balance-right {
        gap: 6px;
    }

    .wheel-balance-right > span {
        font-size: 18px;
    }

    .wheel-main-panel {
        padding: 10px;
    }

    .wheel-panel-heading h2 {
        font-size: 11px;
    }

    .wheel-heading-badge {
        padding: 5px;
        font-size: 8px;
    }

    .wheel-canvas-wrap {
        max-width: 350px;
        padding: 8px;
    }

    .wheel-canvas-frame {
        max-width: 330px;
    }

    .wheel-pointer {
        border-left-width: 13px;
        border-right-width: 13px;
        border-top-width: 24px;
    }

    .wheel-sidebar {
        gap: 10px;
    }

    .wheel-side-panel {
        padding: 10px;
    }

    .wheel-chances-panel {
        padding: 0;
    }

    .wheel-history-item {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .wheel-history-amount {
        font-size: 9px;
    }

}



/* =========================================================
   RUINES DZ — ROUE DE LA FORTUNE
   Refonte visuelle : casino clandestin / survie militaire
   CSS limité à cette page. La logique PHP/JS est conservée.
========================================================= */

.wheel-page {
    --wheel-gold: #d8b66a;
    --wheel-gold-bright: #f0d58d;
    --wheel-green: #8fc69a;
    --wheel-panel: rgba(13, 19, 22, .96);
    --wheel-panel-soft: rgba(20, 28, 31, .96);
    --wheel-line: rgba(216, 182, 106, .24);
    --wheel-muted: #a2adb1;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 24px 56px;
    color: #e9ece9;
}

.wheel-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 440px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 23% 8%, rgba(43, 86, 65, .25), transparent 48%),
        radial-gradient(ellipse at 82% 26%, rgba(124, 61, 42, .2), transparent 46%),
        linear-gradient(180deg, rgba(8, 13, 15, .28), transparent);
}

.wheel-page > .container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.wheel-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 9px;
    color: #f4f0e5;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: 1.8px;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.wheel-section-title::before {
    content: "";
    flex: 0 0 5px;
    height: 29px;
    background: var(--wheel-gold);
    box-shadow: 0 0 16px rgba(216, 182, 106, .25);
}

.wheel-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 182, 106, .55), transparent);
}

.wheel-intro {
    margin: 0 auto 25px;
    color: #b4beb8;
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 1.7;
    text-align: center;
    text-transform: uppercase;
}

.wheel-alert {
    margin: 0 0 20px;
    padding: 14px 17px;
    color: #ffc0b8;
    background: linear-gradient(120deg, rgba(72, 30, 28, .92), rgba(35, 20, 21, .95));
    border: 1px solid rgba(205, 92, 79, .5);
    border-left: 4px solid #d86e5c;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.wheel-login-box {
    max-width: 650px;
    margin: 30px auto;
    padding: 32px 26px;
    background:
        linear-gradient(145deg, rgba(24, 34, 35, .97), rgba(11, 16, 19, .98));
    border: 1px solid var(--wheel-line);
    border-top: 2px solid var(--wheel-gold);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.wheel-login-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 17px;
    color: var(--wheel-gold-bright);
    background: rgba(216, 182, 106, .09);
    border: 1px solid rgba(216, 182, 106, .36);
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 0 28px rgba(216, 182, 106, .08);
}

.wheel-login-box h2 {
    margin: 0 0 12px;
    color: #f3eee1;
    font-size: 21px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.wheel-login-box p {
    max-width: 470px;
    margin: 0 auto 22px;
    color: var(--wheel-muted);
    font-size: 13px;
    line-height: 1.8;
}

.wheel-balance-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 17px 21px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(56, 100, 68, .2), transparent 55%),
        linear-gradient(110deg, rgba(20, 34, 28, .98), rgba(13, 20, 22, .98));
    border: 1px solid rgba(111, 158, 113, .38);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.wheel-balance-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(216, 182, 106, .035));
}

.wheel-balance-left,
.wheel-balance-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}

.wheel-balance-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #b3e5bd;
    background: rgba(69, 119, 79, .15);
    border: 1px solid rgba(143, 198, 154, .4);
    border-radius: 9px;
    font-size: 23px;
    font-weight: 900;
}

.wheel-balance-left small,
.wheel-balance-right small {
    color: #a0ada6;
    font-size: 10px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.wheel-balance-left strong {
    margin-top: 4px;
    color: #a9e4b3;
    font-size: clamp(20px, 2.5vw, 27px);
    font-weight: 900;
    letter-spacing: .4px;
}

.wheel-balance-right > span {
    font-size: 27px;
    filter: saturate(.75);
}

.wheel-balance-right strong {
    color: #e8d8ae;
    font-size: 12px;
    letter-spacing: .8px;
}

.wheel-balance-right small {
    display: block;
    margin-top: 4px;
}

.wheel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: start;
    gap: 20px;
}

.wheel-main-panel,
.wheel-side-panel {
    min-width: 0;
    background:
        linear-gradient(145deg, rgba(19, 26, 29, .98), rgba(10, 15, 18, .98));
    border: 1px solid rgba(163, 177, 170, .16);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.wheel-main-panel {
    overflow: hidden;
    border-color: rgba(216, 182, 106, .28);
}

.wheel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.wheel-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 19px;
    background: linear-gradient(90deg, rgba(216, 182, 106, .08), transparent);
    border-bottom: 1px solid rgba(216, 182, 106, .16);
}

.wheel-panel-heading h2 {
    margin: 0;
    color: #f0eee5;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.wheel-panel-heading p {
    margin: 4px 0 0;
    color: #9ca9a5;
    font-size: 11px;
    line-height: 1.5;
}

.wheel-heading-badge {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--wheel-gold-bright);
    background: rgba(216, 182, 106, .1);
    border: 1px solid rgba(216, 182, 106, .27);
    border-radius: 8px;
    font-size: 17px;
}

.wheel-canvas-wrap {
    position: relative;
    display: grid;
    place-items: center;
    padding: 27px 24px 18px;
    background:
        radial-gradient(ellipse at center, rgba(48, 61, 50, .32), transparent 61%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 7px);
}

.wheel-canvas-frame {
    position: relative;
    width: min(100%, 450px);
    aspect-ratio: 1;
    padding: 10px;
    border: 2px solid #a98a4e;
    border-radius: 50%;
    background:
        linear-gradient(145deg, #4b4a3d, #111719 42%, #34372d 70%, #111719);
    box-shadow:
        0 0 0 4px rgba(216, 182, 106, .12),
        0 0 0 7px rgba(8, 12, 13, .9),
        0 0 36px rgba(216, 182, 106, .14),
        0 18px 36px rgba(0, 0, 0, .5);
}

#fortune-wheel {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}

.wheel-pointer {
    z-index: 3;
    top: -10px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .75));
}

.wheel-center {
    border: 2px solid #d3b66e;
    box-shadow:
        0 0 0 4px rgba(12, 17, 17, .9),
        0 0 20px rgba(216, 182, 106, .2);
    background:
        radial-gradient(circle at 35% 25%, #303d36, #111719 68%);
}

.wheel-center span {
    color: var(--wheel-gold-bright);
    letter-spacing: 1.8px;
}

.wheel-center strong {
    color: #fff8e7;
    letter-spacing: 1px;
}

.wheel-center small {
    color: #aab7ad;
    letter-spacing: 1px;
}

.wheel-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 27px;
}

.wheel-button {
    min-width: 220px;
    padding: 14px 24px;
    color: #151810;
    background: linear-gradient(135deg, #f0d58d, #b48b43);
    border: 1px solid #f3dda0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 7px 0 #574528, 0 12px 24px rgba(0, 0, 0, .26);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.wheel-button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 9px 0 #574528, 0 16px 28px rgba(0, 0, 0, .34);
}

.wheel-button:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #574528, 0 7px 14px rgba(0, 0, 0, .25);
}

.wheel-button:disabled {
    color: #9ca5a1;
    background: linear-gradient(135deg, #303a38, #202927);
    border-color: #47524d;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .85;
}

.wheel-countdown {
    color: #b5c0b9;
    font-size: 11px;
    text-align: center;
}

.wheel-countdown strong {
    color: var(--wheel-gold-bright);
    font-variant-numeric: tabular-nums;
}

.wheel-message {
    max-width: 100%;
    margin: 0;
    padding: 11px 15px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.wheel-message.success {
    color: #b8edc1;
    background: rgba(37, 88, 48, .22);
    border: 1px solid rgba(112, 191, 126, .35);
}

.wheel-message.error {
    color: #ffc0b8;
    background: rgba(99, 40, 35, .25);
    border: 1px solid rgba(205, 92, 79, .38);
}

.wheel-side-panel {
    overflow: hidden;
}

.wheel-history {
    padding: 7px 17px 15px;
}

.wheel-history-empty {
    padding: 24px 12px;
    text-align: center;
}

.wheel-history-empty > span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    color: var(--wheel-gold);
    background: rgba(216, 182, 106, .08);
    border: 1px solid rgba(216, 182, 106, .18);
    border-radius: 50%;
}

.wheel-history-empty p {
    margin: 0 0 6px;
    color: #e1e6e1;
    font-size: 12px;
}

.wheel-history-empty small {
    color: #8f9b97;
    font-size: 11px;
}

.wheel-history-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.wheel-history-item:last-child {
    border-bottom: 0;
}

.wheel-history-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: rgba(216, 182, 106, .08);
    border: 1px solid rgba(216, 182, 106, .2);
    border-radius: 7px;
    font-size: 15px;
}

.wheel-history-win .wheel-history-symbol {
    background: rgba(71, 133, 80, .16);
    border-color: rgba(112, 191, 126, .32);
}

.wheel-history-loss .wheel-history-symbol {
    background: rgba(107, 117, 121, .12);
    border-color: rgba(145, 157, 161, .2);
}

.wheel-history-details {
    min-width: 0;
}

.wheel-history-details strong {
    display: block;
    overflow-wrap: anywhere;
    color: #e8ece6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.wheel-history-details small {
    display: block;
    margin-top: 4px;
    color: #8e9b96;
    font-size: 10px;
    line-height: 1.5;
}

.wheel-history-amount {
    color: #a9e4b3;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.wheel-history-loss .wheel-history-amount {
    color: #a2aca8;
}

.wheel-chances-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    padding: 17px 18px;
    color: #e8ece6;
    background: linear-gradient(90deg, rgba(216, 182, 106, .06), transparent);
    border: 0;
    border-bottom: 1px solid rgba(216, 182, 106, .13);
    text-align: left;
    transition: background .2s ease;
}

.wheel-chances-toggle:hover {
    background: rgba(216, 182, 106, .09);
}

.wheel-chances-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: rgba(216, 182, 106, .09);
    border: 1px solid rgba(216, 182, 106, .22);
    border-radius: 8px;
}

.wheel-chances-title {
    display: block;
    flex: 1;
    color: #f0eee5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.wheel-chances-title strong,
.wheel-chances-title small {
    display: block;
}

.wheel-chances-title small {
    margin-top: 4px;
    color: #9ca9a5;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.wheel-chances-chevron {
    color: var(--wheel-gold);
    font-size: 18px;
    transition: transform .2s ease;
}

.wheel-chances-content {
    padding: 16px 18px 19px;
}

.wheel-chances-intro {
    margin: 0 0 17px;
    color: #a2ada8;
    font-size: 11px;
    line-height: 1.7;
}

.wheel-probability-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.wheel-probability-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.wheel-probability-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 7px;
}

.wheel-probability-top span {
    color: #dce2dc;
    font-size: 11px;
    line-height: 1.4;
}

.wheel-probability-top strong {
    color: var(--wheel-gold-bright);
    font-size: 11px;
    white-space: nowrap;
}

.wheel-probability-track {
    height: 5px;
    overflow: hidden;
    background: #252e2d;
    border-radius: 999px;
}

.wheel-probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #5d8d62, #d8b66a);
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(216, 182, 106, .14);
}

.wheel-probability-item > small {
    display: block;
    margin-top: 6px;
    color: #899690;
    font-size: 10px;
}

.wheel-chances-note {
    margin-top: 16px;
    padding: 13px 14px;
    background: rgba(216, 182, 106, .055);
    border: 1px solid rgba(216, 182, 106, .16);
    border-left: 3px solid var(--wheel-gold);
    border-radius: 5px;
}

.wheel-chances-note strong {
    color: var(--wheel-gold-bright);
    font-size: 10px;
    letter-spacing: 1px;
}

.wheel-chances-note p {
    margin: 6px 0 0;
    color: #aab4ae;
    font-size: 11px;
    line-height: 1.7;
}

@media (min-width: 901px) {
    .wheel-page > .container {
        max-width: 1120px;
    }

    .wheel-layout {
        grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    }
}

@media (max-width: 900px) {
    .wheel-page {
        padding: 24px 18px 42px;
    }

    .wheel-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-main-panel {
        max-width: 680px;
        width: 100%;
        margin: 0 auto;
    }

    .wheel-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-canvas-frame {
        width: min(100%, 440px);
    }
}

@media (max-width: 550px) {
    .wheel-page {
        padding: 20px 12px 34px;
    }

    .wheel-section-title {
        gap: 10px;
        font-size: 22px;
        letter-spacing: 1px;
    }

    .wheel-section-title::before {
        height: 24px;
    }

    .wheel-intro {
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .wheel-balance-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .wheel-balance-right {
        padding-left: 2px;
    }

    .wheel-canvas-wrap {
        padding: 24px 13px 14px;
    }

    .wheel-canvas-frame {
        padding: 7px;
        border-width: 1px;
    }

    .wheel-action-area {
        padding: 8px 14px 22px;
    }

    .wheel-button {
        width: 100%;
        min-width: 0;
    }

    .wheel-panel-heading {
        padding: 14px;
    }

    .wheel-history {
        padding: 5px 13px 12px;
    }

    .wheel-history-item {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .wheel-history-symbol {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-page *,
    .wheel-page *::before,
    .wheel-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}



/* =========================================================
   AJUSTEMENTS DE FINITION — badges, équilibre et responsive
========================================================= */

/* Évite que le badge JACKPOT soit coupé dans l'en-tête de la roue. */
.wheel-page .wheel-main-panel,
.wheel-page .wheel-side-panel {
    box-sizing: border-box;
}

.wheel-page .wheel-panel-heading {
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
}

.wheel-page .wheel-panel-heading > div {
    flex: 1 1 auto;
    min-width: 0;
}

.wheel-page .wheel-panel-heading h2,
.wheel-page .wheel-panel-heading p {
    overflow-wrap: anywhere;
}

.wheel-page .wheel-heading-badge {
    flex: 0 1 118px;
    min-width: 0;
    max-width: 118px;
    padding: 7px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.45;
    font-size: 9px;
}

.wheel-page .wheel-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 20px;
}

.wheel-page .wheel-main-panel {
    padding: 16px;
}

.wheel-page .wheel-sidebar {
    min-width: 0;
}

.wheel-page .wheel-history-item {
    min-width: 0;
}

.wheel-page .wheel-history-details {
    overflow: hidden;
}

.wheel-page .wheel-history-details strong {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .wheel-page .wheel-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-page .wheel-main-panel {
        width: 100%;
    }

    .wheel-page .wheel-heading-badge {
        flex-basis: 130px;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .wheel-page .wheel-panel-heading {
        gap: 8px;
    }

    .wheel-page .wheel-panel-heading h2 {
        font-size: 11px;
        letter-spacing: .6px;
    }

    .wheel-page .wheel-heading-badge {
        flex-basis: 100px;
        max-width: 100px;
        padding: 6px;
        font-size: 8px;
    }
}
