:root {
    --zrk-bg-portal: #ebf5ff;
    --zrk-sheet-solid: #ffffff;
    --zrk-text-dark: #0f172a;
    --zrk-text-muted: #64748b;
    --zrk-accent-blue: #0066cc;
    --zrk-btn-green: #007a33;
    --zrk-badge-red: #cc0000;
    --zrk-radius-normal: 15px;
}

* {
    -moz-box-sizing: border-box;
         box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.gptslot {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    margin: 16px auto;
    margin-top: 0px;
    min-height: 250px;
    max-width: 300px;
}

.ad-label {
    color: rgb(171, 171, 171);
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    position: relative;
    padding: 5px 0px 2px 0px;
    font-size: 14px;
}

body.zrk-portal-runtime {
    background-color: var(--zrk-bg-portal);
    color: var(--zrk-text-dark);
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.zrk-header-container {
    background: var(--zrk-sheet-solid);
    border-bottom: 1px solid #dbeafe;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
}

.zrk-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    padding: 14px 24px;
}

.zrk-brand-txt {
    font-size: 24px;
    font-weight: 900;
    color: var(--zrk-accent-blue);
    cursor: pointer;
    margin-right: 40px;
}

.zrk-nav-item-dropdown {
    position: relative;
    cursor: pointer;
    padding: 10px 0;
}

.zrk-category-trigger-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--zrk-text-dark);
}

.zrk-dropdown-menu-box {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.zrk-nav-item-dropdown:hover .zrk-dropdown-menu-box {
    display: block;
}

.zrk-dropdown-item {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zrk-text-muted);
    text-decoration: none;
    display: block;
}

.zrk-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--zrk-accent-blue);
}

.zrk-search-wrapper {
    margin-left: auto;
    position: relative;
    width: 260px;
}

.zrk-search-field {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    outline: none;
}

.zrk-search-trigger {
    position: absolute;
    left: 12px;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.zrk-main-layout {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 40px;
}

.zrk-section-block {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
}

.zrk-section-badge-row {
    margin-bottom: 6px;
}

.zrk-badge-hot {
    background: var(--zrk-accent-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
}

.zrk-section-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    margin-bottom: 16px;
}

.zrk-section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.zrk-view-all-link {
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
}

.zrk-grid-matrix {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    width: 100%;
}

.zrk-game-card {
    background: var(--zrk-sheet-solid);
    border-radius: var(--zrk-radius-normal);
    padding: 8px;
    border: 1px solid #d8dee5;
    box-shadow: 0px 5px 0 #d8dee5;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    position: relative;
    cursor: pointer;
}

.zrk-image-housing {
    position: relative;
    width: 100%;
    aspect-ratio: 1.3;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.zrk-image-housing img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zrk-badge-new-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--zrk-badge-red);
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
}

.zrk-meta-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.zrk-meta-sub-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--zrk-text-muted);
    margin-bottom: 8px;
    overflow: hidden;
}

.zrk-meta-sub-row span {
    white-space: nowrap;
    overflow: hidden;
}

.zrk-star-span {
    font-weight: 700;
}

.zrk-cta-playnow {
    background: var(--zrk-btn-green);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 7px 0;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
}

.zrk-simple-card {
    background: var(--zrk-sheet-solid);
    border-radius: var(--zrk-radius-normal);
    padding: 10px;
    cursor: pointer;
    box-shadow: 0px 5px 0 #d8dee5;
}

.zrk-simple-card .zrk-image-housing {
    aspect-ratio: 1;
}

.zrk-simple-card .zrk-meta-title {
    margin: 0;
}

.zrk-grow-card {
    background: var(--zrk-sheet-solid);
    border-radius: var(--zrk-radius-normal);
    padding: 10px;
    cursor: pointer;
}

.zrk-grow-info-line {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    font-size: 11px;
}

.zrk-grow-views {
    color: var(--zrk-badge-red);
    font-weight: 700;
}

