:root {
    --color-green: #28a745;
    --color-red: #e74c3c;

    --chest-transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --explosion-duration: 1.8s;
    --shake-intensity: 3px;

    --fall-duration: 2.5s;
    --fall-distance: 400px;
    --fall-distance-half: 200px;

    --burst-duration: 1.5s;
    --initial-rotation: 0deg;
    --burst-x: 100px;
    --burst-y: 100px;

    --confetti-duration: 3s;
    --confetti-distance: 500px;

    --chest-glow-color: #ffd700;
    --chest-glow-size: 300px;
    --chest-glow-intensity: 0.8;
}


:root {
    --h: 260;
    --canvas: 260;
    --dark: hsl(var(--h), 18%, 12%);
    --fg: white;
}


:root[data-theme="light"] {
    --chest-overlay-bg: rgba(255, 255, 255, 0.92);
    --reward-modal-bg: var(--box-color, #ffffff);
    --reward-modal-border: var(--border-color, #e0e0e0);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1001;
}

.modal.is-open {
    display: block;
    z-index: 10000;
}

.modal .backdrop {
    position: absolute;
    inset: 0;
    background: #000a;
}

.modal .dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    background: transparent;
    border: 0;
}

.center-modal-loader-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.center-modal-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--box-color);
    opacity: 0.9;
    border-radius: 8px;
}

.center-modal-loader-spinner {
    height: 60px;
    width: 62px;
    background: url(/assets/img/loader/logo_loader_black.png) no-repeat;
    background-size: contain;
    animation: centerModalLoaderRotation 0.6s linear infinite;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1001;
}

[data-theme="light"] .center-modal-loader-spinner {
    background-image: url(/assets/img/loader/logo_loader_white.png);
}

@keyframes centerModalLoaderRotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.window {
    height: fit-content;
    min-height: 300px;
    width: 850px;
    background: var(--body-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

.titlebar {
    display: flex;
    position: sticky;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 1rem;
    background: var(--body-bg);
    border-bottom: 2px solid var(--profil-banner-hover);
}

.titlebar .dot {
    width: 32px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.titlebar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text-color);
}

.actions {
    margin-left: auto;
    display: flex;
    gap: 8px
}

#closeSheet.btn.btn-ghost {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    line-height: 0;
    border-radius: 0;
}

#closeSheet:active {
    transform: none;
}

#closeSheet img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.content {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 16px;
    padding: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 535px;
}

.left {
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 14px;
}

.rare-badge {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.rare-badge .gem {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
}

.item-center-card {
    margin-top: 10px;
    background: var(--box-color-double);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: grid;
    align-items: center;
    justify-content: center;
    height: fit-content;
}

.item-center-img {
    width: 100%;
    height: fit-content;
    border-radius: 10px;
    place-items: center;
    position: relative;
}

.item-center-img img {
    max-width: 100%;
    max-height: 100%;
    display: flex;
}

.item-meta h2 {
    margin: 0 0 2px 0;
    font-size: 16px
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    margin-top: 10px;
    width: 100%;
    height: 60px;
    border: 2px solid var(--border-color);
}

.tag .avatar {
    width: fit-content;
    height: fit-content;
    border-radius: 6px;
    font-weight: 700;
}

.tag .avatar img {
    display: flex;
    margin-left: 0;
    margin-top: 35px;
}

.owners .owner .avatar img {
    display: flex;
    margin-left: -18px;
    margin-top: 36px;
}

.note {
    margin-top: -30px;
    font-size: 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.note1 {
    margin-top: 10px;
    font-size: 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.note-appart {
    margin-top: 10px;
    font-size: 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.right {
    display: flex;
    gap: 14px;
    flex-direction: column;
}

.banner {
    position: relative;
    background: #4775de;
    color: #FFFFFF;
    border: 2px solid #4775de;
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.banner strong {
    font-size: 20px
}

.banner-eco-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e76262;
    border: 1px solid #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
}

.section {
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 14px;
}

.section h3 {
    margin: 0 0 15px 0;
    font-size: 15px
}

.fam-list {
    display: grid;
    grid-template-columns: repeat(8, 50px);
    grid-auto-rows: 50px;
    gap: 10px;
}

.fam-tile {
    width: 50px;
    height: 50px;
    background: var(--box-color-double);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: grid;
    place-items: center;
    position: relative;
}

.fam-tile .fam-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
}

.fam-tile .mini-rare {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    border-radius: 3px;
}

.weight {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.chip {
    border: 2px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    width: 48.7%;
}

.owners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.owner {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 8px 10px;
}

.owner:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(46, 51, 77, 0.6);
    border: 2px solid #667eea;
    cursor: pointer;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    place-items: center;
    font-weight: 800;
    color: var(--text-color);
    text-transform: capitalize;
}

.owner .name {
    font-weight: 700
}

.owner .count {
    margin-left: auto;
    background: #24b8ff;
    border: 1px solid var(--border-color);
    color: #e8f7ff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800
}

.owner-img {
    top: 15px;
    display: flex;
    position: relative;
    left: -15px;
}

.modal-focus-pulse {
    animation: modalFocusPulse 0.6s ease-in-out;
}

@keyframes modalFocusPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.modal-limit-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #ff6b6b;
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-limit-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content small {
    display: block;
    margin-top: 4px;
    opacity: 0.8;
    font-size: 11px;
}


.modal-stacked .window:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s ease;
}

.modal-stacked {
    position: fixed;
    inset: 0;
    display: none;
}

.modal-stacked.is-open {
    display: block;
}

.modal-stacked .backdrop {
    background: #000a;
}

.closeSheet.btn.btn-ghost {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
}

.closeSheet.btn.btn-ghost:hover {
    background: transparent !important;
}

.closeSheet.btn.btn-ghost:active {
    transform: none !important;
}

.closeSheet.btn.btn-ghost img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 760px) {
    .content {
        grid-template-columns:1fr;
    }
}

.test-stack-section {
    margin-top: 20px;
    padding: 12px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    background: rgba(74, 85, 104, 0.1);
    text-align: center;
}

.test-stack-section h4 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
}

.test-stack-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.test-stack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.test-stack-section small {
    display: block;
    color: #a0a0a0;
    font-size: 11px;
    line-height: 1.3;
}

.test-stack-item {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.test-stack-item:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(46, 51, 77, 0.6);
    border-color: #667eea;
}

.test-advanced-section {
    background: rgba(74, 85, 104, 0.05);
    border-color: #4a5568;
}

.test-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.test-action-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.test-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(72, 187, 120, 0.4);
}

.test-action-btn:nth-child(2) {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.test-action-btn:nth-child(2):hover {
    box-shadow: 0 3px 8px rgba(245, 101, 101, 0.4);
}

.test-action-btn:nth-child(3) {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.test-action-btn:nth-child(3):hover {
    box-shadow: 0 3px 8px rgba(66, 153, 225, 0.4);
}

.test-action-btn:nth-child(4) {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.test-action-btn:nth-child(4):hover {
    box-shadow: 0 3px 8px rgba(237, 137, 54, 0.4);
}

.test-info {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-info small {
    color: #a0aec0;
    font-size: 10px;
    line-height: 1.4;
}

.test-info strong {
    color: #e2e8f0;
}


.badge-details-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.badge-label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 700;
}

.related-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.related-badge {
    width: 60px;
    height: 60px;
    background: #2E334D;
    border: 2px solid #2E334D;
    border-radius: 10px;
    display: grid;
    place-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 51, 77, 0.6);
    border-color: #667eea;
}

.related-badge::before {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #009d00;
    border-radius: 50%;
    border: 2px solid #1e2430;
    opacity: 0.9;
}

.related-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
}

.clothing-specs-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.clothing-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #48BB78;
}

