.INV_row {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 30px;
}
.INV_rowContent {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.INV__overlaytopcont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.INV_leave {
    height: 70px;
    width: 70px;
    cursor: pointer;
}

.INV_leavecont {
    width: 70px;
    height: 70px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 30px;
    left: 20px;
    pointer-events: all;
    z-index: 15000;
}

.INV_leave img {
    height: 100%;
    width: 100%;
    filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(2664%) hue-rotate(140deg) brightness(105%) contrast(101%);
}

.speedrun-mode .INV_leave img {
    filter: brightness(0) saturate(100%) invert(91%) sepia(82%) saturate(1145%) hue-rotate(350deg) brightness(107%) contrast(89%);
}

.INV_cardsCont {
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.INV_cardsCont2 {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
}

.INV_card-spot {
    height: 100%;
    width: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-aspect-ratio: 1913/1080) {
    .INV_card-spot {
        width: 234px;
    }
}
@media (max-aspect-ratio: 1913/1080) and (min-aspect-ratio: 1906/1080) {
    .INV_card-spot {
        width: 233px;
    }
}
@media (max-aspect-ratio: 1906/1080) and (min-aspect-ratio: 1899/1080) {
    .INV_card-spot {
        width: 232px;
    }
}
@media (max-aspect-ratio: 1899/1080) and (min-aspect-ratio: 1892/1080) {
    .INV_card-spot {
        width: 231px;
    }
}
@media (max-aspect-ratio: 1892/1080) and (min-aspect-ratio: 1885/1080) {
    .INV_card-spot {
        width: 230px;
    }
}
@media (max-aspect-ratio: 1885/1080) and (min-aspect-ratio: 1878/1080) {
    .INV_card-spot {
        width: 229px;
    }
}
@media (max-aspect-ratio: 1878/1080) and (min-aspect-ratio: 1871/1080) {
    .INV_card-spot {
        width: 228px;
    }
}
@media (max-aspect-ratio: 1871/1080) and (min-aspect-ratio: 1864/1080) {
    .INV_card-spot {
        width: 227px;
    }
}
@media (max-aspect-ratio: 1864/1080) and (min-aspect-ratio: 1857/1080) {
    .INV_card-spot {
        width: 226px;
    }
}
@media (max-aspect-ratio: 1857/1080) and (min-aspect-ratio: 1850/1080) {
    .INV_card-spot {
        width: 225px;
    }
}
@media (max-aspect-ratio: 1850/1080) and (min-aspect-ratio: 1843/1080) {
    .INV_card-spot {
        width: 224px;
    }
}
@media (max-aspect-ratio: 1843/1080) and (min-aspect-ratio: 1836/1080) {
    .INV_card-spot {
        width: 223px;
    }
}
@media (max-aspect-ratio: 1836/1080) and (min-aspect-ratio: 1829/1080) {
    .INV_card-spot {
        width: 222px;
    }
}
@media (max-aspect-ratio: 1829/1080) and (min-aspect-ratio: 1822/1080) {
    .INV_card-spot {
        width: 221px;
    }
}
@media (max-aspect-ratio: 1822/1080) and (min-aspect-ratio: 1815/1080) {
    .INV_card-spot {
        width: 220px;
    }
}
@media (max-aspect-ratio: 1815/1080) and (min-aspect-ratio: 1808/1080) {
    .INV_card-spot {
        width: 219px;
    }
}
@media (max-aspect-ratio: 1808/1080) and (min-aspect-ratio: 1801/1080) {
    .INV_card-spot {
        width: 218px;
    }
}
@media (max-aspect-ratio: 1801/1080) and (min-aspect-ratio: 1794/1080) {
    .INV_card-spot {
        width: 217px;
    }
}
@media (max-aspect-ratio: 1794/1080) and (min-aspect-ratio: 1787/1080) {
    .INV_card-spot {
        width: 216px;
    }
}
@media (max-aspect-ratio: 1787/1080) and (min-aspect-ratio: 1780/1080) {
    .INV_card-spot {
        width: 215px;
    }
}
@media (max-aspect-ratio: 1780/1080) and (min-aspect-ratio: 1773/1080) {
    .INV_card-spot {
        width: 214px;
    }
}
@media (max-aspect-ratio: 1773/1080) and (min-aspect-ratio: 1766/1080) {
    .INV_card-spot {
        width: 213px;
    }
}
@media (max-aspect-ratio: 1766/1080) and (min-aspect-ratio: 1759/1080) {
    .INV_card-spot {
        width: 212px;
    }
}
@media (max-aspect-ratio: 1759/1080) and (min-aspect-ratio: 1752/1080) {
    .INV_card-spot {
        width: 211px;
    }
}
@media (max-aspect-ratio: 1752/1080) and (min-aspect-ratio: 1745/1080) {
    .INV_card-spot {
        width: 210px;
    }
}
@media (max-aspect-ratio: 1745/1080) and (min-aspect-ratio: 1738/1080) {
    .INV_card-spot {
        width: 209px;
    }
}
@media (max-aspect-ratio: 1738/1080) and (min-aspect-ratio: 1731/1080) {
    .INV_card-spot {
        width: 208px;
    }
}
@media (max-aspect-ratio: 1731/1080) and (min-aspect-ratio: 1724/1080) {
    .INV_card-spot {
        width: 207px;
    }
}
@media (max-aspect-ratio: 1724/1080) and (min-aspect-ratio: 1717/1080) {
    .INV_card-spot {
        width: 206px;
    }
}
@media (max-aspect-ratio: 1717/1080) and (min-aspect-ratio: 1710/1080) {
    .INV_card-spot {
        width: 205px;
    }
}
@media (max-aspect-ratio: 1710/1080) and (min-aspect-ratio: 1703/1080) {
    .INV_card-spot {
        width: 204px;
    }
}
@media (max-aspect-ratio: 1703/1080) and (min-aspect-ratio: 1696/1080) {
    .INV_card-spot {
        width: 203px;
    }
}
@media (max-aspect-ratio: 1696/1080) and (min-aspect-ratio: 1689/1080) {
    .INV_card-spot {
        width: 202px;
    }
}
@media (max-aspect-ratio: 1689/1080) and (min-aspect-ratio: 1682/1080) {
    .INV_card-spot {
        width: 201px;
    }
}
@media (max-aspect-ratio: 1682/1080) and (min-aspect-ratio: 1675/1080) {
    .INV_card-spot {
        width: 200px;
    }
}
@media (max-aspect-ratio: 1675/1080) and (min-aspect-ratio: 1668/1080) {
    .INV_card-spot {
        width: 199px;
    }
}
@media (max-aspect-ratio: 1668/1080) and (min-aspect-ratio: 1661/1080) {
    .INV_card-spot {
        width: 198px;
    }
}
@media (max-aspect-ratio: 1661/1080) and (min-aspect-ratio: 1654/1080) {
    .INV_card-spot {
        width: 197px;
    }
}
@media (max-aspect-ratio: 1654/1080) and (min-aspect-ratio: 1647/1080) {
    .INV_card-spot {
        width: 196px;
    }
}
@media (max-aspect-ratio: 1647/1080) and (min-aspect-ratio: 1640/1080) {
    .INV_card-spot {
        width: 195px;
    }
}
@media (max-aspect-ratio: 1640/1080) and (min-aspect-ratio: 1633/1080) {
    .INV_card-spot {
        width: 194px;
    }
}
@media (max-aspect-ratio: 1633/1080) and (min-aspect-ratio: 1626/1080) {
    .INV_card-spot {
        width: 193px;
    }
}
@media (max-aspect-ratio: 1626/1080) and (min-aspect-ratio: 1619/1080) {
    .INV_card-spot {
        width: 192px;
    }
}
@media (max-aspect-ratio: 1619/1080) and (min-aspect-ratio: 1612/1080) {
    .INV_card-spot {
        width: 191px;
    }
}
@media (max-aspect-ratio: 1612/1080) and (min-aspect-ratio: 1605/1080) {
    .INV_card-spot {
        width: 190px;
    }
}
@media (max-aspect-ratio: 1605/1080) and (min-aspect-ratio: 1598/1080) {
    .INV_card-spot {
        width: 189px;
    }
}
@media (max-aspect-ratio: 1598/1080) and (min-aspect-ratio: 1591/1080) {
    .INV_card-spot {
        width: 188px;
    }
}
@media (max-aspect-ratio: 1591/1080) and (min-aspect-ratio: 1584/1080) {
    .INV_card-spot {
        width: 187px;
    }
}
@media (max-aspect-ratio: 1584/1080) and (min-aspect-ratio: 1577/1080) {
    .INV_card-spot {
        width: 186px;
    }
}
@media (max-aspect-ratio: 1577/1080) and (min-aspect-ratio: 1570/1080) {
    .INV_card-spot {
        width: 185px;
    }
}
@media (max-aspect-ratio: 1570/1080) and (min-aspect-ratio: 1563/1080) {
    .INV_card-spot {
        width: 184px;
    }
}
@media (max-aspect-ratio: 1563/1080) and (min-aspect-ratio: 1556/1080) {
    .INV_card-spot {
        width: 183px;
    }
}
@media (max-aspect-ratio: 1556/1080) and (min-aspect-ratio: 1549/1080) {
    .INV_card-spot {
        width: 182px;
    }
}
@media (max-aspect-ratio: 1549/1080) and (min-aspect-ratio: 1542/1080) {
    .INV_card-spot {
        width: 181px;
    }
}
@media (max-aspect-ratio: 1542/1080) and (min-aspect-ratio: 1535/1080) {
    .INV_card-spot {
        width: 180px;
    }
}
@media (max-aspect-ratio: 1535/1080) and (min-aspect-ratio: 1528/1080) {
    .INV_card-spot {
        width: 179px;
    }
}
@media (max-aspect-ratio: 1528/1080) and (min-aspect-ratio: 1521/1080) {
    .INV_card-spot {
        width: 178px;
    }
}
@media (max-aspect-ratio: 1521/1080) and (min-aspect-ratio: 1514/1080) {
    .INV_card-spot {
        width: 177px;
    }
}
@media (max-aspect-ratio: 1514/1080) and (min-aspect-ratio: 1507/1080) {
    .INV_card-spot {
        width: 176px;
    }
}
@media (max-aspect-ratio: 1507/1080) and (min-aspect-ratio: 1500/1080) {
    .INV_card-spot {
        width: 175px;
    }
}
@media (max-aspect-ratio: 1500/1080) and (min-aspect-ratio: 1493/1080) {
    .INV_card-spot {
        width: 174px;
    }
}
@media (max-aspect-ratio: 1493/1080) and (min-aspect-ratio: 1486/1080) {
    .INV_card-spot {
        width: 173px;
    }
}
@media (max-aspect-ratio: 1486/1080) and (min-aspect-ratio: 1479/1080) {
    .INV_card-spot {
        width: 172px;
    }
}
@media (max-aspect-ratio: 1479/1080) and (min-aspect-ratio: 1472/1080) {
    .INV_card-spot {
        width: 171px;
    }
}
@media (max-aspect-ratio: 1472/1080) and (min-aspect-ratio: 1465/1080) {
    .INV_card-spot {
        width: 170px;
    }
}
@media (max-aspect-ratio: 1465/1080) and (min-aspect-ratio: 1458/1080) {
    .INV_card-spot {
        width: 169px;
    }
}
@media (max-aspect-ratio: 1458/1080) and (min-aspect-ratio: 1451/1080) {
    .INV_card-spot {
        width: 168px;
    }
}
@media (max-aspect-ratio: 1451/1080) and (min-aspect-ratio: 1444/1080) {
    .INV_card-spot {
        width: 167px;
    }
}
@media (max-aspect-ratio: 1444/1080) and (min-aspect-ratio: 1437/1080) {
    .INV_card-spot {
        width: 166px;
    }
}
@media (max-aspect-ratio: 1437/1080) and (min-aspect-ratio: 1430/1080) {
    .INV_card-spot {
        width: 165px;
    }
}
@media (max-aspect-ratio: 1430/1080) and (min-aspect-ratio: 1423/1080) {
    .INV_card-spot {
        width: 164px;
    }
}
@media (max-aspect-ratio: 1423/1080) and (min-aspect-ratio: 1416/1080) {
    .INV_card-spot {
        width: 163px;
    }
}
@media (max-aspect-ratio: 1416/1080) and (min-aspect-ratio: 1409/1080) {
    .INV_card-spot {
        width: 162px;
    }
}
@media (max-aspect-ratio: 1409/1080) and (min-aspect-ratio: 1402/1080) {
    .INV_card-spot {
        width: 161px;
    }
}
@media (max-aspect-ratio: 1402/1080) and (min-aspect-ratio: 1395/1080) {
    .INV_card-spot {
        width: 160px;
    }
}
@media (max-aspect-ratio: 1395/1080) and (min-aspect-ratio: 1388/1080) {
    .INV_card-spot {
        width: 159px;
    }
}
@media (max-aspect-ratio: 1388/1080) and (min-aspect-ratio: 1381/1080) {
    .INV_card-spot {
        width: 158px;
    }
}
@media (max-aspect-ratio: 1381/1080) and (min-aspect-ratio: 1374/1080) {
    .INV_card-spot {
        width: 157px;
    }
}
@media (max-aspect-ratio: 1374/1080) and (min-aspect-ratio: 1367/1080) {
    .INV_card-spot {
        width: 156px;
    }
}
@media (max-aspect-ratio: 1367/1080) and (min-aspect-ratio: 1360/1080) {
    .INV_card-spot {
        width: 155px;
    }
}
@media (max-aspect-ratio: 1360/1080) and (min-aspect-ratio: 1353/1080) {
    .INV_card-spot {
        width: 154px;
    }
}
@media (max-aspect-ratio: 1353/1080) and (min-aspect-ratio: 1346/1080) {
    .INV_card-spot {
        width: 153px;
    }
}
@media (max-aspect-ratio: 1346/1080) and (min-aspect-ratio: 1339/1080) {
    .INV_card-spot {
        width: 152px;
    }
}
@media (max-aspect-ratio: 1339/1080) and (min-aspect-ratio: 1332/1080) {
    .INV_card-spot {
        width: 151px;
    }
}
@media (max-aspect-ratio: 1332/1080) and (min-aspect-ratio: 1325/1080) {
    .INV_card-spot {
        width: 150px;
    }
}
@media (max-aspect-ratio: 1325/1080) and (min-aspect-ratio: 1318/1080) {
    .INV_card-spot {
        width: 149px;
    }
}
@media (max-aspect-ratio: 1318/1080) and (min-aspect-ratio: 1311/1080) {
    .INV_card-spot {
        width: 148px;
    }
}
@media (max-aspect-ratio: 1311/1080) and (min-aspect-ratio: 1304/1080) {
    .INV_card-spot {
        width: 147px;
    }
}
@media (max-aspect-ratio: 1304/1080) and (min-aspect-ratio: 1297/1080) {
    .INV_card-spot {
        width: 146px;
    }
}
@media (max-aspect-ratio: 1297/1080) and (min-aspect-ratio: 1290/1080) {
    .INV_card-spot {
        width: 145px;
    }
}
@media (max-aspect-ratio: 1290/1080) and (min-aspect-ratio: 1283/1080) {
    .INV_card-spot {
        width: 144px;
    }
}
@media (max-aspect-ratio: 1283/1080) and (min-aspect-ratio: 1276/1080) {
    .INV_card-spot {
        width: 143px;
    }
}
@media (max-aspect-ratio: 1276/1080) and (min-aspect-ratio: 1269/1080) {
    .INV_card-spot {
        width: 142px;
    }
}
@media (max-aspect-ratio: 1269/1080) and (min-aspect-ratio: 1262/1080) {
    .INV_card-spot {
        width: 141px;
    }
}
@media (max-aspect-ratio: 1262/1080) and (min-aspect-ratio: 1255/1080) {
    .INV_card-spot {
        width: 140px;
    }
}
@media (max-aspect-ratio: 1255/1080) and (min-aspect-ratio: 1248/1080) {
    .INV_card-spot {
        width: 139px;
    }
}
@media (max-aspect-ratio: 1248/1080) and (min-aspect-ratio: 1241/1080) {
    .INV_card-spot {
        width: 138px;
    }
}
@media (max-aspect-ratio: 1241/1080) and (min-aspect-ratio: 1234/1080) {
    .INV_card-spot {
        width: 137px;
    }
}
@media (max-aspect-ratio: 1234/1080) and (min-aspect-ratio: 1227/1080) {
    .INV_card-spot {
        width: 136px;
    }
}
@media (max-aspect-ratio: 1227/1080) and (min-aspect-ratio: 1220/1080) {
    .INV_card-spot {
        width: 135px;
    }
}
@media (max-aspect-ratio: 1220/1080) and (min-aspect-ratio: 1213/1080) {
    .INV_card-spot {
        width: 134px;
    }
}
@media (max-aspect-ratio: 1213/1080) and (min-aspect-ratio: 1206/1080) {
    .INV_card-spot {
        width: 133px;
    }
}
@media (max-aspect-ratio: 1206/1080) and (min-aspect-ratio: 1199/1080) {
    .INV_card-spot {
        width: 132px;
    }
}
@media (max-aspect-ratio: 1199/1080) and (min-aspect-ratio: 1192/1080) {
    .INV_card-spot {
        width: 131px;
    }
}
@media (max-aspect-ratio: 1192/1080) and (min-aspect-ratio: 1185/1080) {
    .INV_card-spot {
        width: 130px;
    }
}
@media (max-aspect-ratio: 1185/1080) and (min-aspect-ratio: 1178/1080) {
    .INV_card-spot {
        width: 129px;
    }
}
@media (max-aspect-ratio: 1178/1080) and (min-aspect-ratio: 1171/1080) {
    .INV_card-spot {
        width: 128px;
    }
}
@media (max-aspect-ratio: 1171/1080) and (min-aspect-ratio: 1164/1080) {
    .INV_card-spot {
        width: 127px;
    }
}
@media (max-aspect-ratio: 1164/1080) and (min-aspect-ratio: 1157/1080) {
    .INV_card-spot {
        width: 126px;
    }
}
@media (max-aspect-ratio: 1157/1080) and (min-aspect-ratio: 1150/1080) {
    .INV_card-spot {
        width: 125px;
    }
}
@media (max-aspect-ratio: 1150/1080) and (min-aspect-ratio: 1143/1080) {
    .INV_card-spot {
        width: 124px;
    }
}
@media (max-aspect-ratio: 1143/1080) and (min-aspect-ratio: 1136/1080) {
    .INV_card-spot {
        width: 123px;
    }
}
@media (max-aspect-ratio: 1136/1080) and (min-aspect-ratio: 1129/1080) {
    .INV_card-spot {
        width: 122px;
    }
}
@media (max-aspect-ratio: 1129/1080) and (min-aspect-ratio: 1122/1080) {
    .INV_card-spot {
        width: 121px;
    }
}
@media (max-aspect-ratio: 1122/1080) and (min-aspect-ratio: 1115/1080) {
    .INV_card-spot {
        width: 120px;
    }
}
@media (max-aspect-ratio: 1115/1080) and (min-aspect-ratio: 1108/1080) {
    .INV_card-spot {
        width: 119px;
    }
}
@media (max-aspect-ratio: 1108/1080) and (min-aspect-ratio: 1101/1080) {
    .INV_card-spot {
        width: 118px;
    }
}
@media (max-aspect-ratio: 1101/1080) and (min-aspect-ratio: 1094/1080) {
    .INV_card-spot {
        width: 117px;
    }
}
@media (max-aspect-ratio: 1094/1080) and (min-aspect-ratio: 1087/1080) {
    .INV_card-spot {
        width: 116px;
    }
}
@media (max-aspect-ratio: 1087/1080) and (min-aspect-ratio: 1080/1080) {
    .INV_card-spot {
        width: 115px;
    }
}
@media (max-aspect-ratio: 1080/1080) {
    .INV_card-spot {
        width: 115px;
    }
}


.INV_Scroll {
    width: 100%;
    overflow-y: auto;
    white-space: nowrap;
    /* padding-top: 75px; */
    overflow: visible;
}


/* Inventory card specific styles */
.inv-card {
    position: relative !important;
    width: 214px !important;
    height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transform-origin: center center !important;
    transform-style: preserve-3d !important;
    transition: transform 0.1s ease-out, box-shadow 0.2s ease !important;
}

/* Base glow effects for all rarities - always visible */
.inv-card.rarity-S {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.2) !important;
}

.inv-card.rarity-A {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 165, 0, 0.2) !important;
}

