@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.welcome-right-block {
    position: fixed;
    top: 90px;
    right: 16px;
    left: auto;
    width: 340px;
    height: 75vh;
    background: #18181b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 14px 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.welcome-right-block h3 {
    color: #fff;
    margin: 0 0 6px 0;
    font-size: 1rem;
}
.welcome-right-block p {
    color: #b3b3b3;
    margin: 0;
    font-size: 0.85rem;
}
.chat-messages {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    min-height: 0;
}
.chat-msg {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
}
.chat-input::placeholder { color: #666; }
.chat-input:focus { border-color: rgba(255,158,43,0.5); }
.chat-send {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #ffb02e, #ff7a00);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 0 10px rgba(255,160,0,0.5);
    transition: box-shadow 0.2s;
}
.chat-send:hover { box-shadow: 0 0 18px rgba(255,160,0,0.8); }
.chat-send svg { width: 16px; height: 16px; }
.chat-online {
    color: #ff9e2b;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 158, 43, 0.7);
}
.logo-text {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo-dollar {
    color: #fff;
    font-size: 2.3rem;
    margin-right: 4px;
    font-family: 'Orbitron', Arial Black, sans-serif;
}
.blox {
    color: #fff;
    font-family: Arial Black, Arial, sans-serif;
}
.up {
    color: #ff9e2b;
    -webkit-text-fill-color: #ff9e2b;
    margin-left: 2px;
    font-family: Arial Black, Arial, sans-serif;
    text-shadow: 0 0 12px rgba(255,158,43,0.7);
}

/* Arrière-plan galaxy animé */
#galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}
body > *:not(#galaxy-bg):not(.welcome-right-block):not(#splash):not(aside):not(header):not(.main-content):not(.recompense-wrapper) {
    position: relative;
    z-index: 1;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #18181b;
    color: #fff;
}
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}
header {
    background: transparent;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
}
.vertical-header {
    position: fixed;
    top: 90px;
    left: 16px;
    height: 75vh;
    width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #18181b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 14px 10px;
    z-index: 2;
}
.vh-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 12px;
}
.vh-menu {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 4px;
}
.vh-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    color: #7f8ab6;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 8px 12px 8px 16px;
    border-radius: 10px;
}
.vh-icon svg { width: 22px; height: 22px; display: block; }
.vh-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}
.vh-item:hover .vh-icon {
    opacity: 0.9;
    filter: brightness(1.2);
}
.vh-item .vh-icon { opacity: 0.55; filter: grayscale(40%); }
.vh-item .vh-label { font-size: 14px; }
.vh-item.active { color: #ffffff; }
.vh-item.active .vh-icon {
    opacity: 1;
    filter: none;
    color: #ff9e2b;
    filter: drop-shadow(0 0 10px rgba(255, 158, 43, 1)) drop-shadow(0 0 20px rgba(255, 120, 0, 0.8));
}
.vh-item.active .vh-label { color: #ffffff; }
.vh-item.active::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 32px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ffb02e 0%, #ff7a00 100%);
    box-shadow: 0 0 20px rgba(255,160,0,1), 0 0 40px rgba(255,120,0,0.7), 0 0 60px rgba(255,100,0,0.4);
}
.vh-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-bottom: 8px;
    margin-top: auto;
}
.vh-round {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #6b8cff;
    background: rgba(48,62,140,0.25);
    border: 1px solid rgba(71,98,196,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 16px rgba(40,60,150,0.35);
    text-decoration: none;
}
.vh-round svg { width: 22px; height: 22px; display: block; }
.vh-round:hover { color: #88a5ff; background: rgba(48,62,140,0.35); }

/* Reset anciennes listes */
.vertical-header ul { display: none; }
.vertical-header a { color: inherit; text-decoration: none; }

.logo-svg {
    height: 42px;
    width: auto;
    display: block;
}
.logo-text .blox { color: #fff; }
.logo-text .up {
    color: #ff9e2b;
    -webkit-text-fill-color: #ff9e2b;
    margin-left: 2px;
    text-shadow: 0 0 12px rgba(255, 158, 43, 0.7);
}
nav { margin-left: 0; }
.nav-center { text-align: center; }
.nav-center .nav-home {
    display: flex; align-items: center; gap: 5px;
    color: #ff9e2b;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #ff9e2b55;
    background: rgba(255,158,43,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.nav-right { justify-self: end; }
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.btn-login {
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 6px 16px;
    background: none;
    color: #fff;
    transition: all 0.2s ease;
}
.btn-login:hover {
    color: #ff9e2b;
    border-color: #ff9e2b;
    background: rgba(255,158,43,0.1);
    box-shadow: 0 0 12px rgba(255,158,43,0.5), 0 0 24px rgba(255,158,43,0.25);
    text-shadow: 0 0 8px rgba(255,158,43,0.8);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a35;
}
.chat-msg-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-username {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff9e2b;
    text-shadow: 0 0 8px rgba(255,158,43,0.5);
}
.chat-text {
    font-size: 0.85rem;
    color: #d0d0d0;
}
.chat-msg-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-time {
    font-size: 0.7rem;
    color: #555;
    font-weight: 400;
}

/* Splash screen */
#splash {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: splashFade 0.4s ease 1s forwards;
}
@keyframes splashFade {
    to { opacity: 0; pointer-events: none; }
}
.splash-logo {
    display: flex;
    align-items: center;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}
@keyframes splashPop {
    0%   { opacity: 0; transform: scale(0.4); }
    100% { opacity: 1; transform: scale(1); }
}
.splash-dollar {
    color: #ff9e2b;
    margin-right: 2px;
    font-family: 'Orbitron', Arial Black, sans-serif;
    text-shadow: 0 0 12px rgba(255,158,43,0.7);
}
.splash-blox {
    color: #fff;
    font-family: Arial Black, Arial, sans-serif;
}
.splash-up {
    color: #ff9e2b;
    -webkit-text-fill-color: #ff9e2b;
    text-shadow: 0 0 12px rgba(255,158,43,0.7);
    font-family: Arial Black, Arial, sans-serif;
}

body.splash-active > *:not(#splash):not(#galaxy-bg) {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
body.splash-done > *:not(#galaxy-bg) {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Main content */
.main-content {
    position: fixed;
    top: 90px;
    left: 210px;
    right: 380px;
    height: 75vh;
    z-index: 1;
}
.game-section {
    display: none;
    width: 100%;
    height: 100%;
    background: #18181b;
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 20px rgba(0,0,0,0.25);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
}
.game-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.game-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.game-section p {
    color: #b3b3b3;
    font-size: 1rem;
    margin: 0;
}

/* Récompense en direct */
.recompense-wrapper {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.recompense-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff9e2b;
    text-shadow: 0 0 8px rgba(255,158,43,0.6);
    white-space: nowrap;
}
.recompense-ticker-container {
    width: 100%;
    overflow: hidden;
    background: rgba(24, 24, 27, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 8px 0;
}
.recompense-ticker {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}
.recompense-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 6px 12px;
}
.recompense-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.recompense-item-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}
.recompense-arrow {
    font-size: 1rem;
    color: #ff9e2b;
    font-weight: 700;
    line-height: 1;
}
.recompense-name {
    font-size: 0.78rem;
    color: #ccc;
    font-weight: 600;
}
.recompense-gain {
    font-size: 0.78rem;
    color: #ff9e2b;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255,158,43,0.5);
}

/* Roues */
.wheels-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
#wheelsRow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.wheel-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
}

/* Roues latérales (peek) */
.wheel-peek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
}
.wheel-peek canvas {
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255,158,43,0.18);
    display: block;
    opacity: 0.55;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.wheel-peek-left {
    transform: translateX(40px);
}
.wheel-peek-right {
    transform: translateX(-40px);
}
.wheel-peek-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,158,43,0.65);
    letter-spacing: 1px;
    margin-top: 4px;
    transition: color 0.25s, text-shadow 0.25s;
}
/* Hover orange glow sur les peek */
.wheel-peek:hover .wheel-peek-label {
    color: #ff9e2b;
    text-shadow: 0 0 10px rgba(255,158,43,0.9);
}
.wheel-peek:hover canvas {
    opacity: 0.92;
    transform: scale(1.07);
    box-shadow: 0 0 28px rgba(255,158,43,0.65), 0 0 52px rgba(255,100,0,0.3);
}


/* Boutons nav */
.wheel-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,158,43,0.35);
    background: rgba(255,158,43,0.07);
    color: #ff9e2b;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    z-index: 2;
    margin: 0 10px;
}
.wheel-nav-btn:hover:not(:disabled) {
    background: rgba(255,158,43,0.18);
    border-color: #ff9e2b;
    box-shadow: 0 0 16px rgba(255,158,43,0.55);
}
.wheel-nav-btn:disabled { opacity: 0.18; cursor: not-allowed; }

