.tc-exp-wallet {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.8rem 0 0.5rem;
}

.tc-exp-wallet__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(22, 25, 45, 0.65);
    border: 1px solid rgba(124, 138, 255, 0.35);
    font-size: 0.9rem;
}

.tc-exp-widgets {
    margin-top: 1.1rem;
    /* Stesso pattern di .tc-expansion: il tema WP può forzare h2 scuri; qui serve testo chiaro su home scura. */
    --fg: #f0ecf8;
    --muted: rgba(200, 210, 235, 0.88);
    color: var(--fg);
}

.tc-exp-widgets > h2 {
    color: var(--fg) !important;
}

.tc-exp-widgets > p.muted {
    color: var(--muted) !important;
}

body.tc-theme-light .tc-exp-widgets {
    --fg: #161723;
    --muted: rgba(76, 83, 102, 0.92);
}

.tc-exp-treasure-widget {
    margin-top: 0.65rem;
    padding: 0.65rem 0.7rem 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 28, 48, 0.76), rgba(10, 13, 28, 0.9));
    border: 1px solid rgba(132, 152, 248, 0.26);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 16px 38px rgba(2, 5, 16, 0.5);
    --tc-card-bg: linear-gradient(165deg, rgba(38, 44, 72, 0.9), rgba(16, 20, 38, 0.96));
    --tc-card-border: rgba(110, 135, 255, 0.42);
    --tc-card-shadow: 0 0 22px rgba(96, 124, 255, 0.26), 0 12px 24px rgba(0, 0, 0, 0.4);
    --tc-card-highlight: rgba(112, 144, 255, 0.55);
    --tc-card-text: rgba(235, 240, 255, 0.98);
    /* Sfondo scuro: ripristina --fg/--muted del tema scuro del plugin (tc-theme-light le azzera a #161723). */
    --fg: #f0ecf8;
    --muted: rgba(200, 210, 235, 0.88);
    --bg-elevated: rgba(18, 22, 38, 0.92);
    color: var(--fg);
}

.tc-exp-treasure-widget > h2 {
    color: var(--fg);
}

.tc-exp-treasure-widget__banner {
    margin: 0 0 0.55rem;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(124, 138, 255, 0.22);
}

.tc-exp-treasure-widget__banner img {
    width: 100%;
    height: auto;
    max-height: 124px;
    object-fit: cover;
    display: block;
}

.tc-exp-treasure-widget__mode {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.86rem;
    line-height: 1.35;
    opacity: 0.94;
    color: var(--muted);
}

.tc-exp-tutorial-helper {
    margin: 0.3rem 0 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(58, 82, 160, 0.35), rgba(114, 62, 176, 0.35));
    border: 1px solid rgba(145, 171, 255, 0.45);
}

.tc-exp-tutorial-helper p {
    margin: 0.1rem 0 0;
    font-size: 0.76rem;
}

.tc-exp-treasure-widget__hint {
    margin-top: 0.7rem;
    padding: 0.62rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(130, 155, 255, 0.35);
    background: linear-gradient(180deg, rgba(34, 45, 80, 0.55), rgba(17, 22, 40, 0.84));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.55rem;
    align-items: center;
}

.tc-exp-treasure-widget__hint p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.38;
    color: rgba(233, 241, 255, 0.95);
}

.tc-exp-treasure-widget__queue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    color: rgba(230, 232, 255, 0.84);
    text-decoration: underline;
    text-underline-offset: 0.14em;
    font-size: 0.86rem;
    font-weight: 600;
}

.tc-exp-treasure-widget__queue-link:hover {
    color: #ffffff;
}

.tc-exp-treasure-widget__live {
    margin: 0.5rem 0 0;
    min-height: 1.25em;
    font-size: 0.88rem;
}