.inv-card.rarity-B {
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.4), 0 0 25px rgba(0, 105, 255, 0.2) !important;
}

.inv-card.rarity-C {
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.4), 0 0 20px rgba(34, 139, 34, 0.2) !important;
}

.inv-card.rarity-D {
    box-shadow: 0 0 8px rgba(128, 128, 128, 0.3) !important;
}

.inv-card.rarity-STAR {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 215, 0, 0.3) !important;
    background: 
    linear-gradient(135deg, #E5E4E2 0%, #F8F8FF 8%, #E6E6FA 16%, #F0F8FF 24%, #E5E4E2 32%, #F5F5DC 40%, #E6E6FA 48%, #F8F8FF 56%, #E5E4E2 64%, #F0F8FF 72%, #E6E6FA 80%, #F8F8FF 88%, #E5E4E2 100%) !important;
    background-size: 22px 22px, 18px 18px, 25px 25px, 15px 15px, 20px 20px, 100% 100% !important;
    border: 3px solid #C0C0C0 !important;
}

/* Enhanced glow effects on hover - more intense */
.inv-card.inv-card-hovering.rarity-S {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.9), 0 0 60px rgba(255, 0, 0, 0.5) !important;
}

.inv-card.inv-card-hovering.rarity-A {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 165, 0, 0.5) !important;
}