.zrk-matrix-board {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
}

.zrk-matrix-board-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
}

.zrk-board-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zrk-color-box {
    border-radius: 12px;
    padding: 14px;
}

.zrk-box-tint-yellow {
    background: #ffeaa7;
}

.zrk-box-tint-green {
    background: #c2f0c2;
}

.zrk-box-tint-blue {
    background: #d2e9ff;
}

.zrk-box-tint-gray {
    background: #f1f5f9;
}

.zrk-box-title {
    font-size: 15px;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.zrk-board-right-stack {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 16px;
}

.zrk-board-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.zrk-sub-matrix {
    display: grid;
    gap: 10px;
    width: 100%;
}

.zrk-m-row-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.zrk-m-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zrk-m-row-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.zrk-m-row-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.zrk-arrow-controls {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    gap: 8px;
}

.zrk-arrow-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
}

.zrk-arrow-action:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zrk-ranked-wrapper-board {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 30px 24px;
}

.zrk-ranked-main-headline {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
}

.zrk-rank-avatar-deck {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px 14px;
    width: 100%;
}

.zrk-avatar-node {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    cursor: pointer;
}

.zrk-circle-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
    border: 4px solid #ffffff;
    -moz-box-sizing: border-box;
         box-sizing: border-box;
}

.zrk-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zrk-avatar-title {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--zrk-text-dark);
    padding: 3px 10px;
    background: #fff;
    border-radius: 20px;
}

.zrk-global-footer {
    background: #fff;
    padding: 30px 24px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.zrk-footer-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 700;
}

.zrk-footer-links a {
    color: var(--zrk-text-muted);
    text-decoration: none;
    cursor: pointer;
}

.zrk-footer-copyright {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 900px) {
    .zrk-header-content {
        padding: 14px 16px;
    }

    .zrk-brand-txt {
        margin-right: 20px;
    }

    .zrk-search-wrapper {
        width: 200px;
    }

    .zrk-main-layout {
        padding: 16px;
        gap: 24px;
    }

    .zrk-grid-matrix {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .zrk-m-row-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zrk-m-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zrk-m-row-7 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .zrk-m-row-8,
    .zrk-rank-avatar-deck {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .zrk-board-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .zrk-header-content {
        -webkit-flex-wrap: wrap;
                flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }

    .zrk-search-wrapper {
        width: 100%;
        margin-left: 0;
        -webkit-box-ordinal-group: 4;
        -webkit-order: 3;
           -moz-box-ordinal-group: 4;
                order: 3;
    }

    .zrk-grid-matrix {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zrk-image-housing {
        height: 120px;
        aspect-ratio: auto;
    }

    .zrk-simple-card .zrk-image-housing {
        height: 140px;
        aspect-ratio: auto;
    }

    .zrk-circle-frame {
        height: 116px;
        aspect-ratio: auto;
    }

    .zrk-m-row-5,
    .zrk-m-row-3,
    .zrk-m-row-7,
    .zrk-m-row-8 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zrk-board-row-top {
        grid-template-columns: 1fr;
    }

    .zrk-rank-avatar-deck {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .zrk-section-title,
    .zrk-matrix-board-title,
    .zrk-ranked-main-headline {
        font-size: 18px;
    }

    .zrk-footer-links {
        -webkit-flex-wrap: wrap;
                flex-wrap: wrap;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
           -moz-box-pack: center;
                justify-content: center;
        gap: 12px;
    }
}
#zrkEveryoneGrid .zrk-badge-new-tag {
    background: var(--zrk-btn-green);
}


@media (max-width: 480px) {

    #zrkPopularGrid .zrk-game-card:nth-child(n+16),
    #zrkTopRankedGrid .zrk-avatar-node:nth-child(n+22),
    #zrkFavoritesGrid .zrk-simple-card:nth-child(n+19) {
        display: none;
    }
}