.tc-exp-slot-list {
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.tc-exp-slot-list--widget {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.05rem;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    gap: 0.75rem 0.65rem;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

/*
 * Reforço grelha 2x2 (mobile + desktop): temas / reset WP aplicam `ul { display:flex; flex-direction:column }`
 * ou ganham cascade sobre `.tc-exp-slot-list`. O antenato `.tc-exp-treasure-widget` aumenta a especificidade.
 */
.tc-exp-treasure-widget ul.tc-exp-slot-list.tc-exp-slot-list--widget.tc-exp-slot-list--grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    justify-items: stretch;
    align-content: start;
    width: 100%;
    max-width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot {
    max-width: none;
    width: 100%;
    cursor: default;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__card {
    padding: 0.65rem 0.5rem 0.55rem;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot:not(.tc-exp-slot--empty) {
    cursor: pointer;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-widget-chest {
    max-width: clamp(6.5rem, 32vw, 9.25rem);
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__art {
    width: clamp(6.5rem, 32vw, 9.25rem);
    height: clamp(6.5rem, 32vw, 9.25rem);
    margin-bottom: 0.1rem;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-slot__art {
    width: auto;
    height: auto;
    margin-bottom: 0;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot strong {
    font-size: 0.92rem;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot small {
    font-size: 0.72rem;
    line-height: 1.25;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot[data-tc-exp-can-open="1"] {
    border-color: transparent;
    box-shadow: none;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot[data-tc-exp-can-open="1"] > .tc-exp-slot__card {
    border-color: rgba(236, 72, 255, 0.85);
    box-shadow:
        0 0 0 1px rgba(168, 85, 255, 0.55),
        0 0 28px rgba(255, 105, 235, 0.65),
        0 0 52px rgba(140, 80, 255, 0.45),
        inset 0 0 22px rgba(255, 120, 220, 0.12);
}

@keyframes tcExpMysticBtnPulse {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(255, 120, 220, 0.75),
            0 0 28px rgba(168, 85, 255, 0.55),
            0 0 44px rgba(120, 200, 255, 0.25);
    }
    50% {
        box-shadow:
            0 0 22px rgba(255, 140, 240, 0.95),
            0 0 40px rgba(188, 100, 255, 0.75),
            0 0 56px rgba(100, 220, 255, 0.35);
    }
}

.tc-exp-slot__open-mystic {
    margin-top: 0.35rem;
    align-self: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
    border: 1px solid rgba(255, 170, 255, 0.75);
    color: #fff8ff;
    background: linear-gradient(135deg, rgba(180, 60, 255, 0.95), rgba(255, 70, 180, 0.92), rgba(120, 100, 255, 0.9));
    text-shadow: 0 0 8px rgba(255, 200, 255, 0.9);
    animation: tcExpMysticBtnPulse 1.55s ease-in-out infinite;
}

.tc-exp-slot__open-mystic:hover,
.tc-exp-slot__open-mystic:focus-visible {
    filter: brightness(1.12);
    outline: none;
}

.tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__open-mystic--inline {
    width: 100%;
    max-width: 11rem;
    margin-top: 0.45rem;
    padding: 0.42rem 0.65rem;
    font-size: 0.72rem;
    animation: tcExpMysticBtnPulseStrong 1.35s ease-in-out infinite;
}

@keyframes tcExpMysticBtnPulseStrong {
    0%, 100% {
        box-shadow:
            0 0 18px rgba(255, 130, 230, 0.95),
            0 0 36px rgba(178, 90, 255, 0.75),
            0 0 56px rgba(120, 200, 255, 0.45),
            0 0 4px rgba(255, 255, 255, 0.35) inset;
    }
    50% {
        box-shadow:
            0 0 28px rgba(255, 160, 245, 1),
            0 0 52px rgba(200, 110, 255, 0.95),
            0 0 72px rgba(90, 210, 255, 0.55),
            0 0 6px rgba(255, 255, 255, 0.45) inset;
    }
}

.tc-exp-treasure-dialog {
    padding: 0;
    border: none;
    max-width: calc(100vw - 1rem);
    width: min(36rem, 100%);
    background: transparent;
    overflow: hidden;
}

.tc-exp-treasure-dialog::backdrop {
    background: rgba(6, 8, 18, 0.72);
    backdrop-filter: blur(4px);
}

.tc-exp-treasure-dialog__panel {
    position: relative;
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1.38rem;
    background: linear-gradient(165deg, rgba(22, 28, 48, 0.98), rgba(10, 12, 26, 0.99));
    border: 1px solid rgba(112, 156, 255, 0.55);
    box-shadow:
        0 0 28px rgba(83, 126, 255, 0.35),
        0 16px 40px rgba(0, 0, 0, 0.55);
    color: rgba(230, 238, 255, 0.96);
}

.tc-exp-treasure-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 0.75rem;
    /* Acima do art-stack (z-index:2) para o × receber clique; o stack vem depois no DOM e cobria o header. */
    position: relative;
    z-index: 8;
}

.tc-exp-treasure-dialog__header .tc-exp-treasure-dialog__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.15rem 0 0;
    text-align: left;
}

.tc-exp-card-style--glass_neon_soft .tc-exp-treasure-dialog__panel {
    border-color: rgba(140, 176, 255, 0.44);
    box-shadow: 0 0 22px rgba(95, 138, 255, 0.22), 0 12px 32px rgba(0, 0, 0, 0.45);
}

.tc-exp-card-style--rune_mystic_frame .tc-exp-treasure-dialog__panel {
    border-color: rgba(172, 109, 255, 0.65);
    box-shadow: 0 0 26px rgba(152, 90, 255, 0.28), 0 14px 36px rgba(0, 0, 0, 0.5);
}

.tc-exp-treasure-dialog__header .tc-exp-treasure-dialog__close {
    position: relative;
    z-index: 9;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 16, 34, 0.85);
    color: rgba(240, 245, 255, 0.95);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-exp-treasure-dialog__header .tc-exp-treasure-dialog__close:focus-visible {
    outline: 2px solid rgba(120, 200, 255, 0.95);
    outline-offset: 2px;
}

.tc-exp-treasure-dialog__title {
    font-size: 1.15rem;
    line-height: 1.25;
    color: rgba(255, 245, 210, 0.98);
    text-shadow: 0 0 12px rgba(255, 200, 120, 0.35);
}

.tc-exp-treasure-dialog__art-stack {
    position: relative;
    width: 100%;
    margin: 0.06rem 0 0.2rem;
    z-index: 2;
}

.tc-exp-treasure-dialog__art-stack .tc-exp-treasure-dialog__art {
    margin: 0;
    min-height: clamp(16rem, 46vw, 26rem);
}

.tc-exp-treasure-dialog__art-stack .tc-exp-treasure-dialog__steps {
    position: absolute;
    left: 50%;
    bottom: clamp(0.45rem, 1.2vw, 1rem);
    transform: translateX(-50%);
    width: min(100%, 94vw);
    max-width: 32rem;
    margin: 0;
    z-index: 4;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    min-height: 0;
    pointer-events: none;
    filter: drop-shadow(0 10px 28px rgba(4, 8, 22, 0.92));
}

.tc-exp-treasure-dialog__art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(18rem, 52vw, 28rem);
    margin: 0.12rem 0 0.38rem;
    perspective: 1200px;
}

.tc-exp-treasure-dialog__art img {
    width: min(32.5rem, 100%);
    height: min(32.5rem, calc(100vw - 4.5rem));
    max-height: min(34rem, 78vh);
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 36px rgba(5, 8, 18, 0.78)) drop-shadow(0 0 42px rgba(160, 90, 255, 0.35));
}

.tc-exp-dialog-chest-layers {
    position: relative;
    width: min(32.5rem, 100%);
    height: min(32.5rem, calc(100vw - 4.5rem));
    max-height: min(34rem, 78vh);
    max-width: 100%;
    transform-style: preserve-3d;
    will-change: transform, filter;
    isolation: isolate;
}

.tc-exp-dialog-chest-layers::before {
    content: '';
    position: absolute;
    inset: 3%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 80% 76% at 50% 54%,
        rgba(32, 26, 52, 0.94) 0%,
        rgba(14, 12, 28, 0.98) 62%,
        rgba(6, 5, 14, 1) 100%
    );
}

.tc-exp-dialog-chest-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 50% 56%;
    transition: opacity 260ms ease-out;
    z-index: 1;
}

.tc-exp-dialog-chest-layer--closed {
    opacity: 1;
    filter: drop-shadow(0 14px 34px rgba(7, 12, 28, 0.82));
}

.tc-exp-dialog-chest-layer--opened {
    z-index: 2;
    opacity: 0;
    filter: drop-shadow(0 0 42px rgba(255, 220, 140, 0.0));
}

.tc-exp-dialog-chest-particles {
    position: absolute;
    inset: -8%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.tc-exp-dialog-chest-particle {
    --tc-exp-particle-i: 0;
    --tc-exp-particle-x: 0;
    --tc-exp-particle-y: 1;
    --tc-exp-particle-s: 1;
    position: absolute;
    left: 50%;
    top: 58%;
    width: calc(4px + var(--tc-exp-particle-s) * 5px);
    height: calc(4px + var(--tc-exp-particle-s) * 5px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 245, 185, 1) 0%, rgba(255, 170, 255, 0.86) 55%, rgba(100, 220, 255, 0) 100%);
    transform: translate3d(-50%, -50%, 0) scale(0.3);
    opacity: 0;
}

.tc-exp-treasure-dialog--cinematic .tc-exp-dialog-chest-layers.tc-exp-chest-phase-pre {
    animation: tcExpCinePreOpen 740ms cubic-bezier(0.12, 0.82, 0.24, 1.08) both;
}

.tc-exp-treasure-dialog--cinematic .tc-exp-dialog-chest-layers.tc-exp-chest-phase-impact {
    animation: tcExpCineImpact 620ms cubic-bezier(0.1, 0.78, 0.16, 1.18) both;
}

.tc-exp-dialog-chest-layers.tc-exp-chest-phase-impact .tc-exp-dialog-chest-layer--closed {
    animation: tcExpLayerClosedImpact 600ms cubic-bezier(0.18, 0.86, 0.25, 1.2) both;
}

.tc-exp-dialog-chest-layers.tc-exp-chest-phase-reveal .tc-exp-dialog-chest-layer--closed {
    animation: tcExpLayerClosedReveal 980ms cubic-bezier(0.12, 0.86, 0.2, 1) both;
}

.tc-exp-dialog-chest-layers.tc-exp-chest-phase-reveal .tc-exp-dialog-chest-layer--opened {
    animation: tcExpLayerOpenedReveal 980ms cubic-bezier(0.08, 0.76, 0.16, 1.04) both;
}

.tc-exp-dialog-chest-layers.tc-exp-chest-phase-reveal .tc-exp-dialog-chest-particles {
    opacity: 1;
}

.tc-exp-dialog-chest-layers.tc-exp-chest-phase-reveal .tc-exp-dialog-chest-particle {
    animation: tcExpBurstParticle 920ms cubic-bezier(0.08, 0.82, 0.26, 1) forwards;
    animation-delay: calc(var(--tc-exp-particle-i) * 18ms);
}

@keyframes tcExpCinePreOpen {
    0% { transform: translateZ(0) scale(1); filter: brightness(1); }
    35% { transform: translateZ(0) scale(1.02); filter: brightness(1.08); }
    70% { transform: translateZ(0) scale(1.045) rotate(-0.8deg); filter: brightness(1.16); }
    100% { transform: translateZ(0) scale(1.03); filter: brightness(1.08); }
}

@keyframes tcExpCineImpact {
    0% { transform: translateZ(0) scale(1.03); }
    32% { transform: translateZ(0) scale(1.11) rotate(1.1deg); filter: brightness(1.38) saturate(1.15); }
    58% { transform: translateZ(0) scale(0.98) rotate(-0.7deg); filter: brightness(1.2); }
    100% { transform: translateZ(0) scale(1.04); filter: brightness(1.06); }
}

@keyframes tcExpLayerClosedImpact {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    42% { transform: scale(1.11) rotate(1.6deg); filter: brightness(1.55) drop-shadow(0 0 42px rgba(255, 220, 150, 0.9)); }
    100% { transform: scale(1.03) rotate(0deg); filter: brightness(1.1); }
}

@keyframes tcExpLayerClosedReveal {
    0% { opacity: 1; transform: scale(1.02); filter: brightness(1.1); }
    42% { opacity: 0.8; transform: scale(1.12) translateY(-1.5%); filter: brightness(1.55) blur(0.2px); }
    100% { opacity: 0; transform: scale(1.22) translateY(-3%); filter: brightness(0.9) blur(1.2px); }
}

@keyframes tcExpLayerOpenedReveal {
    0% { opacity: 0; transform: scale(0.82) translateY(3%); filter: brightness(1.55) blur(1.4px); }
    38% { opacity: 0.6; transform: scale(1.03) translateY(0%); filter: brightness(1.45) blur(0.4px) drop-shadow(0 0 40px rgba(255, 200, 120, 0.86)); }
    100% { opacity: 1; transform: scale(1.06) translateY(-1%); filter: brightness(1.08) blur(0) drop-shadow(0 0 26px rgba(255, 210, 140, 0.55)); }
}

@keyframes tcExpBurstParticle {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(0.35);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(calc(-50% + var(--tc-exp-particle-x) * 180px), calc(-50% - var(--tc-exp-particle-y) * 180px), 0) scale(1.05);
    }
}

.tc-exp-treasure-dialog__status {
    margin: 0.68rem 0 0.55rem;
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(210, 220, 255, 0.92);
}

.tc-exp-treasure-dialog__countdown {
    margin: 0 0 0.5rem;
    font-size: 0.86rem;
    line-height: 1.35;
    color: rgba(160, 200, 255, 0.95);
    min-height: 1.25em;
}

.tc-exp-treasure-dialog__rewards {
    margin: 0.36rem 0 0.62rem;
    font-size: 0.88rem;
    line-height: 1.35;
}

.tc-exp-treasure-dialog__rewards .tc-exp-reward-pill {
    margin: 0.12rem 0.14rem;
}

.tc-exp-treasure-dialog__rewards .tc-exp-slot__rewards--compact {
    justify-content: center;
}

.tc-exp-treasure-dialog__rewards .tc-exp-reward-chip {
    font-size: 0.92rem;
    padding: 0.28rem 0.55rem;
}

.tc-exp-treasure-dialog__feedback {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(186, 255, 214, 0.98);
}

.tc-exp-treasure-dialog__steps {
    margin: 0.5rem 0 0.78rem;
    min-height: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    align-items: center;
}

.tc-exp-treasure-dialog__art-stack .tc-exp-treasure-dialog__steps {
    margin: 0;
}

.tc-exp-treasure-dialog .tc-exp-dialog-reward-chip {
    padding: 0.78rem 1.35rem;
    font-size: clamp(1.08rem, 3.8vw, 1.42rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-align: center;
    max-width: min(92vw, 30rem);
    white-space: normal;
    border-radius: 999px;
    border-width: 2px;
    background: linear-gradient(145deg, rgba(90, 40, 180, 0.95) 0%, rgba(30, 18, 80, 0.98) 45%, rgba(120, 50, 200, 0.92) 100%);
    border-color: rgba(255, 200, 255, 0.55);
    color: #fff8ff;
    text-shadow:
        0 0 12px rgba(255, 120, 255, 0.9),
        0 0 24px rgba(100, 220, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 22px rgba(200, 100, 255, 0.55),
        0 0 48px rgba(80, 200, 255, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.45);
    animation: tcExpDialogRewardChipReveal 0.55s cubic-bezier(0.22, 0.82, 0.28, 1.15) both;
}

.tc-exp-treasure-dialog .tc-exp-dialog-reward-chip--credits {
    background: linear-gradient(145deg, rgba(255, 210, 80, 0.98), rgba(180, 90, 20, 0.95), rgba(255, 240, 160, 0.92));
    border-color: rgba(255, 230, 140, 0.75);
    color: #1a1208;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 0 28px rgba(255, 200, 80, 0.65),
        0 0 40px rgba(255, 140, 40, 0.35);
}

.tc-exp-treasure-dialog .tc-exp-dialog-reward-chip--diamonds {
    background: linear-gradient(145deg, rgba(120, 210, 255, 0.98), rgba(40, 80, 200, 0.96), rgba(200, 255, 255, 0.9));
    border-color: rgba(180, 240, 255, 0.85);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 26px rgba(100, 200, 255, 0.7),
        0 0 44px rgba(120, 100, 255, 0.4);
}

.tc-exp-treasure-dialog .tc-exp-dialog-reward-chip--xp {
    background: linear-gradient(145deg, rgba(160, 255, 140, 0.95), rgba(40, 120, 60, 0.96), rgba(220, 255, 200, 0.9));
    border-color: rgba(200, 255, 180, 0.75);
    color: #0a1a0c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 22px rgba(120, 255, 160, 0.55),
        0 0 36px rgba(80, 200, 120, 0.35);
}

.tc-exp-treasure-dialog .tc-exp-dialog-reward-chip--fragments {
    background: linear-gradient(145deg, rgba(220, 180, 255, 0.98), rgba(100, 50, 180, 0.95), rgba(255, 220, 255, 0.88));
    border-color: rgba(240, 200, 255, 0.8);
    box-shadow:
        0 0 26px rgba(200, 120, 255, 0.6),
        0 0 40px rgba(120, 80, 255, 0.35);
}

@keyframes tcExpDialogRewardChipReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.88) rotate(-2deg);
        filter: blur(2px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.tc-exp-dialog-reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(46, 58, 110, 0.95), rgba(24, 30, 58, 0.98));
    border: 1px solid rgba(140, 170, 255, 0.45);
    box-shadow:
        0 0 12px rgba(120, 160, 255, 0.35),
        0 0 28px rgba(180, 90, 255, 0.22);
    animation: tcExpDialogChipIn 0.45s ease-out both;
}

.tc-exp-dialog-panel--chest-common .tc-exp-treasure-dialog__art img {
    filter: drop-shadow(0 12px 28px rgba(5, 8, 18, 0.75)) drop-shadow(0 0 24px rgba(140, 160, 190, 0.35));
}

.tc-exp-dialog-panel--chest-rare .tc-exp-treasure-dialog__art img {
    filter: drop-shadow(0 12px 28px rgba(5, 8, 18, 0.75)) drop-shadow(0 0 38px rgba(80, 140, 255, 0.55));
}

.tc-exp-dialog-panel--chest-epic .tc-exp-treasure-dialog__art img {
    filter: drop-shadow(0 12px 28px rgba(5, 8, 18, 0.75)) drop-shadow(0 0 42px rgba(160, 90, 255, 0.55));
}

.tc-exp-dialog-panel--chest-legendary .tc-exp-treasure-dialog__art img {
    filter: drop-shadow(0 12px 28px rgba(5, 8, 18, 0.75)) drop-shadow(0 0 48px rgba(255, 200, 120, 0.55));
}

.tc-exp-reward-chip--fragments {
    border-color: rgba(200, 220, 255, 0.55);
    box-shadow:
        0 0 10px rgba(160, 210, 255, 0.45),
        0 0 22px rgba(120, 180, 255, 0.28);
}

@keyframes tcExpDialogChipIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tc-exp-treasure-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
    align-items: stretch;
}

.tc-exp-treasure-dialog__actions .tc-exp-treasure-dialog__open-mystic,
.tc-exp-treasure-dialog__actions [data-tc-exp-dialog-open].tc-exp-slot__open-mystic {
    color: #fff8ff;
    background: linear-gradient(135deg, rgba(180, 60, 255, 0.98), rgba(255, 70, 180, 0.95), rgba(120, 100, 255, 0.92));
    border: 1px solid rgba(255, 170, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 200, 255, 0.95);
    box-shadow:
        0 0 18px rgba(255, 130, 230, 0.85),
        0 0 36px rgba(178, 90, 255, 0.55);
    animation: tcExpMysticBtnPulseStrong 1.35s ease-in-out infinite;
}

.tc-exp-treasure-dialog__actions .tc-exp-treasure-dialog__open-mystic:hover,
.tc-exp-treasure-dialog__actions .tc-exp-treasure-dialog__open-mystic:focus-visible,
.tc-exp-treasure-dialog__actions [data-tc-exp-dialog-open].tc-exp-slot__open-mystic:hover,
.tc-exp-treasure-dialog__actions [data-tc-exp-dialog-open].tc-exp-slot__open-mystic:focus-visible {
    filter: brightness(1.1);
    outline: none;
    box-shadow:
        0 0 24px rgba(255, 150, 235, 0.95),
        0 0 48px rgba(190, 100, 255, 0.65);
}

.tc-exp-treasure-dialog__actions--post-open {
    flex-direction: column;
    justify-content: stretch;
    gap: 0.4rem;
}

.tc-exp-treasure-dialog__actions--post-open [data-tc-exp-dialog-done] {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    justify-content: center;
}

/* Após abrir: «Abrir» deve sumir mesmo se um tema sobrescrever [hidden] em .btn */
.tc-exp-treasure-dialog__actions--post-open [data-tc-exp-dialog-open] {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
}

/* «Continuar» não pode reaparecer junto de «Voltar» (temas com .btn { display:flex !important }) */
.tc-exp-dialog-continue--off,
.tc-exp-treasure-dialog__actions--post-open [data-tc-exp-dialog-continue] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes tcExpTreasureChestSwap {
    0% {
        filter: brightness(1.35) saturate(1.15);
        transform: scale(1.04);
    }
    40% {
        filter: brightness(1.65) saturate(1.35) drop-shadow(0 0 32px rgba(255, 220, 120, 0.85));
        transform: scale(1.1);
    }
    100% {
        filter: brightness(1.05) saturate(1.08);
        transform: scale(1);
    }
}

.tc-exp-treasure-dialog__art img.tc-exp-treasure-chest-swap,
.tc-exp-slot__art > img.tc-exp-treasure-chest-swap,
.tc-exp-slot__art .tc-exp-slot-chest-layers.tc-exp-treasure-chest-swap .tc-exp-slot-chest-layer--opened,
.tc-exp-slot__art .tc-exp-widget-chest__img.tc-exp-treasure-chest-swap {
    animation: tcExpTreasureChestSwap 0.72s cubic-bezier(0.25, 0.85, 0.32, 1.05) both;
}

@media (prefers-reduced-motion: reduce) {
    .tc-exp-treasure-dialog__art img.tc-exp-treasure-chest-swap,
    .tc-exp-slot__art > img.tc-exp-treasure-chest-swap,
    .tc-exp-slot__art .tc-exp-slot-chest-layers.tc-exp-treasure-chest-swap .tc-exp-slot-chest-layer--opened,
    .tc-exp-slot__art .tc-exp-widget-chest__img.tc-exp-treasure-chest-swap {
        animation: none;
    }

    .tc-exp-treasure-dialog .tc-exp-dialog-reward-chip {
        animation: none;
    }
}

/* Durante passos de recompensa multi-step: «Voltar» / Fechar na fila de ações fica oculto até o fim */
.tc-exp-treasure-dialog[data-tc-exp-reward-flow="1"] .tc-exp-treasure-dialog__actions [data-tc-exp-dialog-done] {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

@keyframes tcExpTreasureDialogOpenPending {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.04);
        filter: brightness(1.06);
    }
}

.tc-exp-treasure-dialog--opening-pending .tc-exp-treasure-dialog__art img,
.tc-exp-dialog-art--opening-pending img {
    animation: tcExpTreasureDialogOpenPending 0.85s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .tc-exp-treasure-dialog--opening-pending .tc-exp-treasure-dialog__art img,
    .tc-exp-dialog-art--opening-pending img {
        animation: none;
    }
}

.tc-exp-slot-list.tc-exp-is-scrolling .tc-exp-slot__art > img,
.tc-exp-slot-list.tc-exp-is-scrolling .tc-exp-slot__art .tc-exp-slot-chest-layers,
.tc-exp-slot-list.tc-exp-is-scrolling .tc-exp-slot__art .tc-exp-widget-chest {
    animation-play-state: paused !important;
}

.tc-exp-slot-list--queue {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/*
 * Treasure/ad boundaries: keep a predictable breathing room between official ad
 * slots and chest widgets, without touching AdSense nodes directly.
 */
.tc-section--ad + .tc-exp-treasure-widget {
    margin-top: clamp(1rem, 3.6vw, 1.7rem);
}

.tc-exp-treasure-widget + .tc-between-widget-ads--home {
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.tc-expansion--queue .tc-expansion__treasures {
    margin-top: clamp(1rem, 2.6vw, 1.45rem);
}

.tc-exp-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 0;
    text-align: center;
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tc-exp-slot__card {
    width: 100%;
    border-radius: 16px;
    padding: 0.9rem 0.72rem 0.78rem;
    background: var(--tc-card-bg);
    border: 1px solid var(--tc-card-border);
    box-shadow: var(--tc-card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.38rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
}

.tc-exp-slot-list--widget:not(.tc-exp-slot-list--grid-2x2) .tc-exp-slot {
    width: 100%;
    max-width: 18.5rem;
}

/* Slot card: griglia thumb + main; solo PNG baú (niente riquadro/glow dietro). Valido home widget, Economia, fila. */
.tc-exp-widget-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.38rem;
    width: 100%;
    align-items: start;
    justify-items: center;
}

.tc-exp-widget-card__thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.tc-exp-widget-card__main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.38rem;
}

.tc-exp-widget-card__thumb .tc-exp-slot__art {
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: unset;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    isolation: auto;
}

.tc-exp-widget-chest {
    display: block;
    max-width: clamp(11rem, 58vw, 14.8rem);
}

.tc-exp-widget-chest__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    object-fit: contain;
    filter: none;
    animation: none;
    transform-origin: 50% 58%;
}

.tc-exp-slot__art {
    width: 150px;
    height: 150px;
    min-height: 150px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    position: relative;
    margin-bottom: 0.2rem;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 38%, rgba(150, 225, 180, 0.28), rgba(18, 22, 40, 0.9) 62%),
        linear-gradient(180deg, rgba(24, 28, 50, 0.95), rgba(12, 16, 30, 0.98));
}