/* Centre */
.wheel-single-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wheel-single-label {
    font-size: 1rem;
    font-weight: 700;
    color: #ff9e2b;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,158,43,0.6);
}
.wheel-arrow-top {
    font-size: 2rem;
    color: #ff9e2b;
    text-shadow: 0 0 14px rgba(255,158,43,0.9), 0 0 28px rgba(255,158,43,0.5);
    line-height: 1;
    margin-bottom: -22px;
    position: relative;
    z-index: 5;
    transform-origin: center top;
    will-change: transform;
}
#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 0 36px rgba(255,158,43,0.4), 0 0 70px rgba(255,100,0,0.18);
    display: block;
}
.wheel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}
.wheel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    transition: background 0.2s, box-shadow 0.2s;
}
.wheel-dot.active {
    background: #ff9e2b;
    box-shadow: 0 0 10px rgba(255,158,43,0.9);
}
.wheel-btn {
    background: linear-gradient(135deg, #ffb02e, #ff7a00);
    border: none;
    border-radius: 14px;
    padding: 13px 48px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255,160,0,0.65);
    transition: box-shadow 0.2s, transform 0.1s;
}
.wheel-btn:hover:not(:disabled) { box-shadow: 0 0 34px rgba(255,160,0,0.95); transform: scale(1.04); }
.wheel-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.wheel-result {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff9e2b;
    text-shadow: 0 0 14px rgba(255,158,43,0.85);
    min-height: 2rem;
    text-align: center;
}

