html {
    scroll-behavior: auto;
}

.payment-result[hidden] {
    display: none;
}

html.payment-result-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.payment-result {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(3, 15, 17, 0.78);
    backdrop-filter: blur(10px);
    animation: payment-fade-in 0.25s ease both;
}

.payment-result__card {
    width: min(100%, 27rem);
    padding: 2.2rem 2rem 1.7rem;
    border: 1px solid rgba(139, 255, 209, 0.38);
    border-radius: 1.4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0, rgba(52, 230, 160, 0.2), transparent 62%), #10272b;
    box-shadow: 0 1rem 5rem rgba(12, 230, 164, 0.18);
    animation: payment-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.payment-result__coin {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.1rem;
    color: #153528;
    font-size: 2.4rem;
    font-weight: 900;
    animation: coin-arrive 1.1s ease-out both;
}

.payment-result__coin img {
    display: block;
    width: 4.6rem;
    height: 4.6rem;
    filter: drop-shadow(0 5px 10px rgba(255, 210, 86, 0.5));
}

.payment-result__coin--failed {
    position: relative;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 100, 120, 0.18), rgba(255, 100, 120, 0.08) 48%, transparent 76%);
    box-shadow: none;
}

.payment-result__coin--failed::before {
    position: absolute;
    inset: 0.15rem;
    background: linear-gradient(135deg, #ffb5a8, #d94d68);
    content: "";
    -webkit-mask: url("/resources/images/payment-failed.svg") center / contain no-repeat;
    mask: url("/resources/images/payment-failed.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 0.85rem rgba(217, 77, 104, 0.55));
}

.payment-result__card h2 {
    margin: 0.5rem 0;
    color: #effff8;
    font-size: 1.7rem;
}

.payment-result__card > p:last-of-type {
    color: rgba(239, 255, 248, 0.72);
    line-height: 1.6;
}

.payment-result__close {
    margin-top: 1.2rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(139, 255, 209, 0.4);
    border-radius: 0.7rem;
    color: #caffdf;
    background: rgba(49, 168, 118, 0.2);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.payment-result--failed .payment-result__card {
    border-color: rgba(255, 109, 125, 0.45);
    background: radial-gradient(ellipse at 50% 0, rgba(255, 76, 76, 0.18), transparent 62%), #10272b;
    box-shadow: 0 1rem 5rem rgba(255, 76, 76, 0.14);
}

.payment-result--failed .payment-result__coin {
    animation: payment-shake 0.5s ease both;
}

@keyframes payment-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes payment-pop {
    from {
        opacity: 0;
        transform: translateY(1.2rem) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes coin-arrive {
    0% {
        transform: translateY(-2rem) rotate(-35deg) scale(0.55);
    }

    70% {
        transform: translateY(0) rotate(8deg) scale(1.08);
    }

    100% {
        transform: rotate(0) scale(1);
    }
}

@keyframes payment-shake {
    0%,
    100% {
        transform: rotate(0);
    }

    20%,
    60% {
        transform: rotate(-12deg);
    }

    40%,
    80% {
        transform: rotate(12deg);
    }
}

.payment-result--celebrate {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 196, 67, 0.2), transparent 55%),
        rgba(3, 15, 17, 0.86);
}

.payment-result--celebrate .payment-result__card {
    position: relative;
    isolation: isolate;
    border-color: rgba(255, 220, 130, 0.7);
    background:
        radial-gradient(ellipse at 50% 0, rgba(255, 196, 67, 0.3), transparent 62%),
        linear-gradient(180deg, #17302f, #0d2124);
    box-shadow:
        0 0 0 1px rgba(255, 232, 161, 0.18),
        0 1.5rem 6rem rgba(255, 190, 60, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.payment-result--celebrate .payment-result__card > :not(.celebration-layer) {
    position: relative;
    z-index: 1;
}

.payment-result--celebrate .section-kicker {
    color: #ffd978;
    letter-spacing: 0.28em;
}

.payment-result--celebrate .payment-result__coin {
    position: relative;
    width: 6rem;
    height: 6rem;
    perspective: 600px;
    animation: none;
}

/* A radial glow instead of a filter on the 3D-rotating image, which clipped the glow to a square */
.payment-result--celebrate .payment-result__coin::before {
    position: absolute;
    inset: -2.4rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 70, 0.55), rgba(255, 200, 70, 0.18) 45%, transparent 70%);
    content: "";
    pointer-events: none;
}

.payment-result--celebrate .payment-result__coin img {
    position: relative;
    width: 5.6rem;
    height: 5.6rem;
    filter: none;
    animation: celebration-coin-spin 1.6s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.payment-result--celebrate h2 {
    background: linear-gradient(90deg, #ffb02e, #fff3c4 25%, #ffc542 50%, #fff3c4 75%, #ffb02e);
    background-repeat: repeat-x;
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    animation: celebration-shine 2.8s linear 0.8s infinite;
}

.payment-result--celebrate .payment-result__close {
    border-color: rgba(255, 220, 130, 0.65);
    color: #3a2600;
    background: linear-gradient(135deg, #ffe38f, #ffb62e);
    box-shadow: 0 0.4rem 1.4rem rgba(255, 182, 46, 0.35);
}

.celebration-layer {
    position: absolute;
    top: 4.6rem;
    left: 50%;
    z-index: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.celebration-rays {
    position: absolute;
    top: -22rem;
    left: -22rem;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 207, 95, 0.3) 0deg 6deg, transparent 6deg 20deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 68%);
    mask: radial-gradient(circle, #000 0, transparent 68%);
    opacity: 0;
    animation:
        celebration-rays-in 0.9s ease 0.2s forwards,
        celebration-rays-spin 24s linear infinite;
}

.celebration-ring {
    position: absolute;
    top: -3rem;
    left: -3rem;
    width: 6rem;
    height: 6rem;
    border: 2px solid rgba(255, 224, 140, 0.85);
    border-radius: 50%;
    opacity: 0;
    animation: celebration-ring 1.5s ease-out 0.25s both;
}

.celebration-ring--late {
    animation-delay: 0.6s;
}

.celebration-sparkle {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0, #ffd56b 45%, transparent 72%);
    box-shadow: 0 0 0.6rem rgba(255, 210, 90, 0.9);
    opacity: 0;
    animation: celebration-sparkle 1.7s cubic-bezier(0.15, 0.7, 0.3, 1) var(--delay) both;
}

.celebration-rain-coin {
    position: fixed;
    top: -3rem;
    left: var(--x);
    z-index: 0;
    width: var(--size);
    height: var(--size);
    pointer-events: none;
    filter: drop-shadow(0 0 0.5rem rgba(255, 200, 70, 0.7));
    animation: celebration-rain var(--fall) cubic-bezier(0.4, 0.05, 0.7, 0.9) var(--delay) both;
}

.celebration-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.2rem 0 0.6rem;
    animation: payment-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 0.5s both;
}

.celebration-amount__value {
    color: #ffe08a;
    font-size: clamp(2.6rem, 9vw, 3.4rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow:
        0 0 1.6rem rgba(255, 190, 60, 0.65),
        0 2px 0 rgba(120, 70, 0, 0.6);
}

.celebration-amount__unit {
    color: rgba(255, 233, 170, 0.85);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes celebration-coin-spin {
    0% {
        opacity: 0;
        transform: translateY(-4rem) rotateY(0) scale(0.4);
    }

    55% {
        opacity: 1;
        transform: translateY(0.3rem) rotateY(900deg) scale(1.18);
    }

    100% {
        transform: translateY(0) rotateY(1080deg) scale(1);
    }
}

@keyframes celebration-shine {
    to {
        background-position: -200% 0;
    }
}

@keyframes celebration-rays-in {
    to {
        opacity: 1;
    }
}

@keyframes celebration-rays-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes celebration-ring {
    0% {
        opacity: 0.9;
        transform: scale(0.4);
    }

    100% {
        opacity: 0;
        transform: scale(5.5);
    }
}

@keyframes celebration-sparkle {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.2);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(var(--sx), var(--sy)) scale(1);
    }
}

@keyframes celebration-rain {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0.9;
        transform: translateY(112vh) rotate(var(--spin));
    }
}

@media (prefers-reduced-motion: reduce) {
    .payment-result,
    .payment-result__card,
    .payment-result__coin,
    .payment-result__coin img,
    .payment-result h2,
    .celebration-rays,
    .celebration-ring,
    .celebration-sparkle,
    .celebration-amount {
        animation: none !important;
    }

    .celebration-rays {
        opacity: 0.7;
    }

    .celebration-ring,
    .celebration-sparkle {
        display: none;
    }
}

.coins-page {
    --coin-mint: #8bffd1;
    width: min(100% - 2.5rem, 68rem);
    margin: 0 auto;
    padding: 3.5rem 0 5rem;
}

.coins-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.eyebrow,
.section-kicker {
    color: #8fe7c5;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.eyebrow-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #64f4b9;
    box-shadow: 0 0 12px #64f4b9;
}

.coins-intro h1 {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.coins-intro h1 span {
    color: #77f5c2;
}

.intro-copy {
    max-width: 39rem;
    margin-top: 0.9rem;
    color: rgba(239, 255, 248, 0.72);
    font-size: 1.02rem;
    line-height: 1.65;
}

.how-link {
    flex: 0 0 auto;
    color: #baffdf;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(139, 255, 209, 0.38);
}

.how-link span {
    padding-left: 0.4rem;
}

.wallet-card {
    min-height: 15rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.3rem 3rem;
    border: 1px solid rgba(140, 255, 210, 0.32);
    border-radius: 1.25rem;
    background:
        radial-gradient(ellipse at 78% 45%, rgba(11, 200, 143, 0.25), transparent 32%),
        linear-gradient(112deg, rgba(10, 34, 34, 0.97), rgba(15, 57, 54, 0.94) 56%, rgba(18, 70, 61, 0.88));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.wallet-copy {
    position: relative;
    z-index: 1;
}

.wallet-card .section-kicker {
    color: #b3ebd4;
}

.wallet-activity {
    margin: 2.5rem 0 3.5rem;
}

.wallet-activity .section-heading {
    margin-bottom: 1rem;
}

.wallet-transactions {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wallet-transaction,
.wallet-transaction-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(140, 255, 210, 0.16);
    border-radius: 0.9rem;
    background: rgba(10, 34, 34, 0.72);
}

.wallet-transaction-copy {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.wallet-transaction-copy strong {
    overflow-wrap: anywhere;
    color: #effff8;
}

.wallet-transaction-copy time,
.wallet-transaction-empty {
    color: rgba(239, 255, 248, 0.62);
    font-size: 0.85rem;
}

.wallet-transaction-amount {
    flex: 0 0 auto;
    color: #8bffd1;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.7rem;
    font-size: clamp(3.3rem, 8vw, 5rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1;
}

.wallet-balance > span:last-child {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.015em;
}

.wallet-value-skeleton {
    display: inline-block;
    width: 6.8rem;
    height: 3.1rem;
    border-radius: 0.45rem;
    vertical-align: middle;
}

.wallet-stats .wallet-weekly-skeleton {
    width: 3.2rem;
    height: 0.8rem;
    border-radius: 999px;
}

@keyframes coin-bob {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow:
            inset 0 0 0 3px rgba(255, 255, 255, 0.3),
            0 4px 18px rgba(0, 0, 0, 0.28),
            0 0 0 rgba(255, 214, 128, 0);
    }

    50% {
        transform: translateY(-5px) rotate(4deg);
        box-shadow:
            inset 0 0 0 3px rgba(255, 255, 255, 0.35),
            0 10px 22px rgba(0, 0, 0, 0.32),
            0 0 20px rgba(255, 214, 128, 0.35);
    }
}

@keyframes coin-tilt {
    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-13deg);
    }

    50% {
        transform: translate(-50%, -56%) rotate(-9deg);
    }
}

@keyframes shimmer-glow {
    0%,
    100% {
        filter: brightness(1);
        opacity: 0.9;
    }

    50% {
        filter: brightness(1.12);
        opacity: 1;
    }
}

.coin-icon {
    display: block;
    object-fit: contain;
}

.coin-icon--large {
    width: 2.45rem;
    height: 2.45rem;
}

.wallet-caption {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.45rem 0 0 3.25rem;
    color: rgba(240, 255, 248, 0.75);
    font-size: 0.85rem;
}

.wallet-art {
    position: absolute;
    width: 18rem;
    height: 18rem;
    top: 50%;
    right: 12%;
    transform: translate(50%, -50%);
}

.orbit {
    position: absolute;
    inset: 1.5rem;
    border: 1px solid rgba(158, 255, 215, 0.16);
    border-radius: 50%;
    transform: rotate(-25deg) scaleY(0.7);
}

.orbit--two {
    inset: 3.1rem;
    transform: rotate(35deg) scaleY(0.72);
}

.coin-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 7rem;
    height: 7rem;
    transform: translate(-50%, -50%) rotate(-13deg);
    border: 3px solid #ffe89a;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #ffed9a, #edb839 56%, #a86716);
    box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, 0.35),
        inset 0 0 0 9px rgba(147, 91, 19, 0.14),
        0 18px 45px rgba(0, 0, 0, 0.35);
    color: #785317;
    font:
        800 3.4rem Georgia,
        serif;
    animation: coin-tilt 4s ease-in-out infinite;
}

.spark {
    position: absolute;
    color: #d8ffe9;
    text-shadow: 0 0 12px #87ffd2;
}

.spark--one {
    top: 3rem;
    right: 3.8rem;
    font-size: 1.4rem;
}

.spark--two {
    bottom: 3rem;
    left: 3rem;
    font-size: 1.2rem;
}

.wallet-note {
    position: absolute;
    right: 1.4rem;
    bottom: 1.1rem;
    color: rgba(221, 255, 241, 0.55);
    font-size: 0.68rem;
}

.wallet-stats {
    position: absolute;
    z-index: 1;
    right: 2rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(194, 255, 228, 0.15);
    border-radius: 0.75rem;
    background: rgba(5, 35, 30, 0.35);
}

.wallet-stats-icon {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.55rem;
    color: #a0ffd2;
    background: rgba(74, 206, 146, 0.16);
    font-size: 1.2rem;
}

.wallet-stats strong,
.wallet-stats small {
    display: block;
}

.wallet-stats strong {
    color: #c8ffe2;
    font-size: 0.9rem;
}

.wallet-stats small {
    margin-top: 0.08rem;
    color: rgba(226, 255, 239, 0.62);
    font-size: 0.66rem;
}

.cache-feature {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.85fr);
    align-items: center;
    min-height: 18rem;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 190, 125, 0.3);
    border-radius: 1.25rem;
    background:
        radial-gradient(ellipse at 76% 52%, rgba(248, 147, 81, 0.2), transparent 32%),
        repeating-linear-gradient(132deg, transparent 0 16px, rgba(255, 216, 170, 0.018) 17px 18px),
        linear-gradient(112deg, rgba(30, 29, 34, 0.98), rgba(52, 37, 39, 0.96) 58%, rgba(58, 39, 37, 0.93));
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px rgba(255, 231, 198, 0.08);
}

.cache-feature::before,
.cache-feature::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.cache-feature::before {
    inset: 0;
    opacity: 0.2;
    background-image: repeating-radial-gradient(
        ellipse at 78% 50%,
        transparent 0 16px,
        rgba(255, 219, 176, 0.2) 17px 18px,
        transparent 19px 29px
    );
    mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
}

.cache-feature::after {
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 207, 150, 0.7), transparent);
    opacity: 0.55;
}