/* Doppio layer slot: closed + opened (opacity); stesso box così il passaggio è sempre leggibile */
.tc-exp-slot-chest-layers {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    isolation: isolate;
    overflow: hidden;
    border-radius: 12px;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 40%, rgba(170, 235, 190, 0.24), rgba(20, 24, 44, 0.92) 60%),
        linear-gradient(180deg, rgba(24, 28, 50, 0.96), rgba(10, 14, 30, 0.98));
}

/* Sfondo coerente col widget: attenua PNG con alpha “sporca” o griglia checker nei pixel */
.tc-exp-slot-chest-layers::before {
    content: none;
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 82% 78% at 50% 54%,
        rgba(40, 48, 82, 0.92) 0%,
        rgba(18, 22, 42, 0.97) 58%,
        rgba(10, 12, 24, 1) 100%
    );
}

.tc-exp-slot-chest-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transform-origin: 50% 58%;
    z-index: 3;
}

.tc-exp-slot-chest-layer--closed {
    z-index: 1;
    opacity: 1;
}

.tc-exp-slot-chest-layer--opened {
    z-index: 2;
    opacity: 0;
    transition:
        opacity 0.48s cubic-bezier(0.18, 0.82, 0.22, 1),
        filter 0.48s ease-out;
    filter: drop-shadow(0 0 14px rgba(255, 210, 140, 0.25));
}