/* Case de fortune */
.case-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.case-arrow {
    font-size: 1.8rem;
    color: #ff9e2b;
    text-shadow: 0 0 12px rgba(255,158,43,0.9), 0 0 24px rgba(255,158,43,0.5);
    margin-bottom: -10px;
    z-index: 5;
}
.case-track-outer {
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,158,43,0.4);
    border-radius: 14px;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 0 20px rgba(255,158,43,0.15);
}
.case-track-outer::before,
.case-track-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.case-track-outer::before {
    left: 0;
    background: linear-gradient(to right, rgba(24,24,27,0.95), transparent);
}
.case-track-outer::after {
    right: 0;
    background: linear-gradient(to left, rgba(24,24,27,0.95), transparent);
}
.case-center-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #ff9e2b;
    box-shadow: 0 0 10px rgba(255,158,43,0.8);
    z-index: 3;
    pointer-events: none;
}
.case-track {
    display: flex;
    gap: 8px;
    padding: 10px 8px;
    will-change: transform;
}
.case-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    transition: border-color 0.2s;
    padding: 6px;
    box-sizing: border-box;
}
.case-item.rarity-common   { border-color: rgba(150,150,150,0.4); background: rgba(100,100,100,0.12); }
.case-item.rarity-uncommon { border-color: rgba(100,200,100,0.5); background: rgba(50,150,50,0.12); }
.case-item.rarity-rare     { border-color: rgba(80,140,255,0.6);  background: rgba(50,100,220,0.12); }
.case-item.rarity-epic     { border-color: rgba(180,80,255,0.7);  background: rgba(140,50,220,0.12); }
.case-item.rarity-legendary{ border-color: rgba(255,200,0,0.8);   background: rgba(200,150,0,0.15);
    box-shadow: 0 0 14px rgba(255,200,0,0.3); }
.case-item-img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; }
.case-item-icon { font-size: 2rem; line-height: 1; }
.case-item-name { font-size: 0.6rem; color: #ccc; font-weight: 600; text-align: center; line-height: 1.2; }
.case-item-value { font-size: 0.65rem; color: #ff9e2b; font-weight: 700; }.case-item.winner {
    border-color: #ff9e2b !important;
    box-shadow: 0 0 20px rgba(255,158,43,0.8) !important;
    background: rgba(255,158,43,0.15) !important;
}


/* ===== Cases de fortune (carousel) ===== */
.cases-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
#casesRow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.cases-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Peek gauche/droite */
.case-peek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
    width: 260px;
    overflow: hidden;
}
.case-peek-left  { transform: translateX(30px); }
.case-peek-right { transform: translateX(-30px); }
.case-peek-preview {
    width: 260px;
    height: 160px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    opacity: 0.55;
    box-sizing: border-box;
}
.case-peek:hover .case-peek-preview {
    opacity: 0.92;
    transform: scale(1.06);
    box-shadow: 0 0 28px rgba(255,158,43,0.65), 0 0 52px rgba(255,100,0,0.3);
}
.case-peek-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    padding: 3px;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}
.case-peek-icon {
    width: 100%;
    height: calc(100% - 14px);
    object-fit: contain;
    border-radius: 4px;
    display: block;
    flex-shrink: 1;
    min-height: 0;
}
.case-peek-val  { font-size: 0.45rem; color: #ff9e2b; font-weight: 700; text-align: center; flex-shrink: 0; line-height: 1; }
.case-peek-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,158,43,0.65);
    letter-spacing: 1px;
    text-align: center;
    transition: color 0.25s, text-shadow 0.25s;
}
.case-peek:hover .case-peek-label {
    color: #ff9e2b;
    text-shadow: 0 0 10px rgba(255,158,43,0.9);
}

/* Centre case */
.case-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.case-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ff9e2b;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(255,158,43,0.7);
    text-align: center;
    margin-bottom: 2px;
}
.case-arrow-top {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: -20px;
    z-index: 5;
    position: relative;
    transform-origin: center top;
    will-change: transform;
}

/* Track slider horizontal */
.ccase-track-outer {
    width: 560px;
    height: 124px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,158,43,0.4);
    border-radius: 14px;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 0 20px rgba(255,158,43,0.15);
    box-sizing: border-box;
}
/* Fondu gauche/droite */
.ccase-track-outer::before,
.ccase-track-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.ccase-track-outer::before { left: 0; background: linear-gradient(to right, rgba(24,24,27,0.95), transparent); }
.ccase-track-outer::after  { right: 0; background: linear-gradient(to left,  rgba(24,24,27,0.95), transparent); }
/* Ligne centrale verticale */
.ccase-center-line {
    display: none;
}
.ccase-track {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 6px 8px;
    will-change: transform;
    width: max-content;
    align-items: center;
}