.inv-card.inv-card-hovering.rarity-B {
    box-shadow: 0 0 25px rgba(30, 144, 255, 0.8), 0 0 50px rgba(0, 105, 255, 0.4) !important;
}

.inv-card.inv-card-hovering.rarity-C {
    box-shadow: 0 0 25px rgba(50, 205, 50, 0.7), 0 0 45px rgba(34, 139, 34, 0.4) !important;
}

.inv-card.inv-card-hovering.rarity-D {
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.6) !important;
}

.inv-card.inv-card-hovering.rarity-STAR {
    box-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 80px rgba(255, 215, 0, 0.6) !important;
}

/* Ensure inventory spots can show overflow */
.INV_card-spot {
    overflow: visible !important;
    z-index: 1;
}

.INV_cardsCont, .INV_cardsCont2 {
    overflow: visible !important;
}

/* Rarity backgrounds for inventory cards */

/* D Tier - Enhanced basic texture with more prominent patterns */
.inv-card.rarity-D {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.15) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 55%, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(135deg, #A9A9A9 0%, #C0C0C0 25%, #B8B8B8 50%, #D3D3D3 75%, #A9A9A9 100%);
    background-size: 40px 40px, 25px 25px, 15px 15px, 100% 100%;
    border: 4px double #696969;
}
.inv-card.rarity-D::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.15) 3px, rgba(255,255,255,0.15) 6px),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(169,169,169,0.3) 8px, rgba(169,169,169,0.3) 12px),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,255,255,0.08) 45deg, transparent 90deg);
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* .inv-card.rarity-STAR::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.inv-card.rarity-STAR.card-hovering::after {
    opacity: 1;
}

