.collection-box-stat {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 170px;
    padding: 18px 20px;
    overflow: hidden;
    background: var(--surface-soft);
}
.box-copy {
    min-width: 116px;
    flex: 1;
}
.box-eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin: 0 0 9px;
}
.box-copy h3 {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--ink);
}
.box-count {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.box-caption {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}
.collection-box-scene {
    flex: 0 0 210px;
    width: 210px;
    height: 148px;
    position: relative;
    perspective: 800px;
}
.glass-box {
    position: absolute;
    top: 23px;
    left: 8px;
    width: 170px;
    height: 108px;
    transform: rotateX(2deg) rotateY(-8deg);
    transform-style: preserve-3d;
}
.box-back,
.box-front {
    position: absolute;
    inset: 0;
    border: 1px solid #8eb9a7b3;
    border-radius: 5px 5px 7px 7px;
}
.box-back {
    background: linear-gradient(150deg, #aecaba24, #89b09c0d 65%, #57856e21);
    box-shadow:
        inset 0 1px 1px #ffffffc7,
        inset 0 -3px 6px #39634c12;
}
.box-banknotes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 4px 4px 6px 6px;
    transform: translateZ(1px);
}
.box-front {
    background: linear-gradient(
        115deg,
        #ffffff38,
        #eef8f00a 34%,
        #ffffff2e 35%,
        #ffffff0a 49%,
        transparent 50%,
        #c4dfce16
    );
    box-shadow:
        inset 2px 1px 1px #ffffffb3,
        inset -2px -2px 1px #d2e5d9ad,
        0 2px 2px #284b3b16;
    transform: translateZ(3px);
    pointer-events: none;
}
.box-front::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 0.6px solid #b4cfbf66;
    border-radius: 2px 2px 4px 4px;
}
.box-base {
    position: absolute;
    bottom: -3px;
    left: -2px;
    width: 174px;
    height: 6px;
    background: linear-gradient(#eef9e98c, #83ac9573 50%, #476f5959);
    border: 1px solid #91b39cb3;
    border-radius: 2px 2px 4px 4px;
    box-shadow: 0 3px 4px #284b3b1c;
}
.box-fastener {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    border: 0.6px solid #749682;
    border-radius: 50%;
    background: #e7f4e7;
    box-shadow: 0 0.5px 1px #224a3a25;
}
.box-fastener.top-left {
    left: 5px;
    top: 5px;
}
.box-fastener.top-right {
    right: 5px;
    top: 5px;
}
.box-fastener.bottom-left {
    left: 5px;
    bottom: 5px;
}
.box-fastener.bottom-right {
    right: 5px;
    bottom: 5px;
}
.box-side {
    position: absolute;
    width: 22px;
    top: 0;
    height: 108px;
    right: -22px;
    transform: skewY(-29deg);
    transform-origin: left top;
    border: 1px solid #7bac9c80;
    border-left: 0;
    background: linear-gradient(90deg, #6c9d8161, #d6ece338 30%, #d7ecdc6b);
    border-radius: 0 3px 5px 0;
    box-shadow: inset -2px 0 1px #ffffff73;
}
.box-lid {
    position: absolute;
    left: 0;
    top: -13px;
    width: 170px;
    height: 14px;
    transform: skewX(-59deg);
    transform-origin: bottom left;
    border: 1px solid #8bb9a7a1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(175deg, #f3fff3a6, #bad7c575 48%, #eef9efb3);
    box-shadow:
        inset 0 1px #ffffffd9,
        0 1px 1px #557d6359;
}
.box-lid span {
    position: absolute;
    width: 68px;
    height: 2.5px;
    border-radius: 5px;
    left: 50px;
    top: 5px;
    background: #2d5a448c;
    box-shadow:
        0 1px #ffffffd9,
        inset 0 1px 1px #1c3f2d59;
}
.box-shadow {
    position: absolute;
    left: 15px;
    right: 7px;
    bottom: 3px;
    height: 14px;
    background: #284d3740;
    filter: blur(8px);
    border-radius: 50%;
    transform: rotate(-3deg);
}
.box-banknote {
    position: absolute;
    width: 27px;
    height: 13px;
    border: 0.65px solid hsl(var(--note-hue) 23% 43%);
    border-radius: 1px 2px 1px 1px;
    color: hsl(var(--note-hue) 25% 34%);
    background: linear-gradient(
        135deg,
        hsl(var(--note-hue) 28% 73%),
        hsl(var(--note-hue) 35% 85%) 45%,
        hsl(var(--note-hue) 25% 64%)
    );
    display: grid;
    place-items: center;
    font-size: 7px;
    line-height: 1;
    transform: rotate(var(--note-angle)) skewX(var(--note-tilt));
    box-shadow:
        0 1px 1px #234b3c4d,
        inset 0 0.5px #ffffffa6;
    transition:
        left 0.4s ease,
        bottom 0.4s ease;
    will-change: auto;
}
.box-banknote > span {
    position: relative;
}
.note-rosette {
    position: absolute;
    width: 9px;
    height: 8px;
    border: 0.5px solid currentColor;
    border-radius: 45%;
    opacity: 0.45;
    background: repeating-radial-gradient(
        ellipse,
        transparent 0 1px,
        #557c5f55 1px 1.5px
    );
}
.box-banknote::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 0.5px solid currentColor;
    border-radius: 1px;
    opacity: 0.5;
}
.box-banknote.is-dropping {
    animation: note-into-box var(--fall-duration, 1100ms) linear
        var(--fall-delay, 0ms) both;
    will-change: transform;
    z-index: 1;
}
@keyframes note-into-box {
    0% {
        opacity: 0;
        transform: translate(var(--drop-x), var(--drop-y)) rotate(82deg)
            rotateY(55deg);
    }
    16% {
        opacity: 1;
        transform: translate(var(--drop-x), calc(var(--drop-y) + 13px))
            rotate(78deg) rotateY(35deg);
    }
    48% {
        transform: translate(var(--flutter-x), -30px)
            rotate(calc(var(--note-angle) - 18deg)) rotateY(-20deg);
    }
    76% {
        transform: translate(calc(var(--flutter-x) * -0.25), -7px)
            rotate(calc(var(--note-angle) + 8deg)) skewX(var(--note-tilt));
    }
    90% {
        transform: translate(1px, 0) rotate(calc(var(--note-angle) - 2deg))
            skewX(var(--note-tilt));
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(var(--note-angle))
            skewX(var(--note-tilt));
    }
}
.box-achievement {
    border: 0;
    background: transparent;
    padding: 7px 0 0;
    text-align: left;
    cursor: pointer;
}
.box-achievement .world-badge {
    grid-template-columns: 25px 1fr;
    column-gap: 7px;
}
.box-achievement .world-badge svg {
    width: 25px;
    height: 29px;
    grid-row: 1 / 3;
}
.box-achievement .world-badge > span {
    font-size: 10px;
}
.box-achievement .world-badge > small {
    font-size: 8px;
}
.world-badge {
    --badge-hue: 155;
    display: inline-grid;
    justify-items: center;
    color: var(--ink);
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
}
.world-badge svg {
    width: 88px;
    height: 96px;
    fill: none;
    stroke: hsl(var(--badge-hue) 35% 34%);
    stroke-width: 1.4;
}
.world-badge .badge-shield {
    fill: hsl(var(--badge-hue) 40% 89%);
    stroke-width: 2;
}
.world-badge small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 1px;
}
.achievement-dialog {
    width: 430px;
    text-align: center;
    padding: 32px;
}
.achievement-dialog h2 {
    font-size: 25px;
    margin: 24px 0 14px;
}
.achievement-dialog p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}
.achievement-dialog .button {
    margin-top: 18px;
}
.profile-achievement {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
.profile-achievement p {
    font-size: 13px;
    color: var(--muted);
}
:root[data-theme='dark'] .collection-box-stat {
    background: var(--surface-soft);
}
:root[data-theme='dark'] .box-front {
    background: linear-gradient(
        120deg,
        #e5fff52b,
        #9ed0be0d 42%,
        #ffffff33 54%,
        #c5dfd817
    );
}
:root[data-theme='dark'] .box-lid {
    background: linear-gradient(#779b8c99, #b7d9ca52);
}
@media (max-width: 1400px) {
    .collection-box-stat {
        padding: 16px;
    }
    .collection-box-scene {
        flex-basis: 210px;
        transform: scale(0.82);
        transform-origin: right center;
        margin-left: -36px;
        margin-right: -12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .box-banknote {
        animation: none !important;
        transition: none;
    }
}