/* Items du slider */
.ccase-item {
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    padding: 6px 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.ccase-item.rarity-common    { border-color: rgba(150,150,150,0.4); background: rgba(100,100,100,0.12); }
.ccase-item.rarity-uncommon  { border-color: rgba(100,200,100,0.5); background: rgba(50,150,50,0.12); }
.ccase-item.rarity-rare      { border-color: rgba(80,140,255,0.6);  background: rgba(50,100,220,0.12); }
.ccase-item.rarity-epic      { border-color: rgba(180,80,255,0.7);  background: rgba(140,50,220,0.12); }
.ccase-item.rarity-legendary { border-color: rgba(255,200,0,0.8);   background: rgba(200,150,0,0.15); box-shadow: 0 0 14px rgba(255,200,0,0.3); }

/* Couleurs par caisse — gérées en JS via inline styles */

.ccase-icon  { width: 68px; height: 68px; max-width: 100%; max-height: 72px; object-fit: contain; border-radius: 6px; display: block; flex-shrink: 0; }
.ccase-name  { display: none; }
.ccase-value { font-size: 0.65rem; color: #ff9e2b; font-weight: 700; text-align: center; white-space: nowrap; }
.ccase-winner {
    border-color: #ff9e2b !important;
    box-shadow: 0 0 24px rgba(255,158,43,0.95) !important;
    background: rgba(255,158,43,0.18) !important;
}

/* Résultat */
.case-result {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff9e2b;
    text-shadow: 0 0 14px rgba(255,158,43,0.85);
    min-height: 2rem;
    text-align: center;
}

/* ===== Dés ===== */
.dice-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
#diceRow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.dice-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
}
.dice-peek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.25s, transform 0.25s, filter 0.25s;
    opacity: 0.55;
    filter: blur(1px) brightness(0.7);
}
.dice-peek-left  { transform: translateX(40px); }
.dice-peek-right { transform: translateX(-40px); }
.dice-peek:hover {
    opacity: 1;
    filter: blur(0) brightness(1.15);
}
.dice-peek-left:hover  { transform: translateX(28px) scale(1.08); }
.dice-peek-right:hover { transform: translateX(-28px) scale(1.08); }
.dice-peek-canvas { border-radius: 14px; display: block; }
.dice-peek-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}
.dice-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.dice-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    -webkit-text-fill-color: #ff9e2b;
    color: #ff9e2b;
}
.dice-arena {
    position: relative;
    overflow: hidden;
}
.dice-arena canvas { display: block; }
.dice-arena-flash {
    animation: towerFlash 0.7s ease forwards;
    border-radius: 12px;
}
.dice-dots { display: flex; gap: 8px; align-items: center; }
.dice-btn {
    border: none;
    border-radius: 14px;
    padding: 13px 48px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}
.dice-btn:hover:not(:disabled) { transform: scale(1.04); }
.dice-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.dice-result {
    font-size: 1.4rem;
    font-weight: 800;
    min-height: 2rem;
    text-align: center;
    color: #cccccc;
}

/* ===== Mines ===== */
.mines-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
#minesRow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.mines-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
}
.mines-peek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.25s, transform 0.25s, filter 0.25s;
    opacity: 0.5;
    filter: blur(1px) brightness(0.7);
}
.mines-peek-left  { transform: translateX(30px); }
.mines-peek-right { transform: translateX(-30px); }
.mines-peek:hover {
    opacity: 1;
    filter: blur(0) brightness(1.15);
}
.mines-peek-left:hover  { transform: translateX(18px) scale(1.08); }
.mines-peek-right:hover { transform: translateX(-18px) scale(1.08); }
.mines-peek-grid {
    display: grid;
    grid-template-columns: repeat(4, 20px);
    grid-template-rows: repeat(4, 20px);
    gap: 4px;
}
.mines-peek-cell {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.mines-peek-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.mines-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.mines-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff9e2b;
    -webkit-text-fill-color: #ff9e2b;
}
.mines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 320px;
}
.mines-cell {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
    cursor: default;
}
.mines-cell-active:hover {
    background: var(--hover-bg) !important;
    transform: scale(1.07);
    box-shadow: 0 0 14px rgba(255,255,255,0.12);
}
.mines-cell-safe {
    animation: mineReveal 0.25s ease;
}
.mines-cell-mine {
    animation: mineExplode 0.35s ease;
}
@keyframes mineReveal {
    from { transform: scale(0.7); opacity: 0.4; }
    to   { transform: scale(1);   opacity: 1; }
}
@keyframes mineExplode {
    0%   { transform: scale(1);    }
    40%  { transform: scale(1.25); }
    100% { transform: scale(1);    }
}
.mines-icon {
    width: 36px;
    height: 36px;
    display: block;
    color: rgba(255,255,255,0.25);
}
.mines-dots { display: flex; gap: 8px; align-items: center; }
.mines-btn {
    border: none;
    border-radius: 14px;
    padding: 13px 48px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}
.mines-btn:hover:not(:disabled) { transform: scale(1.04); }
.mines-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mines-result {
    font-size: 1.3rem;
    font-weight: 800;
    min-height: 2rem;
    text-align: center;
    color: #cccccc;
}