.tc-exp-slot-chest-layers--revealed .tc-exp-slot-chest-layer--closed {
    opacity: 0;
    transition: opacity 0.36s ease-out;
}

.tc-exp-slot-chest-layers--revealed .tc-exp-slot-chest-layer--opened {
    opacity: 1;
    filter:
        drop-shadow(0 0 32px rgba(255, 220, 140, 0.75))
        drop-shadow(0 0 48px rgba(120, 200, 255, 0.35))
        drop-shadow(0 12px 28px rgba(5, 8, 18, 0.55));
}

.tc-exp-slot-list--widget .tc-exp-slot__art {
    width: clamp(11.75rem, 58vw, 14.8rem);
    height: clamp(11.75rem, 58vw, 14.8rem);
}

.tc-exp-slot__art > img,
.tc-exp-slot__art .tc-exp-slot-chest-layers {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 12px 30px rgba(5, 8, 18, 0.72));
    animation: none;
    transform-origin: 50% 58%;
    will-change: auto;
}

.tc-exp-slot--idle-hint .tc-exp-slot__art > img,
.tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-slot-chest-layers,
.tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-widget-chest {
    animation: tcExpIdleTilt 5.2s ease-in-out infinite;
    will-change: transform;
}

.tc-exp-slot__art > img {
    object-fit: contain;
}

.tc-exp-slot--common .tc-exp-slot__art > img,
.tc-exp-slot--common .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 18px rgba(255, 187, 108, 0.46))
        drop-shadow(0 12px 24px rgba(5, 8, 18, 0.6));
}

.tc-exp-slot--rare .tc-exp-slot__art > img,
.tc-exp-slot--rare .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 22px rgba(99, 216, 255, 0.54))
        drop-shadow(0 12px 24px rgba(5, 8, 18, 0.6));
}

.tc-exp-slot--epic .tc-exp-slot__art > img,
.tc-exp-slot--epic .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 24px rgba(188, 118, 255, 0.58))
        drop-shadow(0 12px 26px rgba(5, 8, 18, 0.62));
}

.tc-exp-slot--legendary .tc-exp-slot__art > img,
.tc-exp-slot--legendary .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 26px rgba(255, 210, 92, 0.65))
        drop-shadow(0 12px 28px rgba(5, 8, 18, 0.62));
}

.tc-exp-slot--ready > .tc-exp-slot__card {
    border-color: rgba(118, 255, 185, 0.72);
    box-shadow:
        0 0 0 1px rgba(118, 255, 185, 0.35) inset,
        0 0 34px rgba(78, 229, 160, 0.34),
        0 12px 26px rgba(0, 0, 0, 0.42);
}

.tc-exp-slot--ready.tc-exp-slot--common .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--common .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 22px rgba(120, 255, 178, 0.75))
        drop-shadow(0 0 18px rgba(255, 200, 120, 0.35))
        drop-shadow(0 12px 24px rgba(5, 8, 18, 0.6));
    animation: none;
}

.tc-exp-slot--ready.tc-exp-slot--rare .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--rare .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 24px rgba(120, 255, 178, 0.78))
        drop-shadow(0 0 22px rgba(120, 200, 255, 0.45))
        drop-shadow(0 12px 24px rgba(5, 8, 18, 0.6));
    animation: none;
}