.spec-label {
    font-size: 13px;
    color: #A0AEC0;
    font-weight: 600;
}

.spec-value {
    font-size: 13px;
    color: #E2E8F0;
    font-weight: 500;
}

.similar-clothing-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.similar-clothing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    min-width: 80px;

    &:hover {
        transform: scale(1.05);
        border-color: #48BB78;
    }

    img {
        width: 60px;
        height: 75px;
        object-fit: contain;
        margin-bottom: 4px;
    }
}

.clothing-name {
    font-size: 11px;
    color: #A0AEC0;
    text-align: center;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.action-group-supp {
    height: 50px;
    width: 100%;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-group-supp-appart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.action-btn {
    background: linear-gradient(135deg, #4299E1 0%, #3182CE 100%);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
    }

    &:active {
        transform: translateY(0);
    }

}

.test-stack-item {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.test-stack-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 51, 77, 0.6);
    border-color: #667eea;
}

.pack-actions-section {
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 14px;

    h3 {
        color: var(--text-color);
        font-size: 18px;
        text-align: center;
    }
}

.pack-purchase-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.2s ease;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
    }
}

.pack-price-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #d9e2f1;
}

.pack-price-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pack-confirm-btn, .pack-cancel-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yes-btn {
    background: var(--color-green);
    color: white;
}

.yes-btn:hover {
    opacity: 0.7;
    transform: scale(0.9);
}

.no-btn {
    background: var(--color-red);
    color: white;
}

.no-btn:hover {
    opacity: 0.7;
    transform: scale(0.9);
}

.fullscreen-chest-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-chest-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.fullscreen-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--body-bg, #1a1a1a);
    color: var(--text-color, #fff);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fullscreen-chest-modal.is-open .fullscreen-content {
    transform: scale(1);
}

.fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 2px solid var(--border-color, #333);
    background: var(--box-color, #2a2a2a);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon, .header-icon-placeholder {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.header-info h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rarity-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rarity-commun {
    background: #cd7f32;
    color: white;
}

.rarity-rare {
    background: #c0c0c0;
    color: black;
}

.rarity-légendaire {
    background: #ffd700;
    color: black;
}

.close-btn {
    background: #e74c3c;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.fullscreen-body {
    flex: 1;
    position: relative;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 30px;
}

.loader-text {
    text-align: center;
    margin-top: 16px;
    color: #ffd700;
    font-weight: 600;
    position: relative;
    z-index: 1002;
    font-size: 16px;
}

.body-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.body-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chest-showcase {
    position: relative;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 3px solid var(--border-color, #555);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.showcase-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.coins-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.chest-description {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color, #555);
    border-radius: 12px;
    padding: 20px;
}

.chest-description h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.chest-rarity {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chest-rarity.rarity-commun {
    background: #cd7f32;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
}

.chest-rarity.rarity-rare {
    background: #c0c0c0;
    color: black;
    padding: 4px 8px;
    border-radius: 12px;
}

.chest-rarity.rarity-légendaire {
    background: #ffd700;
    color: black;
    padding: 4px 8px;
    border-radius: 12px;
}

.chest-pricing {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
}

.chest-pricing h3 {
    margin: 0 0 15px 0;
    color: #ffd700;
}

.price-display {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
}

.chest-actions {
    display: flex;
    gap: 15px;
}

.chest-confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.chest-confirm-btn, .chest-cancel-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    height: 60px;
}

/* Bouton CONFIRMER (vert) */
.chest-confirm-btn.yes-btn {
    background: var(--color-green);
    color: white;
}

.chest-confirm-btn.yes-btn:hover {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Bouton ANNULER (rouge/gris) */
.chest-cancel-btn.no-btn {
    background: var(--color-red);
    color: white;
}

.chest-cancel-btn.no-btn:hover {
    opacity: 0.7;
    transform: scale(0.95);
}

.chest-open-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.chest-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

.chest-open-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.section.warning {
    position: relative;
    animation: warningBorderPulse 2s ease-in-out infinite;
}

@keyframes warningBorderPulse {
    0%, 100% {
        border-color: var(--border-color);
        box-shadow: 0 0 0 0 rgba(245, 194, 92, 0.4);
    }
    50% {
        border-color: #F5C25C;
        box-shadow: 0 0 0 4px rgba(245, 194, 92, 0.3),
        0 0 12px rgba(245, 194, 92, 0.2),
        0 0 20px rgba(245, 194, 92, 0.1);
    }
}

.section.warning-intense {
    animation: warningBorderPulseIntense 1.5s ease-in-out infinite;
}

@keyframes warningBorderPulseIntense {
    0%, 100% {
        border-color: var(--border-color);
        box-shadow: 0 0 0 0 rgba(245, 194, 92, 0.6);
    }
    50% {
        border-color: #FFD700;
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.4),
        0 0 16px rgba(255, 215, 0, 0.3),
        0 0 24px rgba(255, 215, 0, 0.2),
        0 0 32px rgba(255, 215, 0, 0.1);
    }
}

.section.warning .warning-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.warning-icon {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    background-image: url(/assets/img/staff/badges/badge_eco.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

.warning-icon:empty {
    font-size: 0;
}

.section.warning .warning-content > div {
    flex: 1;
    font-size: 15px;
    line-height: 1.1;
}

.section.warning .warning-content > div strong {
    flex: 1;
    font-size: 16px;
}

.rewards-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.reward-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.reward-icon {
    font-size: 18px;
}

.chances-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chance-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chance-text {
    flex: 0 0 120px;
    font-size: 14px;
    font-weight: 500;
}

.chance-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.chance-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-color, #ccc);
    font-size: 14px;
}

.stat-value {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
}

.fullscreen-footer {
    border-top: 2px solid var(--border-color, #333);
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.footer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.8;
}

.footer-stats strong {
    color: #ffd700;
}

.floating-coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd700, #ffed4e);
    border: 2px solid #b8860b;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    animation: coin-fall 1.5s ease-in-out forwards;
}

.floating-coin::before {
    content: '♦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #b8860b;
}

@keyframes coin-fall {
    0% {
        transform: translateY(-30px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .fullscreen-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .rewards-list {
        grid-template-columns: 1fr;
    }

    .chest-actions {
        flex-direction: column;
    }

    .footer-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.body-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.body-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1.5;
}

.chest-showcase {
    position: relative;
    border: 3px solid var(--border-color, #555);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chest-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/assets/img/banners/basique/banner1.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(1px);
    opacity: 0.25;
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.price-chest {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(2px);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    top: 10px;
    right: 10px;
    position: absolute;
}

.showcase-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.showcase-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.coins-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.chest-description {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color, #555);
    border-radius: 12px;
    padding: 20px;
}

.chest-description h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.chest-rarity {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chest-pricing {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
}

.chest-pricing h3 {
    margin: 0 0 15px 0;
    color: #ffd700;
}

.price-display {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
}

.chest-actions {
    display: flex;
    gap: 15px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

.action-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6);
    }
}

.rewards-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.reward-item {
    width: 100%;
    min-height: 200px;
    max-height: 250px;
    background: var(--box-color-double);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 8px;
    overflow: hidden;

    &:hover {
        transform: scale(1.05);
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

}

.reward-item-image {
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 8px;
}

.reward-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
}

.reward-item .mini-rare {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    z-index: 2;
}

.reward-item .mini-rare img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .rewards-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .reward-item {
        height: 120px;
    }

    .reward-item-image {
        width: 60px;
        height: 60px;
    }

    .reward-item-name {
        font-size: 11px;
    }
}

.chances-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chance-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chance-text {
    flex: 0 0 120px;
    font-size: 14px;
    font-weight: 500;
}

.chance-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.chance-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-color, #ccc);
    font-size: 14px;
}

.stat-value {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 768px) {
    .rewards-list {
        grid-template-columns: 1fr;
    }

    .chest-actions {
        flex-direction: column;
    }
}


.chest-animation-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.chest-animation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.animated-chest {
    position: absolute;
    transition: var(--chest-transition);
    z-index: 10002;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transform-origin: center center;
}

.animated-chest::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--chest-glow-size);
    height: var(--chest-glow-size);
    transform: translate(-50%, -50%);
    background: radial-gradient(
            circle,
            rgba(255, 215, 0, var(--chest-glow-intensity)) 0%,
            rgba(255, 215, 0, 0.4) 30%,
            rgba(255, 215, 0, 0.2) 50%,
            rgba(255, 215, 0, 0.1) 70%,
            transparent 100%
    );
    border-radius: 50%;
    z-index: -1;
    animation: chestGlowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chestGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.animated-chest.moving {
    transform: translate(-50%, -50%) scale(2.2);
    left: 50% !important;
    top: 50% !important;
    filter: drop-shadow(0 20px 50px rgba(255, 215, 0, 0.4)) brightness(1.1);
}

.animated-chest.moving::before {
    --chest-glow-size: 400px;
    --chest-glow-intensity: 1;
    animation: chestGlowMoving 2s ease-out;
}

@keyframes chestGlowMoving {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.animated-chest.shaking {
    animation: chestShakeRealistic 0.4s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(255, 215, 0, 0.6)) brightness(1.2);
}

.animated-chest.shaking::before {
    --chest-glow-intensity: 1.2;
    animation: chestGlowShaking 0.4s ease-in-out infinite;
}

@keyframes chestGlowShaking {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
    25% {
        opacity: 1.2;
        transform: translate(-50%, -50%) scale(1.4);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
    75% {
        opacity: 1.4;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes chestShakeRealistic {
    0%, 100% {
        transform: translate(-50%, -50%) scale(2.2) rotate(0deg) translateX(0px) translateY(0px);
    }
    12.5% {
        transform: translate(-50%, -50%) scale(2.22) rotate(0.6deg) translateX(1px) translateY(-0.5px);
    }
    25% {
        transform: translate(-50%, -50%) scale(2.18) rotate(-0.6deg) translateX(-1px) translateY(0.5px);
    }
    37.5% {
        transform: translate(-50%, -50%) scale(2.24) rotate(0.8deg) translateX(1.5px) translateY(-1px);
    }
    50% {
        transform: translate(-50%, -50%) scale(2.16) rotate(-0.8deg) translateX(-1.5px) translateY(1px);
    }
    62.5% {
        transform: translate(-50%, -50%) scale(2.23) rotate(0.5deg) translateX(1px) translateY(-0.8px);
    }
    75% {
        transform: translate(-50%, -50%) scale(2.17) rotate(-0.5deg) translateX(-1px) translateY(0.8px);
    }
    87.5% {
        transform: translate(-50%, -50%) scale(2.21) rotate(0.3deg) translateX(0.5px) translateY(-0.3px);
    }
}

.animated-chest.exploding {
    animation: chestExplodeUltra var(--explosion-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animated-chest.exploding::before {
    animation: chestGlowExplode var(--explosion-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes chestGlowExplode {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
        background: radial-gradient(
                circle,
                rgba(255, 215, 0, 1) 0%,
                rgba(255, 215, 0, 0.6) 30%,
                rgba(255, 215, 0, 0.3) 50%,
                transparent 70%
        );
    }
    25% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 1;
        background: radial-gradient(
                circle,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 215, 0, 0.9) 20%,
                rgba(255, 165, 0, 0.6) 40%,
                rgba(255, 215, 0, 0.3) 60%,
                transparent 80%
        );
    }
    50% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 1.2;
        background: radial-gradient(
                circle,
                rgba(255, 255, 255, 1.5) 0%,
                rgba(255, 255, 255, 1) 15%,
                rgba(255, 215, 0, 0.8) 30%,
                rgba(255, 165, 0, 0.5) 50%,
                transparent 70%
        );
    }
    75% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0.8;
        background: radial-gradient(
                circle,
                rgba(255, 255, 255, 2) 0%,
                rgba(255, 255, 255, 1.5) 10%,
                rgba(255, 215, 0, 0.6) 25%,
                transparent 45%
        );
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
        background: radial-gradient(
                circle,
                rgba(255, 255, 255, 3) 0%,
                transparent 20%
        );
    }
}

@keyframes chestExplodeUltra {
    0% {
        transform: translate(-50%, -50%) scale(2.2) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 20px 50px rgba(255, 215, 0, 0.6)) brightness(1.2);
    }
    8% {
        transform: translate(-50%, -50%) scale(2.4) rotate(2deg);
        opacity: 1;
        filter: drop-shadow(0 25px 60px rgba(255, 215, 0, 0.8)) brightness(1.4);
    }
    16% {
        transform: translate(-50%, -50%) scale(2.8) rotate(-1deg);
        opacity: 0.98;
        filter: drop-shadow(0 30px 80px rgba(255, 255, 255, 0.7)) brightness(1.8);
    }
    25% {
        transform: translate(-50%, -50%) scale(3.4) rotate(4deg);
        opacity: 0.95;
        filter: drop-shadow(0 35px 100px rgba(255, 255, 255, 0.9)) brightness(2.2);
    }
    35% {
        transform: translate(-50%, -50%) scale(4.2) rotate(-3deg);
        opacity: 0.9;
        filter: drop-shadow(0 40px 120px rgba(255, 255, 255, 1)) brightness(2.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(5.5) rotate(8deg);
        opacity: 0.8;
        filter: drop-shadow(0 50px 150px rgba(255, 255, 255, 1.2)) brightness(3.5);
    }
    65% {
        transform: translate(-50%, -50%) scale(7) rotate(-6deg);
        opacity: 0.6;
        filter: drop-shadow(0 60px 180px rgba(255, 255, 255, 1.5)) brightness(4.2);
    }
    80% {
        transform: translate(-50%, -50%) scale(9) rotate(12deg);
        opacity: 0.3;
        filter: drop-shadow(0 70px 220px rgba(255, 255, 255, 1.8)) brightness(5);
    }
    95% {
        transform: translate(-50%, -50%) scale(0.2) rotate(18deg);
        opacity: 0.1;
        filter: drop-shadow(0 80px 250px rgba(255, 255, 255, 2)) brightness(6);
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(25deg);
        opacity: 0;
        filter: drop-shadow(0 100px 300px rgba(255, 255, 255, 2.5)) brightness(8);
    }
}

.explosion-particle {
    position: absolute;
    z-index: 10001;
    pointer-events: none;
    transform-origin: center center;
}

.explosion-particle.chest-fragment {
    width: 28px;
    height: 28px;
    background: url(/assets/img/center/coffers/coffers-image.png) no-repeat center;
    background-size: cover;
    filter: brightness(1.3) contrast(1.2) saturate(1.1);
    border-radius: 4px;
}

.explosion-particle.gold-shard {
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #b8860b);
    border: 2px solid #b8860b;
    border-radius: 3px;
    box-shadow: 0 0 15px #ffd700, inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.explosion-particle.spark {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffffff, #ffff88, #ffaa00);
    border-radius: 50%;
    box-shadow: 0 0 20px #ffffff, 0 0 30px #ffff88;
}

.explosion-particle.fire-blast {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #ff4444, #ff8800, #ffaa00);
    border-radius: 50%;
    box-shadow: 0 0 25px #ff6b35;
}

.explosion-particle.diamond-shard {
    width: 20px;
    height: 20px;
    background: url(/assets/img/center/money/money_diamonds_25.png) no-repeat center;
    filter: brightness(2) drop-shadow(0 0 10px #00aaff);
}

.explosion-particle.burst {
    animation: explosionBlastImproved var(--burst-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes explosionBlastImproved {
    0% {
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
        opacity: 1;
    }
    5% {
        transform: translate(-50%, -50%) scale(1.2) rotate(var(--initial-rotation));
        opacity: 1;
    }
    15% {
        transform: translate(
                calc(-50% + var(--burst-x) * 0.2),
                calc(-50% + var(--burst-y) * 0.2)
        ) scale(1.1) rotate(calc(var(--initial-rotation) + 60deg));
        opacity: 0.95;
    }
    30% {
        transform: translate(
                calc(-50% + var(--burst-x) * 0.5),
                calc(-50% + var(--burst-y) * 0.5)
        ) scale(0.9) rotate(calc(var(--initial-rotation) + 180deg));
        opacity: 0.8;
    }
    60% {
        transform: translate(
                calc(-50% + var(--burst-x) * 0.8),
                calc(-50% + var(--burst-y) * 0.8)
        ) scale(0.6) rotate(calc(var(--initial-rotation) + 360deg));
        opacity: 0.5;
    }
    85% {
        transform: translate(
                calc(-50% + var(--burst-x) * 0.95),
                calc(-50% + var(--burst-y) * 0.95)
        ) scale(0.3) rotate(calc(var(--initial-rotation) + 540deg));
        opacity: 0.2;
    }
    100% {
        transform: translate(
                calc(-50% + var(--burst-x)),
                calc(-50% + var(--burst-y))
        ) scale(0.05) rotate(calc(var(--initial-rotation) + 720deg));
        opacity: 0;
    }
}

.shock-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: shockWaveExpand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 10000;
}

@keyframes shockWaveExpand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
        border-width: 5px;
        border-color: rgba(255, 255, 255, 0.9);
    }
    25% {
        width: 150px;
        height: 150px;
        opacity: 0.8;
        border-width: 4px;
        border-color: rgba(255, 215, 0, 0.8);
    }
    50% {
        width: 300px;
        height: 300px;
        opacity: 0.6;
        border-width: 3px;
        border-color: rgba(255, 165, 0, 0.6);
    }
    75% {
        width: 500px;
        height: 500px;
        opacity: 0.3;
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.4);
    }
    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
        border-width: 1px;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.reward-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10003;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.reward-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.reward-modal {
    background: var(--box-color, #1b202c);
    border: 3px solid var(--border-color, #2E334D);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.7) rotate(-5deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.reward-modal-overlay.show .reward-modal {
    transform: scale(1) rotate(0deg);
}

.reward-modal::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
    animation: modalShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes modalShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.reward-modal h2 {
    color: #ffd700;
    font-size: 28px;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: rewardPulse 2s ease-in-out infinite;
}

@keyframes rewardPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.reward-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 15px;
    border: 3px solid #ffd700;
    background: var(--box-color-double, #202635);
    padding: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: rewardFloat 3s ease-in-out infinite;
}

@keyframes rewardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.reward-name {
    color: var(--text-color, #fff);
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.reward-description {
    color: var(--text-muted, #6A6F87);
    font-size: 14px;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.reward-close-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.reward-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    z-index: 10001;
    pointer-events: none;
}

.confetti.fall {
    animation: confettiFall var(--confetti-duration) linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(var(--confetti-distance)) rotate(360deg);
        opacity: 0;
    }
}

.modal-focus-pulse {
    animation: modalFocusPulse 0.6s ease-out;
}

@keyframes modalFocusPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.background-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffffff, #ffff00);
    border-radius: 50%;
    animation: sparkleFloat 2s ease-out forwards;
    z-index: 9999;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-200px);
    }
}

.explosion-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    z-index: 10001;
    animation: explosionFlash 0.3s ease-out forwards;
    pointer-events: none;
}

@keyframes explosionFlash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .animated-chest.moving {
        transform: translate(-50%, -50%) scale(1.8);
    }

    .animated-chest::before {
        --chest-glow-size: 200px;
    }

    .falling-coin {
        width: 24px;
        height: 24px;
    }

    .explosion-particle {
        transform: scale(0.8);
    }

    .reward-modal {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chest-animation-overlay,
    .animated-chest,
    .falling-coin,
    .explosion-particle,
    .confetti,
    .reward-modal {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }

    .animated-chest.shaking {
        animation: none;
        filter: drop-shadow(0 20px 50px rgba(255, 215, 0, 0.6)) brightness(1.2);
    }

    .animated-chest::before {
        animation: none !important;
    }
}


.chest-animation-overlay {
    background: var(--chest-overlay-bg, rgba(0, 0, 0, 0.92));
}

.reward-modal {
    background: var(--reward-modal-bg, #1b202c);
    border-color: var(--reward-modal-border, #2E334D);
}

.troc-confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.troc-confirm-btn, .troc-cancel-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
}

.auction-actions-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auction-actions-title h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.time-left-auctions {
    width: 50%;
    height: 50px;
}

.time-left-auctions span {
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    font-size: 18px;
}

.time-left-auctions.normal span {
    border: 2px solid #ffce6c;
    color: var(--text-color);
}

.time-left-auctions.warning span {
    border: 2px solid #ff9800;
    color: var(--text-color);
}

.time-left-auctions.urgent span {
    border: 2px solid #ff3b3b;
    color: var(--text-color);
    animation: pulseRed 1s infinite;
}

.auction-bid-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    margin-top: 16px;
}

.auction-message-input {
    flex: 0 0 65%;
    height: 50px;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #4a5568);
    border-radius: 12px;
    background: var(--box-color, #2a2a2a);
    color: var(--text-color, #ffffff);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auction-message-input:focus {
    border-color: #4299e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

.auction-message-input:hover:not(:focus) {
    border-color: #667eea;
}

.auction-message-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.auction-message-input.error {
    border-color: #f56565;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(245, 101, 101, 0.1);
}

.auction-message-input.success {
    border-color: #48bb78;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(72, 187, 120, 0.1);
}

.auction-bid-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--color-green);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    &:hover {
        transform: translateY(-2px);
        opacity: 0.7;
        background: var(--color-green);
    }

    &:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);

        &::before {
            width: 300px;
            height: 300px;
        }
    }

    &:disabled {
        background: #4a5568;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;

        &:hover {
            transform: none;
            box-shadow: none;
        }
    }

    img {
        width: 30px;
        height: 30px;
    }

    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
}

.auction-bid-btn.pulse {
    animation: bidButtonPulse 2s ease-in-out infinite;
}

@keyframes bidButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.6);
        transform: scale(1.02);
    }
}

.auction-bid-btn.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.auction-bid-btn.success:hover {
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.auction-bid-btn.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

.auction-bid-btn.warning:hover {
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
}

.auction-bid-btn.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.auction-bid-btn.danger:hover {
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.auction-bid-help {
    margin-top: 8px;
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auction-bid-help .min-bid {
    color: #4299e1;
    font-weight: 600;
}

.auction-bid-help .your-balance {
    color: #48bb78;
    font-weight: 600;
}

@media (max-width: 768px) {
    .auction-bid-container {
        flex-direction: column;
        gap: 8px;
    }

    .auction-message-input {
        flex: none;
        width: 100%;
    }

    .auction-bid-btn {
        flex: none;
        width: 100%;
        height: 44px;
        font-size: 14px;
    }
}

.auction-bid-btn.loading {
    position: relative;
    color: transparent;
}

.auction-bid-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.tag.monopole-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.tag.owner-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 500;
}

.tag.owners-tag {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 10px 12px;
}

.owners-list {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 5px;
}

.owners-list .avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.more-owners {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

.tag.no-monopole-tag {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    color: #1565c0;
}

.tag.no-owners-tag {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border: 1px solid #9c27b0;
    color: #6a1b9a;
}

.tag.no-clothing-owner-tag {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    border: 1px solid #ff9800;
    color: #e65100;
}

.tag.generic-no-data-tag {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border: 1px solid #bdbdbd;
    color: #616161;
}

.tag.error-tag {
    background-color: #ffebee;
    border: 1px solid #f5c6cb;
    color: #c62828;
}

.tag small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.owners-header {
    font-weight: 500;
    margin-bottom: 5px;
}

.auction-info-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    margin-top: 16px;
}

.auction-info-container .time-left-auctions {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-info-container .time-left-auctions span {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.time-left-auctions > span > img,
.auction-info > span > img,
span > img[src*="time.png"] {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    vertical-align: middle;
    filter: brightness(1.1);
    transition: all 0.2s ease;
}

.time-left-auctions span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-left-auctions span.icon-before {
    flex-direction: row-reverse;
}

.auction-time-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.auction-time-text img {
    width: 16px;
    height: 16px;
    filter: brightness(1.2) contrast(1.1);
}

.item-center-card-badge {
    margin-top: 10px;
    background: var(--box-color-double);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: grid;
    align-items: center;
    justify-content: center;
    height: fit-content;
    zoom: 2;
    image-rendering: pixelated;
}

.action-row-inline {
    display: flex;
    gap: 12px;
}

.pack-visit-btn.visit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(66, 153, 225, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pack-visit-btn.visit-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

.pack-visit-btn.visit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.3);
}

.center-bonamingo-card {
    --pads: 40px;
    --color-sens: calc(30 + 20);
    --pointer-°: 45deg;
    --pointer-d: 85;

    position: relative;
    width: clamp(320px, calc(100svw - calc(var(--pads) * 2)), 600px);
    height: calc(100svh - calc(var(--pads) * 2));
    max-height: 600px;
    border-radius: 1rem;
    isolation: isolate;
    transform: translate3d(0, 0, 0.01px);
    display: grid;
    border: 1px solid rgb(255 255 255 / 25%);
    background: var(--box-color);
    background-repeat: no-repeat;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px,
    rgba(0, 0, 0, 0.1) 0 2px 4px,
    rgba(0, 0, 0, 0.1) 0 4px 8px,
    rgba(0, 0, 0, 0.1) 0 8px 16px,
    rgba(0, 0, 0, 0.1) 0 16px 32px,
    rgba(0, 0, 0, 0.1) 0 32px 64px;
}

.center-bonamingo-card::before,
.center-bonamingo-card::after,
.center-bonamingo-card > .center-bonamingo-glow {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.25s ease-out;
    z-index: 0;
    opacity: 1;
}

.center-bonamingo-card.disabled {
    filter: saturate(0) brightness(0.8);
    --pointer-d: 0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.center-bonamingo-card.disabled::before {
    content: '';
    background: rgba(0, 0, 0, 0.4);
    border-radius: inherit;
    z-index: 10;
}

.center-bonamingo-card.disabled::after {
    content: '🔒';
    background: none !important;
    mask-image: none !important;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    z-index: 20;
    border: none;
    mix-blend-mode: normal;
}

.center-bonamingo-card.disabled img {
    filter: grayscale(100%) brightness(0.7) contrast(0.8);
    opacity: 0.6;
}

.center-bonamingo-card.disabled .center-bonamingo-top-media img,
.center-bonamingo-card.disabled .center-bonamingo-media img {
    filter: grayscale(100%) brightness(0.7) contrast(0.8);
    opacity: 0.6;
}

.center-bonamingo-card.disabled .center-bonamingo-content {
    opacity: 0.5;
    color: #666;
}

.center-bonamingo-card.disabled > .center-bonamingo-glow {
    display: none !important;
}

.center-bonamingo-card.disabled .center-bonamingo-inner {
    position: relative;
    z-index: 5;
}

.center-bonamingo-inner {
    text-align: center;
}

.center-bonamingo-inner h2 {
    color: inherit;
    font-weight: 500;
    font-size: 1.25em;
    margin-block: 0.5em;
}

.center-bonamingo-inner header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 1em;
}

.center-bonamingo-inner svg {
    height: 24px;
}

.center-bonamingo-card .center-bonamingo-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    container-type: inline-size;
    position: relative;
    overflow: auto;
    z-index: 1;
}

.center-bonamingo-card .center-bonamingo-content {
    padding: 1em;
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
    color: color-mix(var(--fg), transparent 60%);
    overflow: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to top, transparent 5px, black 2em);
}

.center-bonamingo-card .center-bonamingo-content em,
.center-bonamingo-card .center-bonamingo-content strong {
    color: color-mix(var(--fg), transparent 40%);
}

.center-bonamingo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 24px;
    width: min(1600px, 100%);
    margin-inline: auto;
    align-items: stretch;
}

.center-bonamingo-card {
    width: 100%;
    height: 250px;
}

.center-bonamingo-card .center-bonamingo-inner {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .center-bonamingo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .center-bonamingo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .center-bonamingo-grid {
        grid-template-columns: 1fr;
    }
}

.center-bonamingo-card .center-bonamingo-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    top: 40px;
}