/* C Tier - Enhanced dotted texture with more visible patterns */
.inv-card.rarity-C {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.25) 2.5px, transparent 2.5px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.2) 2px, transparent 2px),
        radial-gradient(circle at 50% 10%, rgba(144,238,144,0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 10% 60%, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(135deg, #32CD32 0%, #90EE90 20%, #3FE03F 40%, #98FB98 60%, #32CD32 80%, #228B22 100%);
    background-size: 35px 35px, 20px 20px, 30px 30px, 18px 18px, 100% 100%;
    border: 4px double #228B22;
}
.inv-card.rarity-C::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(45deg, rgba(50, 205, 50, 0.25) 0px, rgba(50, 205, 50, 0.25) 6px, transparent 6px, transparent 12px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 4px, rgba(144,238,144,0.2) 4px, rgba(144,238,144,0.2) 8px),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,255,255,0.15) 30deg, transparent 60deg, rgba(50,205,50,0.1) 90deg),
        repeating-radial-gradient(circle at 30% 70%, rgba(255,255,255,0.12) 1px, transparent 3px, rgba(50,205,50,0.08) 6px, transparent 10px);
    background-size: 16px 16px, 20px 20px, 12px 12px, 25px 25px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* B Tier - Enhanced crystalline texture */
.inv-card.rarity-B {
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.3) 3px, transparent 3px),
        radial-gradient(ellipse at 80% 20%, rgba(135,206,250,0.35) 2.5px, transparent 2.5px),
        radial-gradient(circle at 15% 85%, rgba(173,216,230,0.25) 2px, transparent 2px),
        radial-gradient(ellipse at 65% 65%, rgba(255,255,255,0.2) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #1E90FF 0%, #87CEEB 15%, #4169E1 30%, #B0E0E6 45%, #1E90FF 60%, #6495ED 75%, #4169E1 90%, #1E90FF 100%);
    background-size: 30px 30px, 18px 18px, 25px 25px, 12px 12px, 100% 100%;
    border: 4px double #104E8B;
}
.inv-card.rarity-B::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0px, transparent 4px, rgba(30, 144, 255, 0.25) 8px, transparent 12px),
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(135,206,250,0.2) 10px, transparent 16px),
        repeating-linear-gradient(-45deg, rgba(30,144,255,0.15) 0px, transparent 6px, rgba(255,255,255,0.1) 10px, transparent 14px),
        conic-gradient(from 45deg at 25% 25%, transparent 0deg, rgba(255,255,255,0.2) 45deg, transparent 90deg, rgba(135,206,250,0.15) 180deg, transparent 270deg);
    background-size: 20px 20px, 25px 25px, 22px 22px, 35px 35px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

