/* The landing page has its own visual layer; game and guide pages keep theirs. */
.home-page {
    --c-bg: #f3f6ff;
    --c-text: #111a36;
    --c-text-muted: #64718d;
    --font-display: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
    background: radial-gradient(circle at 75% 12%, #e0eaff 0, transparent 31%),
                radial-gradient(circle at 10% 36%, #e9eeff 0, transparent 32%),
                #f3f6ff;
}
.home-page .bg-blobs { display: none; }
.home-page .container { width: min(1200px, calc(100% - 48px)); }
.home-page main.container { padding-top: 0; padding-bottom: 84px; }
.home-page .site-header {
    background: rgba(247, 249, 255, .88);
    border-bottom: 1px solid #e7ebf5;
    box-shadow: none;
}
.home-page .header-inner { min-height: 78px; }
.home-page .logo { font-size: 1.45rem; letter-spacing: -.05em; }
.home-page .logo-text em {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: inherit;
    font-weight: 800;
}
.home-page .logo-emoji { width: 43px; height: 43px; object-fit: contain; }
.home-page .logo:hover .logo-emoji { transform: none; }
.home-page .site-nav { gap: 2px; }
.home-page .nav-link {
    color: #4b5874;
    font-size: .84rem;
    font-weight: 800;
    border: 0;
    padding: 9px 10px;
}
.home-page .site-nav .nav-link-assessment {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #4b5874 !important;
    font-weight: 800 !important;
}
.home-page .lang-current {
    border: 1px solid #dbe2f2;
    box-shadow: none;
    border-radius: 11px;
}
.home-page .assessment-hero {
    margin: 0;
    padding: 54px 0 42px;
    min-height: 590px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    overflow: visible;
    backdrop-filter: none;
}
.home-page .assessment-hero::before { display: none; }
.home-page .assessment-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 24px;
}
.home-page .home-hero-copy { max-width: 580px; padding: 18px 0 28px; }
.home-page .assessment-badge {
    display: block;
    width: fit-content;
    padding: 0;
    margin: 0 0 18px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #5968a7;
    font-size: .87rem;
    font-weight: 900;
    letter-spacing: .16em;
}
.home-page .assessment-badge:hover { transform: none; box-shadow: none; }
.home-page .assessment-hero-title {
    max-width: 620px;
    margin: 0 0 22px;
    color: #101936;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(3.15rem, 5.4vw, 5.45rem);
    font-weight: 900;
    letter-spacing: -.064em;
    line-height: 1.04;
}
.home-page .assessment-hero-title span {
    color: #5437ed;
    background: linear-gradient(100deg, #5941ee, #3d24d7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-page .assessment-hero-sub {
    max-width: 480px;
    margin: 0 0 26px;
    color: #53617e;
    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.6;
}
.home-page .home-challenge-note {
    margin: 0 0 18px;
    color: #4a36c4;
    font-weight: 800;
}
.home-page .assessment-cta {
    min-height: 62px;
    min-width: 275px;
    padding: 14px 25px;
    justify-content: space-between;
    border-radius: 17px;
    background: linear-gradient(112deg, #6238ef 0%, #4637f2 57%, #34b8f4 100%);
    box-shadow: 0 14px 30px rgba(74, 61, 206, .18);
    font-family: 'Manrope', sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
}
.home-page .assessment-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(74, 61, 206, .24); }
.home-page .assessment-cta span { margin-left: 22px; font-size: 1.55rem; font-weight: 500; line-height: 1; }
.home-page .assessment-hero-meta {
    justify-content: flex-start;
    gap: 0;
    margin: 18px 0 0;
    color: #67748d;
    font-size: .85rem;
}
.home-page .assessment-hero-meta span {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}
.home-page .assessment-hero-meta span + span::before { content: '•'; padding: 0 10px; color: #7485b6; }
.home-page .assessment-hero-meta span:hover { transform: none; border: 0; }
.home-page .home-hero-visual {
    position: relative;
    isolation: isolate;
    width: min(100%, 590px);
    min-width: 0;
    aspect-ratio: 1;
    margin-inline: auto;
    display: grid;
    place-items: center;
}
.home-page .home-hero-visual::before {
    content: '';
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 148, 255, .2) 12%, rgba(113, 191, 255, .08) 50%, transparent 72%);
    filter: blur(17px);
}
.home-page .home-orbit {
    position: absolute;
    border: 2px solid rgba(146, 175, 239, .32);
    border-radius: 50%;
}
.home-page .home-orbit-outer { inset: 8%; }
.home-page .home-orbit-inner { inset: 20%; border-style: dashed; border-color: rgba(158, 187, 241, .21); }
.home-page .home-brain {
    position: relative;
    z-index: 1;
    width: 107%;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 30px 36px rgba(66, 73, 191, .22));
}
.home-page .home-orbit-token {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 21px;
    color: #fff;
    font-size: 2.3rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(41, 55, 135, .18), inset 0 1px rgba(255, 255, 255, .35);
}
.home-page .token-flash { top: 8%; left: 19%; background: linear-gradient(140deg, #ffcc37, #ff8d24); }
.home-page .token-target { top: 10%; right: 8%; background: linear-gradient(140deg, #16dfa1, #00aa85); }
.home-page .token-eye { left: 3%; top: 55%; background: linear-gradient(140deg, #ff6eaa, #e82a76); }
.home-page .token-pattern { right: 1%; top: 56%; background: linear-gradient(140deg, #a364fa, #6637e2); }
.home-page .token-chart { bottom: 8%; left: 47%; background: linear-gradient(140deg, #51bffd, #168bf0); }
.home-page .home-daily {
    position: relative;
    padding: 32px 36px 36px;
    border: 1px solid #e4eaf7;
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 55px rgba(39, 58, 118, .07);
}
.home-page .home-daily-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
}
.home-page .home-eyebrow {
    margin: 0 0 8px;
    color: #6a5adb;
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.home-page .home-daily h2,
.home-page .free-play-title {
    margin: 0;
    color: #17213c;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    letter-spacing: -.035em;
}
.home-page .home-daily time { color: #7a86a2; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.home-page .home-daily-content {
    display: grid;
    grid-template-columns: minmax(230px, .88fr) minmax(0, 1.12fr);
    gap: 34px;
    align-items: center;
}
.home-page .home-daily-art {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    min-height: 170px;
    padding: 22px;
    border: 1px solid #e6ebf5;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7f9ff, #edf2fc);
}
.home-page .daily-tile {
    border-radius: 12px;
    background: #e1e7f4;
    position: relative;
}
.home-page .daily-tile::after {
    content: '';
    position: absolute;
    width: 33%;
    aspect-ratio: 1;
    top: 24%;
    left: 24%;
    border-radius: 5px;
    background: #344064;
    box-shadow: 22px 22px 0 #7380a4;
}
.home-page .tile-2::after { left: 42%; top: 15%; box-shadow: -18px 25px 0 #7380a4; }
.home-page .tile-3::after { left: 20%; top: 42%; box-shadow: 23px -19px 0 #7380a4; }
.home-page .tile-4::after { left: 48%; top: 40%; box-shadow: -20px -21px 0 #7380a4; }
.home-page .tile-5::after { left: 28%; top: 18%; box-shadow: 23px 24px 0 #7380a4; }
.home-page .tile-6::after { left: 47%; top: 20%; box-shadow: -21px 22px 0 #7380a4; }
.home-page .home-daily-copy h3 { margin: 0 0 9px; color: #182342; font-size: 1.35rem; line-height: 1.25; }
.home-page .home-daily-copy p { margin: 0 0 20px; color: #596883; line-height: 1.55; }
.home-page .home-daily-link {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    border-radius: 11px;
    background: #5c43ea;
    color: white;
    font-weight: 800;
    text-decoration: none;
}
.home-page .home-daily-link:hover { background: #4d35da; }
.home-page .free-play-divider { margin: 74px 0 22px; padding: 0; background: none; border: 0; box-shadow: none; text-align: left; }
.home-page .free-play-divider::before { display: none; }
.home-page .free-play-header { display: block; padding: 0; background: transparent; }
.home-page .free-play-title { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.home-page .free-play-sub { margin: 8px 0 0; color: #697690; font-size: 1rem; }
.home-page .category { margin-top: 38px; }
.home-page .category-title { padding: 0; margin-bottom: 18px; color: #17213c; font-family: 'Manrope', sans-serif; font-size: 1.28rem; font-weight: 900; }
.home-page .category-title::before { display: none; }
.home-page .category-emoji { font-size: 1.3rem; }
.home-page .game-grid { gap: 16px; }
.home-page .game-card {
    border: 1px solid #e5eaf5;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 25px rgba(40, 54, 110, .045);
    text-align: left;
}
.home-page .game-card::after { display: none; }
.home-page .game-card:hover { transform: translateY(-3px); border-color: #c6c5f2; box-shadow: 0 15px 34px rgba(57, 60, 147, .1); }
.home-page .game-card-emoji { font-size: 1.7rem; }
.home-page .game-card:hover .game-card-emoji { transform: none; }
.home-page .game-card-title { color: #182441; font-family: 'Manrope', sans-serif; }
.home-page .game-card-desc { color: #64728e; }
.home-page .game-card-cta,
.home-page .card-purple .game-card-cta,
.home-page .card-blue .game-card-cta,
.home-page .card-green .game-card-cta,
.home-page .card-orange .game-card-cta,
.home-page .card-red .game-card-cta,
.home-page .card-pink .game-card-cta,
.home-page .card-teal .game-card-cta {
    background: #eeedff;
    color: #5540ce;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}
.home-page .game-card:hover .game-card-cta { background: #e3e0ff; color: #4330b5; }
.home-page .site-footer { background: #eef2fb; border-top: 1px solid #e0e7f4; }
.home-page a:focus-visible { outline: 3px solid #5941ee; outline-offset: 3px; }
@media (max-width: 850px) {
    .home-page .nav-toggle { display: flex; }
    .home-page .header-actions { position: relative; }
    .home-page .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 225px;
        padding: 8px;
        align-items: stretch;
        flex-direction: column;
        border: 1px solid #e4e8f4;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 14px 35px rgba(42, 50, 91, .14);
        z-index: 300;
    }
    .home-page .site-nav.open { display: flex; }
}
@media (max-width: 850px) {
    .home-page .assessment-hero { padding: 40px 0 28px; min-height: 0; }
    .home-page .assessment-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .home-page .home-hero-copy { max-width: 670px; padding: 0; }
    .home-page .assessment-hero-title { font-size: clamp(3.1rem, 8vw, 4.7rem); }
    .home-page .home-hero-visual { max-width: 540px; margin-top: 10px; }
    .home-page .home-daily-content { grid-template-columns: 1fr; gap: 22px; }
    .home-page .home-daily-art { max-width: 570px; }
}
@media (max-width: 560px) {
    .home-page .container { width: min(100% - 32px, 1200px); }
    .home-page .header-inner { min-height: 68px; }
    .home-page .logo { font-size: 1.2rem; gap: 5px; }
    .home-page .logo-emoji { width: 34px; height: 34px; }
    .home-page .assessment-hero { padding-top: 35px; }
    .home-page .assessment-hero-title { font-size: clamp(2.75rem, 13vw, 3.8rem); }
    .home-page .assessment-hero-sub { font-size: 1rem; }
    .home-page .assessment-cta { width: 100%; min-width: 0; }
    .home-page .assessment-hero-meta { font-size: .75rem; }
    .home-page .assessment-hero-meta span + span::before { padding: 0 5px; }
    .home-page .home-hero-visual { width: 100%; }
    .home-page .home-brain { width: 100%; }
    .home-page .home-orbit-token { width: 45px; height: 45px; border-radius: 14px; font-size: 1.65rem; }
    .home-page .home-daily { padding: 24px 18px; }
    .home-page .home-daily-heading { display: block; }
    .home-page .home-daily time { display: block; margin-top: 8px; }
    .home-page .home-daily-art { min-height: 130px; padding: 14px; gap: 7px; }
    .home-page .free-play-divider { margin-top: 55px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { animation-duration: .01ms !important; }
}

/* Daily challenge and featured test cards mirror the reference layout. */
.home-page .assessment-hero-title {
    font-size: clamp(3.2rem, 6.8vw, 5.45rem);
    letter-spacing: -.07em;
}
.home-page .home-orbit-outer::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: -5px;
    left: 50%;
    border-radius: 50%;
    background: #91caff;
    box-shadow: -195px 195px 0 #91caff, 195px 195px 0 #91caff, 0 390px 0 #91caff;
}
.home-page .home-daily { scroll-margin-top: 100px; }
.home-page .home-daily-heading {
    align-items: center;
    margin-bottom: 24px;
}
.home-page .home-daily-heading h2 {
    display: flex;
    align-items: center;
    gap: 16px;
}
.home-page .daily-flame { font-size: 1.7rem; line-height: 1; }
.home-page .home-daily-heading p {
    color: #73819e;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}
.home-page .home-daily-content {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
}
.home-page .challenge-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2px;
    min-height: 184px;
    padding: 14px;
    border: 1px solid #e4eaf6;
    border-radius: 17px;
    background: #e4eaf5;
}
.home-page .challenge-board-cell {
    display: grid;
    place-items: center;
    min-width: 0;
    background: #f4f7fc;
}
.home-page .challenge-board-cell:nth-child(1) { border-top-left-radius: 9px; }
.home-page .challenge-board-cell:nth-child(3) { border-top-right-radius: 9px; }
.home-page .challenge-board-cell:nth-child(4) { border-bottom-left-radius: 9px; }
.home-page .challenge-board-cell:nth-child(6) { border-bottom-right-radius: 9px; }
.home-page .challenge-question { color: #334262; font-size: 2.2rem; font-weight: 900; }
.home-page .pattern-shape {
    display: grid;
    width: 43px;
    height: 43px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
}
.home-page .pattern-shape i { display: block; background: #434d67; }
.home-page .pattern-shape.shape-0 i:nth-child(4),
.home-page .pattern-shape.shape-1 i:nth-child(3),
.home-page .pattern-shape.shape-2 i:nth-child(1),
.home-page .pattern-shape.shape-3 i:nth-child(2) { background: #cbd3e1; }
.home-page .home-daily-copy h3 { margin-bottom: 4px; font-size: 1.23rem; }
.home-page .home-daily-copy p { margin-bottom: 16px; }
.home-page .challenge-form { display: flex; align-items: end; gap: 16px; }
.home-page .challenge-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1;
    min-width: 0;
    gap: 8px;
    border: 0;
}
.home-page .challenge-option {
    display: grid;
    gap: 6px;
    justify-items: center;
    cursor: pointer;
    color: #4b5977;
    font-size: .88rem;
    font-weight: 800;
}
.home-page .challenge-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.home-page .challenge-option-art {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 65px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #edf2fa;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.home-page .challenge-option:hover .challenge-option-art { transform: translateY(-2px); background: #e5ebf8; }
.home-page .challenge-option input:focus-visible + .challenge-option-art { outline: 3px solid #5741e9; outline-offset: 2px; }
.home-page .challenge-option input:checked + .challenge-option-art { border-color: #5e43ed; background: #f0edff; }
.home-page .challenge-option.is-correct .challenge-option-art { border-color: #10b981; background: #ddf8ed; }
.home-page .challenge-option.is-incorrect .challenge-option-art { border-color: #f87171; background: #fff0f0; }
.home-page .challenge-option-art .pattern-shape { width: 32px; height: 32px; }
.home-page .challenge-submit {
    min-height: 65px;
    padding: 12px 19px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, #6846f3, #5437df);
    color: #fff;
    font: 800 .88rem 'Manrope', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(82, 59, 218, .18);
}
.home-page .challenge-submit:hover { background: #4d32d4; }
.home-page .challenge-submit:disabled { cursor: default; opacity: .68; }
.home-page .challenge-feedback {
    min-height: 1.3em;
    margin: 8px 0 0;
    font-size: .82rem;
    font-weight: 800;
}
.home-page .challenge-feedback.is-correct { color: #078462; }
.home-page .challenge-feedback.is-incorrect { color: #bd3d50; }
.home-page .daily-guide-link {
    color: #5944cd;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}
.home-page .daily-guide-link:hover { text-decoration: underline; }
.home-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.home-page .home-featured { margin-top: 62px; scroll-margin-top: 100px; }
.home-page .home-featured-heading { margin-bottom: 24px; }
.home-page .home-featured-heading h2 {
    color: #14203d;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -.04em;
}
.home-page .home-featured-heading p { margin-top: 7px; color: #67758f; font-size: 1rem; }
.home-page .featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-page .featured-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 16px;
    min-height: 126px;
    padding: 20px;
    border: 1px solid #e5eaf5;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(40, 56, 106, .05);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-page .featured-card:hover { transform: translateY(-3px); border-color: #ccc9f4; box-shadow: 0 18px 36px rgba(51, 59, 137, .1); }
.home-page .featured-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 15px;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.home-page .icon-blue { color: #168cf4; background: #e4f3ff; }
.home-page .icon-purple { color: #7748ee; background: #f0e9ff; }
.home-page .icon-orange { color: #ff9d17; background: #fff1d8; }
.home-page .icon-green { color: #02b985; background: #e2fff2; }
.home-page .icon-pink { color: #ed4a8b; background: #ffe9f1; }
.home-page .icon-rose { color: #f04f69; background: #fff0f2; }
.home-page .icon-royal { color: #2974ed; background: #e5eeff; font-size: 1.2rem; }
.home-page .icon-cyan { color: #08afe4; background: #dff9ff; }
.home-page .icon-multi { color: #6b4af1; background: radial-gradient(circle at 30% 30%, #dbf5ff, #ffedfb); }
.home-page .featured-card-copy { display: grid; gap: 5px; min-width: 0; }
.home-page .featured-card-copy strong { color: #17213d; font-size: .99rem; font-weight: 900; line-height: 1.3; }
.home-page .featured-card-copy small { color: #65738f; font-size: .79rem; font-weight: 600; line-height: 1.45; }
.home-page .featured-arrow { align-self: end; color: #4561bb; font-size: 1.3rem; line-height: 1; }
.home-page .free-play-divider { margin-top: 76px; }
@media (max-width: 1100px) {
    .home-page .home-daily-content { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; }
    .home-page .challenge-form { gap: 10px; }
    .home-page .challenge-options { gap: 5px; }
    .home-page .challenge-submit { padding-inline: 12px; }
    .home-page .featured-card { grid-template-columns: 50px minmax(0, 1fr) 16px; gap: 10px; padding: 16px; }
    .home-page .featured-icon { width: 48px; height: 48px; }
}
@media (max-width: 850px) {
    .home-page .home-daily-content { grid-template-columns: 1fr; }
    .home-page .challenge-board { min-height: 175px; }
    .home-page .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-page .assessment-hero-title { font-size: clamp(2.65rem, 12vw, 3.8rem); }
    .home-page .home-orbit-outer::after { display: none; }
    .home-page .home-daily-heading { display: block; }
    .home-page .home-daily-heading p { margin-top: 9px; white-space: normal; }
    .home-page .challenge-form { display: block; }
    .home-page .challenge-options { margin-bottom: 14px; }
    .home-page .challenge-submit { width: 100%; min-height: 52px; }
    .home-page .featured-grid { grid-template-columns: 1fr; gap: 12px; }
    .home-page .featured-card { min-height: 108px; }
}