.cache-copy {
    z-index: 1;
    padding: 2.2rem 0 2.2rem 2.5rem;
}

.cache-copy .section-kicker {
    color: #ffc17f;
}

.cache-copy h3 {
    max-width: 28rem;
    margin-top: 0.7rem;
    color: #fff3e4;
    font-size: clamp(1.7rem, 3.3vw, 2.55rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.cache-copy > p:not(.section-kicker) {
    max-width: 29rem;
    margin-top: 0.8rem;
    color: rgba(255, 238, 218, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
}

.cache-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1.15rem;
}

.cache-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.42rem 0.58rem;
    border: 1px solid rgba(255, 190, 125, 0.32);
    border-radius: 99px;
    color: #ffd4a0;
    background: rgba(255, 173, 105, 0.09);
    font-size: 0.59rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.cache-status > span {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #ffb667;
    box-shadow: 0 0 10px rgba(255, 170, 95, 0.9);
    animation: cache-signal 2.2s ease-in-out infinite;
}

.cache-detail {
    color: rgba(255, 231, 205, 0.47);
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.cache-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.15rem;
    padding: 0.67rem 0.95rem;
    border: 1px solid rgba(255, 208, 153, 0.52);
    border-radius: 0.7rem;
    color: #2d2020;
    background: linear-gradient(135deg, #ffd294, #efa96a);
    box-shadow: 0 5px 18px rgba(239, 169, 106, 0.16);
    font-size: 0.77rem;
    font-weight: 850;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.cache-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 24px rgba(239, 169, 106, 0.24);
}

.cache-cta:focus-visible {
    outline: 2px solid #ffe0b6;
    outline-offset: 4px;
}

.cache-cta:disabled {
    cursor: wait;
    opacity: 0.72;
}

.cache-cta span {
    font-size: 1rem;
}

.cache-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 18rem;
    overflow: hidden;
}

.cache-crate {
    display: block;
}

.cache-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15rem;
    height: 8rem;
    border: 1px solid rgba(255, 203, 153, 0.19);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
}

.cache-orbit--inner {
    width: 12rem;
    height: 6rem;
    border-color: rgba(255, 203, 153, 0.11);
    transform: translate(-50%, -50%) rotate(24deg);
}

.cache-crate {
    position: relative;
    z-index: 1;
    width: min(100%, 19rem);
    overflow: visible;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.26));
    animation: cache-hover 4s ease-in-out infinite;
    transform-origin: 52% 68%;
}

