* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: rgb(18, 18, 18);
    color: rgb(222, 222, 222);
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.container.loaded {
    opacity: 1;
}

h1 {
    color: rgb(141, 181, 230);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.3rem;
}

h2 {
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgb(141, 181, 230);
    display: inline-block;
    padding-bottom: 5px;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-box,
.discord-box {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    padding: 30px;
    border: 1px rgba(200, 200, 200, 0.25) solid;
    position: relative;
}

.about-box h2,
.discord-box h2 {
    margin-bottom: 20px;
}

.about-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.about-item::before {
    content: "•";
    color: rgb(141, 181, 230);
    font-size: 1.8rem;
    margin-right: 15px;
    text-shadow: 0px 0px 8px rgb(141, 181, 230);
}

.about-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: rgb(255, 255, 255);
    text-shadow: 0 0 8px rgb(129, 177, 237);
}

.about-image {
    width: 32px;
    height: 32px;
    margin-left: 8px;
    vertical-align: middle;
}

.about-image-mrdestructoid {
    width: 48px;
    height: 32px;
}

.about-image-band {
    width: 80px;
    height: 26px;
}

.discord-info {
    text-align: center;
}

.discord-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: auto;
}

.discord-link {
    font-size: 1.4rem;
    display: block;
    width: fit-content;
    margin: 10px auto;
    background-color: rgba(141, 181, 230, 0.2);
    border: 1px rgb(141, 181, 230) solid;
    border-radius: 12px;
    max-width: auto;
    text-align: center;
    padding: 5px 10px 5px 10px;
}

.inventorypreview-link {
    font-size: 1.9rem;
    display: block;

    width: fit-content;
    margin: 10px auto;
    background-color: rgba(141, 181, 230, 0.2);
    border: 1px rgb(141, 181, 230) solid;
    border-radius: 12px;
    max-width: auto;
    text-align: center;
    padding: 5px 10px 5px 10px;
}

.casestats-header {
    text-align: center;
    margin-bottom: 30px;
}

.casestats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.profit-box {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    padding: 45px 25px 0px 25px;
    text-align: center;
    min-height: 500px;
}

.best-profit-box {
    box-shadow: 0 0px 15px rgb(132, 255, 132);
    background: linear-gradient(
        -135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 60%,
        rgb(132, 255, 132, 0.35) 100%
    );
}

.worst-profit-box {
    box-shadow: 0 0px 15px rgb(255, 132, 132);
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 60%,
        rgb(255, 132, 132, 0.35) 100%
    );
}

.profit-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.username {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.amount {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.item-image {
    max-width: 100%;
    max-height: 140px;
    margin: 20px 0;
}

.item-details {
    font-size: 1.4rem;
    margin: 5px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.stat-box {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px rgba(200, 200, 200, 0.25) solid;
}

.stat-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: rgb(141, 181, 230);
    font-weight: bold;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
}

.paint-1 {
    background-image: url("https://cdn.7tv.app/paint/01JHXJFACX42RV996VE9933TB8/layer/01JMMQ2PBAK6PK2XYX8NT1QYB4/2x.avif");
}

.paint-2 {
    background-image: url("https://cdn.7tv.app/paint/01JHXJH9C9MHN9FJMPNQB4YZ4N/layer/01JN9M5PDPQ7CVTXZBKA7PNTZ2/2x.avif");
}

.paint-3 {
    background-image: url("https://cdn.7tv.app/paint/01JHXJCX6WPJR5ETEYRDP6WVYH/layer/01JNEXKT5ZMT76KHKKX834K1YV/2x.avif");
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 60px;
}

.channel {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
    max-height: 100%;
    border: 1px rgba(137, 216, 255, 0.25) solid;
}

.channel:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 15px rgba(137, 216, 255, 0.7);
}

.channel img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.channel-name {
    font-weight: bold;
    color: rgb(141, 181, 230);
}

.follow-count {
    font-size: 0.9rem;
    color: rgb(221, 221, 221);
}

.streaming-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background-color: rgb(255, 80, 80);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.8);
}

.command-category {
    margin-bottom: 40px;
}

.command {
    background-color: rgb(28, 28, 28);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    border-left: 4px solid rgb(141, 181, 230);
}

.command-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.command-header:hover {
    background-color: rgb(38, 38, 38);
}

.command-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: rgb(141, 181, 230);
}

.command-expand {
    color: rgb(141, 181, 230);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.command.expanded .command-expand {
    transform: rotate(180deg);
}

.command-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.command.expanded .command-content {
    max-height: 500px;
}

.command-details {
    padding: 0 20px 15px 20px;
}

.command-description {
    color: rgb(221, 221, 221);
    margin-bottom: 15px;
}

.command-tags {
    margin-bottom: 10px;
}

.role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.role.streamer {
    background-color: rgba(255, 80, 80, 0.1);
    border: 1px rgb(255, 80, 80) solid;
    color: rgb(255, 80, 80);
}

.role.moderator {
    background-color: rgba(114, 255, 128, 0.1);
    border: 1px rgb(114, 255, 128) solid;
    color: rgb(114, 255, 128);
}

.command-examples {
    background-color: rgb(22, 22, 22);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.command-examples h4 {
    color: rgb(141, 181, 230);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.command-warning {
    background-color: rgb(22, 22, 0);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.command-warning h4 {
    color: rgb(255, 212, 58);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.command-information {
    background-color: rgb(0, 22, 22);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.command-information h4 {
    color: rgb(58, 163, 255);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.example {
    font-family: monospace;
    color: rgb(170, 170, 170);
    margin: 5px 0;
}

.top-users-box {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 0px 15px rgba(200, 200, 200, 0.3);
}

.top-users-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.top-user-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    width: fit-content;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-user-item:last-child {
    border-bottom: none;
}

.top-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.top-user-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: rgb(141, 181, 230);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.top-user-cases {
    font-size: 1.1rem;
    color: rgb(221, 221, 221);
    width: 150px;
    flex-shrink: 0;
    font-weight: bold;
}

.top-user-percent {
    font-size: 1rem;
    color: rgb(170, 170, 170);
    width: 75px;
    flex-shrink: 0;
}

.painted-username,
.painted-username-dynamic {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: bolder;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.name-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.user-badge {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.name-badge-wrapper .top-user-name {
    min-width: unset;
}

.user-badge-placeholder {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-block;
}

#top-users-container,
#top-users-global-container,
#worst-drystreak {
    text-align: left;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(18, 18, 18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-screen.hidden {
    display: none;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(141, 181, 230, 0.2);
    border-top-color: rgb(141, 181, 230);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 4px solid transparent;
    border-top-color: rgb(141, 181, 230);
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgb(141, 181, 230))
        drop-shadow(0 0 12px rgba(141, 181, 230, 0.5));
}

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

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: rgb(141, 181, 230);
}

.loading-text.center {
    text-align: center;
}

.loading-text.error {
    color: rgb(255, 132, 132);
}

@media screen and (max-width: 1024px) {
    .top-section {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .casestats-grid {
        grid-template-columns: 1fr;
    }

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

    .top-user-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .top-user-name,
    .top-user-cases,
    .top-user-percent {
        min-width: unset;
    }

    .name-badge-wrapper {
        width: auto;
        justify-content: center;
    }

    .user-badge {
        width: 16px;
        height: 16px;
    }

    .user-badge-placeholder {
        width: 0px;
        height: 0px;
    }
}
