/**
 * ╔═══════════════════════════════════════════════════════════════════════════╗
 * ║                    YŪGEN EXPERIENCE - CSS v10.0                           ║
 * ║              PREMIUM + BOOSTER INFO + IMMERSIVE VISUAL                    ║
 * ╚═══════════════════════════════════════════════════════════════════════════╝
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --yugen-cyan: #00E5CC;
    --yugen-cyan-light: #00FFE5;
    --yugen-cyan-dark: #00B8A3;
    --yugen-blue: #00AAFF;
    --yugen-purple: #9370DB;
    --yugen-gradient: linear-gradient(135deg, #00E5CC 0%, #00AAFF 50%, #9370DB 100%);
    
    --bg-dark: #000000;
    --bg-card: rgba(15, 15, 15, 0.9);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --font-main: 'Outfit', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --mobile-padding: 16px;
    --mobile-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WRAPPER & CANVAS
   ═══════════════════════════════════════════════════════════════════════════ */

#webgl-experience-wrapper {
    position: relative;
    width: 100%;
    background: var(--bg-dark);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

#yugen-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: transform;
}

#scroll-track {
    position: relative;
    width: 100%;
    pointer-events: none;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 10;
    pointer-events: none;
}

#ui-overlay * {
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREENS
   ═══════════════════════════════════════════════════════════════════════════ */

.yugen-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth), 
                transform 0.4s var(--transition-smooth);
}

.yugen-screen.active {
    display: flex;
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENT SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

#content-screen {
    flex-direction: column;
    padding: 0;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    z-index: 20;
    padding-top: max(16px, env(safe-area-inset-top));
    transition: opacity 0.4s var(--transition-smooth);
}

.top-left,
.top-right {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.top-left {
    color: var(--yugen-cyan);
}

.top-right {
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 11px;
}

/* Info Box - CENTERED ABOVE DOYPACK */
.info-box {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    z-index: 15;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 16px;
    padding: 24px 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.4s var(--transition-smooth);
}

.info-title {
    font-family: var(--font-main);
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 800;
    color: var(--yugen-cyan);
    margin-bottom: 12px;
    line-height: 1.2;
    transition: all 0.3s var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-subtitle {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    transition: all 0.3s var(--transition-smooth);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-probability {
    margin-bottom: 16px;
    transition: all 0.3s var(--transition-smooth);
}

.prob-badge {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(0, 229, 204, 0.1);
    border: 1px solid rgba(0, 229, 204, 0.3);
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--yugen-cyan);
    letter-spacing: 1px;
}

.prob-badge.cyan {
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.2) 0%, rgba(0, 170, 255, 0.15) 100%);
    border-color: var(--yugen-cyan);
    color: var(--yugen-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 204, 0.2);
}

.prob-badge.highlight {
    background: rgba(0, 229, 204, 0.15);
    border-color: var(--yugen-cyan-light);
    color: var(--yugen-cyan-light);
}

/* Tier Dots */
.tier-dots {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    justify-content: center;
}

.tier-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--transition-smooth);
}

.tier-dot.active {
    background: var(--text-primary);
    transform: scale(1.3);
}

.tier-dot.cyan.active {
    background: var(--yugen-cyan);
    box-shadow: 0 0 12px var(--yugen-cyan);
}

.tier-dot.highlight.active {
    background: var(--yugen-cyan-light);
    box-shadow: 0 0 12px var(--yugen-cyan-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT PANEL - RECAP + IMMERSIVE VISUAL (CENTERED VERTICALLY)
   ═══════════════════════════════════════════════════════════════════════════ */

.left-panel {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 300px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.5s var(--transition-smooth), 
                transform 0.5s var(--transition-smooth);
}

.left-panel.visible {
    opacity: 1;
}

/* Recap Box - CENTERED */
.recap-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--mobile-radius);
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recap-line {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    opacity: 0.4;
    transform: translateX(10px);
    transition: all 0.3s var(--transition-smooth);
}

.recap-line.active {
    color: var(--text-primary);
    opacity: 1;
    transform: translateX(0);
}

.recap-line.highlight {
    color: var(--yugen-cyan);
}

.recap-line.highlight.active {
    text-shadow: 0 0 15px rgba(0, 229, 204, 0.3);
}

/* Immersive Visual Zone */
.immersive-visual {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s var(--transition-smooth), 
                transform 0.6s var(--transition-bounce);
}

.immersive-visual.visible {
    opacity: 1;
    transform: scale(1);
}

.immersive-visual img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s var(--transition-smooth),
                filter 0.4s var(--transition-smooth);
}