.center-bonamingo-card .center-bonamingo-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}

.center-bonamingo-card .center-bonamingo-media-easy {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    top: 80px;
    transform: scale(2);
    image-rendering: pixelated;
}

.center-bonamingo-card {
    overflow: visible;
}

.center-bonamingo-card .center-bonamingo-top-media {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -35%);
    z-index: 2;
    pointer-events: none;
}

.center-bonamingo-card .center-bonamingo-top-media img {
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45));
}

@media (max-width: 520px) {
    .center-bonamingo-card .center-bonamingo-top-media img {
        width: min(60%, 200px);
    }
}

.center-bonamingo-header {
    width: 100%;
    height: 80px;
    align-content: center;
}

.center-bonamingo-light .center-bonamingo-header {
    background: color-mix(in hsl, white, transparent 20%);
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.center-bonamingo-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.center-bonamingo-header__spacer {
    flex: 1;
}

.center-bonamingo-header__actions {
    display: flex;
    gap: 10px;
}

.center-bonamingo-btn {
    display: inline-flex;
    gap: 10px;
    font-size: 20px;
    appearance: none;
    border: 1px solid rgb(255 255 255 / 25%);
    background: transparent;
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s;
}

.center-bonamingo-btn:hover {
    transform: translateY(-1px);
}

.center-bonamingo-btn:active {
    transform: translateY(0);
}

.center-bonamingo-btn--ghost {
    background: var(--box-color);
}

.center-bonamingo-light .center-bonamingo-btn--ghost {
    border-color: rgb(0 0 0 / 20%);
}

.center-bonamingo-btn--cash {
    border-color: transparent;
    background: linear-gradient(90deg, hsl(45 95% 55%), hsl(32 90% 55%));
    color: #fff;
}

.center-bonamingo-btn--diamonds {
    border-color: transparent;
    background: linear-gradient(90deg, hsl(190 80% 55%), hsl(220 80% 60%));
    color: #fff;
}

.center-bonamingo-btn--cash img,
.center-bonamingo-btn--diamonds img,
.center-bonamingo-btn--ghost img {
    width: 24px;
    height: 24px;
}

.bonamingo-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1001;
}

