@media (max-width: 760px) {
    .games-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 0 10px;
    }
    .game-card {
        min-width: 0;
        width: 100%;
        padding: 12px 6px;
        font-size: 0.95em;
        min-height: 56px;
        border-radius: 9px;
        box-sizing: border-box;
    }
}
@media (max-width: 425px) {
    .games-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 4px;
    }
    .game-card {
        min-width: 0;
        width: 100%;
        padding: 12px 4px;
        font-size: 0.98em;
        min-height: 54px;
        border-radius: 9px;
    }
}
/* Sidebar Layout */
/* Sidebar Layout */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
    background: #102725;
}

.sidebar {
    width: 220px;
    background: #264653;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
}

.category-btn {
    color: #B6D4CF;
    background: none;
    border: none;
    font-size: 1.08em;
    padding: 12px 0;
    width: 100%;
    text-align: left;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 2px;
    outline: none;
}
.category-btn.active, .category-btn:hover {
    background: #2A9D8F;
    color: #fff;
}

main.container {
    margin-left: 220px;
    padding: 40px 32px 32px 32px;
    width: 100%;
    min-height: 100vh;
}
.level-title-underline {
    display: inline-block;
    font-size: 2.1em;
    font-weight: 900;
    color: #F4A261;
    border-bottom: 4px solid #F4A261;
    padding-bottom: 8px;
    margin-top: 32px;
    margin-bottom: 18px;
    width: 100%;
    text-align: center;
    letter-spacing: 1.5px;
    background: none;
}
.feelings-levels {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 8px 0;
}
.feelings-category-btn {
    background: #2A9D8F;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.18s, color 0.18s, transform 0.18s;
    outline: none;
}
.feelings-category-btn:hover, .feelings-category-btn.active {
    background: #F4A261;
    color: #102725;
    transform: scale(1.04);
}
html {
    overflow-y: scroll;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #102725;
    color: #ECF7F5;
}
.container {
    max-width: 900px;
    margin: 40px auto;
    background: #163C38;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 2px solid #84C7C1;
}
h1 {
    text-align: center;
    color: #2A9D8F;
    margin-bottom: 16px;
}

.gamehub-record-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.9em;
    background: rgba(231,111,81,0.18);
    color: #F4A261;
    margin: -8px auto 8px auto;
    box-shadow: 0 0 0 0 rgba(231,111,81,0.6);
}

.gamehub-record-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E76F51;
    box-shadow: 0 0 0 0 rgba(231,111,81,0.8);
    animation: session-record-pulse 1.2s infinite ease-out;
}

@keyframes session-record-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231,111,81,0.8);
    }
    70% {
        transform: scale(1.25);
        box-shadow: 0 0 0 8px rgba(231,111,81,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231,111,81,0);
    }
}
p {
    text-align: center;
    color: #B6D4CF;
    font-size: 1.1em;
    margin-bottom: 24px;
}
.games-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 32px;
    padding: 0 16px;
}
.game-card {
    background: #84C7C1;
    color: #102725;
    padding: 32px 18px;
    border-radius: 14px;
    text-align: center;
    font-weight: bold;
    font-size: 1.18em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.15s;
    cursor: pointer;
    text-decoration: none;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .games-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .game-card {
        padding: 24px 10px;
        font-size: 1.1em;
        min-height: 100px;
    }
}
@media (max-width: 600px) {
    .games-list {
        grid-template-columns: 1fr;
    }
    .game-card {
        min-width: 0;
        width: 100%;
    }
}
.game-card:hover {
    background: #F4A261;
    color: #102725;
    transform: scale(1.04);
}
.category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    background: #ECF7F5;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 2px solid #84C7C1;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.category-btn {
    font-size: 1em;
    font-weight: 600;
    color: #264653 !important;
    background: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    border: 2px solid #2A9D8F;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.category-btn:hover {
    background: #F4A261;
    color: #102725 !important;
    transform: scale(1.05);
    border-color: #F4A261;
}
.category-btn.active {
    background: #264653;
    color: #ECF7F5 !important;
    border-color: #2A9D8F;
    border-color: #264653;
    box-shadow: 0 2px 12px rgba(38,70,83,0.18);
    transform: none;
}
@media (max-width: 900px) {
    .container {
        max-width: 100vw;
        margin: 12px 0;
        padding: 10px 2vw;
        border-radius: 10px;
    }
    .games-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    .category-nav {
        flex-direction: row;
        gap: 6px;
        padding: 0;
        flex-wrap: wrap;
    }
    .category-btn {
        font-size: 0.93em;
        padding: 7px 7px;
        min-width: 70px;
        margin: 3px 0;
    }
    h1, .game-group-title {
        font-size: 1.2em;
    }
    p {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .container {
        max-width: 100vw;
        margin: 0;
        padding: 4vw 0.5vw;
        border-radius: 0;
        box-shadow: none;
        border-width: 1px;
    }
    .games-list {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 5px;
    }
    .game-card {
        padding: 12px 4px;
        font-size: 0.98em;
        border-radius: 7px;
    }
    .category-nav {
        gap: 3px;
    }
    .category-btn {
        font-size: 0.89em;
        padding: 6px 4px;
        min-width: 54px;
        border-radius: 6px;
    }
    h1, .game-group-title {
        font-size: 1em;
    }
    p {
        font-size: 0.97em;
    }
}

/* ====================================================
   Landing Redesign
   ==================================================== */

body.hub-landing {
    --landing-shell-max: 1220px;
    --landing-surface: rgba(9, 28, 31, 0.88);
    --landing-line: rgba(132, 199, 193, 0.18);
    --landing-text: #f5fbf8;
    --landing-muted: rgba(224, 238, 234, 0.78);
    background:
        radial-gradient(circle at 12% 18%, rgba(67, 170, 139, 0.28), transparent 25%),
        radial-gradient(circle at 88% 14%, rgba(244, 162, 97, 0.22), transparent 22%),
        radial-gradient(circle at 72% 82%, rgba(132, 199, 193, 0.16), transparent 28%),
        linear-gradient(145deg, #08161a 0%, #0d2024 38%, #132e31 100%);
    color: var(--landing-text);
    font-family: 'Sora', 'Trebuchet MS', sans-serif;
    position: relative;
}

body.hub-landing::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    mix-blend-mode: soft-light;
    opacity: 0.35;
}

body.hub-landing::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.18) 70%);
}