/* A Tier - Enhanced ornate golden texture */
.inv-card.rarity-A {
    background: 
        radial-gradient(circle at 40% 30%, rgba(255,223,0,0.4) 4px, transparent 4px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.35) 2.5px, transparent 2.5px),
        radial-gradient(circle at 15% 85%, rgba(255,215,0,0.3) 3px, transparent 3px),
        radial-gradient(ellipse at 85% 15%, rgba(255,165,0,0.25) 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.2) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #FFD700 0%, #FFA500 12%, #FFFF99 25%, #FFD700 37%, #FF8C00 50%, #FFFF99 62%, #FFD700 75%, #FFA500 87%, #FFD700 100%);
    background-size: 28px 28px, 14px 14px, 22px 22px, 20px 20px, 16px 16px, 100% 100%;
    border: 4px double #B8860B;
}
.inv-card.rarity-A::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-conic-gradient(from 0deg at 30% 30%, rgba(255,215,0,0.3) 0deg, transparent 20deg, rgba(255,223,0,0.25) 40deg, transparent 60deg, rgba(255,255,255,0.2) 80deg, transparent 90deg),
        repeating-linear-gradient(135deg, rgba(255,215,0,0.25) 0px, transparent 6px, rgba(255,255,255,0.2) 10px, transparent 16px),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,215,0,0.2) 14px, transparent 20px),
        repeating-radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.15) 1px, transparent 4px, rgba(255,215,0,0.1) 8px, transparent 12px);
    background-size: 18px 18px, 22px 22px, 30px 30px, 26px 26px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* S Tier - Enhanced complex fiery texture */
