/* Celebration Overlay System */
#phoenix-celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
}
body.shop-explorer #phoenix-celebration-overlay {
    z-index: 10000;
}
#celebrateSVG {
    width: 100%; height: 100%;
}

.hero-donate {
    display: none;
}

.main-text {
    font-size: 80px;
    font-weight: 900;
    fill: white;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.sub-text {
    font-size: 22px;
    fill: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

@font-face {
    font-family: 'handwritting';
    src: url('../font/2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TitleFont';
    src: url('../font/1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #ff8400;
    --accent-color2: #ffb362;
    --header-bg: #181818;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    background-image: repeating-radial-gradient(circle at 50%, transparent 0, #00000052 10px), repeating-linear-gradient(#00000061, #311200);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background-color: #000000cf;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    padding: 10px 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
}


.logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    z-index: 10000;
    padding-left: 0.5em;
    margin-right: 8px;
}

.logo-text {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 625px) {
    .logo-text { display: none; }
}

.header-center {
    display: flex; /* Use flex to align items vertically */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically if container has height */
    flex: 2; /* Maintain flex sizing */
    text-align: center; /* Ensure text alignment */
    min-height: 50px; /* Give it some minimum height */
    position: relative;
    font-size: 1em;
}

.welcome-text {
    font-size: 1.5em; /* Larger font size */
    font-weight: 900; /* Bolder */
    color: var(--text-color); /* Fallback color for visibility */
    text-transform: uppercase;
    /* text-shadow: 0 0 15px rgba(255, 132, 0, 0.5); */ /* Removed general shadow */
    margin-bottom: 5px; /* Space between title and dicton */
    display: inline-block; /* Essential for text-shadow and spacing */
    line-height: 0.9;
}

.welcome-text .welcome-to {
    color: var(--text-color); /* Default text color */
    font-weight: 400; /* Slightly less bold */
    text-shadow: 0 0 10px rgba(255,255,255,0.2); /* Subtle glow for welcome */
    font-size: 0.5em;
    line-height: 1;
    margin-right: 30px;
}

.welcome-text .the-phoenix-factory {
    display: block;
    
     /* Ensure enough height for the text */
    position: relative;
    
    /* The magic: the background IS the text color */
    background: linear-gradient(
        120deg, 
        var(--accent-color) 35%, 
        #fff 50%, 
        var(--accent-color) 65%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    
    /* Clipping to letters */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Making the actual text color transparent so background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine-text 3s linear infinite;
    
    /* Safe glow that follows the letters */
    filter: drop-shadow(0 0 5px rgba(255, 132, 0, 0.3));
    font-size: 0.8em;
    line-height: 1.2em;
    overflow: visible;
    margin-top: -4.7px;
}

@keyframes shine-text {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.welcome-text .the-phoenix-factory .bold-letter {
    font-weight: bolder;
    /* Don't set colors here, let it inherit the parent's background-clip */
    font-size: 1.3em;
    vertical-align: top;
    line-height: 0.9em;
}

.dicton-text {
    display: block;
    color: #ffffff;
    font-size: 1em;
    margin-top: -9.2px;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
    font-family: 'handwritting', cursive; /* Apply custom font */
}

.dicton-text:hover {
    opacity: 1;
    color: var(--accent-color-light);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 1;
}

.user-info {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}
span.user-greeting-text {color: white;font-weight: normal;}

.user-icon {
    width: 30px;
    height: 37px;
    display: none;
    object-fit: contain;
    margin-left: 9px;
}

.login-icon {
    width: 37px;
    height: 37px;
}

@media (max-width: 849px) {
    .user-greeting { display: none; }
    .user-icon { display: block; }
}

.user-info:hover {
    text-decoration: underline;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 1.75em;
}

.icon-btn:hover {
    color: var(--accent-color);
}

/* Sidebar Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 86%);
    backdrop-filter: blur(16px);
    z-index: 9500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Right Side Menu */
#sideMenu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background-color: rgb(0 0 0 / 88%);
    border-left: 1px solid #333;
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 15px 20px 20px;
    box-shadow: -5px 0 15px rgb(0 0 0 / 78%);
    visibility: hidden;
    backdrop-filter: blur(6px);
}

#sideMenu.open {
    right: 0;
    visibility: visible;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-badge-top {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 132, 0, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 132, 0, 0.2);
    text-decoration: none;
}

.user-name-top {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
}

.menu-user-icon {
    width: 20px;
    height: 20px;
}

.menu-close {
    font-size: 2.2rem;
    color: #888;
    transition: color 0.2s;
    line-height: 1;
}

.menu-close:hover {
    color: #fff;
}

.side-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 15px 0 5px 0;
}

.menu-group-label {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    padding-left: 15px;
    opacity: 0.8;
}

.menu-group a {
    padding-left: 25px !important;
}

.side-menu-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.side-menu-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.side-menu-links a:hover .menu-icon {
    opacity: 1;
    filter: none;
}

.side-menu-links a.active {
    color: var(--accent-color);
    background: rgba(255, 132, 0, 0.05);
}

.menu-version {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.7rem;
    color: #444;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.sub-header {
    background-color: #1a1a1a;
    padding: 9px 9px;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #888;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px;
    text-align: center;
    margin: 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.showcase-card {
    background: #00000069;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.showcase-card.is-wip {
    cursor: default;
    opacity: 0.4;
    filter: grayscale(1);
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.showcase-card.is-wip:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.showcase-card.is-wip .card-image {
    filter: grayscale(0.9);
    position: relative;
}

.wip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #444;
    color: #aaa;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: #2a2a2a;
    background-size: cover;
    background-position: top;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.card-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left;
}

.card-btn {
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.2s;
}

:root {
    --bg-color: #080808;
    --card-bg: #121212;
    --text-color: #ffffff;
    --accent-color: #ff8400;
    --accent-color-light: #ffc280;
    --accent-glow: rgba(255, 132, 0, 0.3);
    --header-bg: rgba(20, 20, 20, 0.9);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #222 var(--bg-color);
}

* {box-sizing: border-box;}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: repeating-radial-gradient(circle at 50%, transparent 0, #00000052 10px), repeating-linear-gradient(#00000061, #311200);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 40px; }
.logo-text-img { height: 40px; margin-right: 10px; }
.logo-text-container h1 { margin: 0; font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.logo-area h1 span { color: var(--accent-color); }
.subtitle { margin: 5px 0 0 0; font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

.controls { display: flex; align-items: center; gap: 15px; }

#collection-select {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 50px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75em;
}
#collection-select option { background: #1a1a1a; color: white; }
#collection-select optgroup {
    background: #1a1a1a;
    color: #ff8400; /* Accent color for optgroup labels */
    font-weight: 700;
}
#collection-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.sub-header {
    background: rgb(0 0 0 / 95%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    position: sticky;
    top: 60px;
    z-index: 900;
    color: #cdcdcd;
}

.sub-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edition-tabs {display: flex;gap: 10px;margin-left: 9px;}
.edition-tab {
    padding: 6px 15px; border-radius: 5px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); color: #888; font-size: 0.8rem;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.edition-tab:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.edition-tab.active { background: var(--accent-color); border-color: var(--accent-color); color: #000; }

/* Dashboard / Pull Rates Panel */
.pull-rates-container {flex: 1;display: flex;flex-direction: column;align-items: center;position: relative;margin: 0 auto;}
.pull-rates-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 9px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}
.pull-rates-summary:hover { border-color: var(--accent-color); background: rgba(255, 132, 0, 0.05); }
.pull-rates-summary .summary-text { font-size: 0.75rem; font-weight: 800; color: #aaa; text-transform: uppercase; }
.pull-rates-summary .toggle-icon { font-size: 0.7rem; color: var(--accent-color); transition: transform 0.3s; }
.pull-rates-container.expanded .toggle-icon { transform: rotate(180deg); }

.pull-rates-details {
    display: none;
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 14px;
    margin-top: 1px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95);
    z-index: 100;
    flex-direction: column;
    min-width: 1000px;
}
.pull-rates-container.expanded .pull-rates-details {display: flex;}

.panel-header {text-align: center;margin-bottom: 10px;width: 100%;}
.panel-header h3 { margin: 0; font-size: 1.2rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; }
.panel-header p { margin: 5px 0 0 0; font-size: 0.85rem; color: #555; font-weight: 600; }

.details-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    width: 100%;
}

.spider-svg {filter: drop-shadow(0 0 15px var(--accent-glow));flex-shrink: 0;overflow: visible;width: 21em;}
.pull-rates-list { flex: 1; max-width: 450px; display: flex; flex-direction: column; gap: 8px; }
.pull-list-header {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 0.7rem; color: #444;
    text-transform: uppercase; font-weight: 900; padding: 0 15px 8px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 8px;
}
.pull-rate-row {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 0.85rem; padding: 10px 15px;
    border-radius: 6px; background: rgba(255, 255, 255, 0.02); align-items: center;
}
.r-name { text-transform: uppercase; font-weight: 800; color: #666; }
.r-count { color: #fff; font-weight: 700; opacity: 0.8; }
.r-avg { color: #eee; font-family: monospace; font-size: 0.9rem; }
.r-odds { color: var(--accent-color); font-weight: 900; font-size: 1rem; }

.pull-rate-row.uncommon .r-name { color: #2ecc71; }
.pull-rate-row.rare .r-name { color: #3498db; }
.pull-rate-row.legendary .r-name { color: #e67e22; }
.pull-rate-row.epic .r-name { color: #9b59b6; }
.pull-rate-row.secret .r-name { color: #e74c3c; }

/* Stats Badge Fix */
.stats-badge {
    background: rgba(255, 132, 0, 0.05); border: 1px solid rgba(255, 132, 0, 0.1);
    padding: 8px 15px; border-radius: 6px; font-size: 0.75rem;
    text-align: right; letter-spacing: 0.5px; display: inline-flex; align-items: center;
}
.stats-label { color: #888; font-weight: 400; }
.stats-value { color: #fff; font-weight: 800; margin-left: 2px; }
.stats-separator { color: rgba(255,255,255,0.1); margin: 0 8px; }

/* Grid Stable */
.grid {display: grid;grid-template-columns: repeat(4, minmax(0, 1fr));gap: 30px;max-width: 1400px;margin: 50px auto;padding: 0 30px;margin-top: 29px;}
.card-container { perspective: 1200px; width: 100%; }
.card-container.is-holo .card-inner::before { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000); background-size: 400%; z-index: -1; border-radius: 16px; animation: rainbow-border 8s linear infinite; filter: blur(2px); opacity: 0.6; }
.card-container.is-missing .card-inner { filter: brightness(0.4) grayscale(0.5); transition: filter 0.3s ease; }
.card-container.is-missing:hover .card-inner { filter: brightness(0.6) grayscale(0.2); }

/* Style pour les cartes inactives (grise) */
.is-unactive .card-front, .is-unactive .card-back {
    filter: grayscale(1) brightness(0.7);
}
.is-unactive:hover .card-front, .is-unactive:hover .card-back {
    filter: grayscale(0.5) brightness(0.9);
}
.card-container.is-unactive .card-inner {
}

.unactive-overlay, .moderation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    opacity: 0;
    pointer-events: none;
    z-index: 25;
    overflow: hidden;
    flex-direction: column;
}

.is-unactive .unactive-overlay { opacity: 1; }
.is-moderated .moderation-overlay { opacity: 1; background: rgba(0,0,0,0.8); }

.unactive-text, .mod-text {
    color: #fff;
    padding: 0.25em 7em;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-55.7deg);
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    letter-spacing: 1px;
    opacity: 0.80;
}

.unactive-text { background: #444; }
.mod-text {background: #5d0900;line-height: 1.4em;padding-bottom: 0.7em;}
span.mod-subtext {
    font-size: 0.5em;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    font-weight: normal;
}
.card-inner { position: relative; width: 100%; aspect-ratio: 2.5 / 3.5; transform-style: preserve-3d; will-change: transform; }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px; background-size: 106%; background-position: center; box-shadow: 0 10px 25px rgba(0,0,0,0.5); overflow: hidden; }

/* Rarity Colors */
.common { color: #888; } .uncommon { color: #2ecc71; } .rare { color: #3498db; } .epic { color: #9b59b6; } .legendary { color: #e67e22; } .secret { color: #e74c3c; }

.card-front.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: var(--accent-color); border-radius: 50%; margin-left: -20px; margin-top: -20px; animation: spin 1s linear infinite; z-index: 2; }

.contrib-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 15; color: white; text-align: center; padding: 20px;
}

.is-missing-credit .contrib-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contrib-text-row {display: flex;flex-direction: column;align-items: center;gap: 2px;margin-bottom: 2.5em;}
.contrib-links { display: flex; gap: 15px; pointer-events: inherit; }
.contrib-links a {color: var(--accent-color);text-decoration: none;font-size: 0.9rem;font-weight: 800;text-transform: uppercase;padding: 4px 5px;border-radius: 4px;border: 1px solid var(--accent-color);transition: all 0.3s;background: rgba(255,255,255,0.08);}
.contrib-links a:hover { background: var(--accent-color); color: #000; }

.contrib-icon, .mod-icon {font-size: 4.6rem;margin-bottom: 8px;}
.contrib-text {font-size: 0.9rem;font-weight: 900;text-transform: uppercase;background: var(--accent-color-light);color: #000;padding: 4px 6px;border-radius: 4px;}

@keyframes spin { to { transform: rotate(360deg); } }
.card-back {transform: rotateY(180deg);}

.glossy-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--pos-x, 50%) var(--pos-y, 50%),
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}

.holo-overlay {position: absolute;top: -6px;left: -6px;width: 100%;height: 100%;border-radius: 12px;pointer-events: none;opacity: 0.35;transition: opacity 0.3s ease;background: linear-gradient(calc(var(--angle, 0deg) + 27deg), #ff0000, #ff00ff, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000);background-size: 100%;background-position: var(--pos-x, 50%) var(--pos-y, 50%);mask-image: var(--mask-url);-webkit-mask-image: var(--mask-url);mask-size: cover;-webkit-mask-size: 106%;mix-blend-mode: normal;filter: brightness(1.1) contrast(1.1) blur(0.5px);}
.card-container:hover .holo-overlay { opacity: 1; }

.card-info {margin-top: 15px;text-align: center;width: 100%;position: relative;padding: 0 0px;}
.variant-btn { position: absolute; top: 0; height: 20px; display: flex; align-items: center; cursor: pointer; font-size: 1.2rem; color: rgba(255, 255, 255, 0.1); user-select: none; transition: all 0.3s; }
.variant-btn:hover { color: var(--accent-color); }
.variant-btn.prev { left: 5px; }
.variant-btn.next { right: 5px; }

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2em;
    /* height: 2.4em; */ /* Force 2 lignes de hauteur pour l'alignement */
    text-align: center;
    max-width: 12em;
    font-size: 0.9em;
}
.card-number { font-size: 0.75rem; color: var(--accent-color); font-weight: 400; font-style: italic; margin-right: 4px; }
.rarity-tag {text-transform: uppercase;font-size: 0.85rem;font-weight: 900;letter-spacing: 1px;}

.photo-credit {font-size: 0.85rem;color: #666;margin-top: 3px;}
.photo-credit a {color: var(--accent-color-light);text-decoration: none;transition: color 0.2s;font-weight: 600;font-size: 1.3em;}
.photo-credit a:hover { color: var(--accent-color-light); }

.shop-button {background: var(--accent-color);color: #000;text-decoration: none;font-size: 0.75rem;font-weight: 800;padding: 8px 11px;border-radius: 50px;text-transform: uppercase;transition: all 0.3s;}
.shop-button:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 5px 15px rgba(255, 132, 0, 0.3); }

/* Modern Unified Footer */
.site-footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    color: #fff;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 132, 0, 0.2));
}

.footer-brand-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin: 0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links-list a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Force white icons */
    opacity: 0.7;
    transition: all 0.3s;
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon-btn:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--accent-color));
}

.support-section {
    align-items: flex-start;
}

.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 60, 0, 0.1);
    border: 1px solid var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.footer-donate-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: scale(1.05);
}

.footer-copyright {
    margin-top: auto;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.brand-highlight {
    color: #888;
    font-weight: 700;
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .site-footer { padding: 40px 0; }
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-section { align-items: center; }
    .footer-tagline { max-width: 100%; }
    .footer-social-icons { justify-content: center; }
    .footer-copyright { margin-top: 10px; }
}

.wip-banner {background: rgba(255, 132, 0, 0.05);border-bottom: 1px solid rgba(255, 132, 0, 0.2);padding: 20px 0 0 0;text-align: center;}
.wip-tag { background: var(--accent-color); color: #000; font-weight: 900; padding: 4px 12px; border-radius: 4px; font-size: 0.7rem; letter-spacing: 1px; }
/* Language Switcher Modern Dropdown */
.lang-switcher {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.lang-btn .arrow {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform 0.3s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Invisible bridge to maintain hover between button and dropdown */
.lang-dropdown::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
    z-index: -1;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.open .lang-dropdown {
    display: flex;
    animation: fadeInScale 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switcher.open .lang-btn .arrow {
    transform: rotate(180deg);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lang-item.active {
    color: var(--accent-color);
    background: rgba(255, 132, 0, 0.05);
}

.lang-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 625px) {
    .lang-btn span { display: none; }
    .lang-btn {padding: 0;border: none;background: none;}
    .lang-btn > .lang-flag {width: 29px;border: 4px solid #0000009c;border-radius: 3em;}
    .header-center {font-size:0.75em;}
    .logo{width:42px;}
    .beta-banner{margin-top: 4px!important;}
    span.welcome-to{display: inline-block;margin-bottom: 4px;}
}

.completion-grid { display: flex; justify-content: center; gap: 20px; }
.comp-item { background: rgba(255, 255, 255, 0.03); padding: 10px 20px; border-radius: 8px; }
.comp-label { font-size: 0.65rem; color: #666; text-transform: uppercase; display: block; margin-bottom: 5px; }
.comp-value { font-size: 1.2rem; font-weight: 800; color: #fff; }
.comp-value small { color: var(--accent-color); font-size: 0.7rem; margin-left: 8px; }

/* Hamburger Menu Button */
.hamburger-menu-btn {
    display: none; /* Hidden by default, shown in media query */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 110; /* Above other header elements */
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Off-canvas Menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden by default */
    width: 280px; /* Or a percentage for responsiveness */
    height: 100%;
    background-color: #1a1a1a;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 105;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.offcanvas-menu.open {
    right: 0; /* Slide in */
}

.offcanvas-menu .close-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 50px; /* Space from close button */
    flex-grow: 1; /* Allow ul to take available space */
}

.offcanvas-menu li {
    margin-bottom: 15px;
}

.offcanvas-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    transition: color 0.2s;
}

.offcanvas-menu a:hover {
    color: var(--accent-color);
}

@media (max-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width:  900px) { .grid {grid-template-columns: repeat(3, minmax(0, 1fr));gap: 15px;margin: 015px;padding: 0;} }
@media (max-width:  625px) { .grid {grid-template-columns: repeat(2, minmax(0, 1fr));gap: 14px;padding: 14px;margin: 0;} }

img.shop-icon {
    width: 1.9em;
    vertical-align: middle;
    margin-right: 0.7em;
}
a.back-link {
    color: white;
    margin: 0 auto;
    width: 100%;
    display: inline-block;
    height: 2em;
    text-align: center;
    line-height: 2em;
}

/* Responsive Header and Sub-header */
@media (max-width: 819px) {
    .header-content {
        flex-direction: row;
        /* align-items: center; */
    }

    .logo-text-img, .logo-img {
        display: none;
    }

    .shop-button .shop-text {
        display: none;
    }

    .shop-button {
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 1.2rem;
    }
    img.shop-icon {
        width: 1.05em;
        margin:0;
    }
    .sub-header-content {
        flex-direction: row; /* Display side-by-side */
        justify-content: center; /* Center horizontally */
        flex-wrap: wrap; /* Allow wrapping on very small screens */
        gap: 10px;
    }

    .logo-area {gap: 5px;}
    .logo-text-container h1 { font-size: 1rem;}
    .subtitle {font-size: 0.6rem;letter-spacing: 0.5px;}
    .pull-rates-summary .mobile-hidden-odds {
        display: none;
    }
    
    .pull-rate-row {
        padding: 0.4em;
    }

    .pull-rates-details {
        min-width: 0;
        width: calc(100vw - 6em);
        padding: 37px;
        left: 0;
        right: 0;
        margin: 0 auto;
        top: 44px;
        padding: 1em;
        position: fixed;
        transform: none;
    }

    .details-inner {
        flex-direction: column;
        gap: 4px;
    }

    .spider-svg {
        max-width: 60%;
        height: auto;
    }

    .pull-rates-list {
        max-width: 100%;
    }

    .unactive-text {
        padding: 0.4em 8em;
        font-size: 1.6rem;
    }

    /* Show hamburger button on small screens */
    .hamburger-menu-btn {
        display: flex;
    }

    /* Adjust controls layout for small screens to prevent overlap */
    .controls {
        gap: 8px; /* Reduce gap */
    }
}
.contrib-overlay.is-flipped {
    pointer-events: none;
}

.showcase-card:hover .card-btn {
    background-color: #ffaa44;
}

footer {
    padding: 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: black;
    background: #ff5400;
    padding: 1em;
}

footer a {
    color: #888;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

/* Beta Banner */
/* Responsive Showcase Grid */
@media (max-width: 600px) {
    .showcase-grid {
        gap: 15px;
        padding: 0 10px;
    }
    .showcase-card {
        flex-direction: row;
        height: auto; /* DYNAMIC HEIGHT */
        min-height: 120px;
        text-align: left;
    }
    .card-image {
        width: 100px;
        min-height: 120px;
        height: auto;
        flex-shrink: 0;
    }
    .card-content {
        padding: 15px;
        justify-content: center;
    }
    .card-title {
        font-size: 1.1rem;
        text-align: left;
        margin-bottom: 6px;
    }
    .card-desc {
        font-size: 0.85rem;
        margin-bottom: 0;
        display: block; /* Remove line clamp */
        -webkit-line-clamp: initial;
        line-height: 1.4;
        color: #aaa;
    }
    .card-btn {
        display: none; 
    }
}

/* Modern Unified Footer */
.site-footer {
    background-color: #000000cf;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    color: #fff;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(15px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 132, 0, 0.2));
}

.footer-brand-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.footer-tagline {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin: 0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links-list a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.3s;
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon-btn:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--accent-color));
}

.support-section {
    align-items: flex-start;
}

.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 60, 0, 0.1);
    border: 1px solid var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.footer-donate-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: scale(1.05);
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #444;
    line-height: 1.4;
}

.brand-highlight {
    color: #666;
    font-weight: 700;
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .site-footer { padding: 40px 0; }
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-section { align-items: center; }
    .footer-tagline { max-width: 100%; }
    .footer-social-icons { justify-content: center; }
}

.beta-banner {
    position: fixed;
    background-color: #ff8400a1;
    color: #ffffff;
    padding: 3px 3px;
    letter-spacing: -0.2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1001;
    font-size: 0.35em;
    display: inline;
    margin-top: 7px;
    margin-left: 1.4em;
}