body.hub-landing .main-content {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 40px) clamp(14px, 2.8vw, 28px) 56px;
}

body.hub-landing .landing-shell {
    max-width: var(--landing-shell-max);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
    background: linear-gradient(180deg, rgba(11, 33, 37, 0.88), rgba(7, 22, 26, 0.94));
    border: 1px solid var(--landing-line);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.hub-landing .landing-shell::before {
    content: '';
    position: absolute;
    right: -8%;
    bottom: -30%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.22), rgba(244, 162, 97, 0));
    pointer-events: none;
}

body.hub-landing .landing-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.02) 64%, rgba(255, 255, 255, 0.08) 100%);
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
}

body.hub-landing .landing-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 24px;
}

body.hub-landing h1 {
    margin: 0 0 14px;
    color: #fff7f1;
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body.hub-landing p {
    margin: 0 auto;
    max-width: 44ch;
    color: var(--landing-muted);
    font-size: 1.04rem;
    line-height: 1.65;
}

body.hub-landing .gamehub-record-pill {
    margin: 0 auto 14px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 162, 97, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #ffd3a4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.hub-landing .landing-groups {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

body.hub-landing .game-group {
    --group-accent: #84C7C1;
    --group-glow: rgba(132, 199, 193, 0.3);
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.16);
}

body.hub-landing .game-group::before {
    content: '';
    position: absolute;
    left: -8%;
    top: -30%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--group-glow) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0.9;
    pointer-events: none;
}

body.hub-landing .game-group-title {
    position: relative;
    margin: 0 0 18px;
    padding-left: 18px;
    color: #f7fbfb;
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    letter-spacing: -0.02em;
}

body.hub-landing .game-group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--group-accent), rgba(255, 255, 255, 0.16));
    box-shadow: 0 0 18px var(--group-glow);
}

body.hub-landing .game-card {
    --card-accent: rgba(132, 199, 193, 0.52);
    --card-base: rgba(17, 56, 58, 0.64);
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 10;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
        linear-gradient(145deg, var(--card-base), rgba(8, 26, 29, 0.96));
    color: var(--landing-text);
    display: block;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

body.hub-landing .game-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: saturate(1.06);
}

body.hub-landing .game-card:focus-visible {
    outline: 3px solid rgba(244, 162, 97, 0.34);
    outline-offset: 4px;
}

body.hub-landing .game-card-halo {
    position: absolute;
    top: -20px;
    right: -12px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-accent) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0.7;
    z-index: 0;
    display: none;
}

body.hub-landing .game-card-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 30%),
        linear-gradient(transparent 54%, rgba(255, 255, 255, 0.05) 54%, rgba(255, 255, 255, 0.05) 55%, transparent 55%);
    opacity: 0.22;
    z-index: 0;
    display: none;
}