.tc-exp-slot--ready.tc-exp-slot--epic .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--epic .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 26px rgba(120, 255, 178, 0.8))
        drop-shadow(0 0 24px rgba(190, 130, 255, 0.5))
        drop-shadow(0 12px 26px rgba(5, 8, 18, 0.62));
    animation: none;
}

.tc-exp-slot--ready.tc-exp-slot--legendary .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--legendary .tc-exp-slot__art .tc-exp-slot-chest-layers {
    filter:
        drop-shadow(0 0 28px rgba(120, 255, 178, 0.82))
        drop-shadow(0 0 26px rgba(255, 210, 120, 0.55))
        drop-shadow(0 12px 28px rgba(5, 8, 18, 0.62));
    animation: none;
}

.tc-exp-slot--ready.tc-exp-slot--common.tc-exp-slot--idle-hint .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--common.tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation:
        tcExpIdleTilt 5.2s ease-in-out infinite,
        tcExpPulseGlow 1.25s ease-in-out infinite;
}

.tc-exp-slot--ready.tc-exp-slot--rare.tc-exp-slot--idle-hint .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--rare.tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation:
        tcExpIdleTilt 5.2s ease-in-out infinite,
        tcExpPulseGlow 1.25s ease-in-out infinite;
}

.tc-exp-slot--ready.tc-exp-slot--epic.tc-exp-slot--idle-hint .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--epic.tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation:
        tcExpIdleTilt 5.2s ease-in-out infinite,
        tcExpPulseGlow 1.25s ease-in-out infinite;
}

.tc-exp-slot--ready.tc-exp-slot--legendary.tc-exp-slot--idle-hint .tc-exp-slot__art > img,
.tc-exp-slot--ready.tc-exp-slot--legendary.tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation:
        tcExpIdleTilt 5.2s ease-in-out infinite,
        tcExpPulseGlow 1.25s ease-in-out infinite;
}

.tc-exp-slot__art--empty {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.55;
}

.tc-exp-slot__rewards {
    display: block;
    font-size: 0.78rem;
    line-height: 1.3;
    opacity: 0.97;
    margin-top: 0.18rem;
}

.tc-exp-slot__rewards--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.28rem 0.32rem;
    margin-top: 0.22rem;
    max-width: 100%;
}

.tc-exp-slot__rewards--compact:empty {
    display: none;
}

.tc-exp-reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.14rem 0.38rem 0.14rem 0.3rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(12, 14, 28, 0.72);
    color: rgba(248, 250, 255, 0.98);
    box-shadow:
        0 0 12px rgba(255, 130, 220, 0.35),
        0 0 22px rgba(120, 160, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-shadow: 0 0 8px rgba(255, 200, 255, 0.45);
    animation: none;
}

.tc-exp-slot--idle-hint .tc-exp-reward-chip {
    animation: tcExpRewardChipPulse 2.4s ease-in-out infinite;
}

.tc-exp-reward-chip__ico {
    font-size: 0.82rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 220, 160, 0.55));
}

.tc-exp-reward-chip__val {
    font-variant-numeric: tabular-nums;
}

