:root {
    --q-ink: #10162a;
    --q-navy: #0b1020;
    --q-navy-soft: #151b33;
    --q-purple: #7c3aed;
    --q-purple-dark: #5b21b6;
    --q-purple-soft: #f0e9ff;
    --q-cyan: #18bcd1;
    --q-green: #22b98b;
    --q-orange: #f59e42;
    --q-page: #f5f7fb;
    --q-card: #ffffff;
    --q-muted: #7a8398;
    --q-border: #e5e9f2;
    --q-shadow: 0 10px 30px rgba(28, 39, 73, .07);
    --q-radius: 15px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--q-page);
    color: var(--q-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-width: 320px;
}

button,
input,
select {
    font: inherit;
}

.skip-link {
    background: #fff;
    border-radius: 8px;
    color: var(--q-ink);
    font-weight: 800;
    left: 1rem;
    padding: .7rem 1rem;
    position: fixed;
    top: -100px;
    z-index: 2000;
}

.skip-link:focus {
    top: 1rem;
}

.portal-header {
    background:
        radial-gradient(circle at 82% -30%, rgba(124, 58, 237, .2), transparent 28%),
        var(--q-navy);
    box-shadow: 0 8px 26px rgba(6, 10, 28, .16);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.portal-navbar {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 245px 1fr auto;
    height: 70px;
    margin: 0 auto;
    max-width: 1540px;
    padding-left: 28px;
    padding-right: 28px;
}

.q-brand {
    align-items: center;
    display: inline-flex;
    min-width: 0;
    text-decoration: none;
}

.q-brand-logo {
    display: block;
    height: 62px;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.portal-nav-links {
    align-items: stretch;
    display: flex;
    height: 70px;
    justify-content: center;
}

.portal-nav-links a {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #d2d7e4;
    display: flex;
    font-size: .78rem;
    font-weight: 750;
    gap: .44rem;
    padding: 0 1.15rem;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.portal-nav-links a span {
    color: #c7a7ff;
    font-size: 1rem;
}

.portal-nav-links a:hover,
.portal-nav-links a.active {
    border-color: #9c65ff;
    color: #a970ff;
}

.portal-actions {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.portal-search {
    align-items: center;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 100px;
    display: flex;
    height: 39px;
    padding: 0 .8rem 0 1rem;
    width: 210px;
    margin: 0;
}

.portal-search input {
    background: transparent;
    border: 0;
    color: white;
    font-size: .72rem;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.portal-search input::placeholder {
    color: #a6aec0;
    opacity: 1;
}

.portal-search button {
    background: transparent;
    border: 0;
    color: #e4e8f1;
    cursor: pointer;
    font-size: 1.05rem;
    padding: .2rem;
}

.icon-button,
.mobile-menu-button {
    background: transparent;
    border: 0;
    color: white;
}

.icon-button {
    font-size: 1rem;
    height: 38px;
    width: 38px;
}

.profile-preview {
    align-items: center;
    background: linear-gradient(145deg, #b274ff, #7136db);
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.profile-preview b {
    font-size: .72rem;
}

.mobile-menu-button,
.mobile-navigation {
    display: none;
}

.portal-page {
    min-height: 70vh;
    padding: 28px 0 70px;
}

.portal-container {
    margin: 0 auto;
    max-width: 1540px;
    padding-left: 28px;
    padding-right: 28px;
}

.preview-notice {
    align-items: center;
    background: #fff;
    border: 1px solid var(--q-border);
    border-radius: 10px;
    color: var(--q-muted);
    display: flex;
    font-size: .69rem;
    gap: .6rem;
    margin-bottom: 14px;
    padding: .55rem .72rem;
}

.preview-notice span {
    background: var(--q-purple-soft);
    border-radius: 100px;
    color: var(--q-purple);
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: .28rem .48rem;
    text-transform: uppercase;
}

.portal-shell {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 245px minmax(0, 1fr);
}

.left-sidebar {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 94px;
}

.side-panel {
    background: var(--q-card);
    border: 1px solid var(--q-border);
    border-radius: var(--q-radius);
    box-shadow: var(--q-shadow);
    padding: 14px;
}

.side-panel-title {
    color: var(--q-ink);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .035em;
    padding: .2rem .2rem .7rem;
    text-transform: uppercase;
}

.category-panel nav {
    display: grid;
    gap: 2px;
}

.category-panel a {
    align-items: center;
    border-radius: 9px;
    color: #4c566c;
    display: flex;
    font-size: .72rem;
    font-weight: 700;
    gap: .65rem;
    min-height: 36px;
    padding: .48rem .62rem;
    text-decoration: none;
}

.category-panel a:hover,
.category-panel a.active {
    background: var(--q-purple-soft);
    color: var(--q-purple);
}

.category-panel a span {
    align-items: center;
    display: inline-flex;
    font-size: .82rem;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.category-panel a b {
    flex: 1;
    font-weight: 750;
}

.category-panel a small {
    align-items: center;
    background: rgba(124, 58, 237, .08);
    border-radius: 20px;
    color: var(--q-purple);
    display: inline-flex;
    font-size: .52rem;
    font-weight: 850;
    min-height: 20px;
    padding: 0 .42rem;
}

.mini-game-list {
    display: grid;
    gap: .72rem;
    padding: .2rem;
}

.mini-game-list article {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: 45px 1fr;
}

.mini-art,
.rank-art {
    align-items: center;
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mini-art {
    height: 45px;
    width: 45px;
}

.mini-art::after,
.rank-art::after {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    content: "";
    height: 35px;
    position: absolute;
    right: -15px;
    top: -15px;
    width: 35px;
}

.mini-art span,
.rank-art span {
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 0 4px 8px rgba(0, 0, 0, .18);
}

.mini-art img,
.rank-art img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mini-game-list strong,
.mini-game-list a,
.mini-game-list small {
    display: block;
}

.mini-game-list strong,
.mini-game-list a {
    color: var(--q-ink);
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
}

.mini-game-list small {
    color: var(--q-muted);
    font-size: .58rem;
    margin-top: .2rem;
}

.recently-panel > button,
.popular-panel > button,
.side-panel-action {
    background: var(--q-purple-soft);
    border: 0;
    border-radius: 8px;
    color: var(--q-purple);
    display: flex;
    font-size: .65rem;
    font-weight: 850;
    justify-content: center;
    line-height: 34px;
    margin-top: .85rem;
    min-height: 34px;
    opacity: 1;
    text-decoration: none;
    width: 100%;
}

.portal-main {
    min-width: 0;
}

.portal-top-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 275px;
}

.featured-game {
    background:
        radial-gradient(circle at 72% 42%, rgba(235, 74, 255, .62), transparent 24%),
        radial-gradient(circle at 48% 10%, rgba(130, 60, 255, .42), transparent 35%),
        linear-gradient(145deg, #120835, #251063 58%, #4b126d);
    border-radius: var(--q-radius);
    box-shadow: 0 18px 36px rgba(42, 22, 99, .22);
    color: white;
    height: 375px;
    overflow: hidden;
    position: relative;
}

.featured-game::before {
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to right, transparent, black);
    position: absolute;
}

.featured-copy {
    left: 8%;
    max-width: 42%;
    position: absolute;
    top: 18%;
    z-index: 4;
}

.featured-kicker {
    align-items: center;
    display: flex;
    font-size: .66rem;
    font-weight: 850;
    gap: .45rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.featured-kicker b {
    color: #facc15;
    font-size: 1rem;
}

.featured-copy h1 {
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    font-weight: 950;
    letter-spacing: -.045em;
    margin: .85rem 0 .65rem;
    text-transform: uppercase;
}

.featured-copy p {
    color: #d7d3e5;
    font-size: .75rem;
    line-height: 1.7;
    margin-bottom: 1.45rem;
    max-width: 340px;
}

.featured-copy button,
.featured-play-link {
    align-items: center;
    background: linear-gradient(135deg, #8752f2, #5c2ce4);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(66, 23, 175, .38);
    color: white;
    display: inline-flex;
    font-size: .68rem;
    font-weight: 900;
    min-height: 42px;
    opacity: 1;
    padding: 0 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
}

.featured-copy button span,
.featured-play-link span {
    margin-left: .35rem;
}

.featured-world {
    bottom: 0;
    left: 41%;
    position: absolute;
    right: 0;
    top: 0;
}

.world-orb {
    background: linear-gradient(180deg, #f64fcf, #8a2ad7);
    border-radius: 50%;
    box-shadow: 0 0 45px rgba(246, 79, 207, .45);
    height: 170px;
    position: absolute;
    right: 15%;
    top: 21%;
    width: 170px;
}

.world-grid {
    background: linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, .18) 50%, transparent 51%);
    bottom: 0;
    height: 105px;
    left: 0;
    opacity: .22;
    position: absolute;
    right: 0;
    transform: perspective(220px) rotateX(62deg);
}

.platform {
    background: linear-gradient(180deg, #243e58 0 28%, #14243e 28% 100%);
    border-top: 8px solid #35c56f;
    border-radius: 6px 6px 2px 2px;
    bottom: 13%;
    box-shadow: inset 0 -9px 0 rgba(0, 0, 0, .15);
    height: 54px;
    position: absolute;
}

.platform-one {
    left: 2%;
    width: 48%;
}

.platform-two {
    right: 3%;
    width: 31%;
}

.energy-ring {
    align-items: center;
    background: #ffb51c;
    border: 5px solid #ffdf62;
    border-radius: 50%;
    box-shadow: 0 4px 0 #d4750b, 0 0 20px rgba(255, 190, 28, .35);
    color: transparent;
    display: flex;
    font-size: 0;
    height: 38px;
    justify-content: center;
    position: absolute;
    width: 38px;
}

.energy-ring::after {
    border: 3px solid #f4910b;
    border-radius: 50%;
    content: "";
    height: 17px;
    width: 17px;
}

.ring-one {
    right: 23%;
    top: 42%;
}

.ring-two {
    right: 10%;
    top: 55%;
    transform: scale(.72);
}

.q-runner {
    height: 175px;
    left: 24%;
    position: absolute;
    top: 28%;
    transform: rotate(-8deg);
    width: 170px;
    z-index: 3;
}

.runner-logo-head {
    filter: drop-shadow(0 8px 8px rgba(10, 8, 36, .22));
    height: auto;
    left: 29px;
    position: absolute;
    top: -20px;
    transform: rotate(6deg);
    width: 116px;
    z-index: 5;
}

.runner-body {
    background: linear-gradient(145deg, #7c3aed, #312e81);
    border: 6px solid #10162a;
    border-radius: 44% 44% 25% 25%;
    height: 82px;
    left: 54px;
    position: absolute;
    top: 69px;
    transform: rotate(-6deg);
    width: 70px;
    z-index: 2;
}

.runner-arm {
    background: #6d28d9;
    border: 5px solid #10162a;
    border-radius: 20px;
    height: 29px;
    left: 113px;
    position: absolute;
    top: 87px;
    transform: rotate(25deg);
    width: 54px;
}

.runner-leg {
    background: #4338ca;
    border: 5px solid #10162a;
    border-radius: 18px;
    height: 32px;
    position: absolute;
    top: 139px;
    width: 66px;
}

.runner-leg-one {
    left: 17px;
    transform: rotate(-24deg);
}

.runner-leg-two {
    left: 91px;
    transform: rotate(22deg);
}

.featured-arrow {
    align-items: center;
    background: rgba(255, 255, 255, .88);
    border: 0;
    border-radius: 50%;
    color: #4c3d70;
    display: flex;
    font-size: 1.6rem;
    height: 40px;
    justify-content: center;
    opacity: 1;
    position: absolute;
    top: calc(50% - 20px);
    width: 40px;
    z-index: 5;
}

.featured-arrow-left {
    left: -17px;
}

.featured-arrow-right {
    right: -17px;
}

.featured-dots {
    bottom: 17px;
    display: flex;
    gap: 7px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 5;
}

.featured-dots span,
.featured-dots b {
    background: rgba(255, 255, 255, .38);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.featured-dots b {
    background: white;
}

.popular-panel {
    min-height: 375px;
}

.popular-panel ol {
    display: grid;
    gap: .64rem;
    list-style: none;
    margin: 0;
    padding: 0 .15rem;
}

.popular-panel li {
    align-items: center;
    display: grid;
    gap: .58rem;
    grid-template-columns: 18px 42px 1fr;
    min-width: 0;
}

.popular-game-link {
    align-items: center;
    color: inherit;
    display: grid;
    gap: .58rem;
    grid-column: 1 / -1;
    grid-template-columns: 18px 42px 1fr;
    min-width: 0;
    text-decoration: none;
}

.rank {
    color: #252c3f;
    font-size: 1rem;
    font-weight: 950;
}

.rank-art {
    height: 42px;
    width: 42px;
}

.popular-panel li strong,
.popular-panel li small {
    display: block;
}

.popular-panel li strong {
    font-size: .66rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-panel li small {
    color: var(--q-muted);
    font-size: .56rem;
    margin-top: .22rem;
}

.game-section {
    margin-top: 34px;
    scroll-margin-top: 95px;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 13px;
}

.section-heading > div {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.section-heading h2 {
    font-size: .95rem;
    font-weight: 950;
    letter-spacing: -.02em;
    margin: 0;
    text-transform: uppercase;
}

.section-icon {
    align-items: center;
    border-radius: 7px;
    color: white;
    display: inline-flex;
    font-size: .75rem;
    height: 29px;
    justify-content: center;
    width: 29px;
}

.section-icon.purple { background: linear-gradient(145deg, #9259ff, #6d28d9); }
.section-icon.cyan { background: linear-gradient(145deg, #2dd4bf, #0891b2); }
.section-icon.green { background: linear-gradient(145deg, #34d399, #059669); }
.section-icon.orange { background: linear-gradient(145deg, #fbbf24, #f97316); }

.view-all {
    color: var(--q-purple);
    font-size: .64rem;
    font-weight: 850;
    text-decoration: none;
}

.game-rail {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.game-card {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(28, 39, 73, .055);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

a.game-card {
    color: inherit;
    display: block;
    text-decoration: none;
}

.game-card:hover {
    box-shadow: 0 12px 28px rgba(28, 39, 73, .12);
    transform: translateY(-3px);
}

.game-art {
    align-items: center;
    aspect-ratio: 1.25 / 1;
    color: white;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.game-art > b {
    font-size: clamp(2rem, 4vw, 3.4rem);
    position: relative;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    z-index: 2;
}

.game-thumbnail {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.game-art-shape {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    position: absolute;
}

.shape-one {
    height: 100px;
    right: -45px;
    top: -43px;
    width: 100px;
}

.shape-two {
    bottom: -35px;
    height: 80px;
    left: -30px;
    width: 80px;
}

.card-play {
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    bottom: 8px;
    display: flex;
    font-size: .48rem;
    height: 27px;
    justify-content: center;
    padding-left: 1px;
    position: absolute;
    right: 8px;
    width: 27px;
    z-index: 3;
}

.new-label {
    background: var(--q-purple);
    border-radius: 0 0 6px 0;
    font-size: .52rem;
    font-weight: 900;
    left: 0;
    letter-spacing: .06em;
    padding: .28rem .48rem;
    position: absolute;
    text-transform: uppercase;
    top: 0;
    z-index: 3;
}

.game-card-body {
    padding: .68rem .7rem .75rem;
}

.game-card-body > small {
    color: var(--q-purple);
    display: block;
    font-size: .5rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.game-card-body h3 {
    font-size: .71rem;
    font-weight: 850;
    margin: .24rem 0 .42rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-body > div {
    color: var(--q-muted);
    display: flex;
    font-size: .52rem;
    gap: .45rem;
}

.popular-category-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.popular-category-grid article,
.popular-category-grid a {
    align-items: center;
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(28, 39, 73, .05);
    color: inherit;
    display: grid;
    gap: .75rem;
    grid-template-columns: 44px 1fr auto;
    min-height: 76px;
    padding: .8rem;
    text-decoration: none;
}

.popular-category-grid article > span,
.popular-category-grid a > span {
    align-items: center;
    background: var(--q-purple-soft);
    border-radius: 11px;
    color: var(--q-purple);
    display: flex;
    font-size: 1rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.popular-category-grid h3 {
    font-size: .72rem;
    font-weight: 850;
    margin: 0 0 .17rem;
}

.popular-category-grid small {
    color: var(--q-muted);
    display: block;
    font-size: .54rem;
}

.popular-category-grid article > b,
.popular-category-grid a > b {
    color: #b0b7c6;
    font-size: 1.2rem;
}

.article-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid article {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(28, 39, 73, .05);
    padding: 1.1rem;
}

.article-grid article > span {
    color: var(--q-purple);
    font-size: .53rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.article-grid h3 {
    font-size: .8rem;
    font-weight: 850;
    line-height: 1.35;
    margin: .45rem 0;
}

.article-grid p {
    color: var(--q-muted);
    font-size: .62rem;
    line-height: 1.55;
    margin: 0;
}

.art-purple { background: linear-gradient(145deg, #7137d8, #31146b); }
.art-cyan { background: linear-gradient(145deg, #24bdd2, #0c668a); }
.art-lime { background: linear-gradient(145deg, #8bcf3f, #347544); }
.art-orange { background: linear-gradient(145deg, #ff9f43, #db4d35); }
.art-blue { background: linear-gradient(145deg, #4696f0, #3546aa); }
.art-pink { background: linear-gradient(145deg, #ed66b6, #8c3fc2); }
.art-navy { background: linear-gradient(145deg, #4435b4, #141752); }
.art-ice { background: linear-gradient(145deg, #8ee5f4, #5c7ee5); }
.art-violet { background: linear-gradient(145deg, #a663e8, #4939b7); }
.art-indigo { background: linear-gradient(145deg, #4f46e5, #26226f); }
.art-sunset { background: linear-gradient(145deg, #f59e0b, #ef5b65); }
.art-green { background: linear-gradient(145deg, #36c985, #157755); }

.catalog-page {
    min-height: 75vh;
    padding: 24px 0 70px;
}

.catalog-hero {
    align-items: end;
    background:
        radial-gradient(circle at 84% 18%, rgba(34, 211, 238, .2), transparent 26%),
        radial-gradient(circle at 64% 0, rgba(139, 76, 245, .34), transparent 34%),
        var(--q-navy);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(12, 17, 38, .14);
    color: white;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    margin-bottom: 22px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.catalog-hero > div,
.catalog-search {
    position: relative;
    z-index: 1;
}

.catalog-hero > div > span {
    color: #67e8f9;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.catalog-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -.045em;
    margin: .35rem 0 .55rem;
}

.catalog-hero p {
    color: #aeb8cc;
    font-size: .72rem;
    line-height: 1.65;
    margin: 0;
    max-width: 670px;
}

.catalog-search {
    display: grid;
    gap: .45rem;
}

.catalog-search > label {
    color: #dce4f5;
    font-size: .64rem;
    font-weight: 800;
}

.catalog-search > div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 5px;
}

.catalog-search input {
    background: transparent;
    border: 0;
    color: white;
    font-size: .7rem;
    min-width: 0;
    outline: 0;
    padding: .65rem .7rem;
}

.catalog-search input::placeholder {
    color: #98a4ba;
}

.catalog-search button,
.catalog-empty a {
    background: linear-gradient(135deg, #8b4cf5, #5b36ea);
    border: 0;
    border-radius: 9px;
    color: white;
    font-size: .66rem;
    font-weight: 900;
    min-height: 40px;
    padding: 0 1rem;
}

.catalog-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 230px minmax(0, 1fr);
}

.catalog-categories {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 15px;
    box-shadow: var(--q-shadow);
    padding: .9rem;
    position: sticky;
    scroll-margin-top: 90px;
    top: 94px;
}

.catalog-categories > span {
    display: block;
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: .15rem .35rem .7rem;
    text-transform: uppercase;
}

.catalog-categories nav {
    display: grid;
    gap: .2rem;
}

.catalog-categories a {
    align-items: center;
    border-radius: 9px;
    color: #596278;
    display: grid;
    font-size: .68rem;
    gap: .55rem;
    grid-template-columns: 22px 1fr auto;
    min-height: 38px;
    padding: .48rem .55rem;
    text-decoration: none;
}

.catalog-categories a:hover,
.catalog-categories a.active {
    background: var(--q-purple-soft);
    color: var(--q-purple);
}

.catalog-categories a b {
    font-size: .78rem;
    text-align: center;
}

.catalog-categories a strong {
    font-weight: 800;
}

.catalog-categories a small {
    background: rgba(124, 58, 237, .08);
    border-radius: 20px;
    font-size: .5rem;
    font-weight: 850;
    padding: .18rem .38rem;
}

.catalog-results {
    min-width: 0;
}

.catalog-toolbar {
    align-items: center;
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    min-height: 58px;
    padding: .65rem .8rem;
}

.catalog-toolbar p {
    color: var(--q-muted);
    font-size: .65rem;
    margin: 0;
}

.catalog-toolbar p strong {
    color: var(--q-ink);
}

.catalog-toolbar form {
    align-items: center;
    display: flex;
    gap: .55rem;
    margin: 0;
}

.catalog-toolbar label {
    color: var(--q-muted);
    font-size: .6rem;
    font-weight: 750;
}

.catalog-toolbar select {
    background: #f8f9fc;
    border: 1px solid var(--q-border);
    border-radius: 8px;
    color: var(--q-ink);
    font-size: .63rem;
    min-height: 34px;
    outline: 0;
    padding: 0 1.8rem 0 .65rem;
}

.catalog-toolbar noscript button {
    border: 1px solid var(--q-border);
    border-radius: 8px;
    font-size: .6rem;
    min-height: 34px;
}

.catalog-game-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.catalog-empty {
    align-items: center;
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 15px;
    color: var(--q-muted);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 2rem;
    text-align: center;
}

.catalog-empty > span {
    align-items: center;
    background: var(--q-purple-soft);
    border-radius: 50%;
    color: var(--q-purple);
    display: flex;
    font-size: 1.5rem;
    height: 60px;
    justify-content: center;
    width: 60px;
}

.catalog-empty h2 {
    color: var(--q-ink);
    font-size: 1.05rem;
    font-weight: 900;
    margin: 1rem 0 .4rem;
}

.catalog-empty p {
    font-size: .68rem;
    line-height: 1.6;
    max-width: 470px;
}

.catalog-empty a {
    align-items: center;
    display: inline-flex;
    margin-top: .5rem;
    text-decoration: none;
}

.catalog-pagination {
    margin-top: 22px;
}

.catalog-pagination .pagination {
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: center;
    margin: 0;
}

.catalog-pagination .page-link {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 8px !important;
    color: var(--q-purple);
    font-size: .64rem;
}

.catalog-pagination .active > .page-link {
    background: var(--q-purple);
    border-color: var(--q-purple);
    color: white;
}

.game-detail-page {
    min-height: 75vh;
    padding: 24px 0 70px;
}

.game-breadcrumb {
    align-items: center;
    color: var(--q-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .64rem;
    gap: .45rem;
    margin-bottom: 15px;
}

.game-breadcrumb a {
    color: var(--q-purple);
    font-weight: 800;
    text-decoration: none;
}

.game-breadcrumb strong {
    color: var(--q-ink);
}

.game-detail-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.game-player-shell {
    background: #080d1a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(18, 25, 51, .18);
    overflow: hidden;
}

.game-player-stage {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 25%, rgba(124, 58, 237, .24), transparent 38%),
        #050816;
    min-height: 320px;
    position: relative;
}

.game-player-stage iframe {
    background: #000;
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.game-player-cover {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(6, 9, 24, .2), rgba(6, 9, 24, .94)),
        radial-gradient(circle at 50% 26%, rgba(154, 83, 255, .36), transparent 34%);
    color: white;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: absolute;
    text-align: center;
    z-index: 3;
}

.game-player-shell.is-running .game-player-cover {
    display: none;
}

.player-cover-art {
    align-items: center;
    border: 3px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
    display: flex;
    height: 112px;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    width: 112px;
}

.player-cover-art.has-thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    height: auto;
    width: 190px;
}

.player-cover-art > span {
    color: rgba(255, 255, 255, .22);
    font-size: 4rem;
    font-weight: 950;
}

.player-cover-mascot {
    bottom: -11px;
    height: auto;
    position: absolute;
    right: -8px;
    width: 94px;
}

.player-cover-thumbnail {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.game-player-cover > span {
    color: #bda4f6;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.game-player-cover h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -.04em;
    margin: .3rem 0 .5rem;
}

.game-player-cover p {
    color: #aeb8cc;
    font-size: .72rem;
    line-height: 1.6;
    margin: 0 auto 1.15rem;
    max-width: 500px;
}

.game-player-cover button {
    background: linear-gradient(135deg, #8b4cf5, #5b36ea);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(84, 37, 198, .38);
    color: white;
    font-size: .72rem;
    font-weight: 900;
    min-height: 46px;
    padding: 0 1.25rem;
    text-transform: uppercase;
}

.game-player-cover button b {
    margin-left: .45rem;
}

.game-player-toolbar {
    align-items: center;
    color: #aab4c8;
    display: flex;
    font-size: .63rem;
    justify-content: space-between;
    min-height: 48px;
    padding: .5rem .8rem;
}

.game-player-toolbar > div {
    align-items: center;
    display: flex;
    gap: .45rem;
}

.player-status-dot {
    background: #64748b;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.game-player-shell.is-running .player-status-dot {
    background: var(--q-green);
    box-shadow: 0 0 10px rgba(34, 185, 139, .65);
}

.game-player-toolbar button {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    color: white;
    font-size: .61rem;
    font-weight: 800;
    min-height: 32px;
    padding: 0 .75rem;
}

.game-player-toolbar button:disabled {
    color: #657087;
}

.game-player-shell:fullscreen {
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100vh;
    width: 100vw;
}

.game-player-shell:fullscreen .game-player-stage {
    aspect-ratio: auto;
    min-height: 0;
}

.game-player-unavailable {
    background: #fff8ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    color: #9a3412;
    display: grid;
    gap: .45rem;
    min-height: 240px;
    padding: 2rem;
    place-content: center;
    text-align: center;
}

.game-player-unavailable span {
    color: #b45309;
    font-size: .72rem;
    line-height: 1.6;
    max-width: 520px;
}

.game-trust-note {
    align-items: start;
    background: #edfdf8;
    border: 1px solid #b8f1df;
    border-radius: 11px;
    color: #17634e;
    display: grid;
    font-size: .65rem;
    gap: .65rem;
    grid-template-columns: 24px 1fr;
    line-height: 1.55;
    margin-top: 12px;
    padding: .75rem .85rem;
}

.game-trust-note > span {
    align-items: center;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    font-weight: 900;
    height: 24px;
    justify-content: center;
}

.game-trust-note p {
    margin: .12rem 0 0;
}

.game-summary-card {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 15px;
    box-shadow: var(--q-shadow);
    padding: 1.25rem;
}

.game-summary-category {
    color: var(--q-purple);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.game-summary-card h2 {
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -.035em;
    margin: .35rem 0 .6rem;
}

.game-summary-card > p {
    color: var(--q-muted);
    font-size: .69rem;
    line-height: 1.65;
}

.game-summary-card dl {
    border-top: 1px solid var(--q-border);
    margin: 1rem 0 0;
    padding-top: .65rem;
}

.game-summary-card dl > div {
    align-items: start;
    display: flex;
    font-size: .62rem;
    gap: .8rem;
    justify-content: space-between;
    padding: .45rem 0;
}

.game-summary-card dt {
    color: var(--q-muted);
    font-weight: 700;
}

.game-summary-card dd {
    font-weight: 850;
    margin: 0;
    max-width: 58%;
    text-align: right;
}

.game-source-links {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: .8rem;
}

.game-source-links a {
    background: var(--q-purple-soft);
    border-radius: 8px;
    color: var(--q-purple);
    font-size: .61rem;
    font-weight: 850;
    padding: .6rem;
    text-align: center;
    text-decoration: none;
}

.game-editorial {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 16px;
    box-shadow: var(--q-shadow);
    margin-top: 24px;
    padding: 1.5rem;
}

.game-editorial header > span {
    color: var(--q-purple);
    font-size: .57rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.game-editorial header h2 {
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.03em;
    margin: .3rem 0 .8rem;
}

.game-editorial-intro > p,
.game-guide-grid p {
    color: #5f687d;
    font-size: .7rem;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

.game-guide-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.game-guide-grid article {
    background: #f8f9fc;
    border: 1px solid var(--q-border);
    border-radius: 12px;
    padding: 1rem;
}

.guide-icon {
    align-items: center;
    border-radius: 8px;
    color: white;
    display: flex;
    font-size: .72rem;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.guide-icon.purple { background: linear-gradient(145deg, #9259ff, #6d28d9); }
.guide-icon.cyan { background: linear-gradient(145deg, #2dd4bf, #0891b2); }
.guide-icon.green { background: linear-gradient(145deg, #34d399, #059669); }

.game-guide-grid h3 {
    font-size: .78rem;
    font-weight: 900;
    margin: .65rem 0 .4rem;
}

.related-games {
    margin-top: 28px;
}

.content-page {
    min-height: 72vh;
    padding: 24px 0 70px;
}

.content-breadcrumb {
    align-items: center;
    color: var(--q-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .64rem;
    gap: .45rem;
    margin-bottom: 15px;
}

.content-breadcrumb a {
    color: var(--q-purple);
    font-weight: 800;
    text-decoration: none;
}

.content-breadcrumb strong {
    color: var(--q-ink);
}

.content-hero {
    background:
        radial-gradient(circle at 83% 15%, rgba(34, 211, 238, .18), transparent 26%),
        radial-gradient(circle at 18% 120%, rgba(124, 58, 237, .4), transparent 35%),
        var(--q-navy);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    color: white;
    overflow: hidden;
    padding: 3.2rem clamp(1.4rem, 5vw, 4.8rem);
    position: relative;
}

.content-hero::after {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    height: 260px;
    position: absolute;
    right: -70px;
    top: -100px;
    width: 260px;
}

.content-hero > span,
.content-kicker {
    color: #a970ff;
    display: block;
    font-size: .64rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.content-hero h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .98;
    margin: .8rem 0 1rem;
    max-width: 850px;
}

.content-hero p {
    color: #bdc5d8;
    font-size: .88rem;
    line-height: 1.75;
    margin: 0;
    max-width: 760px;
}

.content-hero small {
    color: #858fa7;
    display: block;
    font-size: .6rem;
    margin-top: 1rem;
}

.content-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 250px minmax(0, 1fr);
    margin-top: 22px;
}

.content-navigation {
    position: sticky;
    top: 92px;
}

.content-navigation > strong {
    color: var(--q-muted);
    display: block;
    font-size: .61rem;
    letter-spacing: .11em;
    margin: 0 0 .6rem .2rem;
    text-transform: uppercase;
}

.content-navigation > nav {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 14px;
    box-shadow: var(--q-shadow);
    overflow: hidden;
    padding: .55rem;
}

.content-navigation > nav a {
    border-radius: 9px;
    color: #4d566c;
    display: block;
    font-size: .68rem;
    font-weight: 800;
    padding: .72rem .8rem;
    text-decoration: none;
}

.content-navigation > nav a:hover,
.content-navigation > nav a.active {
    background: var(--q-purple-soft);
    color: var(--q-purple);
}

.content-navigation > div {
    background: #11182d;
    border-radius: 14px;
    color: white;
    margin-top: 14px;
    padding: 1.15rem;
}

.content-navigation > div span {
    color: var(--q-cyan);
    display: block;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.content-navigation > div p {
    color: #9aa4ba;
    font-size: .64rem;
    line-height: 1.65;
    margin: .55rem 0 .8rem;
}

.content-navigation > div a {
    color: white;
    font-size: .62rem;
    font-weight: 850;
    text-decoration: none;
}

.content-article {
    background: white;
    border: 1px solid var(--q-border);
    border-radius: 16px;
    box-shadow: var(--q-shadow);
    min-width: 0;
    padding: clamp(1.4rem, 4vw, 3.5rem);
}

.content-article > section + section {
    border-top: 1px solid var(--q-border);
    margin-top: 2rem;
    padding-top: 2rem;
}

.content-article h2 {
    color: var(--q-ink);
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.25;
    margin: .5rem 0 .8rem;
}

.content-article h3 {
    font-size: .82rem;
    font-weight: 900;
}

.content-article p,
.content-article li,
.content-article dd {
    color: #596277;
    font-size: .75rem;
    line-height: 1.85;
}

.content-article p {
    margin: 0 0 .85rem;
}

.content-article a {
    color: var(--q-purple);
    font-weight: 850;
}

.content-value-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 2rem 0;
}

.content-value-grid article,
.contact-topic-grid article {
    background: #f8f9fc;
    border: 1px solid var(--q-border);
    border-radius: 12px;
    padding: 1.2rem;
}

.content-value-grid b {
    color: var(--q-purple);
    font-size: .65rem;
}

.content-value-grid h3,
.contact-topic-grid h3 {
    margin: .5rem 0;
}

.content-value-grid p,
.contact-topic-grid p {
    font-size: .66rem;
    line-height: 1.7;
    margin: 0;
}

.content-callout,
.contact-primary {
    align-items: center;
    background:
        radial-gradient(circle at 90% 20%, rgba(34, 211, 238, .2), transparent 30%),
        #11182d;
    border: 0 !important;
    border-radius: 14px;
    color: white;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.5rem !important;
}

.content-callout span {
    color: var(--q-cyan);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.content-callout h2,
.contact-primary h2 {
    color: white;
    margin-bottom: 0;
}

.content-callout a,
.contact-primary > a {
    background: linear-gradient(135deg, #8736f5, #5148ea);
    border-radius: 9px;
    color: white;
    flex: 0 0 auto;
    font-size: .68rem;
    padding: .75rem 1rem;
    text-decoration: none;
}

.content-step-list {
    counter-reset: q00p-step;
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.content-step-list li {
    border-left: 2px solid #ddd1ff;
    margin-left: 16px;
    padding: 0 0 1.25rem 1.5rem;
    position: relative;
}

.content-step-list li:last-child {
    padding-bottom: 0;
}

.content-step-list li::before {
    align-items: center;
    background: var(--q-purple);
    border: 4px solid #f1ebff;
    border-radius: 50%;
    color: white;
    content: counter(q00p-step);
    counter-increment: q00p-step;
    display: flex;
    font-size: .56rem;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    left: -17px;
    position: absolute;
    top: -2px;
    width: 32px;
}

.content-step-list b {
    color: var(--q-ink);
    display: block;
    font-size: .78rem;
    margin-bottom: .3rem;
}

.content-step-list p {
    margin: 0;
}

.content-note {
    background: #f4f0ff;
    border: 1px solid #dfd2ff !important;
    border-radius: 13px;
    padding: 1.35rem !important;
}

.content-note h2 {
    margin-top: 0;
}

.content-note p {
    margin-bottom: .55rem;
}

.content-definition-list {
    display: grid;
    gap: 10px;
    margin: 2rem 0;
}

.content-definition-list > div {
    border: 1px solid var(--q-border);
    border-radius: 11px;
    display: grid;
    gap: 1rem;
    grid-template-columns: 150px 1fr;
    padding: 1rem;
}

.content-definition-list dt {
    color: var(--q-ink);
    font-size: .7rem;
    font-weight: 900;
}

.content-definition-list dd {
    margin: 0;
}

.legal-copy > section:first-child h2 {
    margin-top: 0;
}

.contact-primary {
    margin: 0 0 1.6rem !important;
}

.contact-primary p {
    color: #aeb7ca;
    margin-bottom: 0;
    max-width: 650px;
}

.contact-primary > a {
    text-align: center;
}

.contact-topic-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-topic-grid span {
    color: var(--q-purple);
    font-size: .56rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-footer {
    background: var(--q-navy);
    color: #c9cfdd;
    padding: 35px 0;
}

.portal-footer .portal-container {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto auto;
}

.portal-footer strong {
    color: white;
    display: block;
    font-size: 1rem;
    font-weight: 950;
}

.portal-footer div > span,
.portal-footer small {
    color: #8791a8;
    display: block;
    font-size: .58rem;
    margin-top: .2rem;
}

.portal-footer nav {
    display: flex;
    font-size: .62rem;
    font-weight: 700;
    gap: 1rem;
}

.portal-footer nav a {
    color: #c9cfdd;
    text-decoration: none;
}

.portal-footer nav a:hover {
    color: white;
}

@media (max-width: 1279.98px) {
    .portal-navbar {
        grid-template-columns: 190px 1fr auto;
    }

    .portal-nav-links a {
        padding: 0 .75rem;
    }

    .portal-search {
        width: 170px;
    }

    .portal-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .portal-top-grid {
        grid-template-columns: minmax(0, 1fr) 240px;
    }

    .game-rail {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .game-rail > .game-card:nth-child(6) {
        display: none;
    }

    .catalog-game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1059.98px) {
    .portal-nav-links a {
        font-size: 0;
        padding: 0 .9rem;
    }

    .portal-nav-links a span {
        font-size: 1rem;
    }

    .portal-shell {
        grid-template-columns: 185px minmax(0, 1fr);
    }

    .portal-top-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .popular-panel {
        display: none;
    }

    .featured-game {
        height: 350px;
    }

    .game-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .game-rail > .game-card:nth-child(5) {
        display: none;
    }

    .catalog-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .catalog-game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-detail-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .game-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .portal-navbar {
        display: flex;
        height: 64px;
        justify-content: space-between;
        padding-left: 16px;
        padding-right: 16px;
    }

    .q-brand-logo {
        height: 54px;
    }

    .portal-nav-links,
    .portal-search,
    .theme-preview,
    .profile-preview {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
        gap: 4px;
        height: 42px;
        padding: 11px;
        width: 44px;
    }

    .mobile-menu-button i {
        background: white;
        border-radius: 2px;
        display: block;
        height: 2px;
        width: 22px;
    }

    .mobile-navigation {
        background: #11172a;
        border-top: 1px solid rgba(255, 255, 255, .07);
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .65rem 1rem 1rem;
    }

    .mobile-navigation.open {
        display: grid;
    }

    .mobile-navigation a {
        border-radius: 8px;
        color: #d7dce8;
        font-size: .7rem;
        font-weight: 750;
        padding: .65rem;
        text-decoration: none;
    }

    .mobile-search {
        display: grid;
        gap: .45rem;
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        padding: .25rem 0 .55rem;
    }

    .mobile-search input {
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 8px;
        color: white;
        font-size: .68rem;
        min-width: 0;
        outline: 0;
        padding: .62rem .7rem;
    }

    .mobile-search button {
        background: var(--q-purple);
        border: 0;
        border-radius: 8px;
        color: white;
        font-size: .65rem;
        font-weight: 850;
        padding: 0 .8rem;
    }

    .portal-page {
        padding: 14px 0 50px;
    }

    .catalog-page,
    .game-detail-page {
        padding: 14px 0 50px;
    }

    .portal-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .preview-notice {
        align-items: flex-start;
        font-size: .62rem;
        line-height: 1.45;
    }

    .portal-shell {
        display: block;
    }

    .catalog-hero {
        align-items: stretch;
        gap: 1.2rem;
        grid-template-columns: 1fr;
        padding: 1.35rem;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-categories {
        margin-bottom: 14px;
        position: static;
    }

    .catalog-categories nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-toolbar {
        align-items: flex-start;
        gap: .8rem;
    }

    .game-detail-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .game-player-stage {
        aspect-ratio: 4 / 3;
        min-height: 270px;
    }

    .game-player-cover {
        padding: 1rem;
    }

    .player-cover-art {
        height: 82px;
        margin-bottom: .7rem;
        width: 82px;
    }

    .player-cover-art.has-thumbnail {
        aspect-ratio: 16 / 9;
        height: auto;
        width: 132px;
    }

    .player-cover-art > span {
        font-size: 3rem;
    }

    .player-cover-mascot {
        width: 72px;
    }

    .game-player-cover h1 {
        font-size: 1.65rem;
    }

    .game-player-cover p {
        display: -webkit-box;
        font-size: .64rem;
        line-clamp: 2;
        margin-bottom: .8rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .game-player-cover button {
        min-height: 42px;
    }

    .game-summary-card {
        order: 2;
    }

    .game-editorial {
        padding: 1.1rem;
    }

    .left-sidebar {
        display: none;
    }

    .featured-game {
        border-radius: 12px;
        height: 315px;
    }

    .featured-copy {
        left: 7%;
        max-width: 64%;
        top: 13%;
    }

    .featured-copy h1 {
        font-size: 2.15rem;
        margin-top: .65rem;
    }

    .featured-copy p {
        font-size: .68rem;
        line-height: 1.55;
        max-width: 240px;
    }

    .featured-world {
        left: 40%;
        opacity: .78;
    }

    .world-orb {
        height: 130px;
        right: -2%;
        top: 20%;
        width: 130px;
    }

    .q-runner {
        left: 22%;
        top: 34%;
        transform: scale(.78) rotate(-8deg);
        transform-origin: center;
    }

    .platform-one {
        width: 62%;
    }

    .featured-arrow {
        height: 34px;
        width: 34px;
    }

    .featured-arrow-left {
        left: -14px;
    }

    .featured-arrow-right {
        right: -14px;
    }

    .game-section {
        margin-top: 27px;
    }

    .section-heading h2 {
        font-size: .8rem;
    }

    .game-rail {
        display: flex;
        gap: 11px;
        margin-left: -12px;
        margin-right: -12px;
        overflow-x: auto;
        padding: 2px 12px 12px;
        scrollbar-width: none;
    }

    .game-rail::-webkit-scrollbar {
        display: none;
    }

    .game-card,
    .game-card:nth-child(5),
    .game-card:nth-child(6) {
        display: block;
        flex: 0 0 154px;
    }

    .game-card-body h3 {
        font-size: .68rem;
    }

    .popular-category-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .portal-footer .portal-container {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .portal-footer nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 399.98px) {
    .featured-game {
        height: 300px;
    }

    .featured-copy {
        max-width: 70%;
    }

    .featured-copy p {
        max-width: 215px;
    }

    .featured-world {
        left: 46%;
    }

    .q-runner {
        left: 12%;
        transform: scale(.69) rotate(-8deg);
    }

    .game-card {
        flex-basis: 145px;
    }
}

@media (max-width: 1059.98px) {
    .content-page {
        padding: 14px 0 50px;
    }

    .content-layout {
        display: block;
    }

    .content-navigation {
        margin-bottom: 14px;
        position: static;
    }

    .content-navigation > nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-navigation > div {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .content-hero {
        border-radius: 13px;
        padding: 2rem 1.2rem;
    }

    .content-hero h1 {
        font-size: 2.2rem;
    }

    .content-hero p {
        font-size: .75rem;
    }

    .content-navigation > nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-navigation > nav a {
        font-size: .62rem;
    }

    .content-article {
        border-radius: 13px;
        padding: 1.25rem;
    }

    .content-value-grid,
    .contact-topic-grid {
        grid-template-columns: 1fr;
    }

    .content-callout,
    .contact-primary {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-callout a,
    .contact-primary > a {
        text-align: center;
        width: 100%;
    }

    .content-definition-list > div {
        gap: .35rem;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