.cache-stamp {
    position: absolute;
    z-index: 2;
    top: 2.15rem;
    right: 2.3rem;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid rgba(255, 212, 164, 0.48);
    border-radius: 50%;
    color: rgba(255, 219, 177, 0.88);
    background: rgba(38, 28, 30, 0.72);
    box-shadow:
        0 0 0 4px rgba(255, 214, 168, 0.06),
        0 0 1.4rem rgba(252, 164, 102, 0.12);
    font-size: 0.53rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-align: center;
    transform: rotate(9deg);
}

.cache-signal {
    position: absolute;
    z-index: 2;
    color: #ffe6bf;
    text-shadow: 0 0 13px rgba(255, 182, 111, 0.85);
    animation: cache-spark 3s ease-in-out infinite;
}

.cache-signal--one {
    top: 3.2rem;
    left: 14%;
    font-size: 1.3rem;
}

.cache-signal--two {
    right: 13%;
    bottom: 3.1rem;
    color: #ffc68f;
    font-size: 1.1rem;
    animation-delay: -1.4s;
}

@keyframes cache-hover {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-7px) rotate(1deg);
    }
}

@keyframes cache-signal {
    0%,
    100% {
        opacity: 0.65;
        box-shadow: 0 0 6px rgba(255, 170, 95, 0.55);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 14px rgba(255, 170, 95, 1);
    }
}