.tc-exp-reward-chip--credits {
    border-color: rgba(255, 200, 120, 0.55);
    box-shadow:
        0 0 14px rgba(255, 190, 90, 0.45),
        0 0 24px rgba(255, 140, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tc-exp-reward-chip--diamonds {
    border-color: rgba(160, 220, 255, 0.55);
    box-shadow:
        0 0 14px rgba(120, 200, 255, 0.5),
        0 0 26px rgba(180, 120, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tc-exp-reward-chip--xp {
    border-color: rgba(200, 255, 160, 0.45);
    box-shadow:
        0 0 14px rgba(160, 255, 190, 0.4),
        0 0 22px rgba(100, 220, 180, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tc-exp-reward-chip--item {
    border-color: rgba(236, 120, 255, 0.55);
    max-width: 100%;
}

.tc-exp-reward-chip--item .tc-exp-reward-chip__val {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes tcExpRewardChipPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.08);
    }
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__title-line {
    font-size: 0.78rem;
    line-height: 1.2;
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__status-line,
.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__timer-line {
    font-size: 0.62rem;
    line-height: 1.2;
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot {
    gap: 0.22rem;
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__card {
    padding: 0.5rem 0.42rem 0.45rem;
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__art {
    width: clamp(7.75rem, 34vw, 10.75rem);
    height: clamp(7.75rem, 34vw, 10.75rem);
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-slot__art {
    width: auto;
    height: auto;
}

.tc-exp-treasure-widget--reward-compact .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-widget-chest {
    max-width: clamp(7.75rem, 34vw, 10.75rem);
}

.tc-exp-treasure-widget--reward-compact.tc-expansion--queue .tc-exp-slot__title-line {
    font-size: 0.85rem;
}

.tc-exp-treasure-widget--reward-compact.tc-expansion--queue .tc-exp-slot__status-line,
.tc-exp-treasure-widget--reward-compact.tc-expansion--queue .tc-exp-slot__timer-line {
    font-size: 0.68rem;
}

.tc-exp-slot strong {
    color: var(--tc-card-text);
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tc-exp-slot small {
    font-size: 0.82rem;
    line-height: 1.3;
}

.tc-exp-treasure-widget .tc-exp-slot small,
.tc-expansion .tc-exp-slot small {
    color: var(--muted, rgba(200, 210, 240, 0.88));
}

.tc-exp-slot--opening {
    --tc-exp-open-ms: 1800;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.tc-exp-slot--opening::before {
    content: "";
    position: absolute;
    inset: -12%;
    border-radius: 22px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.tc-exp-slot--opening > * {
    position: relative;
    z-index: 1;
}

.tc-exp-slot--opening .tc-exp-slot__art > img,
.tc-exp-slot--opening .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation-timing-function: cubic-bezier(0.22, 0.82, 0.28, 1);
    animation-fill-mode: both;
}

.tc-exp-slot--opening.tc-exp-open-preset--aurora_mystic::before {
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 255, 255, 0.55), transparent 52%),
        radial-gradient(circle at 72% 58%, rgba(255, 0, 200, 0.45), transparent 48%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 65%);
    animation: tcExpOpenAuraAurora calc(var(--tc-exp-open-ms, 1800) * 1ms) ease-out forwards;
    filter: blur(0.5px);
}

.tc-exp-slot--opening.tc-exp-open-preset--aurora_mystic .tc-exp-slot__art > img,
.tc-exp-slot--opening.tc-exp-open-preset--aurora_mystic .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation-name: tcExpOpenImgAurora;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-slot--opening.tc-exp-open-preset--void_sigil::before {
    background:
        conic-gradient(from 210deg at 50% 50%, rgba(120, 60, 255, 0.55), transparent, rgba(180, 120, 255, 0.5), transparent, rgba(90, 40, 200, 0.45));
    animation: tcExpOpenAuraVoid calc(var(--tc-exp-open-ms, 1800) * 1ms) ease-in-out forwards;
    mix-blend-mode: screen;
}

.tc-exp-slot--opening.tc-exp-open-preset--void_sigil .tc-exp-slot__art > img,
.tc-exp-slot--opening.tc-exp-open-preset--void_sigil .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation-name: tcExpOpenImgVoid;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-slot--opening.tc-exp-open-preset--solar_crown::before {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 230, 150, 0.85), rgba(255, 180, 60, 0.35) 38%, transparent 62%),
        radial-gradient(circle at 50% 120%, rgba(255, 200, 80, 0.25), transparent 55%);
    animation: tcExpOpenAuraSolar calc(var(--tc-exp-open-ms, 1800) * 1ms) ease-out forwards;
}

.tc-exp-slot--opening.tc-exp-open-preset--solar_crown .tc-exp-slot__art > img,
.tc-exp-slot--opening.tc-exp-open-preset--solar_crown .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation-name: tcExpOpenImgSolar;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-slot--opening.tc-exp-open-preset--drift_prismatic::before {
    background: linear-gradient(125deg, rgba(255, 100, 180, 0.4), rgba(120, 220, 255, 0.45), rgba(200, 255, 140, 0.35), rgba(255, 220, 120, 0.4));
    background-size: 260% 260%;
    animation: tcExpOpenAuraPrism calc(var(--tc-exp-open-ms, 1800) * 1ms) linear forwards;
}

.tc-exp-slot--opening.tc-exp-open-preset--drift_prismatic .tc-exp-slot__art > img,
.tc-exp-slot--opening.tc-exp-open-preset--drift_prismatic .tc-exp-slot__art .tc-exp-slot-chest-layers {
    animation-name: tcExpOpenImgPrism;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

/* Widget cards must stay static: opening cinematic is modal-only. */
.tc-exp-slot--opening {
    position: relative;
    z-index: auto;
    overflow: hidden;
}

.tc-exp-slot--opening::before {
    content: none !important;
    display: none !important;
}

.tc-exp-slot--opening .tc-exp-slot__art > img,
.tc-exp-slot--opening .tc-exp-slot__art .tc-exp-slot-chest-layers,
.tc-exp-slot--opening .tc-exp-slot__art .tc-exp-widget-chest__img {
    animation: none !important;
}

@keyframes tcExpOpenAuraAurora {
    0% { opacity: 0; transform: scale(0.82) rotate(0deg); filter: blur(6px); }
    18% { opacity: 1; transform: scale(1.05) rotate(-2deg); filter: blur(1px); }
    55% { opacity: 0.95; transform: scale(1.12) rotate(3deg); }
    100% { opacity: 0; transform: scale(1.35) rotate(0deg); filter: blur(12px); }
}

@keyframes tcExpOpenImgAurora {
    0% { transform: perspective(700px) scale(0.92) rotateY(-8deg); filter: brightness(0.85) drop-shadow(0 0 8px rgba(0, 255, 255, 0.4)); }
    35% { transform: perspective(700px) scale(1.08) rotateY(6deg); filter: brightness(1.25) drop-shadow(0 0 28px rgba(255, 0, 200, 0.65)) drop-shadow(0 0 22px rgba(0, 255, 255, 0.55)); }
    100% { transform: perspective(700px) scale(1.04) rotateY(0deg); filter: brightness(1.05) drop-shadow(0 0 18px rgba(120, 255, 200, 0.45)); }
}

@keyframes tcExpOpenAuraVoid {
    0% { opacity: 0; transform: scale(0.75) rotate(0deg); }
    22% { opacity: 1; transform: scale(1.08) rotate(180deg); }
    100% { opacity: 0; transform: scale(1.4) rotate(520deg); }
}

@keyframes tcExpOpenImgVoid {
    0% { transform: perspective(720px) scale(0.9) translateY(6px); filter: brightness(0.75) hue-rotate(0deg); }
    40% { transform: perspective(720px) scale(1.06) translateY(-4px); filter: brightness(1.35) hue-rotate(25deg) drop-shadow(0 0 32px rgba(160, 90, 255, 0.75)); }
    100% { transform: perspective(720px) scale(1.02) translateY(0); filter: brightness(1.05) hue-rotate(0deg) drop-shadow(0 0 20px rgba(140, 100, 255, 0.45)); }
}

@keyframes tcExpOpenAuraSolar {
    0% { opacity: 0; transform: scale(0.65); }
    25% { opacity: 1; transform: scale(1.12); }
    70% { opacity: 0.85; transform: scale(1.22); }
    100% { opacity: 0; transform: scale(1.45); }
}

@keyframes tcExpOpenImgSolar {
    0% { transform: scale(0.88) rotate(-3deg); filter: brightness(0.9) drop-shadow(0 0 6px rgba(255, 200, 80, 0.35)); }
    38% { transform: scale(1.1) rotate(2deg); filter: brightness(1.45) drop-shadow(0 0 36px rgba(255, 230, 120, 0.9)) drop-shadow(0 0 24px rgba(255, 160, 40, 0.55)); }
    100% { transform: scale(1.03) rotate(0deg); filter: brightness(1.08) drop-shadow(0 0 16px rgba(255, 210, 100, 0.5)); }
}

@keyframes tcExpOpenAuraPrism {
    0% { opacity: 0; background-position: 0% 40%; transform: scale(0.88); }
    30% { opacity: 1; }
    100% { opacity: 0; background-position: 100% 60%; transform: scale(1.28); }
}

@keyframes tcExpOpenImgPrism {
    0% { transform: scale(0.9) rotate(-2deg); filter: saturate(0.85) drop-shadow(0 0 8px rgba(255, 255, 255, 0.25)); }
    45% { transform: scale(1.09) rotate(3deg); filter: saturate(1.35) hue-rotate(-18deg) drop-shadow(0 0 26px rgba(180, 255, 255, 0.55)) drop-shadow(0 0 20px rgba(255, 150, 220, 0.45)); }
    100% { transform: scale(1.02) rotate(0deg); filter: saturate(1.1) drop-shadow(0 0 14px rgba(200, 220, 255, 0.4)); }
}

.tc-exp-treasure-dialog--opening .tc-exp-treasure-dialog__panel {
    position: relative;
    overflow: visible;
}

.tc-exp-treasure-dialog--opening .tc-exp-treasure-dialog__panel::before {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.tc-exp-treasure-dialog--opening.tc-exp-open-preset--aurora_mystic .tc-exp-treasure-dialog__panel::before {
    background:
        radial-gradient(circle at 40% 35%, rgba(0, 255, 255, 0.5), transparent 55%),
        radial-gradient(circle at 65% 65%, rgba(255, 0, 190, 0.42), transparent 50%);
    animation: tcExpOpenAuraAurora calc(var(--tc-exp-open-ms, 1800) * 1ms) ease-out forwards;
}

.tc-exp-treasure-dialog--opening.tc-exp-open-preset--void_sigil .tc-exp-treasure-dialog__panel::before {
    background: conic-gradient(from 120deg, rgba(130, 70, 255, 0.5), transparent, rgba(200, 150, 255, 0.45), transparent);
    animation: tcExpOpenAuraVoid calc(var(--tc-exp-open-ms, 1800) * 1ms) ease-in-out forwards;
    mix-blend-mode: screen;
}

.tc-exp-treasure-dialog--opening.tc-exp-open-preset--solar_crown .tc-exp-treasure-dialog__panel::before {
    background: radial-gradient(circle at 50% 0%, rgba(255, 240, 180, 0.9), rgba(255, 170, 60, 0.35) 45%, transparent 70%);
    animation: tcExpOpenAuraSolar calc(var(--tc-exp-open-ms, 1800) * 1ms) ease-out forwards;
}

.tc-exp-treasure-dialog--opening.tc-exp-open-preset--drift_prismatic .tc-exp-treasure-dialog__panel::before {
    background: linear-gradient(110deg, rgba(255, 140, 200, 0.45), rgba(100, 220, 255, 0.5), rgba(220, 255, 160, 0.4));
    background-size: 220% 220%;
    animation: tcExpOpenAuraPrism calc(var(--tc-exp-open-ms, 1800) * 1ms) linear forwards;
}

/*
 * Não incluir o header aqui: `.tc-exp-treasure-dialog__panel > *` vence em especificidade sobre
 * `.tc-exp-treasure-dialog__header { z-index: 8 }` e empatava o header com o art-stack (z-index 2
 * perdia para `> *`), fazendo o stack cobrir o ×.
 */
.tc-exp-treasure-dialog__panel > *:not(.tc-exp-treasure-dialog__header) {
    position: relative;
    z-index: 1;
}

.tc-exp-dialog-art--opening img {
    animation-timing-function: cubic-bezier(0.2, 0.85, 0.32, 1);
    animation-fill-mode: both;
}

.tc-exp-dialog-art--opening.tc-exp-open-preset--aurora_mystic img {
    animation-name: tcExpOpenImgAurora;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-dialog-art--opening.tc-exp-open-preset--void_sigil img {
    animation-name: tcExpOpenImgVoid;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-dialog-art--opening.tc-exp-open-preset--solar_crown img {
    animation-name: tcExpOpenImgSolar;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-dialog-art--opening.tc-exp-open-preset--drift_prismatic img {
    animation-name: tcExpOpenImgPrism;
    animation-duration: calc(var(--tc-exp-open-ms, 1800) * 0.92 * 1ms);
}

.tc-exp-slot--rewarding::after {
    content: "";
    position: absolute;
    inset: -40% -18%;
    background: radial-gradient(circle at center, rgba(255, 245, 186, 0.45), rgba(255, 245, 186, 0));
    animation: tcExpRewardSweep 1s ease-out;
    pointer-events: none;
}

.tc-exp-slot__reward-pop {
    position: absolute;
    inset: auto 0.35rem 0.3rem 0.35rem;
    z-index: 2;
    border-radius: 8px;
    background: rgba(14, 22, 38, 0.96);
    border: 1px solid rgba(134, 229, 179, 0.55);
    color: #d7ffe7;
    font-size: 0.82rem;
    padding: 0.45rem 0.5rem;
    box-shadow: 0 0 20px rgba(104, 228, 166, 0.35);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.tc-exp-slot__reward-pop.is-visible {
    display: block;
    animation: tcExpRewardPop 1s ease-out;
}

.tc-exp-slot--ready {
    border-color: transparent;
    box-shadow: none;
}

.tc-exp-slot--ready > .tc-exp-slot__card {
    border-color: rgba(95, 215, 150, 0.65);
    box-shadow: inset 0 0 0 1px rgba(95, 215, 150, 0.25), 0 0 26px rgba(82, 196, 141, 0.22);
}

.tc-exp-slot--locked {
    border-color: transparent;
}

.tc-exp-slot--locked > .tc-exp-slot__card {
    border-color: rgba(117, 147, 255, 0.5);
}

.tc-exp-slot--empty {
    opacity: 1;
}

.tc-exp-slot--empty > .tc-exp-slot__card {
    opacity: 0.82;
}

.tc-exp-reward-pill {
    display: inline-flex;
    margin: 0.14rem 0.18rem;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    border: 1px solid rgba(112, 132, 255, 0.36);
    background: rgba(22, 28, 52, 0.78);
    color: rgba(225, 236, 255, 0.96);
    font-size: 0.77rem;
    line-height: 1.2;
}

.tc-exp-card-style--hard_neon_frame .tc-exp-slot {
    --tc-card-bg: linear-gradient(165deg, rgba(26, 34, 62, 0.94), rgba(12, 16, 34, 0.96));
    --tc-card-border: rgba(95, 139, 255, 0.78);
    --tc-card-shadow: 0 0 26px rgba(83, 126, 255, 0.35), 0 12px 24px rgba(0, 0, 0, 0.45);
    --tc-card-highlight: rgba(112, 156, 255, 0.75);
}

.tc-exp-card-style--glass_neon_soft .tc-exp-slot {
    --tc-card-bg: linear-gradient(165deg, rgba(34, 40, 66, 0.82), rgba(16, 20, 38, 0.88));
    --tc-card-border: rgba(140, 176, 255, 0.44);
    --tc-card-shadow: 0 0 18px rgba(95, 138, 255, 0.2), 0 8px 18px rgba(0, 0, 0, 0.34);
    --tc-card-highlight: rgba(182, 205, 255, 0.46);
}

.tc-exp-card-style--rune_mystic_frame .tc-exp-slot {
    --tc-card-bg: linear-gradient(165deg, rgba(30, 24, 56, 0.94), rgba(16, 16, 34, 0.98));
    --tc-card-border: rgba(172, 109, 255, 0.7);
    --tc-card-shadow: 0 0 24px rgba(152, 90, 255, 0.33), 0 12px 24px rgba(0, 0, 0, 0.44);
    --tc-card-highlight: rgba(220, 150, 255, 0.66);
}

.tc-exp-card-style--rune_mystic_frame .tc-exp-slot::after {
    content: "✦";
    position: absolute;
    top: 0.48rem;
    right: 0.62rem;
    color: rgba(227, 176, 255, 0.82);
    font-size: 0.86rem;
    opacity: 0.65;
    pointer-events: none;
}

.tc-exp-queue-head {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.tc-expansion--queue h1 {
    margin: 0 0 0.25rem;
}

@media (max-width: 780px) {
    /*
     * Mobile: temas / block library impõem `ul { display:flex !important; flex-direction:column }` e anulam
     * a grelha 2x2 do widget — forçar só na lista de tesouros com as quatro classes.
     */
    .tc-exp-treasure-widget ul.tc-exp-slot-list.tc-exp-slot-list--widget.tc-exp-slot-list--grid-2x2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        justify-items: stretch !important;
        align-content: start !important;
    }

    .tc-exp-treasure-widget ul.tc-exp-slot-list.tc-exp-slot-list--widget.tc-exp-slot-list--grid-2x2 > .tc-exp-slot {
        min-width: 0;
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget {
        display: grid;
        grid-auto-flow: column;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        gap: 0.9rem;
        padding-bottom: 0.55rem;
        justify-items: stretch;
        scrollbar-width: thin;
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget-count-3 {
        grid-auto-columns: minmax(76%, 1fr);
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget-count-5 {
        grid-auto-columns: minmax(68%, 1fr);
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget .tc-exp-slot {
        max-width: none;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget .tc-exp-slot__art {
        width: clamp(12.5rem, 66vw, 17rem);
        height: clamp(12.5rem, 66vw, 17rem);
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-slot__art,
    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--queue .tc-exp-widget-card__thumb .tc-exp-slot__art {
        width: auto;
        height: auto;
    }

    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-widget-chest,
    .tc-exp-mobile-layout--horizontal_premium .tc-exp-slot-list--queue .tc-exp-widget-card__thumb .tc-exp-widget-chest {
        max-width: clamp(12.5rem, 66vw, 17rem);
    }

    .tc-exp-slot-list--queue {
        grid-template-columns: 1fr;
    }

    .tc-exp-slot__art {
        width: 150px;
        height: 150px;
    }

    .tc-exp-slot strong {
        font-size: 1.1rem;
    }

    .tc-exp-slot small {
        font-size: 0.88rem;
    }

    .tc-exp-queue-head {
        flex-direction: column;
    }
}

@keyframes tcExpPulseGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

@keyframes tcExpIdleTilt {
    0%, 100% { transform: perspective(700px) rotateY(-6deg) rotateX(2deg) translateY(0); }
    25% { transform: perspective(700px) rotateY(2deg) rotateX(0deg) translateY(-2px); }
    50% { transform: perspective(700px) rotateY(8deg) rotateX(-2deg) translateY(0); }
    75% { transform: perspective(700px) rotateY(0deg) rotateX(1deg) translateY(-1px); }
}

@keyframes tcExpChestOpen {
    0% { transform: scale(1) rotate(0deg); }
    40% { transform: scale(1.08) rotate(-2deg); }
    100% { transform: scale(1.04) rotate(0deg); }
}

@keyframes tcExpRewardPop {
    0% { opacity: 0; transform: translateY(8px) scale(0.95); }
    18% { opacity: 1; transform: translateY(0) scale(1); }
    82% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-4px) scale(0.98); }
}

@keyframes tcExpRewardSweep {
    0% { opacity: 0; transform: scale(0.7); }
    30% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.22); }
}

@media (prefers-reduced-motion: reduce) {
    .tc-exp-slot__art > img,
    .tc-exp-slot__art .tc-exp-slot-chest-layers,
    .tc-exp-slot--idle-hint .tc-exp-slot__art > img,
    .tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-slot-chest-layers,
    .tc-exp-slot--idle-hint .tc-exp-slot__art .tc-exp-widget-chest,
    .tc-exp-slot--ready .tc-exp-slot__art > img,
    .tc-exp-slot--ready .tc-exp-slot__art .tc-exp-slot-chest-layers,
    .tc-exp-slot--idle-hint .tc-exp-reward-chip,
    .tc-exp-slot--rewarding::after,
    .tc-exp-slot--opening::before,
    .tc-exp-slot--opening .tc-exp-slot__art > img,
    .tc-exp-slot--opening .tc-exp-slot__art .tc-exp-slot-chest-layers,
    .tc-exp-slot__art .tc-exp-widget-chest,
    .tc-exp-slot__art .tc-exp-widget-chest__img,
    .tc-exp-treasure-dialog--opening .tc-exp-treasure-dialog__panel::before,
    .tc-exp-dialog-art--opening img,
    .tc-exp-dialog-chest-layers,
    .tc-exp-dialog-chest-layer,
    .tc-exp-dialog-chest-particle,
    .tc-exp-slot__open-mystic,
    .tc-exp-dialog-reward-chip {
        animation: none !important;
    }

    .tc-exp-slot--opening::before,
    .tc-exp-treasure-dialog--opening .tc-exp-treasure-dialog__panel::before {
        opacity: 0.35;
    }

    .tc-exp-dialog-reward-chip {
        transform: none;
        opacity: 1;
    }
}

.tc-exp-widgets__grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}

.tc-exp-widgets__card {
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    --fg: #f0ecf8;
    --muted: rgba(200, 210, 235, 0.88);
    color: var(--fg);
}

.tc-exp-widgets__card h3 {
    color: var(--fg);
}

.tc-exp-widgets__card .muted,
.tc-exp-widgets__card p.muted {
    color: var(--muted);
}

.tc-exp-widgets__meta,
.tc-exp-widgets__list {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.tc-exp-widgets__meta li,
.tc-exp-widgets__list li {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: baseline;
}

.tc-expansion {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(12, 14, 28, 0.65);
    --fg: #f0ecf8;
    --muted: rgba(200, 210, 235, 0.88);
    --bg-elevated: rgba(20, 24, 40, 0.88);
    color: var(--fg);
}

/* Titoli/paragrafi: style.css usa var(--fg); con tc-theme-light il body forza #161723 — qui serve testo chiaro. */
.tc-expansion h1,
.tc-expansion h2,
.tc-expansion h3,
.tc-expansion h4,
.tc-expansion--queue .tc-exp-queue-head h1 {
    color: var(--fg);
}

.tc-expansion p.muted,
.tc-expansion .tc-exp-queue-head p.muted {
    color: var(--muted) !important;
}

.tc-expansion__head h2,
.tc-expansion h3,
.tc-expansion h4 {
    margin: 0 0 0.45rem;
}

.tc-expansion__head p {
    margin: 0 0 1rem;
}

.tc-expansion__economy,
.tc-expansion__missions,
.tc-expansion__treasures,
.tc-expansion__reading,
.tc-expansion__seo {
    margin-top: 1.15rem;
}

.tc-expansion__mission-meta {
    font-size: 0.8rem;
    opacity: 0.88;
    margin: 0.35rem 0 0;
}

.tc-expansion__mission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.25rem 0 0.35rem;
}

.tc-expansion__badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.tc-expansion__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.5rem 0;
}

.tc-expansion__chips span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
}

.tc-expansion__bar {
    margin-top: 0.5rem;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.tc-expansion__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7a6bff, #35c6ff);
}

.tc-expansion__bar--sm {
    height: 6px;
    margin: 0.35rem 0 0.2rem;
}

.tc-expansion__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.tc-expansion__list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.tc-expansion__list p {
    margin: 0.2rem 0;
}

[data-tc-exp-shop-catalog] {
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 0.85rem;
}

.tc-exp-shop-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 0.8rem;
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(142, 92, 255, 0.2), transparent 55%),
        linear-gradient(160deg, rgba(28, 20, 50, 0.9), rgba(17, 14, 34, 0.95));
    box-shadow: 0 10px 24px rgba(7, 10, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tc-exp-shop-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(246, 198, 72, 0.24), rgba(149, 87, 255, 0.2));
    color: #ffd978;
}

.tc-exp-shop-card__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.tc-exp-shop-card__body {
    min-width: 0;
}

.tc-exp-shop-card__title {
    display: block;
    line-height: 1.2;
    font-size: 0.94rem;
}

.tc-exp-shop-card__rewards {
    margin: 0.25rem 0 0;
    color: rgba(233, 236, 255, 0.78);
    font-size: 0.78rem;
    line-height: 1.25;
}

.tc-exp-shop-card__meta {
    text-align: right;
    display: grid;
    gap: 0.2rem;
}

.tc-exp-shop-card__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232, 225, 255, 0.9);
}

.tc-exp-shop-card__price {
    color: #ffd978;
    font-size: 0.96rem;
    text-shadow: 0 0 12px rgba(255, 215, 121, 0.25);
}

@media (max-width: 560px) {
    .tc-exp-shop-card {
        grid-template-columns: 40px 1fr;
    }

    .tc-exp-shop-card__meta {
        grid-column: 1 / -1;
        text-align: left;
        grid-auto-flow: column;
        justify-content: space-between;
        align-items: center;
    }
}

.tc-expansion__links {
    margin: 0.25rem 0 0;
    padding-left: 1rem;
}

.tc-expansion__links li {
    margin: 0.25rem 0;
}

.tc-expansion__feedback {
    margin: 1rem 0 0;
    min-height: 1.4em;
    font-weight: 600;
}

@media (max-width: 820px) {
    .tc-home-hero,
    .tc-home-quick,
    .tc-home-reco,
    #tc-home-missions,
    .tc-exp-wallet,
    .tc-exp-treasure-widget,
    .tc-exp-widgets,
    .tc-expansion {
        font-size: 16px;
        line-height: 1.45;
    }

    .tc-home-hero h1,
    .tc-home-quick__title,
    .tc-home-reco__title,
    #tc-home-missions-title,
    .tc-exp-treasure-widget h2,
    .tc-exp-widgets h2,
    .tc-expansion__head h2 {
        font-size: clamp(1.25rem, 5.2vw, 1.55rem);
        line-height: 1.25;
    }

    .tc-home-hero .btn,
    .tc-home-quick .btn,
    .tc-home-reco .btn,
    #tc-home-missions .btn,
    .tc-exp-treasure-widget .btn,
    .tc-expansion .btn {
        min-height: 44px;
        padding: 0.6rem 0.85rem;
        font-size: 0.98rem;
    }

    .tc-exp-wallet__chip {
        font-size: 0.98rem;
        padding: 0.45rem 0.75rem;
    }

    .tc-exp-slot__rewards {
        font-size: 0.9rem;
    }

    .tc-expansion__chips span {
        font-size: 0.98rem;
    }

    .tc-home-sub {
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .tc-home-streak,
    .tc-home-stats,
    .tc-home-footnote,
    .tc-home-quick__desc,
    .tc-home-reco__title,
    .tc-home-missions__badge,
    .tc-home-missions__reward,
    .tc-home-missions__desc {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .tc-home-quick__name,
    .tc-home-reco__name,
    .tc-home-missions__name {
        font-size: 1.02rem;
        line-height: 1.3;
    }

    .tc-home-title__line--royale {
        font-size: clamp(1.35rem, 5.6vw, 1.75rem);
    }
}

@media (min-width: 900px) {
    .tc-exp-slot-list--widget:not(.tc-exp-slot-list--grid-2x2) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: stretch;
    }

    .tc-exp-slot-list--widget:not(.tc-exp-slot-list--grid-2x2) .tc-exp-slot {
        max-width: none;
    }

    .tc-exp-treasure-widget__banner img {
        max-height: 156px;
    }

    .tc-exp-slot-list--widget:not(.tc-exp-slot-list--grid-2x2) .tc-exp-slot__art {
        width: clamp(10.8rem, 20vw, 13rem);
        height: clamp(10.8rem, 20vw, 13rem);
    }

    .tc-exp-slot-list--widget:not(.tc-exp-slot-list--grid-2x2) .tc-exp-widget-card__thumb .tc-exp-slot__art {
        width: auto;
        height: auto;
    }

    .tc-exp-slot-list--widget:not(.tc-exp-slot-list--grid-2x2) .tc-exp-widget-card__thumb .tc-exp-widget-chest {
        max-width: clamp(10.8rem, 20vw, 13rem);
    }

    .tc-exp-slot-list--queue .tc-exp-widget-card__thumb .tc-exp-slot__art {
        width: auto;
        height: auto;
    }

    .tc-exp-slot-list--queue .tc-exp-widget-card__thumb .tc-exp-widget-chest {
        max-width: min(100%, clamp(10.8rem, 20vw, 13rem));
    }

    .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget {
        max-width: 28rem;
    }

    .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-slot__art {
        width: clamp(7rem, 18vw, 10rem);
        height: clamp(7rem, 18vw, 10rem);
    }

    .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-slot__art {
        width: auto;
        height: auto;
    }

    .tc-exp-slot-list--grid-2x2.tc-exp-slot-list--widget .tc-exp-widget-card__thumb .tc-exp-widget-chest {
        max-width: clamp(7rem, 18vw, 10rem);
    }
}

/* Modal treasure: AdsMap interstitial between reward steps */
.tc-exp-modal-ad-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: inherit;
    background: rgba(6, 8, 20, 0.82);
    backdrop-filter: blur(6px);
    animation: tc-exp-modal-ad-fade 220ms ease-out both;
}

.tc-exp-modal-ad-layer--reduced {
    animation: none;
}

@keyframes tc-exp-modal-ad-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-exp-modal-ad-layer {
        animation: none;
    }
}

.tc-exp-modal-ad-layer__box {
    width: 100%;
    max-width: 22rem;
    max-height: min(70vh, 28rem);
    overflow: auto;
    border-radius: 14px;
    padding: 0.65rem 0.7rem 0.75rem;
    background: linear-gradient(165deg, rgba(26, 30, 52, 0.98), rgba(12, 14, 28, 0.99));
    border: 1px solid rgba(130, 160, 255, 0.45);
    box-shadow: 0 0 22px rgba(90, 120, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.5);
}

.tc-exp-modal-ad-layer__sponsor {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(200, 210, 255, 0.72);
    margin: 0 0 0.35rem;
}

.tc-exp-modal-ad-layer__slot {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(230, 236, 255, 0.92);
}

.tc-exp-modal-ad-layer__actions {
    margin-top: 0.65rem;
    display: flex;
    justify-content: flex-end;
}

.tc-exp-modal-ad-layer__continue {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(140, 180, 255, 0.55);
    background: rgba(40, 60, 120, 0.55);
    color: rgba(245, 248, 255, 0.98);
    cursor: pointer;
}

.tc-exp-modal-ad-layer__continue:focus-visible {
    outline: 2px solid rgba(120, 200, 255, 0.95);
    outline-offset: 2px;
}