body.hub-landing .game-card-visual {
    position: relative;
    z-index: 1;
    display: none;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.94);
}

/* Real game screenshot fills the tile to make it instantly recognizable. */
body.hub-landing .game-card-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    transition: transform 0.4s ease;
}

body.hub-landing .game-card:hover .game-card-shot {
    transform: scale(1.05);
}

/* Gradient scrim keeps the title legible over the screenshot. */
body.hub-landing .game-card-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 24px 24px, rgba(255, 214, 110, 0.18), rgba(255, 214, 110, 0) 34%), linear-gradient(180deg, rgba(6, 18, 22, 0.04), rgba(6, 18, 22, 0.18));
}

/* Fallback: when a screenshot is missing, restore the custom line icon. */
body.hub-landing .game-card--no-shot .game-card-shot,
body.hub-landing .game-card--no-shot .game-card-scrim {
    display: none;
}

body.hub-landing .game-card--no-shot .game-card-visual {
    display: grid;
}

body.hub-landing .game-card-visual svg {
    width: 52px;
    height: 52px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.hub-landing .game-card-copy {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    width: auto;
    max-width: min(62%, 235px);
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 9px 11px 8px;
    border-radius: 14px;
    background: rgba(8, 27, 32, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.hub-landing .game-card-label {
    position: relative;
    z-index: 2;
    max-width: 100%;
    min-width: 0;
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    font-weight: 900;
    font-size: clamp(1.02rem, 1.55vw, 1.26rem);
    line-height: 1.04;
    letter-spacing: 0;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

body.hub-landing .game-card-cta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

body.hub-landing .game-card-mark {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 26, 29, 0.46);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

body.hub-landing .game-card-mark::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 20px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

body.hub-landing .game-card-mark::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
}

/* Game launch transition: the custom black & white icon as a styled element. */
.game-launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: radial-gradient(circle at 50% 42%, rgba(17, 56, 58, 0.96), rgba(6, 18, 21, 0.99));
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.game-launch-overlay.is-visible {
    opacity: 1;
}

.game-launch-mark {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border-radius: 32px;
    background: #f5f7f6;
    color: #0c2327;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: scale(0.82);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-launch-overlay.is-visible .game-launch-mark {
    transform: scale(1);
}

.game-launch-mark svg {
    width: 76px;
    height: 76px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-launch-label {
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    color: #eaf3f1;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.42s ease 0.08s, opacity 0.42s ease 0.08s;
}

.game-launch-overlay.is-visible .game-launch-label {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .game-launch-overlay,
    .game-launch-mark,
    .game-launch-label {
        transition: none;
    }
}

body.page-gamehub .games-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
    padding: 0;
}

body.page-gamehub .game-group[data-category="memory"] {
    --group-accent: #6debc6;
    --group-glow: rgba(109, 235, 198, 0.3);
}

body.page-gamehub .game-group[data-category="problem-solving"] {
    --group-accent: #f7b267;
    --group-glow: rgba(247, 178, 103, 0.28);
}

body.page-gamehub .game-group[data-category="attention"] {
    --group-accent: #ff8f70;
    --group-glow: rgba(255, 143, 112, 0.28);
}

body.page-gamehub .game-group[data-category="logic"] {
    --group-accent: #89c2ff;
    --group-glow: rgba(137, 194, 255, 0.26);
}

body.page-gamehub .game-group[data-category="pattern"] {
    --group-accent: #d4a5ff;
    --group-glow: rgba(212, 165, 255, 0.24);
}

body.page-gamehub .game-group[data-category="memory"] .game-card {
    --card-accent: rgba(109, 235, 198, 0.58);
    --card-base: rgba(17, 72, 64, 0.74);
}

body.page-gamehub .game-group[data-category="problem-solving"] .game-card {
    --card-accent: rgba(247, 178, 103, 0.58);
    --card-base: rgba(82, 54, 24, 0.78);
}

body.page-gamehub .game-group[data-category="attention"] .game-card {
    --card-accent: rgba(255, 143, 112, 0.58);
    --card-base: rgba(82, 35, 31, 0.78);
}

body.page-gamehub .game-group[data-category="logic"] .game-card {
    --card-accent: rgba(137, 194, 255, 0.54);
    --card-base: rgba(24, 49, 86, 0.78);
}

body.page-gamehub .game-group[data-category="pattern"] .game-card {
    --card-accent: rgba(212, 165, 255, 0.52);
    --card-base: rgba(64, 32, 76, 0.78);
}

body.hub-landing .sidebar-container {
    background: linear-gradient(180deg, rgba(8, 24, 27, 0.98), rgba(12, 34, 38, 0.98));
    border-right: 1px solid rgba(132, 199, 193, 0.16);
    box-shadow: 22px 0 40px rgba(0, 0, 0, 0.24);
}

body.hub-landing .profile-switcher {
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(132, 199, 193, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

body.hub-landing .profile-pic {
    border-color: rgba(244, 162, 97, 0.52);
    box-shadow: 0 0 0 5px rgba(244, 162, 97, 0.08);
}

body.hub-landing .profile-name {
    color: #f4fbf8;
}

body.hub-landing .profile-dropdown,
body.hub-landing .sidebar-toggle,
body.hub-landing .sidebar-utility .utility-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #f4fbf8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.hub-landing .profile-dropdown:hover,
body.hub-landing .sidebar-toggle:hover,
body.hub-landing .sidebar-utility .utility-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.hub-landing .nav-item {
    margin: 0 12px 4px;
    padding: 12px 16px;
    border-radius: 14px;
}

body.hub-landing .nav-item:hover,
body.hub-landing .nav-item:focus {
    background: rgba(255, 255, 255, 0.08);
}

body.hub-landing .nav-item.active {
    background: linear-gradient(90deg, rgba(67, 170, 139, 0.76), rgba(24, 63, 69, 0.96));
}

body.hub-landing .sidebar-utility {
    padding: 16px 12px 24px;
    gap: 10px;
}

body.hub-landing .sidebar-utility .utility-btn {
    width: 100%;
    border-radius: 16px;
    padding: 12px 16px;
    text-align: left;
}

body.hub-landing .profile-list {
    background: rgba(8, 24, 27, 0.98);
    border-color: rgba(132, 199, 193, 0.18);
    backdrop-filter: blur(10px);
}

@media (max-width: 1100px) {
    body.page-gamehub .games-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.hub-landing .game-card-mark {
        display: none;
    }
}

@media (max-width: 760px) {
    body.hub-landing .landing-shell {
        border-radius: 24px;
        padding: 22px 16px 24px;
    }

    body.hub-landing h1 {
        font-size: clamp(2.25rem, 10vw, 3.35rem);
    }

    body.page-gamehub .games-list {
        grid-template-columns: 1fr;
    }

    body.hub-landing .game-group {
        padding: 18px;
        border-radius: 24px;
    }
}

@media (max-width: 600px) {
    body.hub-landing .main-content {
        padding: calc(72px + env(safe-area-inset-top, 0px)) 0 32px;
    }

    body.hub-landing .landing-shell {
        min-height: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 18px 12px 22px;
    }

    body.hub-landing .landing-hero {
        margin-bottom: 18px;
    }

    body.hub-landing h1 {
        font-size: clamp(2.15rem, 9vw, 3rem);
    }

    body.hub-landing p {
        max-width: 34ch;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    body.hub-landing .landing-groups {
        gap: 12px;
    }

    body.hub-landing .game-group {
        padding: 14px 12px;
        border-radius: 22px;
    }

    body.hub-landing .game-group-title {
        margin-bottom: 14px;
        padding-left: 14px;
    }

    body.hub-landing .game-card {
        display: block;
        min-height: 0;
        padding: 0;
        border-radius: 20px;
    }

    body.hub-landing .game-card-visual {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    body.hub-landing .game-card-visual svg {
        width: 42px;
        height: 42px;
    }

    body.hub-landing .game-card-label {
        max-width: 100%;
        width: auto;
        font-size: clamp(0.94rem, 3.7vw, 1.06rem);
        line-height: 1.14;
        text-wrap: balance;
    }

    body.hub-landing .game-card-copy {
        left: 12px;
        bottom: 12px;
        max-width: min(74%, 210px);
        padding: 8px 10px;
    }

    body.hub-landing .game-card-mark {
        display: none;
    }

    body.page-gamehub .games-list {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    body.hub-landing .landing-shell {
        padding: 16px 10px 20px;
    }

    body.hub-landing .game-group {
        padding: 12px 10px;
        border-radius: 20px;
    }

    body.hub-landing .game-card {
        min-height: 0;
        padding: 0;
        border-radius: 18px;
    }

    body.hub-landing .game-card-visual {
        width: 54px;
        height: 54px;
    }

    body.hub-landing .game-card-visual svg {
        width: 38px;
        height: 38px;
    }

    body.hub-landing .game-card-label {
        font-size: clamp(0.95rem, 4.6vw, 1.06rem);
        line-height: 1.16;
    }

    body.hub-landing .game-card-mark {
        display: none;
    }
}