.bonamingo-modal.is-open {
    display: block;
    z-index: 10000;
}

.bonamingo-modal .bonamingo-backdrop {
    position: absolute;
    inset: 0;
    background: #000a;
}

.bonamingo-modal .bonamingo-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    background: transparent;
    border: 0;
}

.bonamingo-window {
    height: fit-content;
    min-height: 400px;
    width: 650px;
    background: var(--body-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

.bonamingo-titlebar {
    display: flex;
    position: sticky;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 1rem;
    background: var(--body-bg);
    border-bottom: 2px solid var(--profil-banner-hover);
}

.bonamingo-titlebar-game {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bonamingo-titlebar .bonamingo-dot {
    width: 32px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.bonamingo-titlebar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    color: white;
}

.bonamingo-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.bonamingo-btn.bonamingo-btn-ghost {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    line-height: 0;
    border-radius: 0;
}

.bonamingo-btn.bonamingo-btn-ghost:active {
    transform: none;
}

.bonamingo-btn.bonamingo-btn-ghost img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    cursor: pointer;
}

.bonamingo-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

.bonamingo-content-game {
    background: var(--box-color);
    border-radius: 0 0 1rem 1rem;
}

.bonamingo-rules-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bonamingo-rules-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.bonamingo-rules-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

.bonamingo-rules-list li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.bonamingo-rules-list strong {
    color: #667eea;
    font-weight: 700;
}

.bonamingo-warning {
    display: flex;
    gap: 30px;
    padding: 16px;
    border: 2px solid #ffa726;
    border-radius: 12px;
    background: rgba(255, 167, 38, 0.1);
    align-items: flex-start;
}

.bonamingo-warning-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.bonamingo-warning-icon img {
    transform: scale(1.4);
    image-rendering: pixelated;
}

.bonamingo-warning-content {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

.bonamingo-warning-content strong {
    color: #ff8f00;
    font-weight: 700;
}

.bonamingo-prizes h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.bonamingo-prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bonamingo-prize-item {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--box-color-double);
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease;
}

.bonamingo-prize-item:hover {
    transform: translateY(-2px);
    border-color: #667eea;
}

@media (max-width: 768px) {
    .bonamingo-window {
        width: 95vw;
        max-width: 500px;
    }

    .bonamingo-prizes-grid {
        grid-template-columns: 1fr;
    }
}

.bonamingo-modal.is-open .bonamingo-dialog {
    animation: bonamigoModalSlideIn 0.3s ease-out;
}

@keyframes bonamigoModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.bonamingo-modal.is-closing .bonamingo-dialog {
    animation: bonamigoModalSlideOut 0.2s ease-in;
}

@keyframes bonamigoModalSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

.bonamingo-pulse-subtle {
    animation: bonamingoPulseSubtle 0.5s ease-in-out;
    transform: scale(1.03);
    z-index: 50;
    position: relative;
}

@keyframes bonamingoPulseSubtle {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(100, 150, 255, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(100, 150, 255, 0.6), 0 0 25px rgba(100, 150, 255, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(100, 150, 255, 0.3);
    }
}

.bonamingo-glow-subtle {
    animation: bonamigoGlowSubtle 0.6s ease-in-out;
    border-color: #4a9eff !important;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.7), 0 0 30px rgba(74, 158, 255, 0.5);
    z-index: 50;
    position: relative;
}

@keyframes bonamigoGlowSubtle {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 25px rgba(74, 158, 255, 0.8), 0 0 35px rgba(74, 158, 255, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
    }
}

.bonamingo-lot-highlight {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.6);
    transform: scale(1.05);
    z-index: 60;
    position: relative;
    transition: all 0.3s ease;
}

.bonamingo-winner-highlight {
    border-color: #ffd700 !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
    z-index: 100;
    position: relative;
}

.bonamingo-winner-pulse {
    animation: bonamigoWinnerPulse 0.8s ease-in-out infinite;
}

@keyframes bonamigoWinnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1),
        0 0 60px rgba(255, 215, 0, 0.8),
        0 0 80px rgba(255, 215, 0, 0.6),
        0 0 100px rgba(255, 215, 0, 0.4);
        filter: brightness(1.3) saturate(1.4);
    }
}