@keyframes cache-spark {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.86) rotate(-8deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.12) rotate(8deg);
    }
}

.cache-dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 37rem);
    max-width: none;
    height: fit-content;
    max-height: min(90vh, 52rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    scrollbar-width: none;
    border: 1px solid rgba(255, 196, 137, 0.52);
    border-radius: 1.25rem;
    color: #fff3e4;
    background: #17171e;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.72),
        0 0 90px rgba(233, 142, 88, 0.2);
}

html.cache-dialog-scroll-locked {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.cache-dialog::-webkit-scrollbar {
    display: none;
}

.cache-dialog::backdrop {
    background: rgba(4, 10, 13, 0.78);
    backdrop-filter: blur(8px);
    animation: cache-backdrop-enter 0.25s ease-out both;
}

.cache-dialog-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem clamp(1rem, 4vw, 2.2rem) 1.7rem;
    overflow: hidden;
    animation: cache-dialog-enter 0.25s ease-out both;
    background:
        radial-gradient(ellipse at 50% 43%, rgba(242, 148, 84, 0.17), transparent 48%),
        repeating-linear-gradient(132deg, transparent 0 16px, rgba(255, 216, 170, 0.018) 17px 18px),
        linear-gradient(155deg, #292125, #1b1b20 76%);
    text-align: center;
}

.cache-dialog-panel::before {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 230, 204, 0.04);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.cache-dialog-close {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    right: 0.85rem;
    display: grid;
    place-items: center;
    padding: 0;
    width: 2rem;
    height: 2rem;
    appearance: none;
    border: 1px solid rgba(255, 225, 193, 0.16);
    border-radius: 50%;
    color: rgba(255, 239, 221, 0.75);
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.cache-dialog-close-icon {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
    background-color: currentColor;
    -webkit-mask: url("/resources/images/icons/close.svg") center / contain no-repeat;
    mask: url("/resources/images/icons/close.svg") center / contain no-repeat;
}

.cache-dialog-close:hover {
    color: #fff3e4;
    background: rgba(255, 255, 255, 0.1);
}

.cache-dialog-close:active {
    transform: none;
}

.cache-dialog-close:focus-visible,
.cache-dialog-action:focus-visible {
    outline: 2px solid #ffd09c;
    outline-offset: 3px;
}

.cache-dialog-kicker {
    position: relative;
    z-index: 1;
    margin-top: 0.55rem;
    color: #ffc17f;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.17em;
}

.cache-dialog-art {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 31rem);
    height: clamp(18rem, 42vh, 25rem);
    margin: 0 auto -0.35rem;
    overflow: visible;
}

.cache-dialog-glow {
    position: absolute;
    width: 16rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(245, 151, 88, 0.28);
    filter: blur(45px);
    transition:
        background 0.8s ease,
        transform 0.8s ease;
}

.cache-dialog-burst {
    position: absolute;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 224, 156, 0.18) 0deg 2deg, transparent 2deg 18deg);
    opacity: 0;
    transform: scale(0.15) rotate(-20deg);
    mask-image: radial-gradient(circle, transparent 0 19%, #000 37%, transparent 72%);
}

.cache-dialog-crate {
    position: relative;
    z-index: 1;
    display: block;
    width: min(92%, 25rem);
    filter: drop-shadow(0 25px 28px rgba(0, 0, 0, 0.48));
    transform-origin: 50% 72%;
}

