:root {
    --kb-purple: #6c3df4;
    --kb-blue: #2584ff;
    --kb-pink: #ff5f82;
    --kb-yellow: #ffc928;
    --kb-ink: #172554;
    --kb-muted: #667085;
    --kb-line: #e6e8f3;
    --kb-shadow: 0 14px 36px rgba(55, 43, 120, .12)
}

* {
    box-sizing: border-box
}

.kb-page {
    width: min(1420px, calc(100% - 36px));
    margin: auto;
    padding: 28px 0 55px;
    color: var(--kb-ink);
    font-family: Nunito, "Segoe UI", Arial, sans-serif
}

.kb-page a {
    text-decoration: none
}

.kb-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    min-height: 405px;
    padding: 48px;
    border-radius: 34px;
    background: linear-gradient(120deg, #eee7ff, #e5f8ff 55%, #c7f1ff);
    box-shadow: var(--kb-shadow)
}

.kb-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(45px, 6vw, 78px);
    line-height: .95;
    font-weight: 1000;
    letter-spacing: -3px
}

.kb-hero h1 span {
    color: var(--kb-purple)
}

.kb-hero h1 strong {
    color: var(--kb-pink)
}

.kb-hero p,
.kb-page-head p,
.kb-detail-copy p,
.kb-app-detail p {
    max-width: 680px;
    color: #5e6988;
    font-size: 17px;
    line-height: 1.65
}

.kb-pill,
.kb-eyebrow {
    display: inline-block;
    color: var(--kb-purple);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .7px;
    text-transform: uppercase
}

.kb-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: white;
    box-shadow: 0 6px 17px rgba(63, 44, 137, .1)
}

.kb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px
}

.kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font: 900 14px Nunito, "Segoe UI", sans-serif;
    cursor: pointer;
    transition: .2s
}

.kb-btn:hover {
    transform: translateY(-2px)
}

.kb-btn-purple {
    color: white !important;
    background: linear-gradient(135deg, #7b4af7, #5526cc);
    box-shadow: 0 9px 20px rgba(90, 46, 210, .25)
}

.kb-btn-yellow {
    color: #392900 !important;
    background: linear-gradient(#ffdf58, #ffbd16);
    box-shadow: 0 8px 18px rgba(209, 135, 0, .2)
}

.kb-btn-white {
    color: var(--kb-ink) !important;
    background: white;
    box-shadow: 0 8px 20px rgba(50, 43, 100, .12)
}

.kb-hero-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 310px
}

.kb-hero-art>span {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    /* border: 13px solid rgba(255, 255, 255, .75); */
    border-radius: 50%;
    font-size: 95px;
    /* background: linear-gradient(145deg, #7345ed, #299ff7); */
    /* box-shadow: 0 25px 45px rgba(54, 47, 147, .28); */
    animation: kbFloat 4s ease-in-out infinite
}

.kb-orbit {
    position: absolute;
    width: 295px;
    height: 295px;
    border: 2px dashed rgba(108, 61, 244, .25);
    border-radius: 50%;
    animation: kbSpin 18s linear infinite
}

.kb-hero-art b {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 61px;
    height: 61px;
    border: 6px solid rgba(255, 255, 255, .85);
    border-radius: 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 12px 24px rgba(39, 34, 100, .2)
}

.kb-hero-art b:nth-of-type(1) {
    left: 8%;
    top: 12%;
    background: #ff5f82;
    transform: rotate(-10deg)
}

.kb-hero-art b:nth-of-type(2) {
    right: 10%;
    top: 8%;
    background: #ffbd16;
    transform: rotate(9deg)
}

.kb-hero-art b:nth-of-type(3) {
    left: 12%;
    bottom: 9%;
    background: #65c83b
}

.kb-hero-art b:nth-of-type(4) {
    right: 8%;
    bottom: 13%;
    background: #18bca8
}

@keyframes kbFloat {
    50% {
        transform: translateY(-11px) rotate(2deg)
    }
}

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

.kb-hero>.row,
.kb-detail-hero>.row,
.kb-app-detail>.row {
    margin-left: 0;
    margin-right: 0
}

.kb-detail-hero,
.kb-app-detail {
    display: block
}

.kb-game-card {
    height: 100%;
    flex-basis: auto !important
}

.kb-screen-img {
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 6px solid white;
    border-radius: 18px;
    box-shadow: 0 9px 24px rgba(50, 44, 100, .12)
}

.kb-section {
    margin-top: 48px
}

.kb-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px
}