.bonamingo-card-dimmed {
    opacity: 0.25;
    filter: grayscale(80%);
    transition: all 0.5s ease;
}

@keyframes particleFloatAround {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-30px) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-60px) scale(0.4);
        opacity: 0;
    }
}

.center-bonamingo-card {
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .bonamingo-winner-pulse {
        animation-duration: 1s;
    }
}

.bonamingo-winner-highlight {
    position: relative;
    z-index: 100;
    transform: scale(1.05) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.4),
    0 0 90px rgba(255, 215, 0, 0.2) !important;
    border: 3px solid #ffd700 !important;
    transition: all 0.5s ease !important;
}

.bonamingo-winner-pulse {
    animation: bonamingo-winner-pulse 2s ease-in-out infinite;
}

@keyframes bonamingo-winner-pulse {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 90px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1),
        0 0 80px rgba(255, 215, 0, 0.6),
        0 0 120px rgba(255, 215, 0, 0.3);
    }
}

.bonamingo-card-dimmed {
    opacity: 0.3 !important;
    filter: grayscale(0.8) !important;
    transition: all 0.5s ease !important;
}

.bonamingo-lot-highlight {
    background: rgba(255, 215, 0, 0.3) !important;
    border-color: #ffd700 !important;
    transform: scale(1.02) !important;
    transition: all 0.2s ease !important;
}