.cache-dialog-open {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(92%, 25rem);
    padding: 0;
    border: 0;
    border-radius: 1.5rem;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cache-dialog-open:focus-visible {
    outline: 2px solid rgba(255, 220, 155, 0.9);
    outline-offset: 8px;
}

.cache-dialog-open:disabled {
    cursor: default;
}

.cache-dialog.is-tapping .cache-dialog-open {
    animation: loot-box-tap 0.2s ease-out;
}

.cache-dialog.is-tapping .cache-dialog-crate {
    animation: loot-box-impact 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.cache-dialog.is-tapping .cache-dialog-glow {
    animation: loot-box-magic-glow 0.85s ease-out;
}

.cache-dialog.is-tapping .cache-dialog-burst {
    animation: loot-box-magic-burst 0.85s ease-out;
}

.cache-dialog.is-tapping .cache-dialog-spark {
    animation: loot-box-magic-spark 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.cache-dialog.is-tapping .cache-dialog-spark--two {
    animation-delay: 0.1s;
}

.cache-dialog.is-opening .cache-dialog-open {
    animation: loot-box-rattle 1.1s cubic-bezier(0.3, 0.05, 0.2, 1) both;
}

.cache-dialog-art.is-revealed .cache-dialog-open {
    animation: loot-box-reveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    cursor: default;
}

.cache-dialog-spark {
    position: absolute;
    z-index: 2;
    color: #ffe4be;
    font-size: 1.3rem;
    text-shadow: 0 0 14px rgba(255, 182, 111, 0.9);
}

.cache-dialog-spark--one {
    top: 22%;
    left: 11%;
}

.cache-dialog-spark--two {
    right: 11%;
    bottom: 21%;
}

.cache-dialog h2 {
    position: relative;
    z-index: 1;
    margin-top: 0.8rem;
    font-size: clamp(1.55rem, 5vw, 2rem);
    letter-spacing: -0.035em;
}

.cache-dialog-note {
    position: relative;
    z-index: 1;
    margin-top: 0.55rem;
    color: rgba(255, 220, 183, 0.56);
    font-size: 0.66rem;
    line-height: 1.5;
}

.cache-dialog-action {
    position: relative;
    z-index: 1;
    margin: 1rem 0.3rem 0;
}

.cache-dialog-action--close {
    padding: 0.67rem 0.95rem;
    border: 1px solid rgba(255, 208, 153, 0.28);
    border-radius: 0.7rem;
    color: #ffe1bf;
    background: rgba(255, 198, 142, 0.08);
    font: inherit;
    font-size: 0.77rem;
    font-weight: 800;
    cursor: pointer;
}

.cache-dialog-action[hidden] {
    display: none;
}

.cache-dialog.is-opening .cache-dialog-glow {
    transform: scale(1.45);
    background: rgba(255, 190, 110, 0.66);
}

.cache-dialog.is-opening .cache-dialog-burst {
    animation: loot-box-burst 1.25s ease-out both;
}

.cache-dialog.is-opening .cache-dialog-spark,
.cache-dialog.is-opened .cache-dialog-spark {
    animation: loot-box-spark 1s ease-out both;
}

.cache-dialog.is-opened .cache-dialog-glow {
    transform: scale(1.6);
    background: rgba(255, 190, 110, 0.43);
}

.cache-dialog.is-opened .cache-dialog-open {
    animation:
        loot-box-reveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both,
        loot-box-idle 2.8s 0.8s ease-in-out infinite;
}

.cache-dialog.is-opened .cache-dialog-glow {
    animation: loot-box-idle-glow 3s ease-in-out infinite;
}

.cache-dialog.is-opened .cache-dialog-burst {
    animation: loot-box-idle-burst 12s linear infinite;
}

.cache-dialog.is-opened .cache-dialog-spark {
    animation:
        loot-box-spark 1s ease-out both,
        loot-box-idle-spark 2.4s 1s ease-in-out infinite;
}

.cache-dialog.is-opened .cache-dialog-spark--two {
    animation:
        loot-box-spark 1s ease-out both,
        loot-box-idle-spark 2.4s 1.6s ease-in-out infinite;
}

.cache-dialog-art.is-revealed .cache-dialog-burst {
    opacity: 0.72;
    transform: scale(1) rotate(0);
    transition:
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.7s ease;
}

.cache-rewards {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.9rem;
    animation: cache-rewards-arrive 0.45s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cache-rewards[hidden] {
    display: none;
}

.cache-reward {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 8.5rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 211, 133, 0.28);
    border-radius: 0.9rem;
    background: linear-gradient(145deg, rgba(255, 190, 89, 0.13), rgba(255, 190, 89, 0.045));
    box-shadow:
        inset 0 1px rgba(255, 236, 194, 0.07),
        0 5px 18px rgba(0, 0, 0, 0.13);
    text-align: left;
}

.cache-reward--xp {
    border-color: rgba(146, 184, 255, 0.32);
    background: linear-gradient(145deg, rgba(107, 151, 255, 0.16), rgba(107, 151, 255, 0.045));
}

.cache-reward img {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    filter: drop-shadow(0 2px 7px rgba(255, 205, 109, 0.27));
}

.cache-reward .coin-icon {
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
}

.cache-reward--xp img {
    filter: drop-shadow(0 2px 7px rgba(123, 164, 255, 0.3));
}

.cache-reward strong,
.cache-reward small {
    display: block;
}

.cache-reward strong {
    color: #fff0c6;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.cache-reward--xp strong {
    color: #d7e5ff;
}

.cache-reward small {
    margin-top: 0.1rem;
    color: rgba(255, 239, 219, 0.68);
    font-size: 0.68rem;
    font-weight: 700;
}

@keyframes cache-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cache-backdrop-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes loot-box-rattle {
    0%,
    100% {
        transform: translateX(0) rotate(0) scale(1);
        filter: brightness(1);
    }

    12%,
    38%,
    64% {
        transform: translateX(-7px) rotate(-3deg) scale(1.015);
    }

    25%,
    51%,
    76% {
        transform: translateX(7px) rotate(3deg) scale(1.025);
    }

    88% {
        transform: translateY(-13px) scale(1.12);
        filter: brightness(1.8);
    }
}

@keyframes loot-box-tap {
    0% {
        transform: translateY(0) scale(1);
    }

    38% {
        transform: translateY(5px) scale(0.96) rotate(-2deg);
    }

    72% {
        transform: translateY(-3px) scale(1.02) rotate(1deg);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes loot-box-impact {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 25px 28px rgba(0, 0, 0, 0.48));
    }

    38% {
        transform: translateY(5px) scale(0.92, 0.86) rotate(-2deg);
        filter: brightness(1.3) drop-shadow(0 12px 18px rgba(255, 190, 110, 0.48));
    }

    72% {
        transform: translateY(-4px) scale(1.04, 1.08) rotate(1deg);
    }

    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 25px 28px rgba(0, 0, 0, 0.48));
    }
}

@keyframes loot-box-magic-glow {
    0%,
    100% {
        transform: scale(1);
        filter: blur(45px) brightness(1);
    }

    45% {
        transform: scale(1.45);
        filter: blur(30px) brightness(1.8);
    }
}

@keyframes loot-box-magic-burst {
    0% {
        opacity: 0;
        transform: scale(0.25) rotate(-25deg);
    }

    40% {
        opacity: 0.9;
        transform: scale(1.15) rotate(12deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.45) rotate(40deg);
    }
}

@keyframes loot-box-magic-spark {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-30deg);
    }

    45% {
        opacity: 1;
        transform: scale(1.8) rotate(18deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes loot-box-burst {
    0% {
        opacity: 0;
        transform: scale(0.15) rotate(-25deg);
    }

    55% {
        opacity: 0.9;
        transform: scale(1.1) rotate(10deg);
    }

    100% {
        opacity: 0.55;
        transform: scale(1) rotate(0);
    }
}

@keyframes loot-box-reveal {
    from {
        opacity: 0.45;
        transform: translateY(10px) scale(0.86);
        filter: brightness(1.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1.2) drop-shadow(0 0 22px rgba(255, 199, 96, 0.48));
    }
}

@keyframes loot-box-idle {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-7px) scale(1.015);
    }
}