.inv-card.rarity-S {
    background: 
        radial-gradient(ellipse at 25% 35%, rgba(255,69,0,0.5) 5px, transparent 5px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.4) 3px, transparent 3px),
        radial-gradient(ellipse at 60% 80%, rgba(255,20,147,0.35) 4px, transparent 4px),
        radial-gradient(circle at 10% 90%, rgba(255,165,0,0.4) 2.5px, transparent 2.5px),
        radial-gradient(ellipse at 85% 60%, rgba(255,0,0,0.3) 3px, transparent 3px),
        radial-gradient(circle at 40% 10%, rgba(255,255,255,0.25) 2px, transparent 2px),
        linear-gradient(135deg, #FF0000 0%, #FF4500 10%, #DC143C 20%, #FF0000 30%, #FF6347 40%, #B22222 50%, #FF0000 60%, #FF4500 70%, #DC143C 80%, #FF0000 90%, #8B0000 100%);
    background-size: 22px 22px, 11px 11px, 18px 18px, 16px 16px, 20px 20px, 14px 14px, 100% 100%;
    border: 4px double #8B0000;
}
.inv-card.rarity-S::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-conic-gradient(from 45deg at 40% 40%, rgba(255,0,0,0.35) 0deg, transparent 15deg, rgba(255,69,0,0.3) 30deg, transparent 45deg, rgba(255,255,255,0.2) 60deg, transparent 75deg, rgba(255,0,0,0.25) 90deg),
        repeating-linear-gradient(90deg, rgba(255,0,0,0.25) 0px, transparent 4px, rgba(255,69,0,0.2) 8px, transparent 12px),
        repeating-linear-gradient(45deg, transparent 0px, transparent 6px, rgba(255,255,255,0.15) 8px, transparent 12px),
        repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 1px, transparent 3px, rgba(255,0,0,0.15) 6px, transparent 10px, rgba(255,69,0,0.1) 14px, transparent 18px);
    background-size: 16px 16px, 18px 18px, 20px 20px, 26px 26px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation: fireTexturePulse 3s ease-in-out infinite;
}


.inv-card.rarity-STAR .card-image {
    z-index: 2 !important;
    opacity: 0.7;
    filter: brightness(1.5);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    border: 2px solid #696969;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    z-index: 2;
        border-radius: 8px;
    pointer-events: none;
    bottom: 0;
}

.inv-card.rarity-STAR::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg, 
            transparent,
            rgba(255, 0, 150, 0.2),
            rgba(0, 255, 255, 0.2),
            rgba(255, 255, 0, 0.2),
            rgba(255, 0, 150, 0.2),
            transparent),
        linear-gradient(45deg, 
            transparent 25%, 
            rgba(255, 255, 255, 0.4) 50%, 
            transparent 75%),
        repeating-conic-gradient(from 30deg at 25% 25%, rgba(255,0,150,0.15) 0deg, transparent 10deg, rgba(0,255,255,0.12) 20deg, transparent 30deg),
        repeating-radial-gradient(ellipse at 60% 60%, rgba(255,255,255,0.25) 1px, transparent 2px, rgba(255,255,0,0.15) 4px, transparent 8px),
        repeating-linear-gradient(60deg, transparent 0px, transparent 3px, rgba(255,0,150,0.1) 5px, transparent 8px);
    background-size: 100% 100%, 100% 100%, 14px 14px, 20px 20px, 16px 16px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    animation: starTexturePulse 6s ease-in-out infinite;
}

/* Add the animations if they're not already present */
@keyframes fireTexturePulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.95; }
}

@keyframes starTexturePulse {
    0%, 100% { opacity: 0.9; }
    33% { opacity: 1.0; }
    66% { opacity: 0.75; }
}


.INV_topcont {
    height: 10%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
    z-index: 5;
    width: var(--relative-width);
    max-width: 100%;
}