@keyframes particleFloatAround {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5) rotate(360deg);
    }
}

.bonamingo-particle {
    pointer-events: none;
    z-index: 1000;
}

.center-bonamingo-card:not(.disabled) {
    transition: all 0.3s ease;
}

.center-bonamingo-card:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bonamingo-status {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.bonamingo-status-enter {
    animation: bonamingo-status-enter 0.3s ease-out;
}

@keyframes bonamingo-status-enter {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bonamingo-status-exit {
    animation: bonamingo-status-exit 0.3s ease-in;
}

@keyframes bonamingo-status-exit {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes bonamingo-winner-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.9);
        border-color: #ffd700;
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.6);
        border-color: #ffff00;
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0.3);
        border-color: #ffd700;
    }
    75% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.6);
        border-color: #ffff00;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.9);
        border-color: #ffd700;
    }
}

.center-bonamingo-card.bonamingo-winner-pulse {
    animation: bonamingo-winner-pulse 1.2s ease-in-out infinite;
    border: 3px solid #ffd700 !important;
    position: relative;
    z-index: 10;
    filter: brightness(1.2) saturate(1.3);
}

.center-bonamingo-card.bonamingo-winner-highlight {
    background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(255, 255, 0, 0.1) 50%,
    rgba(255, 215, 0, 0.2) 100%) !important;
    border: 2px solid #ffd700 !important;
    position: relative;
    z-index: 5;
}

.center-bonamingo-card.bonamingo-winner-highlight::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffd700, #ffff00, #ffd700, #ffff00);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.7;
    animation: bonamingo-glow-rotation 2s linear infinite;
}

@keyframes bonamingo-glow-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.center-bonamingo-card.bonamingo-card-dimmed {
    opacity: 0.4;
    filter: grayscale(0.6) brightness(0.7);
    transform: scale(0.95);
    transition: all 0.3s ease;
}

@keyframes particleFloatAround {
    0% {
        transform: translateY(0px) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(-80px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120px) scale(0);
        opacity: 0;
    }
}

.bonamingo-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    animation: particleFloatAround 2.5s ease-out forwards;
}

.center-bonamingo-card.bonamingo-lot-highlight {
    background: linear-gradient(135deg,
    rgba(46, 213, 115, 0.3) 0%,
    rgba(0, 184, 148, 0.2) 50%,
    rgba(46, 213, 115, 0.3) 100%) !important;
    border: 2px solid #2ed573 !important;
    transform: scale(1.02);
    transition: all 0.1s ease;
    position: relative;
    z-index: 3;
}

.center-bonamingo-card.bonamingo-lot-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #2ed573;
    border-radius: 1rem;
    animation: bonamingo-subtle-pulse 0.5s ease-in-out;
    pointer-events: none;
}

@keyframes bonamingo-subtle-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.center-bonamingo-header__inner .status {
    background: var(--box-color) !important;
    color: var(--text-color) !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid #ffd700 !important;
    backdrop-filter: blur(10px) !important;
    animation: status-pulse 2s ease-in-out infinite !important;
}

@keyframes status-pulse {
    0%, 100% {
        border-color: #ffd700;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        border-color: #ffff00;
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    }
}

.center-bonamingo-card.bonamingo-winner-pulse,
.center-bonamingo-card.bonamingo-winner-highlight {
    position: relative !important;
    z-index: 100 !important;
}

.bonamingo-particle {
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
    .center-bonamingo-card.bonamingo-winner-pulse {
        animation-duration: 1s;
    }

    .bonamingo-particle {
        width: 6px;
        height: 6px;
    }

    @keyframes particleFloatAround {
        0% {
            transform: translateY(0px) scale(0);
            opacity: 0;
        }
        10% {
            transform: translateY(-8px) scale(1);
            opacity: 1;
        }
        90% {
            transform: translateY(-60px) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateY(-90px) scale(0);
            opacity: 0;
        }
    }
}

@keyframes particleFloatAround {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-90px) translateX(20px) scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-120px) translateX(-5px) scale(0.5);
        opacity: 0;
    }
}

.bonamingo-winner-highlight {
    position: relative;
    border: 3px solid #00ff00 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6) !important;
    z-index: 1000 !important;

    &::before {
        content: "";
        position: absolute;
        inset: -5px;
        background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00, #32cd32);
        border-radius: inherit;
        z-index: -1;
        animation: winnerGlow 1s ease-in-out infinite alternate;
    }
}

@keyframes winnerGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.bonamingo-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}

.bonamingo-card-highlight {
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    border: 2px solid #ffd700;
    transition: all 0.25s ease;
}

.bonamingo-card-dimmed {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.bonamingo-winner-pulse {
    animation: winnerPulse 0.8s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
    }
}

.bonamingo-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bonamingo-modal.is-open {
    display: block;
    opacity: 1;
}

.bonamingo-modal.is-closing {
    opacity: 0;
}

.bonamingo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.bonamingo-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    background: transparent;
    border: 0;
    max-width: 90vw;
    max-height: 90vh;
}

.bonamingo-window {
    background: var(--body-bg, #1a1a1a);
    border: 2px solid var(--border-color, #333);
    border-radius: 1rem;
    overflow: hidden;
    min-width: 600px;
    max-height: 80vh;
}

.bonamingo-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--box-color, #2a2a2a);
    border-bottom: 2px solid var(--border-color, #333);
}

.bonamingo-titlebar-game {
    background: linear-gradient(135deg, #4775de, #667eea);
    color: white;
}

.bonamingo-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.bonamingo-dot img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bonamingo-titlebar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.bonamingo-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.bonamingo-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.bonamingo-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.bonamingo-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bonamingo-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bonamingo-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.bonamingo-content-game {
    background: var(--body-bg, #1a1a1a);
    color: var(--text-color, #fff);
}

.bonamingo-rules-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bonamingo-rules-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color, #fff);
    text-align: center;
}

.bonamingo-rules-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.bonamingo-rules-list li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color, #ccc);
}

.bonamingo-rules-list strong {
    color: #ffd700;
    font-weight: 700;
}

.bonamingo-warning {
    display: flex;
    gap: 30px;
    padding: 15px;
    background: rgba(245, 194, 92, 0.1);
    border: 2px solid #f5c25c;
    border-radius: 12px;
    align-items: center;
    width: 100%;
}

.bonamingo-warning-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.bonamingo-warning-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.bonamingo-warning-content {
    flex: 1;
}

.bonamingo-warning-content strong {
    color: #f5c25c;
    font-weight: 700;
}

@media (max-width: 768px) {
    .bonamingo-window {
        min-width: auto;
        width: 95vw;
        max-height: 85vh;
    }

    .bonamingo-rules-title {
        font-size: 20px;
    }

    .bonamingo-rules-list {
        font-size: 14px;
    }

    .bonamingo-warning {
        flex-direction: column;
        text-align: center;
    }

    .bonamingo-warning-icon {
        width: 50px;
        height: 50px;
    }
}

.coffer-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1001;
}

.coffer-modal.coffer-modal-show {
    display: block;
    z-index: 10000;
}

.coffer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.coffer-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    background: transparent;
    border: 0;
}

.coffer-modal-loader-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.coffer-modal-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--box-color);
    opacity: 0.9;
    border-radius: 8px;
}