@keyframes loot-box-idle-glow {
    0%,
    100% {
        transform: scale(1.6);
        filter: blur(45px) brightness(1);
    }

    50% {
        transform: scale(1.75);
        filter: blur(30px) brightness(1.65);
    }
}

@keyframes loot-box-idle-burst {
    from {
        transform: scale(1) rotate(0);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes loot-box-idle-spark {
    0%,
    100% {
        opacity: 0.65;
        transform: translateY(2px) scale(0.85) rotate(-8deg);
    }

    50% {
        opacity: 1;
        transform: translateY(-7px) scale(1.2) rotate(10deg);
    }
}

@keyframes loot-box-spark {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-30deg);
    }

    45% {
        opacity: 1;
        transform: scale(1.7) rotate(15deg);
    }

    100% {
        opacity: 0.8;
        transform: scale(1) rotate(0);
    }
}

@keyframes cache-rewards-arrive {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.earn-section,
.quests-section {
    margin-top: 3.4rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.reset-label {
    color: rgba(238, 255, 247, 0.56);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.reset-label span {
    padding: 0 0.2rem;
    color: #83f8c8;
}

.earn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.earn-card {
    position: relative;
    min-height: 12.7rem;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(150, 255, 220, 0.14);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(14, 31, 34, 0.85), rgba(25, 47, 48, 0.76));
}

.earn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coin-reward {
    color: #ffe89a;
    font-size: 0.82rem;
    font-weight: 800;
}

.coin-reward span {
    display: inline-grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-left: 0.1rem;
    border: 1px solid #ffe89a;
    border-radius: 50%;
    color: #785317;
    background: #efc04d;
    font:
        800 0.65rem Georgia,
        serif;
}

.progress-track {
    height: 0.32rem;
    margin-top: 0.9rem;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #43cf9b, #a2ffd6);
    box-shadow: 0 0 10px rgba(83, 236, 173, 0.3);
}

.progress-copy {
    display: block;
    margin-top: 0.35rem;
    color: rgba(235, 250, 244, 0.53);
    font-size: 0.68rem;
}

.earn-icon {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid rgba(123, 255, 200, 0.24);
    border-radius: 0.75rem;
    color: #83f8c8;
    background: rgba(54, 172, 124, 0.12);
    font-size: 1.3rem;
}

.earn-card h3 {
    margin-top: 1.1rem;
    font-size: 1.05rem;
}

.earn-card p {
    margin-top: 0.4rem;
    color: rgba(235, 250, 244, 0.64);
    font-size: 0.83rem;
    line-height: 1.5;
}

.quest-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem;
    border: 1px solid rgba(150, 255, 220, 0.13);
    border-radius: 0.8rem;
    background: rgba(4, 17, 20, 0.45);
}

.quest-tab {
    min-width: 5.8rem;
    padding: 0.62rem 0.9rem;
    border: 0;
    border-radius: 0.58rem;
    color: rgba(235, 250, 244, 0.63);
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.quest-tab:hover {
    color: #effff8;
}

.quest-tab.is-active {
    color: #caffdf;
    background: rgba(49, 168, 118, 0.2);
    box-shadow: inset 0 0 0 1px rgba(139, 255, 209, 0.18);
}

.quest-tab:focus-visible,
.quest-filter-button:focus-visible {
    outline: 2px solid #83f8c8;
    outline-offset: 2px;
}

.quest-filters {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(150, 255, 220, 0.12);
    border-radius: 0.85rem;
    background: rgba(4, 17, 20, 0.3);
}

.quest-filter-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.quest-filter-label {
    flex: 0 0 4.4rem;
    padding-top: 0.48rem;
    color: rgba(235, 250, 244, 0.5);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quest-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.quest-filter-button {
    padding: 0.42rem 0.68rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    color: rgba(235, 250, 244, 0.62);
    background: transparent;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 650;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.quest-filter-button:hover {
    color: #effff8;
    background: rgba(255, 255, 255, 0.045);
}

.quest-filter-button.is-active {
    border-color: rgba(139, 255, 209, 0.2);
    color: #caffdf;
    background: rgba(49, 168, 118, 0.18);
}

.quest-panel {
    padding: 1.25rem;
    border: 1px solid rgba(150, 255, 220, 0.13);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(14, 31, 34, 0.78), rgba(25, 47, 48, 0.62));
}

.quest-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quest-panel-heading h3 {
    font-size: 1rem;
}

.quest-panel-heading p {
    margin-top: 0.25rem;
    color: rgba(235, 250, 244, 0.56);
    font-size: 0.78rem;
}

.quest-count {
    padding: 0.38rem 0.58rem;
    border: 1px solid rgba(139, 255, 209, 0.18);
    border-radius: 99px;
    color: #bff5d9;
    background: rgba(22, 103, 76, 0.16);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.quest-count--lifetime {
    color: #ffe6ad;
    border-color: rgba(255, 224, 142, 0.2);
    background: rgba(255, 205, 91, 0.08);
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.quest-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(150, 255, 220, 0.12);
    border-radius: 0.85rem;
    background: rgba(5, 18, 21, 0.4);
}

.quest-card-skeleton {
    min-height: 13.5rem;
    pointer-events: none;
}

.quest-load-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem 1rem;
    color: rgba(235, 250, 244, 0.7);
    text-align: center;
}

.quest-skeleton-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
}

.quest-skeleton-reward {
    width: 5.5rem;
}

.quest-skeleton-title {
    width: 72%;
    margin-top: 1rem;
}

.quest-skeleton-status {
    width: 42%;
    margin-top: 0.55rem;
}

.quest-skeleton-copy {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.quest-skeleton-copy .skeleton-line:first-child {
    width: 100%;
}

.quest-skeleton-copy .skeleton-line:last-child {
    width: 68%;
}

.quest-skeleton-progress {
    height: 0.4rem;
    margin-top: 1rem;
    border-radius: 999px;
}

.quest-card[hidden] {
    display: none;
}

.quest-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.quest-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(123, 255, 200, 0.22);
    border-radius: 0.7rem;
    background: rgba(54, 172, 124, 0.11);
}

.quest-icon__art {
    display: block;
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
}

.quest-reward {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
    color: #ffe89a;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.quest-reward-item {
    padding: 0.2rem 0.4rem;
    border: 1px solid rgba(255, 232, 154, 0.35);
    border-radius: 999px;
    color: #ffe89a;
    cursor: default;
    background: rgba(239, 192, 77, 0.1);
    font-size: 0.68rem;
}

.quest-reward-item--xp {
    border-color: rgba(128, 198, 255, 0.4);
    color: #9bd2ff;
    background: rgba(92, 168, 255, 0.1);
}

.quest-reward-item--lootbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    min-height: 1.8rem;
    padding: 0.12rem;
    border-color: rgba(255, 190, 125, 0.4);
    color: #ffd09c;
    background: rgba(238, 146, 83, 0.1);
    box-shadow: inset 0 0 12px rgba(238, 146, 83, 0.06);
    cursor: help;
    animation: loot-box-reward-glow 3.2s ease-in-out infinite;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.quest-reward-item--lootbox img {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    filter: drop-shadow(0 0 3px rgba(255, 190, 125, 0.38));
    animation: loot-box-reward-float 3.2s ease-in-out infinite;
}

.quest-reward-count {
    position: absolute;
    right: -0.35rem;
    bottom: -0.35rem;
    padding: 0.08rem 0.2rem;
    border: 1px solid rgba(255, 190, 125, 0.6);
    border-radius: 999px;
    color: #fff3e4;
    background: #492d27;
    font-size: 0.52rem;
    line-height: 1;
}

.quest-reward-item--lootbox:focus-visible {
    outline: 2px solid #ffd09c;
    outline-offset: 3px;
}

.loot-box-odds {
    position: absolute;
    z-index: 20;
    right: -0.5rem;
    bottom: calc(100% + 0.65rem);
    display: grid;
    gap: 0.35rem;
    width: min(17rem, calc(100vw - 3rem));
    padding: 0.8rem;
    border: 1px solid rgba(255, 190, 125, 0.38);
    border-radius: 0.75rem;
    color: #fff3e4;
    background: #201d20;
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.42);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.25rem);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s;
}