.kb-heading h2,
.kb-page-head h1 {
    margin: 5px 0 0;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 1000;
    letter-spacing: -.7px
}

.kb-view-all {
    color: var(--kb-purple);
    font-weight: 1000
}

.kb-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px
}

.kb-category-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px;
    border: 1px solid var(--kb-line);
    border-radius: 18px;
    color: var(--kb-ink);
    background: white;
    box-shadow: 0 8px 20px rgba(50, 44, 100, .08);
    font-weight: 1000;
    transition: .2s
}

.kb-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kb-shadow)
}

.kb-category-card span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: #f0ebff;
    font-size: 24px
}

.kb-category-card img {
    width: 30px;
    height: 30px;
    object-fit: contain
}

.kb-game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

.kb-game-card {
    overflow: hidden;
    border: 1px solid var(--kb-line);
    border-radius: 23px;
    background: white;
    box-shadow: 0 10px 27px rgba(55, 48, 117, .09);
    transition: .23s
}

.kb-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(55, 48, 117, .16)
}

.kb-game-picture {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e5f7ff, #f1eaff)
}

.kb-game-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s
}

.kb-game-card:hover .kb-game-picture img {
    transform: scale(1.055)
}

.kb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 58px
}

.kb-age,
.kb-new {
    position: absolute;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    font-size: 10px;
    font-weight: 1000
}

.kb-age {
    left: 10px;
    background: var(--kb-purple)
}

.kb-new {
    right: 10px;
    background: var(--kb-pink)
}

.kb-game-info {
    padding: 15px
}

.kb-game-info h3 {
    margin: 0
}

.kb-game-info h3 a {
    color: var(--kb-ink);
    font-size: 18px;
    font-weight: 1000
}

.kb-game-info p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 7px 0 13px;
    color: var(--kb-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

.kb-game-actions {
    display: flex;
    gap: 8px
}

.kb-game-actions .kb-btn {
    flex: 1;
    min-height: 40px
}

.kb-app-mini {
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--kb-line);
    border-radius: 12px;
    color: var(--kb-blue);
    font-size: 12px;
    font-weight: 1000
}

.kb-app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px
}

.kb-app-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 9px 24px rgba(50, 44, 100, .08)
}

.kb-app-card>img,
.kb-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover
}

.kb-app-icon {
    display: grid;
    place-items: center;
    background: #f0ebff;
    font-size: 36px
}

.kb-app-card h3,
.kb-app-card p {
    margin: 0
}

.kb-app-card h3 a {
    color: var(--kb-ink);
    font-weight: 1000
}

.kb-app-card p {
    margin-top: 5px;
    color: var(--kb-muted);
    font-size: 13px
}

.kb-page-head,
.kb-detail-hero,
.kb-app-detail {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    background: linear-gradient(120deg, #f0eaff, #e8f8ff);
    box-shadow: var(--kb-shadow)
}

.kb-sort {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0
}

.kb-sort label {
    font-size: 13px;
    font-weight: 900
}

.kb-sort select {
    height: 43px;
    margin-left: 7px;
    padding: 0 34px 0 13px;
    border: 2px solid #ded9f7;
    border-radius: 13px;
    color: var(--kb-ink);
    background: white;
    font-weight: 800
}

.kb-pagination {
    display: flex;
    justify-content: center;
    margin-top: 35px
}

.kb-pagination .pagination {
    display: flex;
    gap: 6px;
    padding: 0;
    list-style: none
}

.kb-pagination li a,
.kb-pagination li span {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--kb-line);
    border-radius: 11px;
    color: var(--kb-purple);
    background: white
}

.kb-pagination .active a {
    color: white;
    background: var(--kb-purple)
}

.kb-subcategories {
    display: flex;
    gap: 9px;
    margin: 19px 0;
    overflow: auto
}

.kb-subcategories a,
.kb-chips a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--kb-purple);
    background: #eee9ff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap
}

.kb-detail-hero,
.kb-app-detail {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 34px
}

.kb-detail-image {
    overflow: hidden;
    display: grid;
    place-items: center;
    aspect-ratio: 16/10;
    border: 9px solid white;
    border-radius: 25px;
    background: #e9e4ff;
    box-shadow: 0 14px 30px rgba(49, 43, 112, .15)
}

.kb-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.kb-detail-image span {
    font-size: 80px
}

.kb-detail-copy h1,
.kb-app-detail h1 {
    margin: 13px 0 8px;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1;
    font-weight: 1000
}

.kb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.kb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0
}