.coffer-modal-loader-spinner {
    height: 60px;
    width: 62px;
    background: url(/assets/img/loader/logo_loader_black.png) no-repeat;
    background-size: contain;
    animation: cofferModalLoaderRotation 0.6s linear infinite;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1001;
}

[data-theme="light"] .coffer-modal-loader-spinner {
    background-image: url(/assets/img/loader/logo_loader_white.png);
}

@keyframes cofferModalLoaderRotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.coffer-modal-loader-text {
    color: var(--text-color);
    margin-top: 15px;
    text-align: center;
    z-index: 1001;
    position: relative;
    font-size: 16px;
}

.coffer-modal-window {
    height: fit-content;
    min-height: 300px;
    width: 1000px;
    background: var(--body-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

.coffer-modal-titlebar {
    display: flex;
    position: sticky;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 1rem;
    background: var(--body-bg);
    border-bottom: 2px solid var(--profil-banner-hover);
}

.coffer-modal-dot {
    width: 32px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.coffer-modal-titlebar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text-color);
}

.coffer-modal-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.coffer-modal-close-sheet.coffer-modal-btn.coffer-modal-btn-ghost {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
}

.coffer-modal-close-sheet.coffer-modal-btn.coffer-modal-btn-ghost:hover {
    background: transparent !important;
}

.coffer-modal-close-sheet.coffer-modal-btn.coffer-modal-btn-ghost:active {
    transform: none !important;
}

.coffer-modal-close-sheet img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.coffer-modal-content {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 16px;
    padding: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 535px;
}

.coffer-modal-body-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coffer-modal-body-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coffer-modal-chest-showcase {
    position: relative;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 3px solid var(--border-color, #555);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffer-modal-showcase-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    animation: coffer-modal-gentle-float 3s ease-in-out infinite;
}

@keyframes coffer-modal-gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.coffer-modal-showcase-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: coffer-modal-shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes coffer-modal-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.coffer-modal-coins-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.coffer-modal-chest-actions {
    display: flex;
    gap: 15px;
}

.coffer-modal-action-btn {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.coffer-modal-action-btn.coffer-modal-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.coffer-modal-action-btn.coffer-modal-secondary {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
}

.coffer-modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.coffer-modal-section {
    padding: 15px;
    border: 2px solid var(--border-color, #ccc);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.coffer-modal-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--text-color, #333);
}

.coffer-modal-rewards-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.coffer-modal-reward-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.coffer-modal-reward-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.coffer-modal-reward-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.coffer-modal-rare-reward {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
    border: 1px solid #ffd700;
}

.coffer-modal-section.coffer-modal-warning {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    animation: coffer-modal-warning-pulse 2s ease-in-out infinite;
}

@keyframes coffer-modal-warning-pulse {
    0%, 100% {
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        border-color: #F5C25C;
        box-shadow: 0 0 0 4px rgba(245, 194, 92, 0.3),
        0 0 12px rgba(245, 194, 92, 0.2),
        0 0 20px rgba(245, 194, 92, 0.1);
    }
}

.coffer-modal-warning-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.coffer-modal-warning-icon {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    background-image: url(/assets/img/staff/badges/badge_eco.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
    font-size: 0;
}

.coffer-modal-warning-content > div {
    flex: 1;
    font-size: 15px;
    line-height: 1.1;
}

.coffer-modal-warning-content > div strong {
    font-size: 16px;
}

.coffer-modal-limit-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #ff6b6b;
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.coffer-modal-limit-toast.coffer-modal-show {
    transform: translateX(0);
    opacity: 1;
}

.coffer-modal-toast-content small {
    display: block;
    margin-top: 4px;
    opacity: 0.8;
    font-size: 11px;
}

.coffer-modal-focus-pulse {
    animation: coffer-modal-focus-pulse 0.6s ease-in-out;
}

@keyframes coffer-modal-focus-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.coffer-modal-error-content {
    padding: 40px;
    text-align: center;
    color: var(--text-color);
}

.coffer-modal-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.coffer-modal-error-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.possible-rares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    align-items: start;
}

.possible-rare-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    min-height: 200px;
    max-height: 280px;

    &:hover {
        border: 2px solid var(--color-blue);
    }

    img {
        width: auto;
        height: auto;
        object-fit: contain;
        image-rendering: pixelated;
    }
}

.possible-rare-item-money {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.possible-rare-item-money-image {
    width: 24px;
    height: 24px;
    scale: 2;
    image-rendering: pixelated;
}

.coffer-confirm-btn {
    height: 50px;
    font-size: 22px;

    &:hover {
        opacity: 0.7;
    }
}

.inventory-actions-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    margin-bottom: 6px;
}

.title-section-inventory {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.inventory-input-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.inventory-double-input {
    height: 50px;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #4a5568);
    border-radius: 12px;
    background: var(--box-color, #2a2a2a);
    color: var(--text-color, #ffffff);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 35%;
}

.inventory-simple-input {
    flex: 0 0 72%;
    height: 50px;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #4a5568);
    border-radius: 12px;
    background: var(--box-color, #2a2a2a);
    color: var(--text-color, #ffffff);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inventory-simple-input:focus {
    border-color: #4299e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

.inventory-simple-input:hover:not(:focus) {
    border-color: #667eea;
}

.inventory-simple-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.inventory-simple-input.error {
    border-color: #f56565;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(245, 101, 101, 0.1);
}

.inventory-simple-input.success {
    border-color: #48bb78;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(72, 187, 120, 0.1);
}

.inventory-double-input:focus {
    border-color: #4299e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

.inventory-double-input:hover:not(:focus) {
    border-color: #667eea;
}

.inventory-double-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.inventory-double-input.error {
    border-color: #f56565;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(245, 101, 101, 0.1);
}

.inventory-double-input.success {
    border-color: #48bb78;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(72, 187, 120, 0.1);
}

.inventory-btn-action {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    &:hover {
        transform: translateY(-2px);
        opacity: 0.7;
        background: #B28E6A;
    }

    &:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    }

    &:disabled {
        background: #4a5568;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    &.market {
        background: #63be7b;
    }

    &.eco {
        background: #5298ce;
    }

    &.auction {
        background: #db8749;
    }

    &.transfert {
        background: #b599ef;
    }
}

@media (max-width: 768px) {
    .window {
        width: 360px;
    }

    .content {
        display: flex;
        flex-direction: column;
    }

    .auction-info-container {
        flex-direction: column;
    }

    .auction-info-container .time-left-auctions {
        width: 100%;
    }

    .fam-list {
        grid-template-columns: repeat(5, 51px);
    }
}