.quest-reward-item--lootbox:hover,
.quest-reward-item--lootbox:focus-visible {
    z-index: 5;
    border-color: rgba(255, 210, 155, 0.8);
    background: rgba(238, 146, 83, 0.2);
    box-shadow:
        0 0 1rem rgba(238, 146, 83, 0.32),
        inset 0 0 12px rgba(238, 146, 83, 0.12);
    animation-play-state: paused;
}

.quest-reward-item--lootbox:hover img,
.quest-reward-item--lootbox:focus-visible img {
    animation-play-state: paused;
    filter: drop-shadow(0 0 7px rgba(255, 190, 125, 0.8));
}

@keyframes loot-box-reward-glow {
    0%,
    100% {
        border-color: rgba(255, 190, 125, 0.4);
        box-shadow:
            inset 0 0 12px rgba(238, 146, 83, 0.06),
            0 0 0 rgba(238, 146, 83, 0);
    }

    50% {
        border-color: rgba(255, 205, 145, 0.72);
        box-shadow:
            inset 0 0 14px rgba(238, 146, 83, 0.13),
            0 0 12px rgba(238, 146, 83, 0.2);
    }
}

@keyframes loot-box-reward-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.quest-reward-item--lootbox:hover .loot-box-odds,
.quest-reward-item--lootbox:focus-visible .loot-box-odds {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.loot-box-odds-title {
    color: #ffd09c;
    font-size: 0.75rem;
}

.loot-box-odds-note {
    color: rgba(255, 243, 228, 0.68);
    font-size: 0.62rem;
}

.loot-box-odds-list,
.loot-box-odds-row {
    display: flex;
}

.loot-box-odds-list {
    flex-direction: column;
    gap: 0.18rem;
    margin-top: 0.15rem;
}

.loot-box-odds-row {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.loot-box-odds-row strong {
    color: #a7f2d0;
    font-variant-numeric: tabular-nums;
}

.quest-card h4 {
    margin-top: 0.9rem;
    font-size: 0.95rem;
}

.quest-status-label {
    display: inline-block;
    margin-top: 0.28rem;
    color: #d3c08d;
    font-size: 0.63rem;
    font-weight: 700;
}

.quest-status-label.is-complete {
    color: #90f1bd;
}

.quest-claim-button,
.quest-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.8rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(139, 255, 209, 0.25);
    border-radius: 0.6rem;
    color: #caffdf;
    background: rgba(49, 168, 118, 0.16);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        opacity 0.18s ease;
}

.quest-claim-button:hover,
.quest-show-more:hover {
    border-color: rgba(139, 255, 209, 0.45);
    background: rgba(49, 168, 118, 0.27);
}

.quest-claim-button:focus-visible,
.quest-show-more:focus-visible {
    outline: 2px solid #83f8c8;
    outline-offset: 3px;
}

.quest-claim-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.quest-show-more {
    display: flex;
    margin: 1rem auto 0;
}

.quest-show-more[hidden] {
    display: none;
}

.quest-card > p {
    min-height: 2.3rem;
    margin-top: 0.28rem;
    color: rgba(235, 250, 244, 0.62);
    font-size: 0.76rem;
    line-height: 1.5;
}

.quest-progress {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    color: rgba(235, 250, 244, 0.59);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.quest-progress-track {
    flex: 1;
    min-width: 2rem;
    height: 0.33rem;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
}

.quest-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #43cf9b, #a2ffd6);
    box-shadow: 0 0 10px rgba(83, 236, 173, 0.3);
}

.quest-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.4rem 1rem 2rem;
    border: 1px dashed rgba(150, 255, 220, 0.18);
    border-radius: 0.85rem;
    background: radial-gradient(ellipse at 50% 0, rgba(62, 182, 132, 0.1), transparent 68%);
    text-align: center;
}