.INV_leaveOverlay {
    height: 70px;
    width: 70px;
    left: 20px;
    position: relative;
    margin-top: 1px;
    margin-left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.INV_leaveOverlay img {
    width: 70px;
    height: 70px;
    filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(2664%) hue-rotate(140deg) brightness(105%) contrast(101%);
    cursor: pointer;
}
.speedrun-mode .INV_leaveOverlay img {
    filter: brightness(0) saturate(100%) invert(91%) sepia(82%) saturate(1145%) hue-rotate(350deg) brightness(107%) contrast(89%); 
}

.INV_level_container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.INV_leveltxt {
    width: 254px;
    height: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    font-size: 50px;
    color: white;
    font-family: 'ClickHerFont';
}

.INV_arrow {
    font-size: 60px;
    color: var(--wb-color);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.2s ease;
}

.INV_arrow:hover {
    color: #ccc;
    transform: scale(1.1);
}

.INV_arrow_left {
    margin-bottom: 7px;
}

.INV_arrow_right {
    margin-bottom: 7px;
}

.INV_video {
    width: 100%;
    height: 100%;
    pointer-events: none;
    position: absolute;
}

.INV_bottomcont {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: var(--relative-width);
    max-width: 100%;
}
.INV_posecont {
    width: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-left: 20px;
    z-index: 4;
}

.INV_poseselectedcont {
    width: 200px;
    height: 140px;
    display: flex;
    flex-direction: row;
    align-items: center;
    bottom: 20px;
    position: relative;
    left: 20px;
}

.INV_posearrow {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
}

.INV_posearrow::before {
    content: '';
    width: 30px;
    height: 30px;
    border-right: 8px solid var(--bn-color);
    border-top: 8px solid var(--bn-color);
    transform: rotate(45deg);
    background: transparent;
}
.INV_poseslist {
    height: 100%;
    display: none;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 10px;
    position: relative;
    left: 23px;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.INV_poseslist.show {
    display: flex;
    opacity: 1;
}

.INV_poses2, .INV_poses3, .INV_poses4, .INV_poses5 {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    border: 8px solid ;
    border-color: var(--bn-color);
    position: absolute;
    bottom: 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    left: -130px;
    transform: scale(0.8);
    transition: all 0.2s ease;
}
/* Open animation - faster delays */
.INV_poses2.animate {
    left: 0px;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.02s; /* Reduced from 0.03s */
}

.INV_poses3.animate {
    left: 125px;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.04s; /* Reduced from 0.06s */
}

.INV_poses4.animate {
    left: 249px;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.06s; /* Reduced from 0.09s */
}

.INV_poses5.animate {
    left: 373px;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.08s; /* Reduced from 0.12s */
}

/* Reverse/Close animation - faster delays */
.INV_poses2.reverse {
    left: -130px;
    opacity: 0;
    transform: scale(0.8);
    transition-delay: 0.06s; /* Reduced from 0.09s */
}

.INV_poses3.reverse {
    left: -130px;
    opacity: 0;
    transform: scale(0.8);
    transition-delay: 0.04s; /* Reduced from 0.06s */
}

.INV_poses4.reverse {
    left: -130px;
    opacity: 0;
    transform: scale(0.8);
    transition-delay: 0.02s; /* Reduced from 0.03s */
}

.INV_poses5.reverse {
    left: -130px;
    opacity: 0;
    transform: scale(0.8);
    transition-delay: 0s; /* Stays the same */
}

/* Hover effect for CH_poseselected */
.INV_poseselected {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    border: 8px solid ;
    border-color: var(--bn-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}
.INV_poseselected:hover {
    transform: scale(1.1);
    border-color: var(--rp-color);
}

.INV_poseselected img {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.2s ease;
}

.INV_poseselected:hover img {
    transform: scale(1.05);
}

/* Individual pose hover effects */
.INV_poses2, .INV_poses3, .INV_poses4, .INV_poses5 {
    cursor: pointer;
}

.INV_poses2:hover, .INV_poses3:hover, .INV_poses4:hover, .INV_poses5:hover {
    transform: scale(1.15);
    border-color: var(--rp-color);
    z-index: 10;
}

.INV_poses2 img, .INV_poses3 img, .INV_poses4 img, .INV_poses5 img {
    width: 90%;
    height: 90%;
    transition: transform 0.2s ease;
}
.INV_poses2 img, .INV_poses3 img, .INV_poses4 img, .INV_poses5 img {
    width: 90%;
    height: 90%;
}
.INV_poses2.locked:hover, .INV_poses3.locked:hover, 
.INV_poses4.locked:hover, .INV_poses5.locked:hover {
    transform: scale(1); /* Keep original animation scale */
    border-color: #666666; /* Keep gray border */
}
/* Remove ALL hover styles for locked poses */
.INV_poses2.locked, .INV_poses3.locked, .INV_poses4.locked, .INV_poses5.locked {
    border-color: #666666 !important;
}


.speed-gauge-container {
    display: inline-block;
    margin: 20px;
    font-family: ClickHerFont, sans-serif;
    position: absolute;
    z-index: 1000;
    right: 65px;
    width: 90px;
    top: 125px;

}
.speed-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
    color: white;
}

.speed-gauge {
    position: relative;
    width: 40px;
    height: 220px;
    background: linear-gradient(to top, #e0e0e0 0%, #f0f0f0 100%);
    border: 2px solid white;
    border-radius: 20px;
    margin: 0 auto;
}

.speed-track {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 200px;
    background: linear-gradient(to top, #ff4444 0%, #ffff44 50%, #44ff44 100%);
    border-radius: 15px;
}

.speed-handle {
    position: absolute;
    width: 36px;
    height: 20px;
    background: #333;
    border: 2px solid #fff;
    border-radius: 10px;
    cursor: grab;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: background 0.2s ease;
}

.speed-handle:hover {
    background: #555;
}

.speed-handle:active {
    cursor: grabbing;
    background: white;
}

.speed-markers {
    position: absolute;
    right: -30px;
    top: 0;
    height: 100%;
}

.speed-marker {
    position: absolute;
    font-size: 20px;
    color: white;
}

/* Current speed display */
.current-speed {
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
    color: white;
}

/* Container for selectors above each character row */
.INV_selectorsCont {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    margin-bottom: 10px;
    position: relative;
}

/* Normal selector container - positioned on the left */
.Selected_charcont {
    width: 150px;
    overflow: hidden;
    position: relative;
    left: -227px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Shiny selector container - positioned on the right */
.Selected_charcont_shiny {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    right: -16px;
}

/* Hide all selected elements by default */
.Selected_chartext {
    text-align: center;
    font-size: 20px;
    color: white;
    font-family: 'ClickHerFont';
    margin-bottom: 5px;
    display: none;
}

.Selected_charmark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--cyan-color);
    display: none;
}


/* Show selected elements only for active character */
.Selected_charcont.active .Selected_chartext {
    display: flex;
}

.Selected_charcont.active .Selected_charmark {
    display: flex;
}

.Selected_char {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--cyan-color);
    transition: transform 0.2s ease, opacity 0.3s ease, filter 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* position: absolute; */
    top: 40px;
}

/* Locked character appearance */
.Selected_char.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Show selected elements only for active shiny character */
.Selected_charcont_shiny.active .Selected_chartext {
    display: flex;
}

.Selected_charcont_shiny.active .Selected_charmark {
    display: flex;
}

/* Shiny button styling - similar to normal selector */
.Selected_char_shinyButton {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--cyan-color);
    transition: transform 0.2s ease, opacity 0.3s ease, filter 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Locked shiny button appearance */
.Selected_char_shinyButton.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}


/* Points display */
.INV_points {
    position: relative;
    color: var(--bn-color);
    font-family: 'ClickHerFont';
    font-size: 29px;
    z-index: 10;
    top: 43px;
    right: -8px;
    width: 253px;
}

.speedrun-mode .INV_points {
    color: var(--rp-color);
}

.INV_points_value {
    font-weight: bold;
}

/* Girl upgrade container */
.girlUpgradeCont {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 208px;
    height: 100%;
    padding: 15px;
    background: rgba(0, 229, 255, 0.1);
    border: 2px solid var(--bn-color);
    border-radius: 12px;
    box-sizing: border-box;
    margin-top: 40px;
    left: 33px;
    position: relative;
}

.speedrun-mode .girlUpgradeCont {
    background: rgba(255, 0, 128, 0.1);
    border-color: var(--rp-color);
}

.girlUpgrade_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.girlUpgrade_name {
    color: var(--bn-color);
    font-family: 'ClickHerFont';
    font-size: 24px;
    margin-bottom: 5px;
}

.speedrun-mode .girlUpgrade_name {
    color: var(--rp-color);
}

.girlUpgrade_level {
    color: white;
    font-family: 'ClickHerFont';
    font-size: 18px;
}

.girlUpgrade_circles {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.upgrade_circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #555;
    border: 2px solid #777;
    transition: all 0.3s ease;
}

.upgrade_circle.active {
    background: linear-gradient(135deg, #32CD32, #90EE90);
    border-color: #228B22;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.6);
}

.girlUpgrade_button {
    width: 100%;
    padding: 6px 8px;
    background: var(--bn-color);
    color: black;
    font-family: 'ClickHerFont';
    font-size: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.speedrun-mode .girlUpgrade_button {
    background: var(--rp-color);
}

.girlUpgrade_button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--bn-color);
}

.speedrun-mode .girlUpgrade_button:hover {
    box-shadow: 0 0 15px var(--rp-color);
}

.girlUpgrade_button.flash_red {
    background: #FF0000 !important;
    animation: flashRed 0.1s ease-in-out 3;
}

@keyframes flashRed {
    0%, 100% { 
        background: #FF0000;
        transform: scale(1);
    }
    50% { 
        background: #CC0000;
        transform: scale(0.95);
    }
}

.girlUpgrade_button.max_level {
    color: var(--bn-color);
    background: var(--pink-color);
}

.speedrun-mode .girlUpgrade_button.max_level {
    color: var(--rp-color);
    background: var(--bn-color);
}

.girlUpgrade_button.max_level:hover {
    box-shadow: 0 0 20px var(--bn-color);
}

/* Inventory card boost display */
.inv-card .card-boost {
    position: absolute;
    bottom: 22%;
    left: 12%;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.8em;
    font-weight: 900;
    color: #fff;
    z-index: 5;
    transform: rotate(-15deg);
    letter-spacing: 2px;
}

.inv-card.rarity-STAR .card-boost {
    text-shadow: 
        0 0 20px rgba(229, 228, 226, 0.8),
        0 0 40px rgba(192, 192, 192, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4);
}

.inv-card.rarity-S .card-boost {
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6);
}

.inv-card.rarity-A .card-boost {
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 165, 0, 0.6);
}

.inv-card.rarity-B .card-boost {
    text-shadow: 
        0 0 12px rgba(30, 144, 255, 0.7),
        0 0 20px rgba(0, 105, 255, 0.5);
}

.inv-card.rarity-C .card-boost {
    text-shadow: 
        0 0 10px rgba(50, 205, 50, 0.6),
        0 0 15px rgba(34, 139, 34, 0.4);
}

.inv-card.rarity-D .card-boost {
    text-shadow: 
        0 0 8px rgba(128, 128, 128, 0.5),
        0 0 12px rgba(64, 64, 64, 0.3);
}

/* Watch overlay styles */
.watchOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.WATCH_video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    position: absolute;
}

.WATCH_leaveOverlay {
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 5001;
}
.WATCH_leaveOverlay img {
    width: 70px;
    height: 70px;
    filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(2664%) hue-rotate(140deg) brightness(105%) contrast(101%);
    cursor: pointer;
    z-index: 5001;
}
.WATCH_title {
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 5001;
}