/* ===== Tours ===== */
.tower-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
#towerRow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.tower-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
}
.tower-peek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.25s, transform 0.25s, filter 0.25s;
    opacity: 0.5;
    filter: blur(1px) brightness(0.7);
}
.tower-peek-left  { transform: translateX(30px); }
.tower-peek-right { transform: translateX(-30px); }
.tower-peek:hover { opacity: 1; filter: blur(0) brightness(1.15); }
.tower-peek-left:hover  { transform: translateX(18px) scale(1.08); }
.tower-peek-right:hover { transform: translateX(-18px) scale(1.08); }
.tower-peek-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tower-peek-row {
    display: flex;
    gap: 4px;
}
.tower-peek-cell {
    width: 26px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.tower-peek-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.tower-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.tower-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff9e2b;
    -webkit-text-fill-color: #ff9e2b;
}
.tower-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
.tower-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tower-mult {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    width: 44px;
    text-align: right;
    flex-shrink: 0;
    font-family: 'Orbitron', monospace;
}
.tower-cell {
    width: 100px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    cursor: default;
    flex-shrink: 0;
}
.tower-cell-active {
    cursor: pointer;
}
.tower-cell-active:hover {
    background: var(--hover-bg) !important;
    border-color: var(--hover-border) !important;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255,255,255,0.1);
}
.tower-cell-passed { animation: towerReveal 0.2s ease; }
.tower-cell-trap   { animation: towerExplode 0.3s ease; }
@keyframes towerReveal  { from { transform: scale(0.8); opacity: 0.3; } to { transform: scale(1); opacity: 1; } }
@keyframes towerExplode { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes towerFlash {
    0%   { box-shadow: inset 0 0 0px #ff4444; }
    20%  { box-shadow: inset 0 0 60px #ff4444cc; background: rgba(255,40,40,0.18); }
    50%  { box-shadow: inset 0 0 80px #ff2222ee; background: rgba(255,20,20,0.28); }
    100% { box-shadow: inset 0 0 0px #ff4444; background: transparent; }
}
.tower-grid-flash {
    animation: towerFlash 0.7s ease forwards;
    border-radius: 16px;
}
.tower-cell-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
}
.tower-cell-icon {
    font-size: 18px;
    line-height: 1;
}
.tower-dots { display: flex; gap: 8px; align-items: center; }
.tower-btn {
    border: none;
    border-radius: 14px;
    padding: 13px 48px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}
.tower-btn:hover:not(:disabled) { transform: scale(1.04); }
.tower-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.tower-result {
    font-size: 1.3rem;
    font-weight: 800;
    min-height: 2rem;
    text-align: center;
    color: #ff9e2b;
}

/* ===== Plinko ===== */
.plinko-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
#plinkoTop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.plinko-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.plinko-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff9e2b;
    -webkit-text-fill-color: #ff9e2b;
    min-width: 140px;
    text-align: center;
}
.plinko-dots { display: flex; gap: 8px; align-items: center; }
.plinko-btn {
    border: none;
    border-radius: 14px;
    padding: 11px 44px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}
.plinko-btn:hover:not(:disabled) { transform: scale(1.04); }
.plinko-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
#plinkoCanvas {
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: block;
}
.plinko-result {
    font-size: 1.3rem;
    font-weight: 800;
    min-height: 2rem;
    text-align: center;
    color: #ff9e2b;
}

/* Flash rouge perte */
@keyframes redFlash {
    0%   { box-shadow: inset 0 0 0 4px #ff4444, 0 0 40px #ff4444; background: rgba(255,68,68,0.18); }
    50%  { box-shadow: inset 0 0 0 6px #ff2222, 0 0 60px #ff2222; background: rgba(255,68,68,0.32); }
    100% { box-shadow: none; background: transparent; }
}
.tower-grid-flash {
    animation: redFlash 0.75s ease-out forwards;
}
.dice-arena-flash {
    animation: redFlash 0.75s ease-out forwards;
}

/* Discord button */
.vh-discord {
    color: #fff !important;
    background: #5865F2 !important;
    border: 1px solid #4752c4 !important;
    box-shadow: 0 0 14px #5865F288, inset 0 1px 0 rgba(255,255,255,0.15) !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.vh-discord svg { width: 20px; height: 20px; }
.vh-discord:hover {
    background: #4752c4 !important;
    box-shadow: 0 0 24px #5865F2cc, inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transform: scale(1.1);
    color: #fff !important;
}

/* Nav center */
.nav-center { display: flex; align-items: center; gap: 10px; }

/* ============================================ */
/* MOBILE RESPONSIVE STYLES (max-width: 768px) */
/* ============================================ */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
}

/* Mobile nav center (LIMITED, CASINO, ROBUX) */
.mobile-nav-center {
    display: none;
}

/* Hide mobile elements on PC */
.mobile-nav-center,
.mobile-menu-toggle,
.mobile-chat-toggle {
    display: none !important;
}

/* Show mobile elements only on mobile */
@media screen and (max-width: 768px) {
    /* Hide mobile nav during splash animation */
    body.splash-active .mobile-nav-center,
    body:not(.splash-done) .mobile-nav-center {
        display: none !important;
    }
    
    /* Show mobile nav only after splash is done */
    body.splash-done .mobile-nav-center {
        display: flex !important;
    }
}

.mobile-nav-center {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 297;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-nav-center a {
    padding: 8px 14px;
    font-size: 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.mobile-nav-center .nav-shop {
    background: rgba(255,158,43,0.08);
    border: 1px solid #ff9e2b55;
    color: #ff9e2b !important;
}

.mobile-nav-center .nav-shop:hover {
    background: rgba(255,158,43,0.18);
    box-shadow: 0 0 14px #ff9e2b66;
}

.mobile-nav-center .nav-home {
    background: rgba(255,158,43,0.08);
    border: 1px solid #ff9e2b55;
    color: #ff9e2b !important;
}

.mobile-nav-center .nav-home:hover {
    background: rgba(255,158,43,0.18);
    box-shadow: 0 0 14px #ff9e2b66;
}

.mobile-nav-center .nav-robux {
    background: rgba(255,158,43,0.08);
    border: 1px solid #ff9e2b55;
    color: #ff9e2b !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-nav-center .nav-robux img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.mobile-nav-center .nav-robux:hover {
    background: rgba(255,158,43,0.18);
    box-shadow: 0 0 14px #ff9e2b66;
}

/* Mobile game menu toggle - hidden */
.mobile-game-menu-toggle {
    display: none !important;
}

.mobile-game-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ff9e2b;
    border-radius: 2px;
}

.mobile-game-menu-toggle.active {
    background: rgba(255,158,43,0.2);
    border-color: #ff9e2b;
}

/* Mobile game menu panel - hidden */
.mobile-game-menu {
    display: none !important;
}

.mobile-game-menu.open {
    left: 8px;
}

.mobile-game-menu h4 {
    margin: 0 0 10px 0;
    font-size: 0.75rem;
    color: #ff9e2b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-game-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #7f8ab6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.mobile-game-menu-item:hover,
.mobile-game-menu-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.mobile-game-menu-item.active {
    color: #ff9e2b;
}

.mobile-game-menu-item svg {
    width: 18px;
    height: 18px;
}

/* Mobile chat toggle button - box style */
.mobile-chat-toggle {
    display: none;
    position: fixed !important;
    top: 125px !important;
    right: 10px !important;
    z-index: 999;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffb02e, #ff7a00);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,160,0,0.5);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,160,0,0.7);
}

.mobile-chat-toggle svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.mobile-chat-toggle.chat-open {
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile header adjustments */
@media screen and (max-width: 768px) {
    /* Show mobile toggle buttons */
    .mobile-menu-toggle,
    .mobile-chat-toggle {
        display: flex;
    }
    
    .mobile-game-menu,
    .mobile-game-menu-toggle {
        display: none !important;
    }
    
    /* Force mobile nav center to show */
    .mobile-nav-center {
        display: flex !important;
    }
    
    /* Mobile menu toggle button position */
    .mobile-menu-toggle {
        position: fixed;
        top: 50px;
        left: 10px;
        z-index: 1000;
        width: 44px;
        height: 44px;
        background: #18181b;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 10px;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    /* Mobile chat toggle button position */
    .mobile-chat-toggle {
        position: fixed !important;
        top: 125px !important;
        right: 10px !important;
        z-index: 999;
        padding: 12px 20px;
        background: linear-gradient(135deg, #ffb02e, #ff7a00) !important;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(255,160,0,0.5);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }
    
    /* Mobile nav center position - fixed, never moves */
    .mobile-nav-center {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 350 !important;
        background: rgba(24, 24, 27, 0.95) !important;
        backdrop-filter: blur(10px);
        padding: 8px 12px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-nav-center a {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Header adjustments */
    header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 16px 8px 56px;
        min-height: 48px;
    }
    
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    header .logo {
        position: static;
    }
    
    .logo {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .logo .splash-logo {
        font-size: 1.4rem !important;
    }
    
    .logo .splash-dollar,
    .logo .splash-blox,
    .logo .splash-up {
        font-size: 1.2rem !important;
    }
    
    /* Hide desktop nav elements */
    .nav-center {
        display: none !important;
    }
    
    .nav-right {
        display: none !important;
    }
    
    /* Left sidebar - hidden by default on mobile */
    .vertical-header {
        position: fixed;
        top: 0;
        left: -300px;
        width: 260px;
        height: 100vh;
        border-radius: 0;
        z-index: 999;
        transition: left 0.3s ease;
        padding-top: 70px;
    }
    
    .vertical-header.mobile-open {
        left: 0;
    }
    
    .vh-inner {
        height: calc(100% - 80px) !important;
        justify-content: flex-start;
    }
    
    .vh-menu {
        gap: 8px;
    }
    
    .vh-item {
        padding: 12px 16px;
    }
    
    .vh-casino-label {
        display: none;
    }
    
    /* Right chat panel - hidden by default on mobile */
    .welcome-right-block {
        position: fixed;
        top: 0;
        right: -360px;
        width: 320px;
        height: 100vh;
        border-radius: 0;
        z-index: 998;
        transition: right 0.3s ease;
        padding-top: 70px;
        /* Reset desktop styles */
        left: auto;
        height: 100vh;
    }
    
    .welcome-right-block.mobile-open {
        right: 0;
    }
    
    /* Main content - full width on mobile */
    .main-content {
        position: fixed;
        top: 95px;
        left: 0;
        right: 0;
        height: calc(100vh - 95px);
        padding-bottom: 70px;
        padding-left: 8px;
    }
    
    /* When game menu is visible, add padding */
    .main-content.has-game-menu {
        padding-left: 50px;
    }
    
    /* Game sections */
    .game-section {
        padding: 12px;
        border-radius: 0;
    }
    
    .game-section.active {
        padding: 12px;
    }
    
    /* Rewards ticker */
    .recompense-wrapper {
        bottom: 12px;
        left: 8px;
        right: 8px;
    }
    
    .recompense-ticker-container {
        padding: 6px 0;
    }
    
    /* Wheels */
    .wheel-peek {
        display: none !important;
    }
    
    #wheelsRow {
        padding: 0 10px;
    }
    
    .wheel-center canvas {
        max-width: 100%;
        height: auto;
    }
    
    /* Dice */
    .dice-layout {
        padding: 10px;
    }
    
    .dice-center canvas {
        max-width: 100%;
        height: auto;
    }
    
    /* Tower */
    .tower-layout {
        padding: 10px;
    }
    
    .tower-grid {
        padding: 10px;
    }
    
    .tower-cell {
        width: 70px;
        height: 32px;
    }
    
    /* Plinko */
    .plinko-layout {
        padding: 10px;
    }
    
    #plinkoCanvas {
        max-width: 100%;
        height: auto;
    }
    
    /* Shop/Limited items grid */
    .limited-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }
    
    .limited-item {
        padding: 8px !important;
    }
    
    .limited-item-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .limited-item-name {
        font-size: 0.65rem !important;
    }
    
    .limited-item-price {
        font-size: 0.7rem !important;
    }
    
    /* Robux section */
    .robux-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .robux-card {
        padding: 12px !important;
    }
    
    /* Chat mobile */
    .chat-messages {
        height: calc(100vh - 200px);
    }
    
    /* Header z-index fix */
    header {
        z-index: 300;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 997;
    }
    
    /* Mobile login dropdown */
    #loginDropdown {
        position: fixed !important;
        top: 56px !important;
        right: 8px !important;
        left: auto !important;
        z-index: 1001 !important;
    }
    
    /* Right panel open - adjust main content */
    .welcome-right-block.mobile-open ~ .main-content,
    body:has(.welcome-right-block.mobile-open) .main-content {
        right: 320px;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Input fields on mobile */
    input[type="text"],
    input[type="number"],
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Buttons on mobile */
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .limited-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .robux-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tower-cell {
        width: 60px;
        height: 28px;
    }
    
    .tower-cell-val {
        font-size: 0.65rem;
    }
}
.nav-shop {
    display: flex; align-items: center; gap: 5px;
    color: #ff9e2b;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #ff9e2b55;
    background: rgba(255,158,43,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.nav-shop:hover, .nav-shop.nav-active {
    background: rgba(255,158,43,0.18);
    box-shadow: 0 0 14px #ff9e2b66;
    transform: scale(1.04);
}
.nav-home:hover, .nav-home.nav-active {
    background: rgba(255,158,43,0.18);
    box-shadow: 0 0 14px #ff9e2b66;
    transform: scale(1.04);
}
.nav-robux {
    display: flex; align-items: center; gap: 5px;
    color: #ff9e2b;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #ff9e2b55;
    background: rgba(255,158,43,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.nav-robux:hover, .nav-robux.nav-active {
    background: rgba(255,158,43,0.18);
    box-shadow: 0 0 14px #ff9e2b66;
    transform: scale(1.04);
}

/* Shop section */
.shop-content {
    display: none;
    position: fixed;
    top: 72px; left: 68px; right: 372px; bottom: 260px;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 0 30px 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #ff9e2b transparent;
}
.shop-content::-webkit-scrollbar { width: 6px; }
.shop-content::-webkit-scrollbar-track { background: transparent; }
.shop-content::-webkit-scrollbar-thumb { background: #ff9e2b; border-radius: 3px; }
.shop-content::-webkit-scrollbar-thumb:hover { background: #ffb85a; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 220px);
    gap: 40px 55px;
    box-sizing: border-box;
    margin: 0 auto 0 260px;
    padding: 20px 20px 70px;
}
.shop-card {
    background: rgba(20,22,40,0.92);
    border: 1px solid rgba(255,158,43,0.25);
    border-radius: 12px;
    padding: 10px 10px 12px;
    aspect-ratio: unset;
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(255,158,43,0.3);
}
.shop-card-img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
}
.shop-card-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.shop-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    gap: 4px;
}
.shop-card-rap {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ff4444;
}
.shop-card-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ff9e2b;
}
.shop-card-btn {
    width: 100%;
    padding: 7px 0;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ffb85a, #b05000);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.shop-card-btn:hover { opacity: 0.85; transform: scale(1.03); }

.vh-sell-btn {
    display: none;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2ecc71, #1a7a40);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(46,204,113,0.3);
    transition: box-shadow 0.2s, transform 0.15s;
    margin-top: 4px;
}
.sidebar-limited-mode .vh-sell-btn {
    display: block;
}
.vh-sell-btn:hover {
    box-shadow: 0 0 18px rgba(46,204,113,0.6);
    transform: scale(1.03);
}

/* Cacher les flèches du input number */
#sellItemPriceInput::-webkit-outer-spin-button,
#sellItemPriceInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Mode shop : cache le menu de jeux, garde support + discord */
.sidebar-shop-mode .vh-menu { display: none; }
.sidebar-shop-mode .vh-inner { justify-content: space-between; }
.vh-limited-label {
    display: none;
    font-family: 'Orbitron', Arial Black, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff9e2b;
    text-shadow: 0 0 10px rgba(255,158,43,0.9), 0 0 22px rgba(255,120,0,0.6);
    text-align: center;
    padding-bottom: 8px;
}
.vh-casino-label {
    font-family: 'Orbitron', Arial Black, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff9e2b;
    text-shadow: 0 0 10px rgba(255,158,43,0.9), 0 0 22px rgba(255,120,0,0.6);
    text-align: center;
    padding-bottom: 4px;
}
.sidebar-shop-mode .vh-casino-label { display: none; }
.sidebar-shop-mode .vh-limited-label { display: block; }
.vh-top-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-shop-mode .vh-search-box { display: flex; }
.vh-search-box {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255,158,43,0.07);
    border: 1px solid rgba(255,158,43,0.25);
    border-radius: 8px;
    padding: 10px 12px;
    color: #888;
}
.vh-search-box svg { width: 16px; height: 16px; flex-shrink: 0; }
.vh-search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    width: 100%;
}
.vh-search-box input::placeholder { color: #555; }
.vh-sort-options {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0;
}
.sidebar-shop-mode .vh-sort-options { display: flex; }
.vh-sort-btn {
    background: rgba(255,158,43,0.07);
    border: 1px solid rgba(255,158,43,0.2);
    border-radius: 8px;
    color: #888;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 7px 10px;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vh-sort-btn svg { flex-shrink: 0; }
.vh-sort-btn:hover {
    background: rgba(255,158,43,0.15);
    color: #ff9e2b;
    border-color: rgba(255,158,43,0.5);
}
.vh-sort-btn.active {
    background: rgba(255,158,43,0.18);
    color: #ff9e2b;
    border-color: #ff9e2b88;
    text-shadow: 0 0 8px rgba(255,158,43,0.6);
}

body { overflow-x: hidden; }

/* Scrollbar chat orange */
.welcome-right-block::-webkit-scrollbar { display: block; width: 6px; }
.welcome-right-block::-webkit-scrollbar-track { background: transparent; }
.welcome-right-block::-webkit-scrollbar-thumb { background: #ff9e2b; border-radius: 3px; }
.welcome-right-block::-webkit-scrollbar-thumb:hover { background: #ffb85a; }
.chat-messages::-webkit-scrollbar { display: block; width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #ff9e2b; border-radius: 3px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: #ffb85a; }

/* ===== Modal Achat ===== */
.buy-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.72);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.buy-modal-overlay.open { display: flex; }
.buy-modal {
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 32px 36px 28px;
    width: 520px;
    max-width: 95vw;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalPop 0.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
.buy-modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.buy-modal-close:hover { color: #fff; }
.buy-modal-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 4px;
}
.buy-modal-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.buy-modal-info { flex: 1; }
.buy-modal-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.buy-modal-rap {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 2px;
}
.buy-modal-rap span { color: #fff; font-weight: 700; }
.buy-modal-total-block {
    text-align: right;
    flex-shrink: 0;
}
.buy-modal-total-label {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 4px;
}
.buy-modal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff9e2b;
    text-shadow: 0 0 12px rgba(255,158,43,0.6);
}
.buy-modal-divider {
    border: none;
    border-top: 1px dashed rgba(255,255,255,0.12);
    margin: 20px 0;
}
.buy-modal-form {}
.buy-modal-question {
    font-size: 0.95rem;
    color: #ccc;
    text-align: center;
    margin: 0 0 14px;
}
.buy-modal-input-row {
    display: flex;
    gap: 10px;
}
.buy-modal-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.buy-modal-input::placeholder { color: #555; }
.buy-modal-input:focus { border-color: rgba(255,158,43,0.5); }
.buy-modal-submit {
    background: linear-gradient(135deg, #ffb02e, #ff7a00);
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(255,160,0,0.5);
    transition: box-shadow 0.2s, transform 0.1s;
}
.buy-modal-submit:hover { box-shadow: 0 0 26px rgba(255,160,0,0.85); transform: scale(1.03); }

/* ===== Robux Widget Sidebar ===== */
.nav-robux-wrap {
    display: flex;
    align-items: center;
}
.robux-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    background: rgba(255,158,43,0.06);
    border: 1px solid rgba(255,158,43,0.2);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    overflow: hidden;
}
.robux-widget-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.robux-widget-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
}
.robux-widget-arrow {
    background: rgba(255,158,43,0.15);
    border: 1px solid rgba(255,158,43,0.4);
    color: #ff9e2b;
    border-radius: 6px;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.robux-widget-arrow:hover {
    background: rgba(255,158,43,0.35);
}
.robux-widget-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    min-width: 0;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.robux-widget-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff9e2b;
    text-shadow: 0 0 8px rgba(255,158,43,0.5);
}
.robux-widget-buy {
    width: 100%;
    padding: 6px 0;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ffb02e, #ff7a00);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: box-shadow 0.2s;
    box-shadow: 0 0 10px rgba(255,140,0,0.4);
    box-sizing: border-box;
}
.robux-widget-buy:hover {
    box-shadow: 0 0 18px rgba(255,140,0,0.7);
}