.quest-empty[hidden] {
    display: none;
}

.quest-empty-art {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 255, 209, 0.22);
    border-radius: 1.35rem;
    color: #9fffd0;
    background: linear-gradient(145deg, rgba(54, 172, 124, 0.2), rgba(54, 172, 124, 0.06));
    box-shadow: 0 0 2rem rgba(62, 220, 157, 0.1);
}

.quest-empty-art img {
    width: 3rem;
    height: 3rem;
}

.quest-empty h4 {
    color: #effff8;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.quest-empty-copy {
    max-width: 27rem;
    margin-top: 0.45rem;
    color: rgba(235, 250, 244, 0.62);
    font-size: 0.82rem;
    line-height: 1.6;
}

.quest-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.05rem;
    padding: 0.58rem 0.85rem;
    border: 1px solid rgba(139, 255, 209, 0.2);
    border-radius: 0.65rem;
    color: #caffdf;
    background: rgba(49, 168, 118, 0.12);
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.quest-empty-link:hover {
    border-color: rgba(139, 255, 209, 0.38);
    background: rgba(49, 168, 118, 0.22);
}

.quest-empty-link:focus-visible {
    outline: 2px solid #83f8c8;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .coins-page {
        width: min(100% - 2rem, 40rem);
        padding-top: 2.3rem;
    }

    .coins-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .wallet-card {
        min-height: 13rem;
        padding: 1.7rem;
    }

    .wallet-art {
        right: 2%;
        opacity: 0.65;
    }

    .cache-feature {
        grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.7fr);
    }

    .cache-detail {
        flex-basis: 100%;
    }

    .cache-stamp {
        right: 1rem;
    }

    .wallet-note {
        right: 1rem;
        bottom: 0.75rem;
        max-width: 13rem;
        text-align: right;
        line-height: 1.4;
    }

    .wallet-stats {
        right: 1rem;
        bottom: 1rem;
    }

    .earn-grid {
        grid-template-columns: 1fr;
    }

    .quest-grid {
        grid-template-columns: 1fr;
    }

    .quest-card > p {
        min-height: 0;
    }

    .earn-card {
        min-height: auto;
    }

    .earn-card p {
        max-width: 25rem;
    }
}

@media (max-width: 480px) {
    .coins-page {
        width: min(100% - 1.25rem, 34rem);
    }

    .wallet-card {
        min-height: 12.5rem;
        padding: 1.25rem;
    }

    .wallet-art {
        right: 22%;
        transform: translate(50%, -50%) scale(0.78);
        opacity: 0.46;
    }

    .wallet-balance {
        font-size: 3.4rem;
    }

    .wallet-caption {
        margin-left: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .quest-tabs {
        width: 100%;
    }

    .quest-tab {
        flex: 1;
        min-width: 0;
        padding-inline: 0.5rem;
    }

    .quest-filter-group {
        flex-direction: column;
        gap: 0.3rem;
    }

    .quest-filter-label {
        flex-basis: auto;
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .cache-feature {
        grid-template-columns: 1fr;
    }

    .cache-copy {
        padding: 1.5rem 1.25rem 0;
    }

    .cache-copy h3 {
        max-width: 22rem;
    }

    .cache-art {
        min-height: 12.5rem;
        margin-top: -1rem;
    }

    .cache-art .cache-crate {
        width: min(82%, 15rem);
    }

    .cache-orbit {
        width: 13rem;
    }

    .cache-stamp {
        top: 1.2rem;
        right: 14%;
        width: 3rem;
        height: 3rem;
        font-size: 0.46rem;
    }

    .cache-signal--one {
        top: 2rem;
        left: 17%;
    }

    .cache-signal--two {
        right: 17%;
        bottom: 1.5rem;
    }

    .cache-dialog-panel {
        padding: 1.4rem 1rem 1.2rem;
    }

    .cache-dialog-art {
        height: clamp(15rem, 34vh, 19rem);
        margin-top: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cache-status > span,
    .cache-crate,
    .cache-dialog-panel,
    .cache-dialog::backdrop,
    .cache-dialog.is-opening .cache-dialog-open,
    .cache-dialog.is-tapping .cache-dialog-open,
    .cache-dialog.is-tapping .cache-dialog-crate,
    .cache-dialog.is-tapping .cache-dialog-glow,
    .cache-dialog.is-opening .cache-dialog-burst,
    .cache-dialog.is-tapping .cache-dialog-burst,
    .cache-dialog.is-tapping .cache-dialog-spark,
    .cache-dialog.is-opened .cache-dialog-open,
    .cache-dialog.is-opened .cache-dialog-glow,
    .cache-dialog.is-opened .cache-dialog-burst,
    .cache-dialog.is-opened .cache-dialog-spark,
    .cache-dialog-art.is-revealed .cache-dialog-open,
    .cache-dialog.is-opening .cache-dialog-spark,
    .cache-dialog.is-opened .cache-dialog-spark,
    .cache-rewards,
    .cache-signal,
    .quest-reward-item--lootbox,
    .quest-reward-item--lootbox img {
        animation: none;
    }

    .cache-cta,
    .cache-dialog-glow,
    .cache-dialog-art.is-revealed .cache-dialog-burst {
        transition: none;
    }
}