.kb-stats span {
    padding: 8px 11px;
    border-radius: 10px;
    color: #4e5d7d;
    background: white;
    font-size: 12px;
    font-weight: 900
}

.kb-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 24px
}

.kb-content-card,
.kb-parent-card {
    padding: 24px;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 8px 22px rgba(50, 44, 100, .07)
}

.kb-content-card h2 {
    margin: 8px 0 11px;
    font-size: 24px
}

.kb-content-card div {
    color: #596683;
    line-height: 1.75
}

.kb-parent-card {
    text-align: center
}

.kb-parent-card>span {
    font-size: 45px
}

.kb-parent-card h3 {
    margin: 8px
}

.kb-parent-card p {
    color: var(--kb-muted);
    font-size: 13px;
    line-height: 1.55
}

.kb-screenshots {
    display: flex;
    gap: 14px;
    overflow: auto
}

.kb-screenshots img {
    width: 330px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 6px solid white;
    border-radius: 18px;
    box-shadow: 0 9px 24px rgba(50, 44, 100, .12)
}

.kb-play-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px
}

.kb-play-head h1 {
    margin: 4px 0
}

.kb-play-head>div:last-child {
    display: flex;
    gap: 8px
}

.kb-player {
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--ratio, 16/9);
    border: 10px solid white;
    border-radius: 25px;
    background: #10152b;
    box-shadow: 0 18px 45px rgba(33, 26, 94, .22)
}

.kb-player iframe {
    width: 100%;
    height: 100%;
    border: 0
}

.kb-play-note {
    text-align: center;
    color: var(--kb-muted)
}

.kb-install-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 22px;
    border-radius: 20px;
    background: linear-gradient(120deg, #6c3df4, #2584ff);
    color: white
}

.kb-install-box strong,
.kb-install-box span {
    display: block
}

.kb-install-box span {
    margin-top: 4px;
    color: #e8edff;
    font-size: 13px
}

.kb-app-large-icon {
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    border: 10px solid white;
    border-radius: 45px;
    background: #eee8ff;
    box-shadow: 0 17px 35px rgba(50, 44, 100, .17);
    font-size: 90px
}

.kb-app-large-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px
}

@media(max-width:1100px) {
    .kb-category-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .kb-game-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:850px) {

    .kb-hero,
    .kb-detail-hero,
    .kb-app-detail {
        grid-template-columns: 1fr
    }

    .kb-hero {
        text-align: center;
        padding: 35px 23px
    }

    .kb-hero p {
        margin-inline: auto
    }

    .kb-hero-actions {
        justify-content: center
    }

    .kb-content-grid {
        grid-template-columns: 1fr
    }

    .kb-game-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .kb-app-grid {
        grid-template-columns: 1fr
    }

    .kb-app-large-icon {
        width: 170px;
        height: 170px
    }
}

@media(max-width:560px) {
    .kb-page {
        width: calc(100% - 22px);
        padding-top: 14px
    }

    .kb-hero {
        border-radius: 24px
    }

    .kb-hero-art {
        height: 250px
    }

    .kb-hero-art>span {
        width: 160px;
        height: 160px;
        font-size: 70px
    }

    .kb-orbit {
        width: 225px;
        height: 225px
    }

    .kb-category-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .kb-category-card {
        padding: 10px;
        font-size: 13px
    }

    .kb-game-grid {
        display: flex;
        overflow: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory
    }

    .kb-game-card {
        flex: 0 0 82%;
        scroll-snap-align: start
    }

    .kb-app-card {
        grid-template-columns: auto 1fr
    }

    .kb-app-card>.kb-btn {
        grid-column: 1/-1
    }

    .kb-play-head,
    .kb-install-box {
        align-items: stretch;
        flex-direction: column
    }

    .kb-play-head>div:last-child {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .kb-player {
        border-width: 5px;
        border-radius: 16px
    }

    .kb-detail-hero,
    .kb-app-detail,
    .kb-page-head {
        padding: 20px
    }

    .kb-app-large-icon {
        width: 135px;
        height: 135px;
        border-radius: 30px
    }

    .kb-app-large-icon img {
        border-radius: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important
    }
}
/* Footer bottom space */
.kb-footer {
    min-height: 210px;
    padding-bottom: 70px;
}

/* Space for fixed mobile navigation */
@media (max-width: 850px) {
    .kb-footer {
        padding-bottom: calc(
            115px + env(safe-area-inset-bottom)
        );
    }
}
body {
    min-height: 100vh;
}

#main {
    flex: 1 0 auto;
}

.kb-footer {
    flex-shrink: 0;
}