.immersive-visual img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(0, 229, 204, 0.3));
}

.immersive-visual .visual-primary {
    max-width: 240px;
    animation: floatVisual 4s ease-in-out infinite;
}

.immersive-visual .visual-secondary {
    max-width: 200px;
    animation: floatVisual 4s ease-in-out infinite 0.5s;
}

@keyframes floatVisual {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOSTER INFO LABELS - UNIFIED BADGE (SERIE + YEAR/PRICE)
   ═══════════════════════════════════════════════════════════════════════════ */

.booster-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
}

.booster-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-50%) translateY(200px);
    transition: opacity 0.4s var(--transition-smooth),
                transform 0.4s var(--transition-smooth);

}

.booster-label.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Unified Badge Container */
.booster-badge-unified {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(25, 25, 25, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 8px 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    min-width: 90px;
    opacity: 0.86;
}

.booster-badge-unified.highlight {
    border-color: rgba(255, 248, 0, 1);
    box-shadow: 0 4px 16px rgba(255, 248, 0, 0.15);
}

/* Serie Code (top part) */
.badge-serie {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    text-align: center;
}

.booster-badge-unified.highlight .badge-serie {
    color: rgba(255, 248,0);
    border-bottom-color: rgba(255, 248,0,0.3);
}

/* Year + Estimation (bottom part) */
.badge-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-main);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.badge-meta .year {
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-meta .estimation {
    color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .booster-badge-unified {
        padding: 6px 12px;
        min-width: 70px;
        border-radius: 8px;
    }
    
    .badge-serie {
        font-size: 11px;
        padding-bottom: 4px;
        margin-bottom: 4px;
    }
    
    .badge-meta {
        font-size: 9px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .booster-badge-unified {
        padding: 5px 10px;
        min-width: 60px;
    }
    
    .badge-serie {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .badge-meta {
        font-size: 8px;
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL CUE
   ═══════════════════════════════════════════════════════════════════════════ */

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    animation: scrollPulse 2s ease-in-out infinite;
    z-index: 15;
    padding: 10px 20px;
}

.scroll-cue span {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-cue .arrow {
    font-size: 14px;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION FINALE - CENTERED VERTICALLY
   ═══════════════════════════════════════════════════════════════════════════ */

.finale-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--transition-smooth);
}

.finale-container.active {
    opacity: 1;
    pointer-events: auto;
}

.finale-content {
    text-align: center;
    max-width: 450px;
    padding: 32px 24px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 204, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.finale-title {
    font-family: var(--font-main);
    font-size: clamp(22px, 5vw, 42px);
    font-weight: 800;
    color: var(--yugen-cyan);
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.finale-subtitle {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.finale-recap {
    margin-bottom: 20px;
}

.finale-recap-item {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s var(--transition-smooth);
}

.finale-recap-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.finale-recap-item.rare {
    color: var(--yugen-cyan) !important;
    font-weight: 700;
}

/* Total boosters count */
.finale-total {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--yugen-cyan);
    padding: 16px 0 8px;
    margin-bottom: 16px;
    border-top: 2px solid rgba(0, 229, 204, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.finale-description {
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.finale-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.teaser-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--yugen-gradient);
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.teaser-date {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.finale-teaser {
    animation: teaserPulse 3s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .top-bar {
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top));
    }
    
    .top-left,
    .top-right {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    
    .info-box {
        top: 6%;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 500px;
        padding: 18px 20px;
    }
    
    .info-title {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .info-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .prob-badge {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    /* Left panel mobile */
    .left-panel {
        display: none;
    }
    
    /* Booster labels mobile */
    .serie-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .booster-meta {
        font-size: 10px;
    }
    
    .finale-content {
        margin: 16px;
        padding: 24px 20px;
    }
    
    .finale-title {
        font-size: 20px;
    }
    
    .finale-recap-item {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .finale-total {
        font-size: 14px;
    }
    
    .finale-description {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        display: none !important;
    }
    
    .top-bar {
        padding: 10px 12px;
    }
    
    .top-left {
        font-size: 9px;
    }
    
    .top-right {
        font-size: 9px;
        padding: 4px 10px;
    }
    
    .info-box {
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        max-width: none;
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .info-title {
        font-size: 16px;
        margin-bottom: 6px;
        letter-spacing: 1px;
    }
    
    .info-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .prob-badge {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .tier-dots {
        gap: 10px;
        margin-top: 10px;
    }
    
    .tier-dot {
        width: 10px;
        height: 10px;
    }
    
    .scroll-cue {
        bottom: 20px;
    }
    
    .scroll-cue span {
        font-size: 9px;
    }
    
    .serie-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .booster-meta {
        font-size: 9px;
    }
    
    .finale-content {
        margin: 12px;
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .finale-title {
        font-size: 18px;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }
    
    .finale-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .finale-recap-item {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .finale-total {
        font-size: 13px;
        padding: 12px 0 6px;
    }
    
    .finale-description {
        font-size: 10px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .teaser-badge {
        font-size: 9px;
        padding: 5px 12px;
    }
    
    .teaser-date {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .info-box {
        padding: 10px;
    }
    
    .info-title {
        font-size: 14px;
    }
    
    .info-subtitle {
        font-size: 10px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .info-box {
        top: 5%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 350px;
        padding: 10px;
    }
    
    .info-title {
        font-size: 14px;
    }
    
    .info-subtitle {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .scroll-cue {
        bottom: 10px;
    }
    
    .left-panel {
        display: none !important;
    }
    
    .finale-content {
        max-width: 500px;
        padding: 16px;
    }
    
    .finale-title {
        font-size: 18px;
    }
    
    .finale-recap-item {
        font-size: 11px;
        padding: 6px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.yugen-gradient-text {
    background: var(--yugen-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cyan-text {
    color: var(--yugen-cyan) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .yugen-screen,
    .info-box,
    .left-panel,
    .finale-container {
        will-change: opacity;
    }
    
    @media (hover: none) {
        .pack-btn:hover {
            transform: none;
            box-shadow: none;
        }
        
        .pack-btn:active {
            transform: scale(0.97);
            background: rgba(40, 40, 40, 0.95);
        }
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAFE AREA SUPPORT
   ═══════════════════════════════════════════════════════════════════════════ */

@supports (padding: max(0px)) {
    .top-bar {
        padding-top: max(16px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .info-box {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    
    .scroll-cue {
        bottom: max(30px, env(safe-area-inset-bottom));
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLE TIERS RARE (TITRES & TEXTES)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Style global des titres rares */
.rare-title-container {
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}


.tier-graal .prob-badge {
    background: linear-gradient(45deg, #FFD700, #B8860B);
    color: #000;
    border: none;
    box-shadow: 0 0 15px #FFD700;
}

/* ✨ PRESTIGE - ARGENT/PLATINE */
.tier-graal  .info-title {
    color: #E0E0E0;
    background: linear-gradient(to bottom, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

/* ✨ PRESTIGE - ARGENT/PLATINE */
.tier-prestige .info-title {
    color: #E0E0E0;
    background: linear-gradient(to bottom, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}
.tier-prestige .prob-badge {
    background: linear-gradient(45deg, #E0E0E0, #757575);
    color: #000;
    border: none;
}

/* ⭐ LEGENDES - CYAN/SPACE */
.tier-legend .info-title {color: #E0E0E0;
     color: #E0E0E0;
    background: linear-gradient(to bottom, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

/* 🔥 HIT - FEU */
.tier-hit .info-title {
     color: #E0E0E0;
    background: linear-gradient(to bottom, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}






.tier-hit .prob-badge {
    background: linear-gradient(45deg, #FF4500, #FF8C00);
    color: #FFF;
    border: none;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOVER BOOSTERS - DESCRIPTION & ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */

/* Transition de base sur le badge */
.booster-badge-unified {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 140px;
    overflow: hidden;
}

/* État Hover (agrandissement) - Ajouté via JS (.expanded) */
.booster-badge-unified.expanded {
    transform: scale(1.15) translateY(-10px);
    background: rgba(10, 10, 10, 0.98);
    border-color: var(--yugen-cyan);
    box-shadow: 0 10px 30px rgba(0, 229, 204, 0.25);
    min-width: 220px; /* Plus large pour le texte */
    max-width: 260px;
    z-index: 100;
}

/* Conteneur pour la description (caché par défaut) */
.badge-details {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.booster-badge-unified.expanded .badge-details {
    max-height: 150px; /* Suffisant pour le texte */
    opacity: 1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--yugen-cyan);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.badge-desc {
    display: block;
    font-size: 11px;
    color: #CCC;
    line-height: 1.4;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INDICATEUR DE LANGUE
   ═══════════════════════════════════════════════════════════════════════════ */

.lang-indicator {
    position: absolute;
    bottom: 100px; /* Au dessus du scroll cue */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    z-index: 14;
}

.lang-indicator.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .lang-indicator {
        bottom: 85px;
        font-size: 10px;
        width: 90%;
        text-align: center;
        white-space: normal;
    }

    #ui-overlay {
        position: fixed;
        top: 10px;
       
    }

    #info-box{
        top: 60px;
    }
}
/* Container dédié qui apparaît entre le titre principal et la proba */
.rare-tier-container {
    display: none; /* Caché par défaut */
    flex-direction: column;
    align-items: center;
    margin: 10px 0 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.rare-tier-container.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.tier-label {
    font-family: var(--font-main); /* Ou 'Cinzel' si importé */
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.2;
}

.tier-sub {
    font-family: var(--font-main);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
}

/* --- STYLES PAR TIER (Appliqués via le parent info-box) --- */

/* 🏆 GRAAL - OR */
.info-box.tier-graal .tier-label {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}
.info-box.tier-graal .rare-tier-container {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, rgba(0,0,0,0) 100%);
}

/* ✨ PRESTIGE - ARGENT */
.info-box.tier-prestige .tier-label {
    color: #E0E0E0;
    text-shadow: 0 0 15px rgba(224, 224, 224, 0.5);
}
.info-box.tier-prestige .rare-tier-container {
    border-color: rgba(224, 224, 224, 0.3);
}

/* ⭐ LEGENDES - CYAN */
.info-box.tier-legend .tier-label {
    color: var(--yugen-cyan);
    text-shadow: 0 0 20px var(--yugen-cyan);
}
.info-box.tier-legend .rare-tier-container {
    border-color: rgba(0, 229, 204, 0.3);
}

/* 🔥 HIT - FEU */
.info-box.tier-hit .tier-label {
    background: linear-gradient(to bottom, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}
.info-box.tier-hit .rare-tier-container {
    border-color: rgba(255, 69, 0, 0.3);
}

.section-register{
    z-index: 99!important;
    position: relative;
}

.alert-info, .alert-success{
position: absolute;
    top: 95px;
    z-index: 9;
    margin: auto;
    width: 100%;
    background: #b4ffd2;
    padding: 10px;
    border-radius: 5px;
    color: #000000;
    text-align: center;
    /* margin: 20px; */
    opacity: 0.8;
}